From bb1da6eaf0b3f1ce5ef9d1711571b8100e10ce18 Mon Sep 17 00:00:00 2001 From: Ckyiu Date: Sun, 3 Jan 2021 13:30:20 -0500 Subject: [PATCH] 1.0.0 --- assets/js/binary.js | 45205 +++++++++++++++++++++++------------------- assets/version.txt | 2 +- pxt.json | 1 + 3 files changed, 24657 insertions(+), 20551 deletions(-) diff --git a/assets/js/binary.js b/assets/js/binary.js index 9278f1a..a228852 100644 --- a/assets/js/binary.js +++ b/assets/js/binary.js @@ -1,5 +1,5 @@ -// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.2.16/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"0.0.0","target":"arcade","targetVersion":"1.2.16"} -// total=1558154 new=8.83% cached=86.14% other=5.04% +// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.2.16/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"1.0.0","target":"arcade","targetVersion":"1.2.16","repo":"unsignedarduino/arcade-maze-generator"} +// total=1682903 new=9.58% cached=85.49% other=4.93% (function (ectx) { 'use strict'; const runtime = ectx.runtime; @@ -51,6 +51,7 @@ pxtrt.mapKeyNames = [ "_data", "_destroyCore", "_dt", + "_endPalette", "_factory", "_fx", "_fy", @@ -80,6 +81,7 @@ pxtrt.mapKeyNames = [ "_row", "_scale", "_sprites", + "_startPalette", "_text", "_update", "_vx", @@ -112,6 +114,7 @@ pxtrt.mapKeyNames = [ "borderWidth", "bottom", "buckets", + "buf", "button", "buttons", "cachedTileView", @@ -135,6 +138,7 @@ pxtrt.mapKeyNames = [ "col", "collisionHandlers", "color", + "colors", "columnCount", "columns", "condition", @@ -142,6 +146,7 @@ pxtrt.mapKeyNames = [ "constrain", "contains", "controlledSprites", + "count", "countdownEndHandler", "countdownExpired", "createMovingSprite", @@ -176,6 +181,7 @@ pxtrt.mapKeyNames = [ "drawScore", "drawText", "drawTextCore", + "duration", "dx", "dy", "effect", @@ -234,6 +240,7 @@ pxtrt.mapKeyNames = [ "innerTop", "insertAABB", "insertAtKey", + "isActive", "isInvalidIndex", "isNewHighScore", "isObstacle", @@ -247,12 +254,14 @@ pxtrt.mapKeyNames = [ "kind", "layer", "layers", + "layout", "left", "length", "lfsr", "life", "lifeZeroHandler", "lifespan", + "lock", "map", "maxLifespan", "maxNegativeVelocity", @@ -292,6 +301,8 @@ pxtrt.mapKeyNames = [ "padding", "parent", "particleSources", + "pauseUntilDone", + "percentChance", "period", "physicsEngine", "pickRandom", @@ -346,8 +357,10 @@ pxtrt.mapKeyNames = [ "selection", "setAcceleration", "setAnchor", + "setColor", "setData", "setDirection", + "setEndPalette", "setFactory", "setFlag", "setHitbox", @@ -360,6 +373,7 @@ pxtrt.mapKeyNames = [ "setRelativeToCamera", "setSelection", "setSpeed", + "setStartPalette", "setState", "setTheme", "setTile", @@ -387,9 +401,13 @@ pxtrt.mapKeyNames = [ "spritesByKind", "src", "start", + "startPalette", "startScreenEffect", + "startTime", "state", + "step", "stop", + "stride", "textAreaHeight", "textAreaWidth", "textColor", @@ -462,7 +480,7 @@ const pxsim_pxtrt = pxsim.pxtrt; const pxsim_numops = pxsim.numops; -function _main___P196241(s) { +function _main___P219766(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -472,252 +490,253 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - globals._intervals___90177 = (undefined); - globals._pollEventQueue___90186 = (undefined); - globals.minPriority___86849 = (1); + globals._intervals___155341 = (undefined); + globals._pollEventQueue___155350 = (undefined); + globals.minPriority___151848 = (1); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, inline__P90189); - globals.listeners___90190 = (s.tmp_0); - globals.freqs___90239 = (_hex90238); - globals.globalVolume___90243 = (null); - globals.playToneID___90250 = (0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C88083_VT); + r0 = pxsim_Array__push(s.tmp_0, inline__P155353); + globals.listeners___155354 = (s.tmp_0); + globals.freqs___155403 = (_hex155402); + globals.globalVolume___155407 = (null); + globals.playToneID___155414 = (0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C153082_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P88086_mk(s); + s.tmp_1 = music_Melody_constructor__P153085_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 = 3; return s.tmp_1; - case 3: + s.callLocIdx = 0; s.pc = 17; return s.tmp_1; + case 17: r0 = s.retval; - globals.wawawawaa___88100 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C88083_VT); + globals.wawawawaa___153099 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C153082_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P88086_mk(s); + s.tmp_1 = music_Melody_constructor__P153085_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 = 4; return s.tmp_1; - case 4: + s.callLocIdx = 1; s.pc = 18; return s.tmp_1; + case 18: r0 = s.retval; - globals.powerUp___88103 = (s.tmp_0); - globals.brightness___88209 = (100); + globals.powerUp___153102 = (s.tmp_0); + globals.brightness___153208 = (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", _hex96616); - globals.font8___88230 = (s.tmp_0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex159249); + globals.font8___153229 = (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", _hex96618); - globals.font12___88231 = (s.tmp_0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex159251); + globals.font12___153230 = (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", _hex97869); - globals.font5___88235 = (s.tmp_0); - globals.__updated___90287 = (false); - r0 = pxsim.control.runInParallel(inline__P90290); - r0 = pxsim_pxtcore.setPalette(_hex90301); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex166983); + globals.font5___153234 = (s.tmp_0); + globals.__updated___155451 = (false); + r0 = pxsim.control.runInParallel(inline__P155454); + r0 = pxsim_pxtcore.setPalette(_hex155465); r0 = pxsim.image.create(160, 120); - globals.screen___88287 = (r0); - s.tmp_0 = control___screen_setupUpdate__P88249_mk(s); - s.tmp_0.arg0 = inline__P90308; - s.callLocIdx = 4; s.pc = 5; return s.tmp_0; - case 5: + globals.screen___153286 = (r0); + s.tmp_0 = control___screen_setupUpdate__P153248_mk(s); + s.tmp_0.arg0 = inline__P155472; + s.callLocIdx = 4; s.pc = 19; return s.tmp_0; + case 19: r0 = s.retval; - globals.control_EventContext_onStats___86872 = (inline__P90313); - globals.RUN_KEY___90318 = ("#run"); - globals.SCOPE_KEY___90319 = ("#scope"); - s.tmp_0 = settings_initScopes__P90330_mk(s); - s.callLocIdx = 5; s.pc = 6; return s.tmp_0; - case 6: + globals.control_EventContext_onStats___151871 = (inline__P155477); + globals.RUN_KEY___155482 = ("#run"); + globals.SCOPE_KEY___155483 = ("#scope"); + s.tmp_0 = settings_initScopes__P155494_mk(s); + s.callLocIdx = 5; s.pc = 20; return s.tmp_0; + case 20: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C88388_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C153387_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P88394_mk(s); + s.tmp_1 = controller_Button_constructor__P153393_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 5; s.tmp_1.arg2 = 4; - s.callLocIdx = 6; s.pc = 7; return s.tmp_1; - case 7: + s.callLocIdx = 6; s.pc = 21; return s.tmp_1; + case 21: r0 = s.retval; - globals.A___88362 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C88388_VT); + globals.A___153361 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C153387_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P88394_mk(s); + s.tmp_1 = controller_Button_constructor__P153393_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 6; s.tmp_1.arg2 = 5; - s.callLocIdx = 7; s.pc = 8; return s.tmp_1; - case 8: + s.callLocIdx = 7; s.pc = 22; return s.tmp_1; + case 22: r0 = s.retval; - globals.B___88363 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C88388_VT); + globals.B___153362 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C153387_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P88394_mk(s); + s.tmp_1 = controller_Button_constructor__P153393_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 1; s.tmp_1.arg2 = 47; - s.callLocIdx = 8; s.pc = 9; return s.tmp_1; - case 9: + s.callLocIdx = 8; s.pc = 23; return s.tmp_1; + case 23: r0 = s.retval; - globals.left___88364 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C88388_VT); + globals.left___153363 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C153387_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P88394_mk(s); + s.tmp_1 = controller_Button_constructor__P153393_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 2; s.tmp_1.arg2 = 49; - s.callLocIdx = 9; s.pc = 10; return s.tmp_1; - case 10: + s.callLocIdx = 9; s.pc = 24; return s.tmp_1; + case 24: r0 = s.retval; - globals.up___88365 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C88388_VT); + globals.up___153364 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C153387_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P88394_mk(s); + s.tmp_1 = controller_Button_constructor__P153393_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 3; s.tmp_1.arg2 = 48; - s.callLocIdx = 10; s.pc = 11; return s.tmp_1; - case 11: + s.callLocIdx = 10; s.pc = 25; return s.tmp_1; + case 25: r0 = s.retval; - globals.right___88366 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C88388_VT); + globals.right___153365 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C153387_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P88394_mk(s); + s.tmp_1 = controller_Button_constructor__P153393_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 4; s.tmp_1.arg2 = 50; - s.callLocIdx = 11; s.pc = 12; return s.tmp_1; - case 12: + s.callLocIdx = 11; s.pc = 26; return s.tmp_1; + case 26: r0 = s.retval; - globals.down___88367 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C88388_VT); + globals.down___153366 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C153387_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P88394_mk(s); + s.tmp_1 = controller_Button_constructor__P153393_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 7; s.tmp_1.arg2 = 51; - s.callLocIdx = 12; s.pc = 13; return s.tmp_1; - case 13: + s.callLocIdx = 12; s.pc = 27; return s.tmp_1; + case 27: r0 = s.retval; - globals.menu___88368 = (s.tmp_0); - globals._userEventsEnabled___90357 = (true); - globals.defaultRepeatDelay___90359 = (500); - globals.defaultRepeatInterval___90361 = (30); - r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C90367_VT); + globals.menu___153367 = (s.tmp_0); + globals._userEventsEnabled___155521 = (true); + globals.defaultRepeatDelay___155523 = (500); + globals.defaultRepeatInterval___155525 = (30); + r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C155531_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P88394_mk(s); + s.tmp_1 = controller_Button_constructor__P153393_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 0; s.tmp_1.arg2 = -1; - s.callLocIdx = 13; s.pc = 14; return s.tmp_1; - case 14: + s.callLocIdx = 13; s.pc = 28; return s.tmp_1; + case 28: r0 = s.retval; - globals.anyButton___88442 = (s.tmp_0); - s.tmp_0 = SpriteKind_create__P88612_mk(s); - s.callLocIdx = 14; s.pc = 15; return s.tmp_0; - case 15: + globals.anyButton___153441 = (s.tmp_0); + s.tmp_0 = SpriteKind_create__P153611_mk(s); + s.callLocIdx = 14; s.pc = 29; return s.tmp_0; + case 29: r0 = s.retval; - globals.Player___88613 = (r0); - s.tmp_0 = SpriteKind_create__P88612_mk(s); - s.callLocIdx = 15; s.pc = 16; return s.tmp_0; - case 16: + globals.Player___153612 = (r0); + s.tmp_0 = SpriteKind_create__P153611_mk(s); + s.callLocIdx = 15; s.pc = 30; return s.tmp_0; + case 30: r0 = s.retval; - globals.Food___88615 = (r0); - s.tmp_0 = SpriteKind_create__P88612_mk(s); - s.callLocIdx = 16; s.pc = 17; return s.tmp_0; - case 17: + globals.Food___153614 = (r0); + s.tmp_0 = SpriteKind_create__P153611_mk(s); + s.callLocIdx = 16; s.pc = 31; return s.tmp_0; + case 31: r0 = s.retval; - globals.Enemy___88616 = (r0); + globals.Enemy___153615 = (r0); r0 = (100 * 256); s.tmp_0 = r0; r0 = (s.tmp_0 | 0); - globals.MAX_TIME_STEP___88653 = (r0); + globals.MAX_TIME_STEP___153652 = (r0); r0 = (0.1 * 256); s.tmp_0 = r0; r0 = (s.tmp_0 | 0); - globals.MIN_MOVE_GAP___88655 = (r0); - globals.infoState___90410 = (undefined); - s.tmp_0 = game_addScenePushHandler__P89034_mk(s); - s.tmp_0.arg0 = inline__P90414; - s.callLocIdx = 19; s.pc = 18; return s.tmp_0; - case 18: + globals.MIN_MOVE_GAP___153654 = (r0); + globals.infoState___155574 = (undefined); + s.tmp_0 = game_addScenePushHandler__P154033_mk(s); + s.tmp_0.arg0 = inline__P155578; + s.callLocIdx = 19; s.pc = 32; return s.tmp_0; + case 32: r0 = s.retval; - s.tmp_0 = game_addScenePopHandler__P89036_mk(s); - s.tmp_0.arg0 = inline__P90429; - s.callLocIdx = 23; s.pc = 19; return s.tmp_0; - case 19: + s.tmp_0 = game_addScenePopHandler__P154035_mk(s); + s.tmp_0.arg0 = inline__P155593; + s.callLocIdx = 23; s.pc = 33; return s.tmp_0; + case 33: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(info_PlayerInfo__C88711_VT); + r0 = pxsim_pxtcore_mkClassInstance(info_PlayerInfo__C153710_VT); s.tmp_0 = r0; - s.tmp_1 = info_PlayerInfo_constructor__P88723_mk(s); + s.tmp_1 = info_PlayerInfo_constructor__P153722_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 1; - s.callLocIdx = 24; s.pc = 20; return s.tmp_1; - case 20: + s.callLocIdx = 24; s.pc = 34; return s.tmp_1; + case 34: r0 = s.retval; - globals.player1___88742 = (s.tmp_0); + globals.player1___153741 = (s.tmp_0); r0 = pxsim_Array__mk(); - globals.scene_Scene_initializers___88924 = (r0); - globals.debug___89013 = (false); - globals.stats___89014 = (false); - globals.winEffect___89015 = (undefined); - globals.loseEffect___89016 = (undefined); - globals.loseSound___90525 = (undefined); - globals.winSound___90527 = (undefined); - globals.__isOver___90535 = (false); - s.tmp_0 = scene_systemMenu_initVolume__P90794_mk(s); - s.callLocIdx = 25; s.pc = 21; return s.tmp_0; - case 21: + globals.scene_Scene_initializers___153923 = (r0); + globals.debug___154012 = (false); + globals.stats___154013 = (false); + globals.winEffect___154014 = (undefined); + globals.loseEffect___154015 = (undefined); + globals.loseSound___155689 = (undefined); + globals.winSound___155691 = (undefined); + globals.__isOver___155699 = (false); + globals.foreverRunning___155703 = (false); + s.tmp_0 = scene_systemMenu_initVolume__P155958_mk(s); + s.callLocIdx = 25; s.pc = 35; return s.tmp_0; + case 35: r0 = s.retval; - s.tmp_0 = scene_systemMenu_initScreen__P90795_mk(s); - s.callLocIdx = 26; s.pc = 22; return s.tmp_0; - case 22: + s.tmp_0 = scene_systemMenu_initScreen__P155959_mk(s); + s.callLocIdx = 26; s.pc = 36; return s.tmp_0; + case 36: r0 = s.retval; - r0 = pxsim_Array__push(globals.scene_Scene_initializers___88924, scene_systemMenu_register__P89118); - r0 = pxsim.image.ofBuffer(_hex90802); - globals.CARD_NORMAL___89123 = (r0); - r0 = pxsim.image.ofBuffer(_hex90804); - globals.CARD_SELECTED___89124 = (r0); - r0 = pxsim.image.ofBuffer(_hex90806); - globals.CARD_ACTIVE___89125 = (r0); - r0 = pxsim.image.ofBuffer(_hex90808); - globals.VOLUME_UP_ICON___89126 = (r0); - r0 = pxsim.image.ofBuffer(_hex90810); - globals.BRIGHTNESS_DOWN_ICON___89127 = (r0); - r0 = pxsim.image.ofBuffer(_hex90812); - globals.CLOSE_MENU_ICON___89128 = (r0); - r0 = pxsim.image.ofBuffer(_hex90814); - globals.VOLUME_DOWN_ICON___89129 = (r0); - r0 = pxsim.image.ofBuffer(_hex90816); - globals.SLEEP_ICON___89130 = (r0); - r0 = pxsim.image.ofBuffer(_hex90818); - globals.CONSOLE_ICON___89131 = (r0); - r0 = pxsim.image.ofBuffer(_hex90820); - globals.BRIGHTNESS_UP_ICON___89132 = (r0); - r0 = pxsim.image.ofBuffer(_hex90822); - globals.STATS_ICON___89133 = (r0); - globals.consoleColor___90825 = (1); - globals.tabSize___90828 = (8); - globals.consoleFont___90834 = (globals.font5___88235); - r0 = pxsim_ImageMethods.height(globals.screen___88287); + r0 = pxsim_Array__push(globals.scene_Scene_initializers___153923, scene_systemMenu_register__P154117); + r0 = pxsim.image.ofBuffer(_hex155966); + globals.CARD_NORMAL___154122 = (r0); + r0 = pxsim.image.ofBuffer(_hex155968); + globals.CARD_SELECTED___154123 = (r0); + r0 = pxsim.image.ofBuffer(_hex155970); + globals.CARD_ACTIVE___154124 = (r0); + r0 = pxsim.image.ofBuffer(_hex155972); + globals.VOLUME_UP_ICON___154125 = (r0); + r0 = pxsim.image.ofBuffer(_hex155974); + globals.BRIGHTNESS_DOWN_ICON___154126 = (r0); + r0 = pxsim.image.ofBuffer(_hex155976); + globals.CLOSE_MENU_ICON___154127 = (r0); + r0 = pxsim.image.ofBuffer(_hex155978); + globals.VOLUME_DOWN_ICON___154128 = (r0); + r0 = pxsim.image.ofBuffer(_hex155980); + globals.SLEEP_ICON___154129 = (r0); + r0 = pxsim.image.ofBuffer(_hex155982); + globals.CONSOLE_ICON___154130 = (r0); + r0 = pxsim.image.ofBuffer(_hex155984); + globals.BRIGHTNESS_UP_ICON___154131 = (r0); + r0 = pxsim.image.ofBuffer(_hex155986); + globals.STATS_ICON___154132 = (r0); + globals.consoleColor___155989 = (1); + globals.tabSize___155992 = (8); + globals.consoleFont___155998 = (globals.font5___153234); + r0 = pxsim_ImageMethods.height(globals.screen___153286); s.tmp_2 = r0; s.tmp_5 = if_charHeight_1_mk(s); - s.tmp_5.arg0 = globals.consoleFont___90834; + s.tmp_5.arg0 = globals.consoleFont___155998; if (!s.tmp_5.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight"); } else { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charHeight"]; if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charHeight"]; } else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 27; s.pc = 23; return s.tmp_5; } + else { s.callLocIdx = 27; s.pc = 37; return s.tmp_5; } } - case 23: + case 37: r0 = s.retval; s.tmp_4 = r0; r0 = (s.tmp_4 + 2); @@ -727,267 +746,529 @@ switch (step) { r0 = pxsim.Math_.floor(s.tmp_1); s.tmp_0 = r0; r0 = (s.tmp_0 - 1); - globals.consoleLines___90839 = (r0); - r0 = pxsim_ImageMethods.width(globals.screen___88287); + globals.consoleLines___156003 = (r0); + r0 = pxsim_ImageMethods.width(globals.screen___153286); 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___90834; + s.tmp_4.arg0 = globals.consoleFont___155998; 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 = 28; s.pc = 24; return s.tmp_4; } + else { s.callLocIdx = 28; s.pc = 38; return s.tmp_4; } } - case 24: + case 38: r0 = s.retval; s.tmp_3 = r0; r0 = (s.tmp_1 / s.tmp_3); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - globals.consoleColumns___90849 = (r0); - s.tmp_0 = console_addListener__P86857_mk(s); - s.tmp_0.arg0 = game_consoleOverlay_listener__P90861; - s.callLocIdx = 29; s.pc = 25; return s.tmp_0; - case 25: + globals.consoleColumns___156013 = (r0); + s.tmp_0 = console_addListener__P151856_mk(s); + s.tmp_0.arg0 = game_consoleOverlay_listener__P156025; + s.callLocIdx = 29; s.pc = 39; return s.tmp_0; + case 39: r0 = s.retval; s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = inline__P90865; + s.tmp_0.argL = inline__P156029; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 31; s.pc = 26; return s.tmp_0; - case 26: + s.callLocIdx = 31; s.pc = 40; return s.tmp_0; + case 40: r0 = s.retval; - globals.MAX_SOURCES___90863 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C89203_VT); + globals.MAX_SOURCES___156027 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C154202_VT); s.tmp_0 = r0; - s.tmp_1 = particles_SprayFactory_constructor__P89204_mk(s); + s.tmp_1 = particles_SprayFactory_constructor__P154203_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 20; s.tmp_1.arg2 = 0; s.tmp_1.arg3 = 60; - s.callLocIdx = 32; s.pc = 27; return s.tmp_1; - case 27: + s.callLocIdx = 32; s.pc = 41; return s.tmp_1; + case 41: r0 = s.retval; - globals.defaultFactory___89183 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C89071_VT); + globals.defaultFactory___154182 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C154070_VT); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P89073_mk(s); + s.tmp_1 = Math_FastRandom_constructor__P154072_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = undefined; - s.callLocIdx = 33; s.pc = 28; return s.tmp_1; - case 28: + s.callLocIdx = 33; s.pc = 42; return s.tmp_1; + case 42: r0 = s.retval; - globals.galois___90898 = (s.tmp_0); - globals.angleSlice___90906 = (0.06283185307179587); - r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C89278_VT); + globals.galois___156062 = (s.tmp_0); + globals.angleSlice___156070 = (0.06283185307179587); + r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C154277_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ScreenEffect_constructor__P89279_mk(s); + s.tmp_1 = effects_ScreenEffect_constructor__P154278_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__P94683; - s.callLocIdx = 39; s.pc = 29; return s.tmp_1; - case 29: + s.tmp_1.arg4 = inline__P164033; + s.callLocIdx = 39; s.pc = 43; return s.tmp_1; + case 43: + r0 = s.retval; + globals.confetti___154285 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ParticleEffect__C154273_VT); + s.tmp_0 = r0; + s.tmp_1 = effects_ParticleEffect_constructor__P154274_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = 60; + s.tmp_1.arg2 = 1250; + s.tmp_1.arg3 = inline__P217912; + s.callLocIdx = 43; s.pc = 44; return s.tmp_1; + case 44: r0 = s.retval; - globals.confetti___89286 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C89301_VT); + globals.disintegrate___154294 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C154300_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ImageEffect_constructor__P89302_mk(s); + s.tmp_1 = effects_ImageEffect_constructor__P154301_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 100; - s.tmp_1.arg2 = inline__P98595; - s.callLocIdx = 45; s.pc = 30; return s.tmp_1; - case 30: + s.tmp_1.arg2 = inline__P159627; + s.callLocIdx = 49; s.pc = 45; return s.tmp_1; + case 45: r0 = s.retval; - globals.dissolve___89306 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C89301_VT); + globals.dissolve___154305 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C154300_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ImageEffect_constructor__P89302_mk(s); + s.tmp_1 = effects_ImageEffect_constructor__P154301_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 125; - s.tmp_1.arg2 = inline__P94575; - s.callLocIdx = 48; s.pc = 31; return s.tmp_1; - case 31: + s.tmp_1.arg2 = inline__P163979; + s.callLocIdx = 52; s.pc = 46; return s.tmp_1; + case 46: r0 = s.retval; - globals.melt___89307 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C89316_VT); + globals.melt___154306 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C154315_VT); s.tmp_0 = r0; - s.tmp_1 = texteffects_TextEffect_constructor__P89318_mk(s); + s.tmp_1 = texteffects_TextEffect_constructor__P154317_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = inline__P90957; - s.callLocIdx = 49; s.pc = 32; return s.tmp_1; - case 32: + s.tmp_1.arg1 = inline__P156121; + s.callLocIdx = 53; s.pc = 47; return s.tmp_1; + case 47: r0 = s.retval; - globals.shake___89319 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C89316_VT); + globals.shake___154318 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C154315_VT); s.tmp_0 = r0; - s.tmp_1 = texteffects_TextEffect_constructor__P89318_mk(s); + s.tmp_1 = texteffects_TextEffect_constructor__P154317_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = inline__P90970; - s.callLocIdx = 59; s.pc = 33; return s.tmp_1; - case 33: + s.tmp_1.arg1 = inline__P156134; + s.callLocIdx = 63; s.pc = 48; return s.tmp_1; + case 48: r0 = s.retval; - globals.wave___89320 = (s.tmp_0); - s.tmp_0 = game_setWaitAnyButton__P89018_mk(s); - s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P88438; - s.callLocIdx = 60; s.pc = 34; return s.tmp_0; - case 34: + globals.wave___154319 = (s.tmp_0); + s.tmp_0 = game_setWaitAnyButton__P154017_mk(s); + s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P153437; + s.callLocIdx = 64; s.pc = 49; return s.tmp_0; + case 49: r0 = s.retval; - s.tmp_0 = game_eventContext__P89020_mk(s); - s.callLocIdx = 61; s.pc = 35; return s.tmp_0; - case 35: + s.tmp_0 = game_eventContext__P154019_mk(s); + s.callLocIdx = 65; s.pc = 50; return s.tmp_0; + case 50: + r0 = s.retval; + s.tmp_0 = game_addScenePushHandler__P154033_mk(s); + s.tmp_0.arg0 = inline__P157331; + s.callLocIdx = 67; s.pc = 51; return s.tmp_0; + case 51: + r0 = s.retval; + s.tmp_0 = game_addScenePopHandler__P154035_mk(s); + s.tmp_0.arg0 = inline__P157349; + s.callLocIdx = 69; s.pc = 52; return s.tmp_0; + case 52: + r0 = s.retval; + s.tmp_0 = color_bufferToPalette__P155028_mk(s); + s.tmp_0.arg0 = _hex157383; + s.callLocIdx = 70; s.pc = 53; return s.tmp_0; + case 53: + r0 = s.retval; + globals.originalPalette___155058 = (r0); + s.tmp_0 = color_bufferToPalette__P155028_mk(s); + s.tmp_0.arg0 = _hex157405; + s.callLocIdx = 71; s.pc = 54; return s.tmp_0; + case 54: r0 = s.retval; + globals.Black___155069 = (r0); r0 = pxsim_pxtrt.mkMap(); - globals.decounceTimeouts___92152 = (r0); + globals.decounceTimeouts___157414 = (r0); r0 = pxsim_pxtrt.mkMap(); - globals.throttleTimeouts___92154 = (r0); - s.tmp_0 = SpriteKind_create__P88612_mk(s); - s.callLocIdx = 62; s.pc = 36; return s.tmp_0; - case 36: + globals.throttleTimeouts___157416 = (r0); + s.tmp_0 = SpriteKind_create__P153611_mk(s); + s.callLocIdx = 72; s.pc = 55; return s.tmp_0; + case 55: r0 = s.retval; - globals._TileSprite___89978 = (r0); - s.tmp_0 = ConnectionKind_create__P90020_mk(s); - s.callLocIdx = 63; s.pc = 37; return s.tmp_0; - case 37: + globals._TileSprite___155123 = (r0); + s.tmp_0 = ConnectionKind_create__P155165_mk(s); + s.callLocIdx = 73; s.pc = 56; return s.tmp_0; + case 56: r0 = s.retval; - globals.Door1___90021 = (r0); - s.tmp_0 = ConnectionKind_create__P90020_mk(s); - s.callLocIdx = 64; s.pc = 38; return s.tmp_0; - case 38: + globals.Door1___155166 = (r0); + s.tmp_0 = ConnectionKind_create__P155165_mk(s); + s.callLocIdx = 74; s.pc = 57; return s.tmp_0; + case 57: r0 = s.retval; - globals.Door2___90022 = (r0); - s.tmp_0 = ConnectionKind_create__P90020_mk(s); - s.callLocIdx = 65; s.pc = 39; return s.tmp_0; - case 39: + globals.Door2___155167 = (r0); + s.tmp_0 = ConnectionKind_create__P155165_mk(s); + s.callLocIdx = 75; s.pc = 58; return s.tmp_0; + case 58: r0 = s.retval; - globals.Ladder1___90023 = (r0); - s.tmp_0 = ConnectionKind_create__P90020_mk(s); - s.callLocIdx = 66; s.pc = 40; return s.tmp_0; - case 40: + globals.Ladder1___155168 = (r0); + s.tmp_0 = ConnectionKind_create__P155165_mk(s); + s.callLocIdx = 76; s.pc = 59; return s.tmp_0; + case 59: r0 = s.retval; - globals.Pipe1___90024 = (r0); - r0 = pxsim.image.ofBuffer(_hex142577); - globals.transparency16___142578 = (r0); - r0 = pxsim.image.ofBuffer(_hex142582); - globals.tile1___142583 = (r0); - r0 = pxsim.image.ofBuffer(_hex142587); - globals.tile2___142588 = (r0); - r0 = pxsim.image.ofBuffer(_hex142592); - globals.tile3___142593 = (r0); - r0 = pxsim.image.ofBuffer(_hex142597); - globals.tile4___142598 = (r0); - s.tmp_0 = scene_onOverlapTile__P88593_mk(s); - s.tmp_0.arg0 = globals.Player___88613; - s.tmp_0.arg1 = globals.tile4___142598; - s.tmp_0.arg2 = inline__P195836; - s.callLocIdx = 72; s.pc = 41; return s.tmp_0; - case 41: + globals.Pipe1___155169 = (r0); + r0 = pxsim.image.ofBuffer(_hex157544); + globals.transparency8___155289 = (r0); + r0 = pxsim.image.ofBuffer(_hex157548); + globals.tile5___155290 = (r0); + r0 = pxsim.image.ofBuffer(_hex157552); + globals.tile6___155291 = (r0); + r0 = pxsim.image.ofBuffer(_hex157556); + globals.tile7___155292 = (r0); + r0 = pxsim.image.ofBuffer(_hex157560); + globals.tile8___155293 = (r0); + s.tmp_0 = scene_onOverlapTile__P153592_mk(s); + s.tmp_0.arg0 = globals.Player___153612; + s.tmp_0.arg1 = globals.tile8___155293; + s.tmp_0.arg2 = inline__P218808; + s.callLocIdx = 99; s.pc = 60; return s.tmp_0; + case 60: + r0 = s.retval; + s.tmp_0 = info_onCountdownEnd__P153699_mk(s); + s.tmp_0.arg0 = inline__P218828; + s.callLocIdx = 116; s.pc = 61; return s.tmp_0; + case 61: r0 = s.retval; - s.tmp_0 = spriteutils_createRenderable__P89970_mk(s); + s.tmp_0 = spriteutils_createRenderable__P155110_mk(s); s.tmp_0.arg0 = 100; - s.tmp_0.arg1 = inline__P196119; - s.callLocIdx = 149; s.pc = 42; return s.tmp_0; - case 42: + s.tmp_0.arg1 = inline__P218847; + s.callLocIdx = 184; s.pc = 62; return s.tmp_0; + case 62: r0 = s.retval; - globals.minimap2___196126 = (null); - globals.sprite_cursor___196023 = (null); - globals.current_row___195860 = (0); - globals.current_col___195851 = (0); - globals.sprite_player___196139 = (null); - globals.difficulty___196123 = (0); - globals.debug___196196 = (false); - globals.difficulty___196123 = (3); - s.tmp_0 = init_maze__P195896_mk(s); - s.tmp_0.arg0 = globals.difficulty___196123; - s.callLocIdx = 154; s.pc = 43; return s.tmp_0; - case 43: + globals.minimap2___218929 = (null); + globals.length___218853 = (0); + globals.sprite_cursor___218948 = (null); + globals.current_row___218967 = (0); + globals.current_col___218969 = (0); + globals.sprite_player___218831 = (null); + globals.loading_denominator___218864 = (0); + globals.loading_numerator___218861 = (0); + r0 = pxsim_String_.mkEmpty(); + globals.message2___218915 = (r0); + r0 = pxsim_String_.mkEmpty(); + globals.message1___218907 = (r0); + globals.loading___218850 = (false); + globals.won___218814 = (false); + globals.difficulty___218926 = (0); + globals.debug___218922 = (false); + globals.debug___218922 = (false); + globals.difficulty___218926 = (1); + globals.won___218814 = (false); + globals.loading___218850 = (false); + r0 = pxsim_String_.mkEmpty(); + globals.message1___218907 = (r0); + r0 = pxsim_String_.mkEmpty(); + globals.message2___218915 = (r0); + globals.loading_numerator___218861 = (0); + globals.loading_denominator___218864 = (0); + globals.start_load___218979 = (0); + globals._break___218981 = (false); + s.tmp_0 = color_setPalette__P155019_mk(s); + s.tmp_0.arg0 = globals.Black___155069; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = 0; + s.callLocIdx = 189; s.pc = 63; return s.tmp_0; + case 63: r0 = s.retval; - s.tmp_0 = clear_maze__P195929_mk(s); - s.callLocIdx = 155; s.pc = 44; return s.tmp_0; - case 44: + globals.loading___218850 = (true); + s.tmp_0 = game_runtime__P154032_mk(s); + s.callLocIdx = 190; s.pc = 64; return s.tmp_0; + case 64: r0 = s.retval; - s.tmp_0 = divide_maze__P195988_mk(s); - s.callLocIdx = 156; s.pc = 45; return s.tmp_0; - case 45: + globals.start_load___218979 = (r0); + globals.message1___218907 = ("Creating maze..."); + s.tmp_0 = fade_out__P218825_mk(s); + s.tmp_0.arg0 = 2000; + s.tmp_0.arg1 = true; + s.callLocIdx = 191; s.pc = 65; return s.tmp_0; + case 65: + r0 = s.retval; + globals.loading_denominator___218864 = (5); + s.tmp_0 = init_maze__P218804_mk(s); + s.tmp_0.arg0 = globals.difficulty___218926; + s.callLocIdx = 192; s.pc = 66; return s.tmp_0; + case 66: + r0 = s.retval; + r0 = (globals.loading_numerator___218861 + 1); + globals.loading_numerator___218861 = (r0); + s.tmp_0 = clear_maze__P218824_mk(s); + s.callLocIdx = 193; s.pc = 67; return s.tmp_0; + case 67: + r0 = s.retval; + r0 = (globals.loading_numerator___218861 + 1); + globals.loading_numerator___218861 = (r0); + s.tmp_0 = divide_maze__P218842_mk(s); + s.callLocIdx = 194; s.pc = 68; return s.tmp_0; + case 68: + r0 = s.retval; + r0 = (globals.loading_numerator___218861 + 1); + globals.loading_numerator___218861 = (r0); + s.tmp_0 = r0 = globals.loading_denominator___218864; + s.tmp_3 = tiles_getTilesByType__P153834_mk(s); + s.tmp_3.arg0 = globals.tile7___155292; + s.callLocIdx = 195; s.pc = 69; return s.tmp_3; + case 69: r0 = s.retval; - s.tmp_0 = make_maze__P196018_mk(s); + s.tmp_2 = r0; + r0 = pxsim_Array__length(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + globals.loading_denominator___218864 = (r0); + s.tmp_0 = make_maze__P218843_mk(s); s.tmp_0.arg0 = 1; s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = 0; - s.callLocIdx = 157; s.pc = 46; return s.tmp_0; - case 46: + s.callLocIdx = 196; s.pc = 70; return s.tmp_0; + case 70: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals.debug___196196); + r0 = pxsim_numops_toBoolDecr(globals.debug___218922); 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 = make_walls__P196167_mk(s); - s.callLocIdx = 158; s.pc = 47; return s.tmp_2; - case 47: + r0 = (globals.loading_numerator___218861 + 1); + globals.loading_numerator___218861 = (r0); + r0 = (globals.loading_denominator___218864 + 1); + globals.loading_denominator___218864 = (r0); + s.tmp_0 = make_walls__P218963_mk(s); + s.callLocIdx = 197; s.pc = 71; return s.tmp_0; + case 71: r0 = s.retval; case 1: case 2: - s.tmp_0 = sprites_create__P88459_mk(s); - r0 = pxsim.image.ofBuffer(_hex196210); + s.tmp_0 = sprites_create__P153458_mk(s); + r0 = pxsim.image.ofBuffer(_hex219028); s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.Player___88613; - s.callLocIdx = 159; s.pc = 48; return s.tmp_0; - case 48: + s.tmp_0.arg1 = globals.Player___153612; + s.callLocIdx = 198; s.pc = 72; return s.tmp_0; + case 72: r0 = s.retval; - globals.sprite_player___196139 = (r0); - s.tmp_0 = controller_moveSprite__P88437_mk(s); - s.tmp_0.arg0 = globals.sprite_player___196139; - s.tmp_0.arg1 = 200; - s.tmp_0.arg2 = 200; - s.callLocIdx = 160; s.pc = 49; return s.tmp_0; - case 49: + globals.sprite_player___218831 = (r0); + s.tmp_0 = controller_moveSprite__P153436_mk(s); + s.tmp_0.arg0 = globals.sprite_player___218831; + s.tmp_0.arg1 = 100; + s.tmp_0.arg2 = 100; + s.callLocIdx = 199; s.pc = 73; return s.tmp_0; + case 73: r0 = s.retval; - s.tmp_0 = scene_cameraFollowSprite__P88949_mk(s); - s.tmp_0.arg0 = globals.sprite_player___196139; - s.callLocIdx = 161; s.pc = 50; return s.tmp_0; - case 50: + s.tmp_0 = scene_cameraFollowSprite__P153948_mk(s); + s.tmp_0.arg0 = globals.sprite_player___218831; + s.callLocIdx = 200; s.pc = 74; return s.tmp_0; + case 74: r0 = s.retval; - s.tmp_0 = set_start__P196159_mk(s); + s.tmp_0 = set_start__P218962_mk(s); s.tmp_0.arg0 = 1; - s.tmp_0.arg1 = 0; - s.callLocIdx = 162; s.pc = 51; return s.tmp_0; - case 51: + s.tmp_0.arg1 = 1; + s.callLocIdx = 201; s.pc = 75; return s.tmp_0; + case 75: r0 = s.retval; - s.tmp_0 = set_end__P195953_mk(s); - s.tmp_2 = tiles_tilemapColumns__P90013_mk(s); - s.callLocIdx = 163; s.pc = 53; return s.tmp_2; - case 53: + r0 = (globals.loading_numerator___218861 + 1); + globals.loading_numerator___218861 = (r0); + s.tmp_0 = set_end__P218826_mk(s); + s.tmp_2 = tiles_tilemapColumns__P155158_mk(s); + s.callLocIdx = 202; s.pc = 77; return s.tmp_2; + case 77: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); + r0 = (s.tmp_1 - 2); s.tmp_0.arg0 = r0; - s.tmp_4 = tiles_tilemapRows__P90014_mk(s); - s.callLocIdx = 164; s.pc = 54; return s.tmp_4; - case 54: + s.tmp_4 = tiles_tilemapRows__P155159_mk(s); + s.callLocIdx = 203; s.pc = 78; return s.tmp_4; + case 78: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 - 1); + r0 = (s.tmp_3 - 2); s.tmp_0.arg1 = r0; - s.callLocIdx = 165; s.pc = 52; return s.tmp_0; - case 52: + s.callLocIdx = 204; s.pc = 76; return s.tmp_0; + case 76: + r0 = s.retval; + r0 = (globals.loading_numerator___218861 + 1); + globals.loading_numerator___218861 = (r0); + globals.message1___218907 = ("Done!"); + s.tmp_6 = game_runtime__P154032_mk(s); + s.callLocIdx = 205; s.pc = 79; return s.tmp_6; + case 79: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_5 - globals.start_load___218979); + s.tmp_4 = r0; + r0 = (s.tmp_4 / 1000); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 80); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 80: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat("Took ", s.tmp_2); + s.tmp_1 = r0; + if ((s.tmp_1) && (s.tmp_1).vtable) { + setupResume(s, 81); + pxsim_String__stringConv(s.tmp_1); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_1) + ""; } + case 81: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, " seconds"); + globals.message2___218915 = (r0); + s.tmp_0 = fade_in__P218840_mk(s); + s.tmp_0.arg0 = 2000; + s.tmp_0.arg1 = true; + s.callLocIdx = 206; s.pc = 82; return s.tmp_0; + case 82: + r0 = s.retval; + s.tmp_0 = pause__P151886_mk(s); + s.tmp_0.arg0 = 500; + s.callLocIdx = 207; s.pc = 83; return s.tmp_0; + case 83: + r0 = s.retval; + globals.loading___218850 = (false); + s.tmp_0 = pause__P151886_mk(s); + s.tmp_0.arg0 = 500; + s.callLocIdx = 208; s.pc = 84; return s.tmp_0; + case 84: + r0 = s.retval; + s.tmp_0 = fade_out__P218825_mk(s); + s.tmp_0.arg0 = 2000; + s.tmp_0.arg1 = false; + s.callLocIdx = 209; s.pc = 85; return s.tmp_0; + case 85: + r0 = s.retval; + case 3: + r0 = pxsim_numops_toBoolDecr(globals._break___218981); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + s.tmp_3 = controller_Button__C153387_v0_1_mk(s); + s.tmp_3.arg0 = globals.up___153364; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C153387_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; + s.pc = 86; return s.tmp_3; + case 86: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (!r0) { step = 4; continue; } + r0 = s.tmp_2; + { step = 5; continue; } + case 4: + s.tmp_4 = controller_Button__C153387_v0_1_mk(s); + s.tmp_4.arg0 = globals.down___153366; + if (!checkSubtype(s.tmp_4.arg0, controller_Button__C153387_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.isPressed; + s.pc = 87; return s.tmp_4; + case 87: + r0 = s.retval; + case 5: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBool(s.tmp_5); + if (!r0) { step = 6; continue; } + r0 = s.tmp_5; + { step = 9; continue; } + case 6: + s.tmp_7 = controller_Button__C153387_v0_1_mk(s); + s.tmp_7.arg0 = globals.left___153363; + if (!checkSubtype(s.tmp_7.arg0, controller_Button__C153387_VT)) failedCast(s.tmp_7.arg0); + s.tmp_7.fn = s.tmp_7.arg0.vtable.methods.isPressed; + s.pc = 88; return s.tmp_7; + case 88: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_numops_toBool(s.tmp_6); + if (!r0) { step = 7; continue; } + r0 = s.tmp_6; + { step = 8; continue; } + case 7: + s.tmp_8 = controller_Button__C153387_v0_1_mk(s); + s.tmp_8.arg0 = globals.right___153365; + if (!checkSubtype(s.tmp_8.arg0, controller_Button__C153387_VT)) failedCast(s.tmp_8.arg0); + s.tmp_8.fn = s.tmp_8.arg0.vtable.methods.isPressed; + s.pc = 89; return s.tmp_8; + case 89: + r0 = s.retval; + case 8: + // jmp value (already in r0) + s.tmp_9 = r0; + r0 = s.tmp_9; + case 9: + // jmp value (already in r0) + s.tmp_10 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_10); + if (!r0) { step = 10; continue; } + globals._break___218981 = (true); + case 10: + case 11: + s.tmp_0 = pause__P151886_mk(s); + s.tmp_0.arg0 = 50; + s.callLocIdx = 210; s.pc = 90; return s.tmp_0; + case 90: + r0 = s.retval; + { step = 3; continue; } + case 12: + r0 = (globals.difficulty___218926 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + s.tmp_1 = info_startCountdown__P153697_mk(s); + s.tmp_1.arg0 = 30; + s.callLocIdx = 211; s.pc = 91; return s.tmp_1; + case 91: + r0 = s.retval; + { step = 16; continue; } + case 13: + r0 = (globals.difficulty___218926 == 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + s.tmp_1 = info_startCountdown__P153697_mk(s); + s.tmp_1.arg0 = 60; + s.callLocIdx = 212; s.pc = 92; return s.tmp_1; + case 92: + r0 = s.retval; + { step = 15; continue; } + case 14: + s.tmp_0 = info_startCountdown__P153697_mk(s); + s.tmp_0.arg0 = 150; + s.callLocIdx = 213; s.pc = 93; return s.tmp_0; + case 93: r0 = s.retval; + case 15: + case 16: r0 = undefined; return leave(s, r0) default: oops() } } } -_main___P196241.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"pxt_modules/Timers/main.ts","functionName":"
","argumentNames":[]} -_main___P196241.continuations = [ ] +_main___P219766.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"pxt_modules/Timers/main.ts","functionName":"
","argumentNames":[]} +_main___P219766.continuations = [ 80,81 ] -function _main___P196241_mk(s) { +function _main___P219766_mk(s) { checkStack(s.depth); return { - parent: s, fn: _main___P196241, depth: s.depth + 1, + parent: s, fn: _main___P219766, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -995,35 +1276,42 @@ function _main___P196241_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, } } -const _hex90238 = pxsim.BufferMethods.createBufferFromHex("1f00210023002500270029002c002e003100340037003a003e004100450049004e00520057005c00620068006e0075007b0083008b0093009c00a500af00b900c400d000dc00e900f70006011501260137014a015d01720188019f01b801d201ee010b022a024b026e029302ba02e40210033f037003a403dc03170455049704dd0427057505c80520067d06e0064907b8072d08a9082d09b9094d0aea0a900b400cfa0cc00d910e6f0f5a1053115b1272139a14d41520178018f519801b231dde1e") -const _hex96616 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") -const _hex96618 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") -const _hex97869 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") -const _hex90301 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") -const _hex90802 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") -const _hex90804 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") -const _hex90806 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") -const _hex90808 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex90810 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex90812 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex90814 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex90816 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex90818 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex90820 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex90822 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex142577 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex142582 = pxsim.BufferMethods.createBufferFromHex("87041000100000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111") -const _hex142587 = pxsim.BufferMethods.createBufferFromHex("8704100010000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff") -const _hex142592 = pxsim.BufferMethods.createBufferFromHex("87041000100000005555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555") -const _hex142597 = pxsim.BufferMethods.createBufferFromHex("87041000100000007777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777") -const _hex196210 = pxsim.BufferMethods.createBufferFromHex("87040c000c000000999999999999000099999999999900009999999999990000999999999999000099999999999900009999999999990000999999999999000099999999999900009999999999990000999999999999000099999999999900009999999999990000") +const _hex155402 = pxsim.BufferMethods.createBufferFromHex("1f00210023002500270029002c002e003100340037003a003e004100450049004e00520057005c00620068006e0075007b0083008b0093009c00a500af00b900c400d000dc00e900f70006011501260137014a015d01720188019f01b801d201ee010b022a024b026e029302ba02e40210033f037003a403dc03170455049704dd0427057505c80520067d06e0064907b8072d08a9082d09b9094d0aea0a900b400cfa0cc00d910e6f0f5a1053115b1272139a14d41520178018f519801b231dde1e") +const _hex159249 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") +const _hex159251 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") +const _hex166983 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") +const _hex155465 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") +const _hex155966 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") +const _hex155968 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") +const _hex155970 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") +const _hex155972 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex155974 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex155976 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex155978 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex155980 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex155982 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex155984 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex155986 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex157383 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") +const _hex157405 = pxsim.BufferMethods.createBufferFromHex("000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex157544 = pxsim.BufferMethods.createBufferFromHex("87040800080000000000000000000000000000000000000000000000000000000000000000000000") +const _hex157548 = pxsim.BufferMethods.createBufferFromHex("8704080008000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff") +const _hex157552 = pxsim.BufferMethods.createBufferFromHex("87040800080000001111111111111111111111111111111111111111111111111111111111111111") +const _hex157556 = pxsim.BufferMethods.createBufferFromHex("87040800080000005555555555555555555555555555555555555555555555555555555555555555") +const _hex157560 = pxsim.BufferMethods.createBufferFromHex("87040800080000007777777777777777777777777777777777777777777777777777777777777777") +const _hex219028 = pxsim.BufferMethods.createBufferFromHex("8704060006000000999999009999990099999900999999009999990099999900") -function inline__P90290(s) { +function inline__P155454(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1036,23 +1324,23 @@ switch (step) { case 1: r0 = pxsim_numops_toBoolDecr(true); if (!r0) { step = 4; continue; } - globals.__updated___90287 = (false); - s.tmp_0 = pause__P86887_mk(s); + globals.__updated___155451 = (false); + s.tmp_0 = pause__P151886_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___90287); + r0 = pxsim_numops_toBoolDecr(globals.__updated___155451); 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__P88248_mk(s); + s.tmp_2 = control___screen_update__P153247_mk(s); s.callLocIdx = 3; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; - globals.__updated___90287 = (true); + globals.__updated___155451 = (true); case 2: case 3: { step = 1; continue; } @@ -1061,12 +1349,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P90290.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"inline","argumentNames":[]} +inline__P155454.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"inline","argumentNames":[]} -function inline__P90290_mk(s) { +function inline__P155454_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P90290, depth: s.depth + 1, + parent: s, fn: inline__P155454, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1077,7 +1365,7 @@ function inline__P90290_mk(s) { -function inline__P90308(s) { +function inline__P155472(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1087,17 +1375,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_pxtcore.updateScreen(globals.screen___88287); + r0 = pxsim_pxtcore.updateScreen(globals.screen___153286); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P90308.info = {"start":753,"length":26,"line":22,"column":33,"endLine":22,"endColumn":59,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":[]} +inline__P155472.info = {"start":753,"length":26,"line":22,"column":33,"endLine":22,"endColumn":59,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":[]} -function inline__P90308_mk(s) { +function inline__P155472_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P90308, depth: s.depth + 1, + parent: s, fn: inline__P155472, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -1105,7 +1393,7 @@ function inline__P90308_mk(s) { -function inline__P90313(s) { +function inline__P155477(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1124,12 +1412,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P90313.info = {"start":816,"length":56,"line":23,"column":35,"endLine":25,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":["msg"]} +inline__P155477.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__P90313_mk(s) { +function inline__P155477_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P90313, depth: s.depth + 1, + parent: s, fn: inline__P155477, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -1138,7 +1426,7 @@ function inline__P90313_mk(s) { -function inline__P90414(s) { +function inline__P155578(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1152,36 +1440,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.infoState___90410); + r0 = pxsim_numops_toBoolDecr(globals.infoState___155574); if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___90412); + r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___155576); 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___90412 = (r0); + globals.infoStateStack___155576 = (r0); case 1: case 2: r0 = pxsim_pxtrt.mkMap(); s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___90410); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___155574); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "scene", s.arg0); - r0 = pxsim_Array__push(globals.infoStateStack___90412, s.tmp_0); - globals.infoState___90410 = (undefined); + r0 = pxsim_Array__push(globals.infoStateStack___155576, s.tmp_0); + globals.infoState___155574 = (undefined); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P90414.info = {"start":1920,"length":259,"line":73,"column":29,"endLine":82,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["oldScene"]} +inline__P155578.info = {"start":1920,"length":259,"line":73,"column":29,"endLine":82,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["oldScene"]} -function inline__P90414_mk(s) { +function inline__P155578_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P90414, depth: s.depth + 1, + parent: s, fn: inline__P155578, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1192,7 +1480,7 @@ function inline__P90414_mk(s) { -function inline__P90429(s) { +function inline__P155593(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1202,30 +1490,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___90430 = undefined; - s.nextState___90439 = undefined; - s.tmp_0 = game_currentScene__P89017_mk(s); + s.scene___155594 = undefined; + s.nextState___155603 = undefined; + s.tmp_0 = game_currentScene__P154016_mk(s); s.callLocIdx = 20; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.scene___90430 = (r0); - globals.infoState___90410 = (undefined); - s.tmp_0 = r0 = globals.infoStateStack___90412; + s.scene___155594 = (r0); + globals.infoState___155574 = (undefined); + s.tmp_0 = r0 = globals.infoStateStack___155576; 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___90412); + r0 = pxsim_Array__length(globals.infoStateStack___155576); 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___90412); - s.nextState___90439 = (r0); + r0 = pxsim_Array_.pop(globals.infoStateStack___155576); + s.nextState___155603 = (r0); s.tmp_2 = if_scene_1_mk(s); - s.tmp_2.arg0 = s.nextState___90439; + s.tmp_2.arg0 = s.nextState___155603; if (!s.tmp_2.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "scene"); } else { @@ -1237,12 +1525,12 @@ switch (step) { case 8: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 == s.scene___90430); + r0 = (s.tmp_1 == s.scene___155594); 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___90439; + s.tmp_3.arg0 = s.nextState___155603; if (!s.tmp_3.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "state"); } else { @@ -1253,10 +1541,10 @@ switch (step) { } case 9: r0 = s.retval; - globals.infoState___90410 = (r0); + globals.infoState___155574 = (r0); { step = 4; continue; } case 3: - r0 = pxsim_Array__push(globals.infoStateStack___90412, s.nextState___90439); + r0 = pxsim_Array__push(globals.infoStateStack___155576, s.nextState___155603); case 4: case 5: case 6: @@ -1264,26 +1552,26 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P90429.info = {"start":2211,"length":376,"line":84,"column":28,"endLine":95,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} +inline__P155593.info = {"start":2211,"length":376,"line":84,"column":28,"endLine":95,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} -function inline__P90429_mk(s) { +function inline__P155593_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P90429, depth: s.depth + 1, + parent: s, fn: inline__P155593, depth: s.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___90430: undefined, - nextState___90439: undefined, + scene___155594: undefined, + nextState___155603: undefined, } } -function inline__P90865(s) { +function inline__P156029(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1293,13 +1581,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sz___90866 = undefined; - s.tmp_0 = control_ramSize__P86820_mk(s); + s.sz___156030 = undefined; + s.tmp_0 = control_ramSize__P151819_mk(s); s.callLocIdx = 30; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.sz___90866 = (r0); - r0 = (s.sz___90866 <= 102400); + s.sz___156030 = (r0); + r0 = (s.sz___156030 <= 102400); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -1307,7 +1595,7 @@ switch (step) { { step = 5; continue; } { step = 4; continue; } case 1: - r0 = (s.sz___90866 <= 204800); + r0 = (s.sz___156030 <= 204800); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 2; continue; } @@ -1324,23 +1612,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P90865.info = {"start":223,"length":217,"line":8,"column":25,"endLine":17,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]} +inline__P156029.info = {"start":223,"length":217,"line":8,"column":25,"endLine":17,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]} -function inline__P90865_mk(s) { +function inline__P156029_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P90865, depth: s.depth + 1, + parent: s, fn: inline__P156029, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - sz___90866: undefined, + sz___156030: undefined, } } -function inline__P90957(s) { +function inline__P156121(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1370,12 +1658,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P90957.info = {"start":860,"length":117,"line":31,"column":40,"endLine":34,"endColumn":5,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":[]} +inline__P156121.info = {"start":860,"length":117,"line":31,"column":40,"endLine":34,"endColumn":5,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":[]} -function inline__P90957_mk(s) { +function inline__P156121_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P90957, depth: s.depth + 1, + parent: s, fn: inline__P156121, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1390,7 +1678,7 @@ function inline__P90957_mk(s) { -function inline__P90970(s) { +function inline__P156134(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1419,10 +1707,10 @@ switch (step) { r0 = (s.tmp_4 * 2); s.tmp_3 = r0; r0 = pxsim_pxtrt.mapSetByString(s.tmp_2, "yOffset", s.tmp_3); - s.tmp_7 = Math_sign__P86609_mk(s); + s.tmp_7 = Math_sign__P151608_mk(s); r0 = pxsim.Math_.sin(s.arg0); s.tmp_7.arg0 = r0; - s.callLocIdx = 50; s.pc = 7; return s.tmp_7; + s.callLocIdx = 54; s.pc = 7; return s.tmp_7; case 7: r0 = s.retval; s.tmp_6 = r0; @@ -1440,7 +1728,7 @@ switch (step) { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["up"]; if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["up"]; } else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 51; s.pc = 8; return s.tmp_1; } + else { s.callLocIdx = 55; s.pc = 8; return s.tmp_1; } } case 8: r0 = s.retval; @@ -1465,7 +1753,7 @@ switch (step) { s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["yOffset"]; if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["yOffset"]; } else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 52; s.pc = 10; return s.tmp_6; } + else { s.callLocIdx = 56; s.pc = 10; return s.tmp_6; } } case 10: r0 = s.retval; @@ -1480,11 +1768,11 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/yOffset"]; if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["yOffset"] = s.tmp_3.arg1; } else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) } - else { s.callLocIdx = 53; s.pc = 9; return s.tmp_3; } + else { s.callLocIdx = 57; s.pc = 9; return s.tmp_3; } } case 9: r0 = s.retval; - s.tmp_2 = Math_abs__P86608_mk(s); + s.tmp_2 = Math_abs__P151607_mk(s); s.tmp_3 = if_yOffset_1_mk(s); s.tmp_3.arg0 = s.arg1; if (!s.tmp_3.arg0.vtable.iface) { @@ -1493,12 +1781,12 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["yOffset"]; if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["yOffset"]; } else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 54; s.pc = 12; return s.tmp_3; } + else { s.callLocIdx = 58; s.pc = 12; return s.tmp_3; } } case 12: r0 = s.retval; s.tmp_2.arg0 = r0; - s.callLocIdx = 55; s.pc = 11; return s.tmp_2; + s.callLocIdx = 59; s.pc = 11; return s.tmp_2; case 11: r0 = s.retval; s.tmp_1 = r0; @@ -1514,7 +1802,7 @@ switch (step) { s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["up"]; if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["up"]; } else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 56; s.pc = 13; return s.tmp_6; } + else { s.callLocIdx = 60; s.pc = 13; return s.tmp_6; } } case 13: r0 = s.retval; @@ -1532,7 +1820,7 @@ switch (step) { s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["up"]; if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["up"]; } else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } - else { s.callLocIdx = 57; s.pc = 14; return s.tmp_7; } + else { s.callLocIdx = 61; s.pc = 14; return s.tmp_7; } } case 14: r0 = s.retval; @@ -1548,7 +1836,7 @@ switch (step) { s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["set/up"]; if (s.tmp_9.fn === null) { s.tmp_9.arg0.fields["up"] = s.tmp_9.arg1; } else if (s.tmp_9.fn === undefined) { failedCast(s.tmp_9.arg0) } - else { s.callLocIdx = 58; s.pc = 15; return s.tmp_9; } + else { s.callLocIdx = 62; s.pc = 15; return s.tmp_9; } } case 15: r0 = s.retval; @@ -1556,12 +1844,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P90970.info = {"start":1127,"length":417,"line":42,"column":39,"endLine":55,"endColumn":5,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":["index","state"]} +inline__P156134.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__P90970_mk(s) { +function inline__P156134_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P90970, depth: s.depth + 1, + parent: s, fn: inline__P156134, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1581,7 +1869,132 @@ function inline__P90970_mk(s) { -function inline__P195836(s) { +function inline__P157331(s) { +let r0 = s.r0, 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___157328); + if (!r0) { step = 3; continue; } + r0 = pxsim_numops_toBoolDecr(globals.FadeStack___157329); + 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___157329 = (r0); + case 1: + case 2: + r0 = pxsim_pxtcore_mkClassInstance(color_FadeState__C157325_VT); + s.tmp_0 = r0; + s.tmp_1 = color_FadeState_constructor__P157326_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = globals.activeFade___157327; + s.tmp_1.arg2 = globals.currentScene___157328; + s.callLocIdx = 66; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + r0 = pxsim_Array__push(globals.FadeStack___157329, s.tmp_0); + globals.activeFade___157327 = (undefined); + globals.currentScene___157328 = (undefined); + case 3: + case 4: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P157331.info = {"start":5238,"length":328,"line":184,"column":29,"endLine":198,"endColumn":5,"fileName":"pxt_modules/Color Fading/fade.ts","functionName":"inline","argumentNames":[]} + +function inline__P157331_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P157331, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, +} } + + + + + +function inline__P157349(s) { +let r0 = s.r0, 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___157350 = undefined; + s.nextState___157361 = undefined; + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 68; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.scene___157350 = (r0); + globals.currentScene___157328 = (undefined); + globals.activeFade___157327 = (undefined); + s.tmp_0 = r0 = globals.FadeStack___157329; + 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___157329); + 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___157329); + s.nextState___157361 = (r0); + r0 = s.nextState___157361.fields["scene"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === s.scene___157350); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.nextState___157361.fields["state"]; + globals.activeFade___157327 = (r0); + r0 = s.nextState___157361.fields["scene"]; + globals.currentScene___157328 = (r0); + { step = 4; continue; } + case 3: + r0 = pxsim_Array__push(globals.FadeStack___157329, s.nextState___157361); + case 4: + case 5: + case 6: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P157349.info = {"start":5598,"length":442,"line":200,"column":28,"endLine":214,"endColumn":5,"fileName":"pxt_modules/Color Fading/fade.ts","functionName":"inline","argumentNames":[]} + +function inline__P157349_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P157349, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + scene___157350: undefined, + nextState___157361: undefined, +} } + + + + + +function inline__P218808(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1596,27 +2009,35 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkAction(2, inline__P195840); + r0 = pxsim_numops_toBoolDecr(globals.won___218814); + 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.won___218814 = (true); + r0 = pxsim_pxtcore_mkAction(2, inline__P218818); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg1); - s.tmp_1 = timer_throttle__P89941_mk(s); - s.tmp_1.arg0 = "win"; - s.tmp_1.arg1 = 500; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 71; s.pc = 1; return s.tmp_1; - case 1: + s.tmp_1 = timer_after__P155078_mk(s); + s.tmp_1.arg0 = 20; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 98; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P195836.info = {"start":148,"length":205,"line":3,"column":54,"endLine":10,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","location"]} +inline__P218808.info = {"start":22333,"length":199,"line":138,"column":54,"endLine":146,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","location"]} -function inline__P195836_mk(s) { +function inline__P218808_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P195836, depth: s.depth + 1, + parent: s, fn: inline__P218808, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1628,7 +2049,7 @@ function inline__P195836_mk(s) { -function inline__P195840(s) { +function inline__P218818(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1638,28 +2059,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tiles_placeOnTile__P88833_mk(s); + s.tmp_0 = tiles_placeOnTile__P153832_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.caps[1]; - s.callLocIdx = 68; s.pc = 1; return s.tmp_0; + s.callLocIdx = 96; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = timer_after__P89938_mk(s); - s.tmp_0.arg0 = 100; - s.tmp_0.arg1 = inline__P195845; - s.callLocIdx = 70; s.pc = 2; return s.tmp_0; + s.tmp_0 = game_over__P154026_mk(s); + s.tmp_0.arg0 = true; + s.tmp_0.arg1 = undefined; + s.callLocIdx = 97; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P195840.info = {"start":209,"length":141,"line":4,"column":31,"endLine":9,"endColumn":5,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +inline__P218818.info = {"start":22424,"length":99,"line":141,"column":24,"endLine":144,"endColumn":9,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function inline__P195840_mk(s) { +function inline__P218818_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P195840, depth: s.depth + 1, + parent: s, fn: inline__P218818, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -1668,7 +2089,7 @@ function inline__P195840_mk(s) { -function inline__P195845(s) { +function inline__P218828(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1678,22 +2099,70 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_over__P89027_mk(s); - s.tmp_0.arg0 = true; - s.tmp_0.arg1 = undefined; - s.callLocIdx = 69; s.pc = 1; return s.tmp_0; + s.tmp_0 = controller_moveSprite__P153436_mk(s); + s.tmp_0.arg0 = globals.sprite_player___218831; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + s.callLocIdx = 112; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = Sprite_destroy__P153571_mk(s); + s.tmp_0.arg0 = globals.sprite_player___218831; + s.tmp_0.arg1 = globals.disintegrate___154294; + s.tmp_0.arg2 = 200; + s.callLocIdx = 113; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.tmp_0 = timer_after__P155078_mk(s); + s.tmp_0.arg0 = 2000; + s.tmp_0.arg1 = inline__P218837; + s.callLocIdx = 115; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P218828.info = {"start":23217,"length":197,"line":165,"column":20,"endLine":171,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} + +function inline__P218828_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P218828, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function inline__P218837(s) { +let r0 = s.r0, 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_over__P154026_mk(s); + s.tmp_0.arg0 = false; + s.tmp_0.arg1 = globals.melt___154306; + s.callLocIdx = 114; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P195845.info = {"start":292,"length":51,"line":6,"column":25,"endLine":8,"endColumn":9,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +inline__P218837.info = {"start":23353,"length":58,"line":168,"column":22,"endLine":170,"endColumn":5,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function inline__P195845_mk(s) { +function inline__P218837_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P195845, depth: s.depth + 1, + parent: s, fn: inline__P218837, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -1702,7 +2171,7 @@ function inline__P195845_mk(s) { -function inline__P196119(s) { +function inline__P218847(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1716,107 +2185,214 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (globals.difficulty___196123 == 1); + r0 = pxsim_numops_toBoolDecr(globals.loading___218850); + if (!r0) { step = 1; continue; } + s.tmp_1 = Math_map__P151755_mk(s); + s.tmp_2 = Math_constrain__P151756_mk(s); + r0 = (globals.loading_numerator___218861 / globals.loading_denominator___218864); + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 0; + s.tmp_2.arg2 = 1; + s.callLocIdx = 160; s.pc = 16; return s.tmp_2; + case 16: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.tmp_1.arg2 = 1; + s.tmp_1.arg3 = 0; + r0 = pxsim_ImageMethods.width(globals.screen___153286); + s.tmp_4 = r0; + r0 = (s.tmp_4 * 0.6); + s.tmp_3 = r0; + r0 = (s.tmp_3 - 3); + s.tmp_1.arg4 = r0; + s.callLocIdx = 162; s.pc = 15; return s.tmp_1; + case 15: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim.Math_.round(s.tmp_0); + globals.length___218853 = (r0); + r0 = pxsim_ImageMethods.fill(s.arg0, 15); + s.tmp_0 = helpers_imageDrawRect__P153215_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___153286); + s.tmp_1 = r0; + r0 = (s.tmp_1 * 0.2); + s.tmp_0.arg1 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___153286); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 0.47); + s.tmp_0.arg2 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___153286); + s.tmp_3 = r0; + r0 = (s.tmp_3 * 0.6); + s.tmp_0.arg3 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___153286); + s.tmp_4 = r0; + r0 = (s.tmp_4 * 0.06); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = 1; + s.callLocIdx = 167; s.pc = 17; return s.tmp_0; + case 17: + r0 = s.retval; + s.tmp_0 = helpers_imageFillRect__P153212_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___153286); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 0.2); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 2); + s.tmp_0.arg1 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___153286); + s.tmp_4 = r0; + r0 = (s.tmp_4 * 0.47); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 2); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = globals.length___218853; + r0 = pxsim_ImageMethods.height(globals.screen___153286); + s.tmp_6 = r0; + r0 = (s.tmp_6 * 0.06); + s.tmp_5 = r0; + r0 = (s.tmp_5 - 4); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = 1; + s.callLocIdx = 171; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + s.tmp_0 = images_printCenter__P155119_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = globals.message1___218907; + r0 = pxsim_ImageMethods.width(globals.screen___153286); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 0.3); + s.tmp_1 = r0; + r0 = (s.tmp_1 - 4); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 1; + s.callLocIdx = 173; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + s.tmp_0 = images_printCenter__P155119_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = globals.message2___218915; + r0 = pxsim_ImageMethods.height(globals.screen___153286); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 0.53); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 4); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 1; + s.callLocIdx = 175; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + case 1: + case 2: + r0 = pxsim_numops_toBoolDecr(globals.debug___218922); + if (!r0) { step = 13; continue; } + r0 = (globals.difficulty___218926 == 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = minimap_minimap__P89959_mk(s); + if (!r0) { step = 3; continue; } + s.tmp_1 = minimap_minimap__P155099_mk(s); s.tmp_1.arg0 = 1; s.tmp_1.arg1 = 0; s.tmp_1.arg2 = 12; - s.callLocIdx = 141; s.pc = 11; return s.tmp_1; - case 11: + s.callLocIdx = 176; s.pc = 21; return s.tmp_1; + case 21: r0 = s.retval; - globals.minimap2___196126 = (r0); - { step = 4; continue; } - case 1: - r0 = (globals.difficulty___196123 == 2); + globals.minimap2___218929 = (r0); + { step = 6; continue; } + case 3: + r0 = (globals.difficulty___218926 == 2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = minimap_minimap__P89959_mk(s); + if (!r0) { step = 4; continue; } + s.tmp_1 = minimap_minimap__P155099_mk(s); s.tmp_1.arg0 = 2; s.tmp_1.arg1 = 0; s.tmp_1.arg2 = 12; - s.callLocIdx = 142; s.pc = 12; return s.tmp_1; - case 12: + s.callLocIdx = 177; s.pc = 22; return s.tmp_1; + case 22: r0 = s.retval; - globals.minimap2___196126 = (r0); - { step = 3; continue; } - case 2: - s.tmp_0 = minimap_minimap__P89959_mk(s); + globals.minimap2___218929 = (r0); + { step = 5; continue; } + case 4: + s.tmp_0 = minimap_minimap__P155099_mk(s); s.tmp_0.arg0 = 3; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 12; - s.callLocIdx = 143; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - globals.minimap2___196126 = (r0); - case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(globals.sprite_player___196139); - if (!r0) { step = 5; continue; } - s.tmp_0 = minimap_includeSprite__P89961_mk(s); - s.tmp_0.arg0 = globals.minimap2___196126; - s.tmp_0.arg1 = globals.sprite_player___196139; - s.tmp_0.arg2 = 0; - s.callLocIdx = 144; s.pc = 14; return s.tmp_0; - case 14: + s.callLocIdx = 178; s.pc = 23; return s.tmp_0; + case 23: r0 = s.retval; + globals.minimap2___218929 = (r0); case 5: case 6: - s.tmp_0 = r0 = globals.sprite_cursor___196023; + r0 = pxsim_numops_toBoolDecr(globals.sprite_player___218831); + if (!r0) { step = 7; continue; } + s.tmp_0 = minimap_includeSprite__P155101_mk(s); + s.tmp_0.arg0 = globals.minimap2___218929; + s.tmp_0.arg1 = globals.sprite_player___218831; + s.tmp_0.arg2 = 0; + s.callLocIdx = 179; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + case 7: + case 8: + s.tmp_0 = r0 = globals.sprite_cursor___218948; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 7; continue; } + if (r0) { step = 9; continue; } r0 = s.tmp_0; - { step = 8; continue; } - case 7: - s.tmp_3 = spriteutils_isDestroyed__P89963_mk(s); - s.tmp_3.arg0 = globals.sprite_cursor___196023; - s.callLocIdx = 145; s.pc = 15; return s.tmp_3; - case 15: + { step = 10; continue; } + case 9: + s.tmp_3 = spriteutils_isDestroyed__P155103_mk(s); + s.tmp_3.arg0 = globals.sprite_cursor___218948; + s.callLocIdx = 180; s.pc = 25; return s.tmp_3; + case 25: 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); - case 8: + case 10: // jmp value (already in r0) s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 9; continue; } - s.tmp_5 = minimap_includeSprite__P89961_mk(s); - s.tmp_5.arg0 = globals.minimap2___196126; - s.tmp_5.arg1 = globals.sprite_cursor___196023; + if (!r0) { step = 11; continue; } + s.tmp_5 = minimap_includeSprite__P155101_mk(s); + s.tmp_5.arg0 = globals.minimap2___218929; + s.tmp_5.arg1 = globals.sprite_cursor___218948; s.tmp_5.arg2 = 0; - s.callLocIdx = 146; s.pc = 16; return s.tmp_5; - case 16: + s.callLocIdx = 181; s.pc = 26; return s.tmp_5; + case 26: r0 = s.retval; - case 9: - case 10: - s.tmp_0 = spriteutils_drawTransparentImage__P89971_mk(s); - s.tmp_1 = minimap_getImage__P89960_mk(s); - s.tmp_1.arg0 = globals.minimap2___196126; - s.callLocIdx = 147; s.pc = 18; return s.tmp_1; - case 18: + case 11: + case 12: + s.tmp_0 = spriteutils_drawTransparentImage__P155111_mk(s); + s.tmp_1 = minimap_getImage__P155100_mk(s); + s.tmp_1.arg0 = globals.minimap2___218929; + s.callLocIdx = 182; s.pc = 28; return s.tmp_1; + case 28: r0 = s.retval; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = 0; s.tmp_0.arg3 = 0; - s.callLocIdx = 148; s.pc = 17; return s.tmp_0; - case 17: + s.callLocIdx = 183; s.pc = 27; return s.tmp_0; + case 27: r0 = s.retval; + case 13: + case 14: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P196119.info = {"start":25460,"length":653,"line":225,"column":34,"endLine":240,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["screen2"]} +inline__P218847.info = {"start":26177,"length":1358,"line":244,"column":34,"endLine":269,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["screen2"]} -function inline__P196119_mk(s) { +function inline__P218847_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P196119, depth: s.depth + 1, + parent: s, fn: inline__P218847, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1824,6 +2400,7 @@ function inline__P196119_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, arg0: undefined, } } @@ -1831,7 +2408,7 @@ function inline__P196119_mk(s) { -function tiles_tilemapRows__P90014(s) { +function info_startCountdown__P153697(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1841,56 +2418,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___94148 = undefined; - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 1243; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = r0.fields["tileMap"]; - s.tm___94148 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tm___94148); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = 0; - { step = 3; continue; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = info_updateFlag__P155624_mk(s); + s.tmp_0.arg0 = 1; + s.tmp_0.arg1 = true; + s.callLocIdx = 24; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + s.tmp_0 = r0 = globals.infoState___155574; + s.tmp_4 = game_currentScene__P154016_mk(s); + s.callLocIdx = 25; s.pc = 2; return s.tmp_4; case 2: - s.tmp_3 = tiles_TileMap_areaHeight__P88809_mk(s); - s.tmp_3.arg0 = s.tm___94148; - s.callLocIdx = 1244; s.pc = 5; return s.tmp_3; - case 5: r0 = s.retval; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["_millis"]; s.tmp_2 = r0; - r0 = s.tm___94148.fields["_scale"]; - s.tmp_4 = r0; - r0 = (s.tmp_2 >> s.tmp_4); - case 3: + r0 = (s.arg0 * 1000); + s.tmp_5 = r0; + r0 = (s.tmp_2 + s.tmp_5); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["gameEnd"] = (s.tmp_1); + r0 = (globals.infoState___155574).fields["countdownExpired"] = (false); + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_tilemapRows__P90014.info = {"start":14099,"length":170,"line":403,"column":4,"endLine":408,"endColumn":5,"fileName":"pxt_modules/tilemaps/tilemap.ts","functionName":"tilemapRows","argumentNames":[]} +info_startCountdown__P153697.info = {"start":9395,"length":224,"line":326,"column":4,"endLine":330,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"startCountdown","argumentNames":["duration"]} -function tiles_tilemapRows__P90014_mk(s) { +function info_startCountdown__P153697_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_tilemapRows__P90014, depth: s.depth + 1, + parent: s, fn: info_startCountdown__P153697, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tm___94148: undefined, + tmp_5: undefined, + arg0: undefined, } } -function tiles_TileMap_areaHeight__P88809(s) { +function info_updateFlag__P155624(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1902,37 +2478,44 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + s.tmp_0 = info_initHUD__P155620_mk(s); + s.callLocIdx = 27; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["_map"]; + s.tmp_0 = r0 = globals.infoState___155574; + r0 = s.tmp_0.fields["visibilityFlag"]; s.tmp_2 = r0; - r0 = s.tmp_2.fields["_height"]; + r0 = (s.tmp_2 | s.arg0); s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 << s.tmp_3); + r0 = (s.tmp_0).fields["visibilityFlag"] = (s.tmp_1); { step = 2; continue; } case 1: - r0 = 0; - case 2: - // jmp value (already in r0) + s.tmp_0 = r0 = globals.infoState___155574; + r0 = globals.infoState___155574.fields["visibilityFlag"]; s.tmp_4 = r0; - r0 = s.tmp_4; + r0 = (~ s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 | s.arg0); + s.tmp_2 = r0; + r0 = (~ s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["visibilityFlag"] = (s.tmp_1); + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_areaHeight__P88809.info = {"start":6794,"length":93,"line":247,"column":8,"endLine":249,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} +info_updateFlag__P155624.info = {"start":11455,"length":204,"line":393,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"updateFlag","argumentNames":["flag","on"]} -function tiles_TileMap_areaHeight__P88809_mk(s) { +function info_updateFlag__P155624_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_areaHeight__P88809, depth: s.depth + 1, + parent: s, fn: info_updateFlag__P155624, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1940,48 +2523,14 @@ function tiles_TileMap_areaHeight__P88809_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function tiles_TileMapData_height__P88792(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C88789_VT)) failedCast(r0); - r0 = s.arg0.fields["_height"]; - return leaveAccessor(s, r0) - default: oops() -} } } -tiles_TileMapData_height__P88792.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__P88792.isGetter = true; - -function tiles_TileMapData_height__P88792_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_TileMapData_height__P88792, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function tiles_TileMap_scale__P88804(s) { +function info_initHUD__P155620(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1991,32 +2540,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_VT)) failedCast(r0); - r0 = s.arg0.fields["_scale"]; - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(globals.infoState___155574); + if (!r0) { step = 1; continue; } + { step = 3; continue; } + case 1: + case 2: + r0 = pxsim_pxtcore_mkClassInstance(info_InfoState__C155571_VT); + s.tmp_0 = r0; + s.tmp_1 = info_InfoState_constructor__P155572_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 737; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + globals.infoState___155574 = (s.tmp_0); + s.tmp_0 = scene_createRenderable__P153867_mk(s); + s.tmp_0.arg0 = 100; + s.tmp_0.arg1 = inline__P163042; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 753; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + case 3: + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_TileMap_scale__P88804.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__P88804.isGetter = true; +info_initHUD__P155620.info = {"start":2595,"length":2080,"line":97,"column":4,"endLine":147,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"initHUD","argumentNames":[]} -function tiles_TileMap_scale__P88804_mk(s) { +function info_initHUD__P155620_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_scale__P88804, depth: s.depth + 1, + parent: s, fn: info_initHUD__P155620, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, + tmp_1: undefined, } } -function tiles_tilemapColumns__P90013(s) { +function inline__P163042(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2026,68 +2590,218 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___94510 = undefined; - s.height___94516 = undefined; - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 1238; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = r0.fields["tileMap"]; - s.tm___94510 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tm___94510); + s.ps___163051 = undefined; + s.p___163072 = undefined; + s.scene___163106 = undefined; + s.elapsed___163109 = undefined; + s.t___163117 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.infoState___155574); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = 0; - { step = 3; continue; } + { step = 23; continue; } case 1: case 2: - s.tmp_3 = tiles_TileMap_areaHeight__P88809_mk(s); - s.tmp_3.arg0 = s.tm___94510; - s.callLocIdx = 1239; s.pc = 5; return s.tmp_3; - case 5: + r0 = globals.infoState___155574.fields["visibilityFlag"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 16); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_2 = helpers_arrayFilter__P151592_mk(s); + s.tmp_2.arg0 = globals.players___155575; + s.tmp_2.arg1 = inline__P163053; + s.callLocIdx = 738; s.pc = 24; return s.tmp_2; + case 24: + r0 = s.retval; + s.ps___163051 = (r0); + s.tmp_0 = helpers_arrayForEach__P151591_mk(s); + s.tmp_0.arg0 = s.ps___163051; + s.tmp_0.arg1 = inline__P163062; + s.callLocIdx = 740; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.tmp_0 = helpers_arrayForEach__P151591_mk(s); + s.tmp_0.arg0 = s.ps___163051; + s.tmp_0.arg1 = inline__P163068; + s.callLocIdx = 742; s.pc = 26; return s.tmp_0; + case 26: + r0 = s.retval; + { step = 12; continue; } + case 3: + s.p___163072 = (globals.player1___153741); + s.tmp_1 = info_PlayerInfo_hasScore__P153728_mk(s); + s.tmp_1.arg0 = s.p___163072; + s.callLocIdx = 743; s.pc = 27; return s.tmp_1; + case 27: r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 4; continue; } + r0 = s.tmp_0; + { step = 5; continue; } + case 4: + r0 = globals.infoState___155574.fields["visibilityFlag"]; s.tmp_2 = r0; - r0 = s.tm___94510.fields["_scale"]; - s.tmp_4 = r0; - r0 = (s.tmp_2 >> s.tmp_4); - s.height___94516 = (r0); - s.tmp_1 = tiles_TileMap_areaWidth__P88808_mk(s); - s.tmp_1.arg0 = s.tm___94510; - s.callLocIdx = 1241; s.pc = 6; return s.tmp_1; + r0 = (s.tmp_2 & 2); + case 5: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 6; continue; } + s.tmp_4 = info_PlayerInfo_drawScore__P153736_mk(s); + s.tmp_4.arg0 = s.p___163072; + s.callLocIdx = 744; s.pc = 28; return s.tmp_4; + case 28: + r0 = s.retval; case 6: + case 7: + s.tmp_1 = info_PlayerInfo_hasLife__P153732_mk(s); + s.tmp_1.arg0 = s.p___163072; + s.callLocIdx = 745; s.pc = 29; return s.tmp_1; + case 29: r0 = s.retval; s.tmp_0 = r0; - r0 = s.tm___94510.fields["_scale"]; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 8; continue; } + r0 = s.tmp_0; + { step = 9; continue; } + case 8: + r0 = globals.infoState___155574.fields["visibilityFlag"]; s.tmp_2 = r0; - r0 = (s.tmp_0 >> s.tmp_2); - case 3: + r0 = (s.tmp_2 & 4); + case 9: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 10; continue; } + s.tmp_4 = info_PlayerInfo_drawLives__P153737_mk(s); + s.tmp_4.arg0 = s.p___163072; + s.callLocIdx = 746; s.pc = 30; return s.tmp_4; + case 30: + r0 = s.retval; + case 10: + case 11: + s.tmp_0 = info_PlayerInfo_raiseLifeZero__P153734_mk(s); + s.tmp_0.arg0 = s.p___163072; + s.tmp_0.arg1 = true; + s.callLocIdx = 747; s.pc = 31; return s.tmp_0; + case 31: + r0 = s.retval; + case 12: + r0 = globals.infoState___155574.fields["gameEnd"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 13; continue; } + r0 = s.tmp_0; + { step = 14; continue; } + case 13: + r0 = globals.infoState___155574.fields["visibilityFlag"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & 1); + case 14: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 21; continue; } + s.tmp_4 = game_currentScene__P154016_mk(s); + s.callLocIdx = 748; s.pc = 32; return s.tmp_4; + case 32: + r0 = s.retval; + s.scene___163106 = (r0); + r0 = globals.infoState___155574.fields["gameEnd"]; + s.tmp_0 = r0; + r0 = s.scene___163106.fields["_millis"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.elapsed___163109 = (r0); + s.tmp_0 = info_drawTimer__P155625_mk(s); + s.tmp_0.arg0 = s.elapsed___163109; + s.callLocIdx = 750; s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + r0 = (s.elapsed___163109 / 1000); + s.t___163117 = (r0); + r0 = (s.t___163117 <= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 19; continue; } + s.t___163117 = (0); + r0 = globals.infoState___155574.fields["countdownExpired"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 17; continue; } + r0 = (globals.infoState___155574).fields["countdownExpired"] = (true); + r0 = (globals.infoState___155574).fields["gameEnd"] = (undefined); + r0 = globals.infoState___155574.fields["countdownEndHandler"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + s.tmp_1 = if_countdownEndHandler_1_mk(s); + s.tmp_1.arg0 = globals.infoState___155574; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "countdownEndHandler"), 1); + s.callLocIdx = 751; s.pc = 34; return s.tmp_1; + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["countdownEndHandler"]; + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["countdownEndHandler"], 1); s.callLocIdx = 751; s.pc = 34; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 751; s.pc = 34; return s.tmp_1;; } + else { s.callLocIdx = 751; s.pc = 34; return s.tmp_1; } + } + case 34: + r0 = s.retval; + { step = 16; continue; } + case 15: + s.tmp_0 = game_over__P154026_mk(s); + s.tmp_0.arg0 = false; + s.tmp_0.arg1 = undefined; + s.callLocIdx = 752; s.pc = 35; return s.tmp_0; + case 35: + r0 = s.retval; + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_tilemapColumns__P90013.info = {"start":13660,"length":225,"line":389,"column":4,"endLine":395,"endColumn":5,"fileName":"pxt_modules/tilemaps/tilemap.ts","functionName":"tilemapColumns","argumentNames":[]} +inline__P163042.info = {"start":2755,"length":1903,"line":104,"column":12,"endLine":145,"endColumn":13,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} -function tiles_tilemapColumns__P90013_mk(s) { +function inline__P163042_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_tilemapColumns__P90013, depth: s.depth + 1, + parent: s, fn: inline__P163042, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tm___94510: undefined, - height___94516: undefined, + ps___163051: undefined, + p___163072: undefined, + scene___163106: undefined, + elapsed___163109: undefined, + t___163117: undefined, } } -function tiles_TileMap_areaWidth__P88808(s) { +function inline__P163053(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2101,41 +2815,26 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["_map"]; + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_2 = r0; - r0 = s.tmp_2.fields["_width"]; + r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 << s.tmp_3); - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -tiles_TileMap_areaWidth__P88808.info = {"start":6693,"length":91,"line":243,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]} +inline__P163053.info = {"start":3003,"length":8,"line":109,"column":46,"endLine":109,"endColumn":54,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} -function tiles_TileMap_areaWidth__P88808_mk(s) { +function inline__P163053_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_areaWidth__P88808, depth: s.depth + 1, + parent: s, fn: inline__P163053, depth: s.depth + 1, pc: 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, } } @@ -2143,7 +2842,7 @@ function tiles_TileMap_areaWidth__P88808_mk(s) { -function tiles_TileMapData_width__P88791(s) { +function inline__P163062(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2157,20 +2856,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C88789_VT)) failedCast(r0); - r0 = s.arg0.fields["_width"]; - return leaveAccessor(s, r0) - default: oops() -} } } -tiles_TileMapData_width__P88791.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__P88791.isGetter = true; - -function tiles_TileMapData_width__P88791_mk(s) { + s.tmp_0 = info_PlayerInfo_drawPlayer__P153735_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 739; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P163062.info = {"start":3087,"length":19,"line":111,"column":31,"endLine":111,"endColumn":50,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} + +function inline__P163062_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_width__P88791, depth: s.depth + 1, + parent: s, fn: inline__P163062, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -2178,7 +2880,7 @@ function tiles_TileMapData_width__P88791_mk(s) { -function set_end__P195953(s) { +function inline__P163068(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2190,55 +2892,34 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tiles_setTileAt__P88827_mk(s); - s.tmp_1 = tiles_getTileLocation__P88829_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 97; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.tile4___142598; - s.callLocIdx = 98; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = tiles_setWallAt__P88828_mk(s); - s.tmp_1 = tiles_getTileLocation__P88829_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 99; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - s.tmp_0.arg0 = r0; + s.tmp_0 = info_PlayerInfo_raiseLifeZero__P153734_mk(s); + s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = false; - s.callLocIdx = 100; s.pc = 3; return s.tmp_0; - case 3: + s.callLocIdx = 741; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -set_end__P195953.info = {"start":22377,"length":175,"line":150,"column":0,"endLine":153,"endColumn":1,"fileName":"main.ts","functionName":"set_end","argumentNames":["col","row"]} +inline__P163068.info = {"start":3189,"length":27,"line":113,"column":31,"endLine":113,"endColumn":58,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} -function set_end__P195953_mk(s) { +function inline__P163068_mk(s) { checkStack(s.depth); return { - parent: s, fn: set_end__P195953, depth: s.depth + 1, + parent: s, fn: inline__P163068, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_setWallAt__P88828(s) { +function info_drawTimer__P155625(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2248,79 +2929,289 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___94092 = undefined; - s.scale___94102 = undefined; + s.font___163146 = undefined; + s.smallFont___163148 = undefined; + s.seconds___163150 = undefined; + s.width___163154 = undefined; + s.left___163159 = undefined; + s.color1___163169 = undefined; + s.color2___163173 = undefined; + s.temp___163186 = undefined; + s.remainder___163222 = undefined; + s.decimalLeft___163241 = undefined; + s.minutes___163259 = undefined; + s.remainder___163263 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 787; s.pc = 6; return s.tmp_0; - case 6: + r0 = (s.arg0 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.arg0 = (0); + case 1: + case 2: + r0 = (s.arg0 | 0); + s.arg0 = (r0); + s.font___163146 = (globals.font8___153229); + s.smallFont___163148 = (globals.font5___153234); + r0 = pxsim.Math_.idiv(s.arg0, 1000); + s.seconds___163150 = (r0); + s.tmp_2 = if_charWidth_1_mk(s); + s.tmp_2.arg0 = s.font___163146; + 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 = 763; s.pc = 11; return s.tmp_2; } + } + case 11: r0 = s.retval; - s.scene___94092 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 * 5); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 2); + s.width___163154 = (r0); + r0 = pxsim_ImageMethods.width(globals.screen___153286); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.width___163154 >> 1); + s.tmp_3 = r0; + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 1); + s.left___163159 = (r0); + r0 = globals.infoState___155574.fields["fontColor"]; + s.color1___163169 = (r0); + r0 = globals.infoState___155574.fields["bgColor"]; + s.color2___163173 = (r0); + r0 = (s.seconds___163150 < 10); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } + if (r0) { step = 3; continue; } r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.scene___94092.fields["tileMap"]; + { step = 4; continue; } + case 3: + r0 = (s.seconds___163150 & 1); + case 4: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 5; continue; } + r0 = s.tmp_1; + { step = 6; continue; } + case 5: + r0 = pxsim_ImageMethods.isMono(globals.screen___153286); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: + case 6: // jmp value (already in r0) s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 3; continue; } - r0 = null; - { step = 5; continue; } - case 3: - case 4: - r0 = s.scene___94092.fields["tileMap"]; - s.tmp_5 = r0; - r0 = s.tmp_5.fields["_scale"]; - s.scale___94102 = (r0); - s.tmp_0 = tiles_TileMap_setWallAt__P88818_mk(s); - r0 = s.scene___94092.fields["tileMap"]; - s.tmp_0.arg0 = r0; - s.tmp_2 = tiles_Location_x__P88778_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 789; s.pc = 8; return s.tmp_2; + if (!r0) { step = 7; continue; } + s.temp___163186 = (s.color1___163169); + s.color1___163169 = (s.color2___163173); + s.color2___163173 = (s.temp___163186); + case 7: case 8: + s.tmp_0 = helpers_imageFillRect__P153212_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + r0 = (s.left___163159 - 3); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + r0 = (s.width___163154 + 6); + s.tmp_0.arg3 = r0; + s.tmp_2 = if_charHeight_1_mk(s); + s.tmp_2.arg0 = s.font___163146; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charHeight"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charHeight"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 764; s.pc = 13; return s.tmp_2; } + } + case 13: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 >> s.scale___94102); + r0 = (s.tmp_1 + 3); + s.tmp_0.arg4 = r0; + r0 = globals.infoState___155574.fields["borderColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 765; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.tmp_0 = helpers_imageFillRect__P153212_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + r0 = (s.left___163159 - 2); s.tmp_0.arg1 = r0; - s.tmp_4 = tiles_Location_y__P88779_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 790; s.pc = 9; return s.tmp_4; + s.tmp_0.arg2 = 0; + r0 = (s.width___163154 + 4); + s.tmp_0.arg3 = r0; + s.tmp_2 = if_charHeight_1_mk(s); + s.tmp_2.arg0 = s.font___163146; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charHeight"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charHeight"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 766; s.pc = 15; return s.tmp_2; } + } + case 15: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 + 2); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.color2___163173; + s.callLocIdx = 767; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + r0 = (s.seconds___163150 < 60); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = (s.arg0 % 1000); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_1, 10); + s.remainder___163222 = (r0); + s.tmp_0 = helpers_imagePrint__P153244_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + s.tmp_3 = info_formatDecimal__P155627_mk(s); + s.tmp_3.arg0 = s.seconds___163150; + s.callLocIdx = 768; s.pc = 17; return s.tmp_3; + case 17: + r0 = s.retval; + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 18); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 18: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "."); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.left___163159; + s.tmp_0.arg3 = 1; + s.tmp_0.arg4 = s.color1___163169; + s.tmp_0.arg5 = s.font___163146; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 769; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + s.tmp_0 = r0 = s.left___163159; + s.tmp_3 = if_charWidth_1_mk(s); + s.tmp_3.arg0 = s.font___163146; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charWidth"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charWidth"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charWidth"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 770; s.pc = 19; return s.tmp_3; } + } + case 19: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (3 * s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.decimalLeft___163241 = (r0); + s.tmp_0 = helpers_imagePrint__P153244_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + s.tmp_1 = info_formatDecimal__P155627_mk(s); + s.tmp_1.arg0 = s.remainder___163222; + s.callLocIdx = 771; s.pc = 21; return s.tmp_1; + case 21: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.decimalLeft___163241; + s.tmp_0.arg3 = 3; + s.tmp_0.arg4 = s.color1___163169; + s.tmp_0.arg5 = s.smallFont___163148; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 772; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + { step = 10; continue; } case 9: + r0 = pxsim.Math_.idiv(s.seconds___163150, 60); + s.minutes___163259 = (r0); + r0 = (s.seconds___163150 % 60); + s.remainder___163263 = (r0); + s.tmp_0 = helpers_imagePrint__P153244_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + s.tmp_5 = info_formatDecimal__P155627_mk(s); + s.tmp_5.arg0 = s.minutes___163259; + s.callLocIdx = 773; s.pc = 23; return s.tmp_5; + case 23: + r0 = s.retval; + s.tmp_4 = r0; + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 24); + pxsim_String__stringConv(s.tmp_4); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_4) + ""; } + case 24: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 >> s.scale___94102); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.arg1; - s.callLocIdx = 791; s.pc = 7; return s.tmp_0; - case 7: + r0 = pxsim_String__concat(s.tmp_3, ":"); + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 25); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 25: r0 = s.retval; - case 5: + s.tmp_1 = r0; + s.tmp_8 = info_formatDecimal__P155627_mk(s); + s.tmp_8.arg0 = s.remainder___163263; + s.callLocIdx = 774; s.pc = 26; return s.tmp_8; + case 26: + r0 = s.retval; + s.tmp_7 = r0; + if ((s.tmp_7) && (s.tmp_7).vtable) { + setupResume(s, 27); + pxsim_String__stringConv(s.tmp_7); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_7) + ""; } + case 27: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_String__concat(s.tmp_1, s.tmp_6); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.left___163159; + s.tmp_0.arg3 = 1; + s.tmp_0.arg4 = s.color1___163169; + s.tmp_0.arg5 = s.font___163146; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 775; s.pc = 22; return s.tmp_0; + case 22: + r0 = s.retval; + case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_setWallAt__P88828.info = {"start":15717,"length":271,"line":499,"column":4,"endLine":504,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setWallAt","argumentNames":["loc","on"]} +info_drawTimer__P155625.info = {"start":13488,"length":1328,"line":462,"column":4,"endLine":497,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"drawTimer","argumentNames":["millis"]} -function tiles_setWallAt__P88828_mk(s) { +function info_drawTimer__P155625_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_setWallAt__P88828, depth: s.depth + 1, + parent: s, fn: info_drawTimer__P155625, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2328,17 +3219,29 @@ function tiles_setWallAt__P88828_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - scene___94092: undefined, - scale___94102: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + font___163146: undefined, + smallFont___163148: undefined, + seconds___163150: undefined, + width___163154: undefined, + left___163159: undefined, + color1___163169: undefined, + color2___163173: undefined, + temp___163186: undefined, + remainder___163222: undefined, + decimalLeft___163241: undefined, + minutes___163259: undefined, + remainder___163263: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_TileMap_setWallAt__P88818(s) { +function info_formatDecimal__P155627(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2350,66 +3253,49 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_VT)) failedCast(r0); - s.tmp_3 = tiles_TileMapData_isOutsideMap__P88801_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.arg1; - s.tmp_3.arg2 = s.arg2; - s.callLocIdx = 726; s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.arg0 | 0); + s.arg0 = (r0); + r0 = (s.arg0 < 10); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_4 = tiles_TileMapData_setWall__P88799_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.arg1; - s.tmp_4.arg2 = s.arg2; - s.tmp_4.arg3 = s.arg3; - s.callLocIdx = 727; s.pc = 4; return s.tmp_4; + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 4); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 4: r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat("0", s.tmp_1); + { step = 3; continue; } case 1: case 2: - r0 = undefined; + r0 = pxsim_numops.toString(s.arg0); + case 3: return leave(s, r0) default: oops() } } } -tiles_TileMap_setWallAt__P88818.info = {"start":8206,"length":173,"line":297,"column":8,"endLine":300,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setWallAt","argumentNames":["this","col","row","on"]} +info_formatDecimal__P155627.info = {"start":28426,"length":156,"line":916,"column":4,"endLine":922,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"formatDecimal","argumentNames":["val"]} -function tiles_TileMap_setWallAt__P88818_mk(s) { +function info_formatDecimal__P155627_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_setWallAt__P88818, depth: s.depth + 1, + parent: s, fn: info_formatDecimal__P155627, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function tiles_TileMapData_isOutsideMap__P88801(s) { +function helpers_imagePrint__P153244(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2419,306 +3305,460 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.x0___158923 = undefined; + s.cp___158925 = undefined; + s.mult___158926 = undefined; + s.dataW___158931 = undefined; + s.dataH___158937 = undefined; + s.byteHeight___158943 = undefined; + s.charSize___158949 = undefined; + s.dataSize___158953 = undefined; + s.fontdata___158957 = undefined; + s.lastchar___158960 = undefined; + s.imgBuf___158967 = undefined; + s.xOffset___158991 = undefined; + s.yOffset___158992 = undefined; + s.ch___159007 = undefined; + s.l___159026 = undefined; + s.r___159027 = undefined; + s.off___159029 = undefined; + s.guess___159030 = undefined; + s.m___159049 = undefined; + s.v___159058 = undefined; + s.i___159114 = undefined; + s.j___159119 = undefined; + s.mask___159120 = undefined; + s.c___159121 = undefined; + s.n___159138 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C88789_VT)) failedCast(r0); - r0 = (s.arg1 < 0); + r0 = (s.arg2 | 0); + s.arg2 = (r0); + r0 = (s.arg3 | 0); + s.arg3 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg5); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_2 = image_getFontForText__P153231_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 139; s.pc = 39; return s.tmp_2; + case 39: + r0 = s.retval; + s.arg5 = (r0); case 1: - s.tmp_1 = r0 = s.arg1; - r0 = s.arg0.fields["_width"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 >= s.tmp_2); case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); + r0 = pxsim_numops_toBoolDecr(s.arg4); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = s.tmp_3; - { step = 4; continue; } + s.arg4 = (1); case 3: - r0 = (s.arg2 < 0); case 4: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBool(s.tmp_4); + s.x0___158923 = (s.arg2); + s.cp___158925 = (0); + s.tmp_1 = if_multiplier_1_mk(s); + s.tmp_1.arg0 = s.arg5; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "multiplier"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["multiplier"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["multiplier"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 140; s.pc = 40; return s.tmp_1; } + } + case 40: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = s.tmp_4; + s.tmp_2 = if_multiplier_1_mk(s); + s.tmp_2.arg0 = s.arg5; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "multiplier"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["multiplier"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["multiplier"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 141; s.pc = 41; return s.tmp_2; } + } + case 41: + r0 = s.retval; { step = 6; continue; } case 5: - s.tmp_5 = r0 = s.arg2; - r0 = s.arg0.fields["_height"]; - s.tmp_6 = r0; - r0 = (s.tmp_5 >= s.tmp_6); + r0 = 1; case 6: // jmp value (already in r0) - s.tmp_7 = r0; - r0 = s.tmp_7; - return leave(s, r0) - default: oops() -} } } -tiles_TileMapData_isOutsideMap__P88801.info = {"start":5580,"length":132,"line":199,"column":8,"endLine":201,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOutsideMap","argumentNames":["this","col","row"]} - -function tiles_TileMapData_isOutsideMap__P88801_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_TileMapData_isOutsideMap__P88801, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function tiles_TileMapData_setWall__P88799(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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; + s.tmp_3 = r0; + s.mult___158926 = (s.tmp_3); + s.tmp_1 = if_charWidth_1_mk(s); + s.tmp_1.arg0 = s.arg5; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charWidth"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charWidth"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charWidth"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 142; s.pc = 42; return s.tmp_1; } } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C88789_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg3); - if (!r0) { step = 1; continue; } - r0 = 2; - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) + case 42: + r0 = s.retval; s.tmp_0 = r0; - r0 = s.arg0.fields["layers"]; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_1, s.arg1, s.arg2, s.tmp_0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -tiles_TileMapData_setWall__P88799.info = {"start":5326,"length":127,"line":191,"column":8,"endLine":193,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setWall","argumentNames":["this","col","row","on"]} - -function tiles_TileMapData_setWall__P88799_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_TileMapData_setWall__P88799, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function tiles_Location_y__P88779(s) { -let r0 = s.r0, 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___93971 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; + r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___158926); + s.dataW___158931 = (r0); + s.tmp_1 = if_charHeight_1_mk(s); + s.tmp_1.arg0 = s.arg5; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charHeight"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charHeight"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charHeight"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 143; s.pc = 43; return s.tmp_1; } } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C88774_VT)) failedCast(r0); - r0 = s.arg0.fields["tileMap"]; + case 43: + r0 = s.retval; s.tmp_0 = r0; - r0 = s.tmp_0.fields["_scale"]; - s.scale___93971 = (r0); - r0 = s.arg0.fields["_row"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___93971); + r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___158926); + s.dataH___158937 = (r0); + r0 = (s.dataH___158937 + 7); s.tmp_0 = r0; - r0 = (s.scale___93971 - 1); - s.tmp_3 = r0; - r0 = (1 << s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - return leaveAccessor(s, r0) - default: oops() -} } } -tiles_Location_y__P88779.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__P88779.isGetter = true; - -function tiles_Location_y__P88779_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_Location_y__P88779, depth: s.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___93971: undefined, - arg0: undefined, -} } - - - - - -function tiles_Location_x__P88778(s) { -let r0 = s.r0, 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___93988 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; + r0 = (s.tmp_0 >> 3); + s.byteHeight___158943 = (r0); + r0 = (s.byteHeight___158943 * s.dataW___158931); + s.charSize___158949 = (r0); + r0 = (2 + s.charSize___158949); + s.dataSize___158953 = (r0); + s.tmp_0 = if_data_1_mk(s); + s.tmp_0.arg0 = s.arg5; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "data"); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["data"]; + if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["data"]; } + else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } + else { s.callLocIdx = 144; s.pc = 44; return s.tmp_0; } } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C88774_VT)) failedCast(r0); - r0 = s.arg0.fields["tileMap"]; + case 44: + r0 = s.retval; + s.fontdata___158957 = (r0); + r0 = pxsim.BufferMethods.length(s.fontdata___158957); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___158953); s.tmp_0 = r0; - r0 = s.tmp_0.fields["_scale"]; - s.scale___93988 = (r0); - r0 = s.arg0.fields["_col"]; + r0 = (s.tmp_0 - 1); + s.lastchar___158960 = (r0); + r0 = (s.mult___158926 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = (8 + s.charSize___158949); s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___93988); + r0 = pxsim.control.createBuffer(s.tmp_1); + s.imgBuf___158967 = (r0); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___158967, 0, 135); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___158967, 1, 1); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___158967, 2, s.dataW___158931); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___158967, 4, s.dataH___158937); + case 7: + case 8: + case 9: + s.tmp_1 = r0 = s.cp___158925; + r0 = pxsim_String_.length(s.arg1); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; - r0 = (s.scale___93988 - 1); - s.tmp_3 = r0; - r0 = (1 << s.tmp_3); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 38; continue; } + s.xOffset___158991 = (0); + s.yOffset___158992 = (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___158925; + r0 = pxsim_Array__length(s.arg6); s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - return leaveAccessor(s, r0) - default: oops() -} } } -tiles_Location_x__P88778.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__P88778.isGetter = true; - -function tiles_Location_x__P88778_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_Location_x__P88778, depth: s.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___93988: undefined, - arg0: undefined, -} } - - - - - -function tiles_getTileLocation__P88829(s) { -let r0 = s.r0, 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___94063 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; + r0 = (s.tmp_1 < s.tmp_2); + case 11: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 12; continue; } + s.tmp_4 = if_xOffset_1_mk(s); + r0 = pxsim_Array__getAt(s.arg6, s.cp___158925); + s.tmp_4.arg0 = r0; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "xOffset"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["xOffset"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["xOffset"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 145; s.pc = 45; return s.tmp_4; } } - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 792; s.pc = 8; return s.tmp_0; - case 8: + case 45: r0 = s.retval; - s.scene___94063 = (r0); - r0 = (s.arg0 == undefined); + s.xOffset___158991 = (r0); + s.tmp_0 = if_yOffset_1_mk(s); + r0 = pxsim_Array__getAt(s.arg6, s.cp___158925); + s.tmp_0.arg0 = r0; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "yOffset"); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["yOffset"]; + if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["yOffset"]; } + else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } + else { s.callLocIdx = 146; s.pc = 46; return s.tmp_0; } + } + case 46: + r0 = s.retval; + s.yOffset___158992 = (r0); + case 12: + case 13: + s.tmp_0 = r0 = s.cp___158925; + r0 = (s.tmp_0 + 1); + s.cp___158925 = (r0); + r0 = pxsim_String_.charCodeAt(s.arg1, s.tmp_0); + s.ch___159007 = (r0); + r0 = (s.ch___159007 == 10); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = (s.arg1 == undefined); - case 2: - // jmp value (already in r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + s.tmp_1 = r0 = s.arg3; + s.tmp_4 = if_charHeight_1_mk(s); + s.tmp_4.arg0 = s.arg5; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charHeight"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charHeight"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charHeight"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 147; s.pc = 47; return s.tmp_4; } + } + case 47: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 + 2); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.arg3 = (r0); + s.arg2 = (s.x0___158923); + case 14: + case 15: + r0 = (s.ch___159007 < 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___159026 = (0); + s.r___159027 = (s.lastchar___158960); + s.off___159029 = (0); + r0 = (s.ch___159007 - 32); + s.tmp_0 = r0; + r0 = (s.tmp_0 * s.dataSize___158953); + s.guess___159030 = (r0); + r0 = pxsim.BufferMethods.getNumber(s.fontdata___158957, 4, s.guess___159030); s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = s.tmp_1; - { step = 4; continue; } - case 3: - r0 = s.scene___94063.fields["tileMap"]; + r0 = (s.tmp_1 == s.ch___159007); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 18; continue; } + s.off___159029 = (s.guess___159030); + { step = 25; continue; } + case 18: + case 19: + r0 = (s.l___159026 <= s.r___159027); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 24; continue; } + s.tmp_1 = r0 = s.l___159026; + r0 = (s.r___159027 - s.l___159026); s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = (s.tmp_3 >> 1); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 4: - // jmp value (already in r0) + r0 = (s.tmp_1 + s.tmp_2); + s.m___159049 = (r0); + s.tmp_0 = r0 = s.fontdata___158957; + r0 = (s.m___159049 * s.dataSize___158953); + s.tmp_1 = r0; + r0 = pxsim.BufferMethods.getNumber(s.tmp_0, 4, s.tmp_1); + s.v___159058 = (r0); + r0 = (s.v___159058 == s.ch___159007); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + r0 = (s.m___159049 * s.dataSize___158953); + s.off___159029 = (r0); + { step = 24; continue; } + case 20: + case 21: + r0 = (s.v___159058 < s.ch___159007); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + r0 = (s.m___159049 + 1); + s.l___159026 = (r0); + { step = 23; continue; } + case 22: + r0 = (s.m___159049 - 1); + s.r___159027 = (r0); + case 23: + { step = 19; continue; } + case 24: + case 25: + r0 = (s.mult___158926 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 26; continue; } + s.tmp_1 = r0 = s.imgBuf___158967; + s.tmp_3 = r0 = s.fontdata___158957; + r0 = (s.off___159029 + 2); s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 5; continue; } - r0 = null; - { step = 7; continue; } - case 5: - case 6: - s.tmp_5 = tiles_TileMap_getTile__P88814_mk(s); - r0 = s.scene___94063.fields["tileMap"]; - s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = s.arg0; - s.tmp_5.arg2 = s.arg1; - s.callLocIdx = 793; s.pc = 9; return s.tmp_5; - case 9: + r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___158949); + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.write(s.tmp_1, 8, s.tmp_2); + s.tmp_0 = helpers_imageDrawIcon__P153211_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.imgBuf___158967; + r0 = (s.arg2 + s.xOffset___158991); + s.tmp_0.arg2 = r0; + r0 = (s.arg3 + s.yOffset___158992); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = s.arg4; + s.callLocIdx = 148; s.pc = 48; return s.tmp_0; + case 48: r0 = s.retval; - case 7: + s.tmp_0 = r0 = s.arg2; + s.tmp_2 = if_charWidth_1_mk(s); + s.tmp_2.arg0 = s.arg5; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charWidth"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charWidth"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 149; s.pc = 49; return s.tmp_2; } + } + case 49: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.arg2 = (r0); + { step = 37; continue; } + case 26: + r0 = (s.off___159029 + 2); + s.off___159029 = (r0); + s.i___159114 = (0); + case 27: + r0 = (s.i___159114 < s.dataW___158931); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 36; continue; } + s.j___159119 = (0); + s.mask___159120 = (1); + s.tmp_0 = r0 = s.off___159029; + r0 = (s.tmp_0 + 1); + s.off___159029 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___158957, s.tmp_0); + s.c___159121 = (r0); + case 28: + r0 = (s.j___159119 < s.dataH___158937); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 35; continue; } + r0 = (s.mask___159120 == 256); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 29; continue; } + s.tmp_2 = r0 = s.off___159029; + r0 = (s.tmp_2 + 1); + s.off___159029 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___158957, s.tmp_2); + s.c___159121 = (r0); + s.mask___159120 = (1); + case 29: + case 30: + s.n___159138 = (0); + case 31: + r0 = (s.c___159121 & s.mask___159120); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 32; continue; } + r0 = (s.n___159138 + 1); + s.n___159138 = (r0); + r0 = (s.mask___159120 << 1); + s.mask___159120 = (r0); + { step = 31; continue; } + case 32: + r0 = pxsim_numops_toBoolDecr(s.n___159138); + if (!r0) { step = 33; continue; } + s.tmp_0 = helpers_imageFillRect__P153212_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.arg2; + r0 = (s.xOffset___158991 * s.mult___158926); + 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___159119 + s.yOffset___158992); + s.tmp_5 = r0; + r0 = (s.tmp_5 * s.mult___158926); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.mult___158926; + r0 = (s.mult___158926 * s.n___159138); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.arg4; + s.callLocIdx = 150; s.pc = 50; return s.tmp_0; + case 50: + r0 = s.retval; + r0 = (s.j___159119 + s.n___159138); + s.j___159119 = (r0); + { step = 34; continue; } + case 33: + r0 = (s.mask___159120 << 1); + s.mask___159120 = (r0); + r0 = (s.j___159119 + 1); + s.j___159119 = (r0); + case 34: + { step = 28; continue; } + case 35: + r0 = (s.arg2 + s.mult___158926); + s.arg2 = (r0); + r0 = (s.i___159114 + 1); + s.i___159114 = (r0); + { step = 27; continue; } + case 36: + case 37: + { step = 9; continue; } + case 38: + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_getTileLocation__P88829.info = {"start":16285,"length":247,"line":515,"column":4,"endLine":519,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileLocation","argumentNames":["col","row"]} +helpers_imagePrint__P153244.info = {"start":15326,"length":3300,"line":213,"column":4,"endLine":306,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"imagePrint","argumentNames":["img","text","x","y","color","font","offsets"]} -function tiles_getTileLocation__P88829_mk(s) { +function helpers_imagePrint__P153244_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_getTileLocation__P88829, depth: s.depth + 1, + parent: s, fn: helpers_imagePrint__P153244, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2726,16 +3766,45 @@ function tiles_getTileLocation__P88829_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - scene___94063: undefined, + x0___158923: undefined, + cp___158925: undefined, + mult___158926: undefined, + dataW___158931: undefined, + dataH___158937: undefined, + byteHeight___158943: undefined, + charSize___158949: undefined, + dataSize___158953: undefined, + fontdata___158957: undefined, + lastchar___158960: undefined, + imgBuf___158967: undefined, + xOffset___158991: undefined, + yOffset___158992: undefined, + ch___159007: undefined, + l___159026: undefined, + r___159027: undefined, + off___159029: undefined, + guess___159030: undefined, + m___159049: undefined, + v___159058: undefined, + i___159114: undefined, + j___159119: undefined, + mask___159120: undefined, + c___159121: undefined, + n___159138: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, } } -function tiles_TileMap_getTile__P88814(s) { +function image_getFontForText__P153231(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2745,47 +3814,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.i___159232 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C88774_VT); - s.tmp_0 = r0; - s.tmp_1 = tiles_Location_constructor__P88777_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 = 718; s.pc = 1; return s.tmp_1; + s.i___159232 = (0); case 1: - r0 = s.retval; - r0 = s.tmp_0; + s.tmp_1 = r0 = s.i___159232; + 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___159232); + 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___153230; + { step = 5; continue; } + case 2: + case 3: + r0 = (s.i___159232 + 1); + s.i___159232 = (r0); + { step = 1; continue; } + case 4: + r0 = globals.font8___153229; + case 5: return leave(s, r0) default: oops() } } } -tiles_TileMap_getTile__P88814.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"]} +image_getFontForText__P153231.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]} -function tiles_TileMap_getTile__P88814_mk(s) { +function image_getFontForText__P153231_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTile__P88814, depth: s.depth + 1, + parent: s, fn: image_getFontForText__P153231, depth: s.depth + 1, pc: 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___159232: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function tiles_Location_constructor__P88777(s) { +function helpers_imageDrawIcon__P153211(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2800,35 +3882,46 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C88774_VT)) failedCast(r0); - r0 = (s.arg0).fields["_col"] = (s.arg1); - r0 = (s.arg0).fields["_row"] = (s.arg2); - r0 = (s.arg0).fields["tileMap"] = (s.arg3); + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = helpers_pack__P155444_mk(s); + s.tmp_3.arg0 = s.arg2; + s.tmp_3.arg1 = s.arg3; + s.callLocIdx = 120; s.pc = 1; return s.tmp_3; + case 1: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods._drawIcon(s.tmp_0, s.tmp_1, s.tmp_2, s.arg4); r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_Location_constructor__P88777.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"]} +helpers_imageDrawIcon__P153211.info = {"start":3500,"length":145,"line":128,"column":4,"endLine":130,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]} -function tiles_Location_constructor__P88777_mk(s) { +function helpers_imageDrawIcon__P153211_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_constructor__P88777, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawIcon__P153211, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, arg1: undefined, arg2: undefined, arg3: undefined, + arg4: undefined, } } -function tiles_setTileAt__P88827(s) { +function helpers_pack__P155444(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2838,99 +3931,43 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___93935 = undefined; - s.scale___93948 = undefined; - s.index___93952 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 781; s.pc = 8; return s.tmp_0; - case 8: + s.tmp_2 = Math_clamp__P151606_mk(s); + s.tmp_2.arg0 = -30000; + s.tmp_2.arg1 = 30000; + r0 = (s.arg0 | 0); + s.tmp_2.arg2 = r0; + s.callLocIdx = 118; s.pc = 1; return s.tmp_2; + case 1: r0 = s.retval; - s.scene___93935 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 & 65535); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_5 = Math_clamp__P151606_mk(s); + s.tmp_5.arg0 = -30000; + s.tmp_5.arg1 = 30000; + r0 = (s.arg1 | 0); + s.tmp_5.arg2 = r0; + s.callLocIdx = 119; s.pc = 2; return s.tmp_5; case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (!r0) { step = 3; continue; } - r0 = s.tmp_3; - { step = 4; continue; } - case 3: - r0 = s.scene___93935.fields["tileMap"]; - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - case 4: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 5; continue; } - r0 = null; - { step = 7; continue; } - case 5: - case 6: - r0 = s.scene___93935.fields["tileMap"]; - s.tmp_7 = r0; - r0 = s.tmp_7.fields["_scale"]; - s.scale___93948 = (r0); - s.tmp_0 = tiles_TileMap_getImageType__P88817_mk(s); - r0 = s.scene___93935.fields["tileMap"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 783; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.index___93952 = (r0); - s.tmp_0 = tiles_TileMap_setTileAt__P88816_mk(s); - r0 = s.scene___93935.fields["tileMap"]; - s.tmp_0.arg0 = r0; - s.tmp_2 = tiles_Location_x__P88778_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 784; s.pc = 11; return s.tmp_2; - case 11: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 >> s.scale___93948); - s.tmp_0.arg1 = r0; - s.tmp_4 = tiles_Location_y__P88779_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 785; s.pc = 12; return s.tmp_4; - case 12: r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_4 << 16); s.tmp_3 = r0; - r0 = (s.tmp_3 >> s.scale___93948); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.index___93952; - s.callLocIdx = 786; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - case 7: - r0 = undefined; + r0 = (s.tmp_0 | s.tmp_3); return leave(s, r0) default: oops() } } } -tiles_setTileAt__P88827.info = {"start":15058,"length":339,"line":482,"column":4,"endLine":488,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTileAt","argumentNames":["loc","tile"]} +helpers_pack__P155444.info = {"start":3152,"length":145,"line":120,"column":4,"endLine":122,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]} -function tiles_setTileAt__P88827_mk(s) { +function helpers_pack__P155444_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_setTileAt__P88827, depth: s.depth + 1, + parent: s, fn: helpers_pack__P155444, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2938,11 +3975,6 @@ function tiles_setTileAt__P88827_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - scene___93935: undefined, - scale___93948: undefined, - index___93952: undefined, arg0: undefined, arg1: undefined, } } @@ -2951,7 +3983,7 @@ function tiles_setTileAt__P88827_mk(s) { -function tiles_TileMap_getImageType__P88817(s) { +function Math_clamp__P151606(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2961,92 +3993,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tileset___93897 = undefined; - s.i___93902 = undefined; - s.newIndex___93916 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["tileset"]; - s.tileset___93897 = (r0); - s.i___93902 = (0); - case 1: - s.tmp_1 = r0 = s.i___93902; - r0 = pxsim_Array__length(s.tileset___93897); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.tileset___93897, s.i___93902); - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.equals(s.tmp_4, s.arg1); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 2; continue; } - r0 = s.i___93902; - { step = 7; continue; } + s.tmp_0 = Math_min__P151610_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_1 = Math_max__P151609_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg2; + s.callLocIdx = 16; s.pc = 2; return s.tmp_1; case 2: - case 3: - r0 = (s.i___93902 + 1); - s.i___93902 = (r0); - { step = 1; continue; } - case 4: - r0 = pxsim_Array__length(s.tileset___93897); - s.newIndex___93916 = (r0); - s.tmp_3 = tiles_TileMap_isInvalidIndex__P90473_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.newIndex___93916; - s.callLocIdx = 725; s.pc = 8; return s.tmp_3; - case 8: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = pxsim_Array__push(s.tileset___93897, s.arg1); - r0 = s.newIndex___93916; - { step = 7; continue; } - case 5: - case 6: - r0 = -1; - case 7: + s.tmp_0.arg1 = r0; + s.callLocIdx = 17; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -tiles_TileMap_getImageType__P88817.info = {"start":7714,"length":482,"line":282,"column":8,"endLine":295,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getImageType","argumentNames":["this","im"]} +Math_clamp__P151606.info = {"start":14654,"length":130,"line":501,"column":4,"endLine":503,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"clamp","argumentNames":["min","max","value"]} -function tiles_TileMap_getImageType__P88817_mk(s) { +function Math_clamp__P151606_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getImageType__P88817, depth: s.depth + 1, + parent: s, fn: Math_clamp__P151606, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tileset___93897: undefined, - i___93902: undefined, - newIndex___93916: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function tiles_TileMap_isInvalidIndex__P90473(s) { +function Math_min__P151610(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3061,32 +4047,27 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_VT)) failedCast(r0); - r0 = (s.arg1 < 0); + r0 = (s.arg0 <= s.arg1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = s.arg0; + { step = 3; continue; } case 1: - r0 = (s.arg1 > 255); case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.tmp_1; + r0 = s.arg1; + case 3: return leave(s, r0) default: oops() } } } -tiles_TileMap_isInvalidIndex__P90473.info = {"start":10071,"length":106,"line":343,"column":8,"endLine":345,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isInvalidIndex","argumentNames":["this","index"]} +Math_min__P151610.info = {"start":15790,"length":105,"line":538,"column":4,"endLine":541,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"min","argumentNames":["a","b"]} -function tiles_TileMap_isInvalidIndex__P90473_mk(s) { +function Math_min__P151610_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isInvalidIndex__P90473, depth: s.depth + 1, + parent: s, fn: Math_min__P151610, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, arg1: undefined, } } @@ -3095,7 +4076,7 @@ function tiles_TileMap_isInvalidIndex__P90473_mk(s) { -function tiles_TileMapData_getTileset__P88797(s) { +function Math_max__P151609(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3107,29 +4088,39 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } + r0 = (s.arg0 >= s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C88789_VT)) failedCast(r0); - r0 = s.arg0.fields["tileset"]; + { step = 3; continue; } + case 1: + case 2: + r0 = s.arg1; + case 3: return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTileset__P88797.info = {"start":4532,"length":57,"line":168,"column":8,"endLine":170,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileset","argumentNames":["this"]} +Math_max__P151609.info = {"start":15575,"length":105,"line":529,"column":4,"endLine":532,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"max","argumentNames":["a","b"]} -function tiles_TileMapData_getTileset__P88797_mk(s) { +function Math_max__P151609_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTileset__P88797, depth: s.depth + 1, + parent: s, fn: Math_max__P151609, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function tiles_TileMap_setTileAt__P88816(s) { +function info_InfoState_constructor__P155572(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3141,88 +4132,92 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_VT)) failedCast(r0); - s.tmp_3 = tiles_TileMapData_isOutsideMap__P88801_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.arg1; - s.tmp_3.arg2 = s.arg2; - s.callLocIdx = 721; s.pc = 5; return s.tmp_3; - case 5: + if (!checkSubtype(r0, info_InfoState__C155571_VT)) failedCast(r0); + r0 = (s.arg0).fields["visibilityFlag"] = (8); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["playerStates"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = info_defaultHeartImage__P155622_mk(s); + s.callLocIdx = 731; s.pc = 7; return s.tmp_2; + case 7: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_0).fields["heartImage"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.image.ofBuffer(_hex163912); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["multiplierImage"] = (s.tmp_1); + r0 = pxsim_ImageMethods.isMono(globals.screen___153286); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 0; { step = 2; continue; } case 1: - s.tmp_6 = tiles_TileMap_isInvalidIndex__P90473_mk(s); - s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.arg3; - s.callLocIdx = 722; s.pc = 6; return s.tmp_6; - case 6: - r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); + r0 = 1; case 2: // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); + s.tmp_1 = r0; + r0 = (s.arg0).fields["bgColor"] = (s.tmp_1); + r0 = pxsim_ImageMethods.isMono(globals.screen___153286); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_8 = tiles_TileMapData_setTile__P88796_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_8.arg0 = r0; - s.tmp_8.arg1 = s.arg1; - s.tmp_8.arg2 = s.arg2; - s.tmp_8.arg3 = s.arg3; - s.callLocIdx = 723; s.pc = 7; return s.tmp_8; - case 7: - r0 = s.retval; + r0 = 1; + { step = 4; continue; } case 3: + r0 = 3; case 4: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.arg0).fields["borderColor"] = (s.tmp_1); + r0 = pxsim_ImageMethods.isMono(globals.screen___153286); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = 1; + { step = 6; continue; } + case 5: + r0 = 3; + case 6: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.arg0).fields["fontColor"] = (s.tmp_1); + r0 = (s.arg0).fields["countdownExpired"] = (undefined); + r0 = (s.arg0).fields["countdownEndHandler"] = (undefined); + r0 = (s.arg0).fields["gameEnd"] = (undefined); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["playerStates"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_setTileAt__P88816.info = {"start":7495,"length":209,"line":277,"column":8,"endLine":280,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTileAt","argumentNames":["this","col","row","index"]} +info_InfoState_constructor__P155572.info = {"start":1045,"length":674,"line":43,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this"]} -function tiles_TileMap_setTileAt__P88816_mk(s) { +function info_InfoState_constructor__P155572_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_setTileAt__P88816, depth: s.depth + 1, + parent: s, fn: info_InfoState_constructor__P155572, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } +const _hex163912 = pxsim.BufferMethods.createBufferFromHex("87040500050000000100010010100000000100001010000001000100") -function tiles_TileMapData_setTile__P88796(s) { +function info_defaultHeartImage__P155622(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3232,87 +4227,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C88789_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P88801_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - s.tmp_1.arg2 = s.arg2; - s.callLocIdx = 699; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; + r0 = pxsim_ImageMethods.isMono(globals.screen___153286); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 5; continue; } + r0 = pxsim.image.ofBuffer(_hex163940); + { step = 2; continue; } case 1: + r0 = pxsim.image.ofBuffer(_hex163942); case 2: - r0 = s.arg0.fields["data"]; - s.tmp_3 = r0; - r0 = pxsim.BufferMethods.isReadOnly(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - s.tmp_4 = r0 = s.arg0; - r0 = s.arg0.fields["data"]; - s.tmp_6 = r0; - r0 = pxsim.BufferMethods.slice(s.tmp_6, 0, -1); - s.tmp_5 = r0; - r0 = (s.tmp_4).fields["data"] = (s.tmp_5); - case 3: - case 4: - r0 = s.arg0.fields["data"]; - s.tmp_0 = r0; - r0 = (s.arg1 | 0); - s.tmp_3 = r0; - r0 = (4 + s.tmp_3); - s.tmp_2 = r0; - r0 = (s.arg2 | 0); - s.tmp_5 = r0; - r0 = s.arg0.fields["_width"]; - s.tmp_6 = r0; - r0 = (s.tmp_5 * s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_2 + s.tmp_4); + // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim.BufferMethods.setUint8(s.tmp_0, s.tmp_1, s.arg3); - case 5: - r0 = undefined; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -tiles_TileMapData_setTile__P88796.info = {"start":4207,"length":315,"line":158,"column":8,"endLine":166,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTile","argumentNames":["this","col","row","tile"]} +info_defaultHeartImage__P155622.info = {"start":5080,"length":592,"line":162,"column":4,"endLine":183,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"defaultHeartImage","argumentNames":[]} -function tiles_TileMapData_setTile__P88796_mk(s) { +function info_defaultHeartImage__P155622_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_setTile__P88796, depth: s.depth + 1, + parent: s, fn: info_defaultHeartImage__P155622, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } +const _hex163940 = pxsim.BufferMethods.createBufferFromHex("87040800070000001011000001000100010010001000000101001000010001001011000000000000") +const _hex163942 = pxsim.BufferMethods.createBufferFromHex("8704080007000000c0cc00002c220c002222c2002222220c20222202222422004222020020220000") -function set_start__P196159(s) { +function scene_createRenderable__P153867(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3322,45 +4269,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.renderable___159388 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = tiles_placeOnTile__P88833_mk(s); - s.tmp_0.arg0 = globals.sprite_player___196139; - s.tmp_1 = tiles_getTileLocation__P88829_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 150; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 151; s.pc = 1; return s.tmp_0; + r0 = pxsim_pxtcore_mkClassInstance(scene_Renderable__C153862_VT); + s.tmp_0 = r0; + s.tmp_1 = r0 = s.arg2; + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 1; continue; } + r0 = s.tmp_1; + { step = 2; continue; } case 1: + r0 = inline__P159394; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + s.tmp_3 = scene_Renderable_constructor__P153863_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 = 959; s.pc = 3; return s.tmp_3; + case 3: r0 = s.retval; - r0 = undefined; + s.renderable___159388 = (s.tmp_0); + r0 = s.renderable___159388; return leave(s, r0) default: oops() } } } -set_start__P196159.info = {"start":26115,"length":119,"line":241,"column":0,"endLine":243,"endColumn":1,"fileName":"main.ts","functionName":"set_start","argumentNames":["col","row"]} +scene_createRenderable__P153867.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 set_start__P196159_mk(s) { +function scene_createRenderable__P153867_mk(s) { checkStack(s.depth); return { - parent: s, fn: set_start__P196159, depth: s.depth + 1, + parent: s, fn: scene_createRenderable__P153867, depth: s.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___159388: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function scene_cameraFollowSprite__P88949(s) { +function inline__P159394(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3370,40 +4332,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___92971 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 859; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.scene___92971 = (r0); - r0 = s.scene___92971.fields["camera"]; - s.tmp_0 = r0; - r0 = (s.tmp_0).fields["sprite"] = (s.arg0); - r0 = undefined; + r0 = true; return leave(s, r0) default: oops() } } } -scene_cameraFollowSprite__P88949.info = {"start":3990,"length":139,"line":142,"column":4,"endLine":145,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"cameraFollowSprite","argumentNames":["sprite"]} +inline__P159394.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} -function scene_cameraFollowSprite__P88949_mk(s) { +function inline__P159394_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_cameraFollowSprite__P88949, depth: s.depth + 1, + parent: s, fn: inline__P159394, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - scene___92971: undefined, - arg0: undefined, } } -function controller_moveSprite__P88437(s) { +function scene_Renderable_constructor__P153863(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3417,43 +4363,42 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - s.tmp_0 = controller_Controller_moveSprite__P88424_mk(s); - s.tmp_1 = controller__player1__P88402_mk(s); - s.callLocIdx = 202; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = s.arg1; - s.tmp_0.arg3 = s.arg2; - s.callLocIdx = 203; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, scene_Renderable__C153862_VT)) failedCast(r0); + r0 = (s.arg0).fields["handler"] = (s.arg1); + r0 = (s.arg0).fields["shouldBeVisible"] = (s.arg2); + s.tmp_0 = sprites_BaseSprite_constructor__P153344_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg3; + s.callLocIdx = 956; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_moveSprite__P88437.info = {"start":18919,"length":133,"line":574,"column":4,"endLine":576,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"moveSprite","argumentNames":["sprite","vx","vy"]} +scene_Renderable_constructor__P153863.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 controller_moveSprite__P88437_mk(s) { +function scene_Renderable_constructor__P153863_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_moveSprite__P88437, depth: s.depth + 1, + parent: s, fn: scene_Renderable_constructor__P153863, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, } } -function controller_Controller_moveSprite__P88424(s) { +function sprites_BaseSprite_constructor__P153344(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3463,203 +4408,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cp___93139 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C88408_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 15; continue; } + if (!checkSubtype(r0, sprites_BaseSprite__C153342_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_z__P153347_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 169; s.pc = 1; return s.tmp_0; case 1: - case 2: - s.tmp_5 = controller_Controller__controlledSprites__P88413_mk(s); - s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 163; s.pc = 16; return s.tmp_5; - case 16: - r0 = s.retval; - 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 = 3; continue; } - s.tmp_6 = controller_Controller__controlledSprites__P88414_mk(s); - s.tmp_6.arg0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_6.arg1 = r0; - s.callLocIdx = 164; s.pc = 17; return s.tmp_6; - case 17: r0 = s.retval; + s.tmp_0 = scene_Scene_addSprite__P153928_mk(s); + s.tmp_1 = game_currentScene__P154016_mk(s); + s.callLocIdx = 170; s.pc = 3; return s.tmp_1; case 3: - case 4: - r0 = pxsim_pxtcore_mkAction(1, inline__P93142); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayFind__P86594_mk(s); - s.tmp_2 = controller_Controller__controlledSprites__P88413_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 165; s.pc = 19; return s.tmp_2; - case 19: - r0 = s.retval; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 166; s.pc = 18; return s.tmp_1; - case 18: - r0 = s.retval; - s.cp___93139 = (r0); - r0 = pxsim_numops_toBoolDecr(s.cp___93139); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_ControlledSprite__C88404_VT); - s.tmp_2 = r0; - s.tmp_3 = controller_ControlledSprite_constructor__P88406_mk(s); - s.tmp_3.arg0 = s.tmp_2; - s.tmp_3.arg1 = s.arg1; - s.tmp_3.arg2 = s.arg2; - s.tmp_3.arg3 = s.arg3; - s.callLocIdx = 167; s.pc = 20; return s.tmp_3; - case 20: - r0 = s.retval; - s.cp___93139 = (s.tmp_2); - s.tmp_1 = controller_Controller__controlledSprites__P88413_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 168; s.pc = 21; return s.tmp_1; - case 21: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.cp___93139); - case 5: - case 6: - r0 = s.cp___93139.fields["vx"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 7; continue; } - r0 = s.tmp_0; - { step = 8; continue; } - case 7: - r0 = (s.arg2 == 0); - case 8: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 9; continue; } - s.tmp_2 = Sprite_vx__P88515_mk(s); - r0 = s.cp___93139.fields["s"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = 0; - s.callLocIdx = 169; s.pc = 22; return s.tmp_2; - case 22: r0 = s.retval; - case 9: - case 10: - r0 = s.cp___93139.fields["vy"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 11; continue; } - r0 = s.tmp_0; - { step = 12; continue; } - case 11: - r0 = (s.arg3 == 0); - case 12: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 13; continue; } - s.tmp_2 = Sprite_vy__P88517_mk(s); - r0 = s.cp___93139.fields["s"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = 0; - s.callLocIdx = 170; s.pc = 23; return s.tmp_2; - case 23: + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 171; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; - case 13: - case 14: - r0 = (s.cp___93139).fields["vx"] = (s.arg2); - r0 = (s.cp___93139).fields["vy"] = (s.arg3); - case 15: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller_moveSprite__P88424.info = {"start":10866,"length":608,"line":355,"column":8,"endLine":371,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"moveSprite","argumentNames":["this","sprite","vx","vy"]} +sprites_BaseSprite_constructor__P153344.info = {"start":344,"length":170,"line":15,"column":8,"endLine":20,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"inline","argumentNames":["this","z"]} -function controller_Controller_moveSprite__P88424_mk(s) { +function sprites_BaseSprite_constructor__P153344_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_moveSprite__P88424, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_constructor__P153344, depth: s.depth + 1, pc: 0, retval: undefined, 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, - cp___93139: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function inline__P93142(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0.fields["s"]; - r0 = r0.fields["id"]; - s.tmp_0 = r0; - r0 = s.caps[0].fields["id"]; - s.tmp_1 = r0; - r0 = (s.tmp_0 == s.tmp_1); - return leave(s, r0) - default: oops() -} } } -inline__P93142.info = {"start":11086,"length":26,"line":358,"column":50,"endLine":358,"endColumn":76,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["cp"]} - -function inline__P93142_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P93142, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, } } -function Sprite_vy__P88517(s) { +function scene_Scene_addSprite__P153928(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3675,27 +4468,44 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C153903_VT)) failedCast(r0); + r0 = s.arg0.fields["allSprites"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.arg1); s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + r0 = s.tmp_0.fields["spriteNextId"]; s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = (s.tmp_2 + 1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); + r0 = (s.tmp_0).fields["spriteNextId"] = (s.tmp_1); + s.tmp_3 = if_id_2_mk(s); + s.tmp_3.arg0 = s.arg1; + s.tmp_3.arg1 = s.tmp_2; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_3.arg0, "id", s.tmp_3.arg1); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/id"]; + if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["id"] = s.tmp_3.arg1; } + else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) } + else { s.callLocIdx = 983; s.pc = 1; return s.tmp_3; } + } + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_vy__P88517.info = {"start":2705,"length":51,"line":108,"column":4,"endLine":110,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this","v"]} +scene_Scene_addSprite__P153928.info = {"start":6859,"length":128,"line":193,"column":8,"endLine":196,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"addSprite","argumentNames":["this","sprite"]} -function Sprite_vy__P88517_mk(s) { +function scene_Scene_addSprite__P153928_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vy__P88517, depth: s.depth + 1, + parent: s, fn: scene_Scene_addSprite__P153928, depth: s.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, } } @@ -3704,77 +4514,7 @@ function Sprite_vy__P88517_mk(s) { -function Sprite_vy__P88516(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C88501_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__P88516.info = {"start":2543,"length":60,"line":103,"column":4,"endLine":105,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this"]} -Sprite_vy__P88516.isGetter = true; - -function Sprite_vy__P88516_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_vy__P88516, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function Fx_toFloat__P86651(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = (s.arg0 / 256); - return leave(s, r0) - default: oops() -} } } -Fx_toFloat__P86651.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__P86651_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Fx_toFloat__P86651, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function Sprite_vx__P88515(s) { +function sprites_BaseSprite_z__P153347(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3790,27 +4530,41 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + if (!checkSubtype(r0, sprites_BaseSprite__C153342_VT)) failedCast(r0); + r0 = s.arg0.fields["_z"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); + r0 = (s.tmp_1 !== s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = (s.arg0).fields["_z"] = (s.arg1); + s.tmp_1 = game_currentScene__P154016_mk(s); + s.callLocIdx = 172; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 | 1); + s.tmp_2 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_2); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_vx__P88515.info = {"start":2374,"length":51,"line":97,"column":4,"endLine":99,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this","v"]} +sprites_BaseSprite_z__P153347.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 Sprite_vx__P88515_mk(s) { +function sprites_BaseSprite_z__P153347_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P88515, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_z__P153347, depth: s.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, } } @@ -3819,7 +4573,7 @@ function Sprite_vx__P88515_mk(s) { -function Sprite_vx__P88514(s) { +function sprites_BaseSprite_z__P153346(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3834,22 +4588,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - r0 = s.arg0.fields["_vx"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); + if (!checkSubtype(r0, sprites_BaseSprite__C153342_VT)) failedCast(r0); + r0 = s.arg0.fields["_z"]; return leaveAccessor(s, r0) default: oops() } } } -Sprite_vx__P88514.info = {"start":2212,"length":60,"line":92,"column":4,"endLine":94,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this"]} -Sprite_vx__P88514.isGetter = true; +sprites_BaseSprite_z__P153346.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__P153346.isGetter = true; -function Sprite_vx__P88514_mk(s) { +function sprites_BaseSprite_z__P153346_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P88514, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_z__P153346, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -3857,7 +4608,7 @@ function Sprite_vx__P88514_mk(s) { -function controller_Controller__controlledSprites__P88414(s) { +function info_PlayerInfo_constructor__P153722(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3873,30 +4624,142 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C88408_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P89017_mk(s); - s.callLocIdx = 158; s.pc = 1; return s.tmp_1; + if (!checkSubtype(r0, info_PlayerInfo__C153710_VT)) failedCast(r0); + r0 = (s.arg0).fields["_player"] = (s.arg1); + r0 = (s.arg0).fields["border"] = (1); + r0 = (s.arg0).fields["fc"] = (1); + r0 = (s.arg0).fields["visilibity"] = (0); + r0 = (s.arg0).fields["showScore"] = (undefined); + r0 = (s.arg0).fields["showLife"] = (undefined); + r0 = (s.arg0).fields["showPlayer"] = (undefined); + r0 = (s.arg0).fields["left"] = (undefined); + r0 = (s.arg0).fields["up"] = (undefined); + r0 = s.arg0.fields["_player"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_ImageMethods.isMono(globals.screen___153286); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 1; continue; } + r0 = 0; + { step = 2; continue; } case 1: - r0 = s.retval; - r0 = r0.fields["controlledSprites"]; + r0 = 2; + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = (s.arg0).fields["bg"] = (s.tmp_3); + r0 = (s.arg0).fields["x"] = (0); + r0 = (s.arg0).fields["y"] = (0); + { step = 14; continue; } + case 3: + r0 = (s.arg1 === 2); s.tmp_0 = r0; - r0 = s.arg0.fields["playerIndex"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + r0 = pxsim_ImageMethods.isMono(globals.screen___153286); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 4; continue; } + r0 = 0; + { step = 5; continue; } + case 4: + r0 = 8; + case 5: + // jmp value (already in r0) s.tmp_2 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_2, s.arg1); + r0 = (s.arg0).fields["bg"] = (s.tmp_2); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___153286); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["x"] = (s.tmp_1); + r0 = (s.arg0).fields["y"] = (0); + r0 = (s.arg0).fields["left"] = (true); + { step = 13; continue; } + case 6: + r0 = (s.arg1 === 3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = pxsim_ImageMethods.isMono(globals.screen___153286); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 7; continue; } + r0 = 0; + { step = 8; continue; } + case 7: + r0 = 4; + case 8: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = (s.arg0).fields["bg"] = (s.tmp_2); + r0 = (s.arg0).fields["x"] = (0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.height(globals.screen___153286); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["y"] = (s.tmp_1); + r0 = (s.arg0).fields["up"] = (true); + { step = 12; continue; } + case 9: + r0 = pxsim_ImageMethods.isMono(globals.screen___153286); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 10; continue; } + r0 = 0; + { step = 11; continue; } + case 10: + r0 = 7; + case 11: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.arg0).fields["bg"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___153286); + 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___153286); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["y"] = (s.tmp_1); + r0 = (s.arg0).fields["left"] = (true); + r0 = (s.arg0).fields["up"] = (true); + case 12: + case 13: + case 14: + r0 = pxsim_numops_toBoolDecr(globals.players___155575); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + r0 = pxsim_Array__mk(); + globals.players___155575 = (r0); + case 15: + case 16: + s.tmp_0 = r0 = globals.players___155575; + r0 = s.arg0.fields["_player"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller__controlledSprites__P88414.info = {"start":8697,"length":134,"line":272,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this","cps"]} +info_PlayerInfo_constructor__P153722.info = {"start":15446,"length":1370,"line":515,"column":8,"endLine":552,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this","player"]} -function controller_Controller__controlledSprites__P88414_mk(s) { +function info_PlayerInfo_constructor__P153722_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller__controlledSprites__P88414, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_constructor__P153722, depth: s.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, } } @@ -3905,7 +4768,7 @@ function controller_Controller__controlledSprites__P88414_mk(s) { -function controller_Controller__controlledSprites__P88413(s) { +function info_PlayerInfo_drawLives__P153737(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3915,86 +4778,316 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.state___163304 = undefined; + s.font___163310 = undefined; + s.i___163353 = undefined; + s.num___163375 = undefined; + s.textWidth___163382 = undefined; + s.mult___163434 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C88408_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P89017_mk(s); - s.callLocIdx = 157; s.pc = 1; return s.tmp_1; - case 1: + if (!checkSubtype(r0, info_PlayerInfo__C153710_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfo_getState__P153723_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 810; s.pc = 8; return s.tmp_0; + case 8: r0 = s.retval; - r0 = r0.fields["controlledSprites"]; + s.state___163304 = (r0); + r0 = s.state___163304.fields["life"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 < 0); s.tmp_0 = r0; - r0 = s.arg0.fields["playerIndex"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 7; continue; } + case 1: + case 2: + s.font___163310 = (globals.font8___153229); + r0 = s.state___163304.fields["life"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 <= 4); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_2 = helpers_imageFillRect__P153212_mk(s); + s.tmp_2.arg0 = globals.screen___153286; + s.tmp_2.arg1 = 0; + s.tmp_2.arg2 = 0; + r0 = s.state___163304.fields["life"]; + s.tmp_4 = r0; + r0 = globals.infoState___155574.fields["heartImage"]; + s.tmp_7 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_7); + s.tmp_6 = r0; + r0 = (s.tmp_6 + 1); + s.tmp_5 = r0; + r0 = (s.tmp_4 * s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 3); + s.tmp_2.arg3 = r0; + r0 = globals.infoState___155574.fields["heartImage"]; + s.tmp_9 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_9); + s.tmp_8 = r0; + r0 = (s.tmp_8 + 4); + s.tmp_2.arg4 = r0; + r0 = globals.infoState___155574.fields["borderColor"]; + s.tmp_2.arg5 = r0; + s.callLocIdx = 811; s.pc = 9; return s.tmp_2; + case 9: + r0 = s.retval; + s.tmp_0 = helpers_imageFillRect__P153212_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + r0 = s.state___163304.fields["life"]; s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2); - return leaveAccessor(s, r0) - default: oops() -} } } -controller_Controller__controlledSprites__P88413.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__P88413.isGetter = true; - -function controller_Controller__controlledSprites__P88413_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Controller__controlledSprites__P88413, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, -} } - - - - - -function controller_ControlledSprite_constructor__P88406(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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 = globals.infoState___155574.fields["heartImage"]; + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_4 + 1); + s.tmp_3 = r0; + r0 = (s.tmp_2 * s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 2); + s.tmp_0.arg3 = r0; + r0 = globals.infoState___155574.fields["heartImage"]; + s.tmp_7 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_7); + s.tmp_6 = r0; + r0 = (s.tmp_6 + 3); + s.tmp_0.arg4 = r0; + r0 = globals.infoState___155574.fields["bgColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 812; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + s.i___163353 = (0); + case 3: + r0 = s.state___163304.fields["life"]; + s.tmp_1 = r0; + r0 = (s.i___163353 < s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_2 = r0 = globals.screen___153286; + r0 = globals.infoState___155574.fields["heartImage"]; + s.tmp_3 = r0; + s.tmp_6 = r0 = s.i___163353; + r0 = globals.infoState___155574.fields["heartImage"]; + s.tmp_9 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_9); + s.tmp_8 = r0; + r0 = (s.tmp_8 + 1); + s.tmp_7 = r0; + r0 = (s.tmp_6 * s.tmp_7); + s.tmp_5 = r0; + r0 = (1 + s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_2, s.tmp_3, s.tmp_4, 1); + r0 = (s.i___163353 + 1); + s.i___163353 = (r0); + { step = 3; continue; } + case 4: + { step = 6; continue; } + case 5: + r0 = s.state___163304.fields["life"]; + s.tmp_1 = r0; + if ((s.tmp_1) && (s.tmp_1).vtable) { + setupResume(s, 11); + pxsim_String__stringConv(s.tmp_1); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_1) + ""; } + case 11: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_0, s.tmp_2); + s.num___163375 = (r0); + r0 = pxsim_String_.length(s.num___163375); + s.tmp_1 = r0; + s.tmp_3 = if_charWidth_1_mk(s); + s.tmp_3.arg0 = s.font___163310; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charWidth"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charWidth"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charWidth"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 813; s.pc = 12; return s.tmp_3; } } - r0 = s.arg0; - if (!checkSubtype(r0, controller_ControlledSprite__C88404_VT)) failedCast(r0); - r0 = (s.arg0).fields["s"] = (s.arg1); - r0 = (s.arg0).fields["vx"] = (s.arg2); - r0 = (s.arg0).fields["vy"] = (s.arg3); + case 12: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 1); + s.textWidth___163382 = (r0); + s.tmp_0 = helpers_imageFillRect__P153212_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + r0 = globals.infoState___155574.fields["heartImage"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_4); + s.tmp_3 = r0; + r0 = globals.infoState___155574.fields["multiplierImage"]; + s.tmp_6 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_6); + s.tmp_5 = r0; + r0 = (s.tmp_3 + s.tmp_5); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.textWidth___163382); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 5); + s.tmp_0.arg3 = r0; + r0 = globals.infoState___155574.fields["heartImage"]; + s.tmp_8 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_8); + s.tmp_7 = r0; + r0 = (s.tmp_7 + 4); + s.tmp_0.arg4 = r0; + r0 = globals.infoState___155574.fields["borderColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 814; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = helpers_imageFillRect__P153212_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + r0 = globals.infoState___155574.fields["heartImage"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_4); + s.tmp_3 = r0; + r0 = globals.infoState___155574.fields["multiplierImage"]; + s.tmp_6 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_6); + s.tmp_5 = r0; + r0 = (s.tmp_3 + s.tmp_5); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.textWidth___163382); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 4); + s.tmp_0.arg3 = r0; + r0 = globals.infoState___155574.fields["heartImage"]; + s.tmp_8 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_8); + s.tmp_7 = r0; + r0 = (s.tmp_7 + 3); + s.tmp_0.arg4 = r0; + r0 = globals.infoState___155574.fields["bgColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 815; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + r0 = globals.infoState___155574.fields["heartImage"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___153286, s.tmp_0, 1, 1); + r0 = globals.infoState___155574.fields["multiplierImage"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.clone(s.tmp_0); + s.mult___163434 = (r0); + r0 = globals.infoState___155574.fields["fontColor"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.replace(s.mult___163434, 1, s.tmp_0); + s.tmp_0 = r0 = globals.screen___153286; + s.tmp_1 = r0 = s.mult___163434; + r0 = globals.infoState___155574.fields["heartImage"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 2); + s.tmp_2 = r0; + s.tmp_8 = if_charHeight_1_mk(s); + s.tmp_8.arg0 = s.font___163310; + if (!s.tmp_8.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_8.arg0, "charHeight"); + } else { + s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["charHeight"]; + if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["charHeight"]; } + else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } + else { s.callLocIdx = 816; s.pc = 15; return s.tmp_8; } + } + case 15: + r0 = s.retval; + s.tmp_7 = r0; + r0 = globals.infoState___155574.fields["multiplierImage"]; + s.tmp_10 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_10); + s.tmp_9 = r0; + r0 = (s.tmp_7 - s.tmp_9); + s.tmp_6 = r0; + r0 = (s.tmp_6 - 1); + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_5); + s.tmp_0 = helpers_imagePrint__P153244_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + s.tmp_0.arg1 = s.num___163375; + r0 = globals.infoState___155574.fields["heartImage"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 3); + s.tmp_1 = r0; + r0 = globals.infoState___155574.fields["multiplierImage"]; + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_1 + s.tmp_4); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 1; + r0 = globals.infoState___155574.fields["fontColor"]; + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.font___163310; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 817; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + case 6: + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_ControlledSprite_constructor__P88406.info = {"start":7271,"length":117,"line":227,"column":8,"endLine":231,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","s","vx","vy"]} +info_PlayerInfo_drawLives__P153737.info = {"start":25956,"length":2458,"line":847,"column":8,"endLine":913,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"drawLives","argumentNames":["this"]} -function controller_ControlledSprite_constructor__P88406_mk(s) { +function info_PlayerInfo_drawLives__P153737_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_ControlledSprite_constructor__P88406, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_drawLives__P153737, depth: s.depth + 1, pc: 0, retval: undefined, 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, + state___163304: undefined, + font___163310: undefined, + i___163353: undefined, + num___163375: undefined, + textWidth___163382: undefined, + mult___163434: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function helpers_arrayFind__P86594(s) { +function info_PlayerInfo_getState__P153723(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4004,69 +5097,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___93210 = undefined; - s.i___93213 = undefined; - s.v___93218 = 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___93210 = (r0); - s.i___93213 = (0); + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfo__C153710_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfo_init__P155626_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 779; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.i___93213 < s.len___93210); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.arg0, s.i___93213); - s.v___93218 = (r0); - s.tmp_1 = lambda_3_mk(s); - s.tmp_1.argL = s.arg1; - s.tmp_1.arg0 = s.v___93218; - s.tmp_1.arg1 = s.i___93213; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 7; s.pc = 6; return s.tmp_1; - case 6: r0 = s.retval; + r0 = globals.infoState___155574.fields["playerStates"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - r0 = s.v___93218; - { step = 5; continue; } - case 2: - case 3: - r0 = (s.i___93213 + 1); - s.i___93213 = (r0); - { step = 1; continue; } - case 4: - r0 = undefined; - case 5: + r0 = s.arg0.fields["_player"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); return leave(s, r0) default: oops() } } } -helpers_arrayFind__P86594.info = {"start":8018,"length":292,"line":271,"column":4,"endLine":278,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayFind","argumentNames":["arr","callbackfn"]} +info_PlayerInfo_getState__P153723.info = {"start":17088,"length":121,"line":562,"column":8,"endLine":565,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"getState","argumentNames":["this"]} -function helpers_arrayFind__P86594_mk(s) { +function info_PlayerInfo_getState__P153723_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayFind__P86594, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_getState__P153723, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___93210: undefined, - i___93213: undefined, - v___93218: undefined, + tmp_2: undefined, arg0: undefined, - arg1: undefined, } } -function controller__player1__P88402(s) { +function info_PlayerInfo_init__P155626(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4076,55 +5145,64 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals._players___90370); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfo__C153710_VT)) failedCast(r0); + s.tmp_0 = info_initHUD__P155620_mk(s); + s.callLocIdx = 776; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + r0 = s.arg0.fields["_player"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 > 1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_2 = info_initMultiHUD__P155621_mk(s); + s.callLocIdx = 777; s.pc = 6; return s.tmp_2; + case 6: + r0 = s.retval; case 1: - r0 = pxsim_Array__getAt(globals._players___90370, 0); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); case 2: - // jmp value (already in r0) + r0 = globals.infoState___155574.fields["playerStates"]; + s.tmp_3 = r0; + r0 = s.arg0.fields["_player"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 - 1); s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); + r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C88408_VT); - s.tmp_5 = r0; - r0 = pxsim_Array__mk(); + r0 = pxsim_pxtcore_mkClassInstance(info_PlayerState__C153681_VT); s.tmp_6 = r0; - r0 = pxsim_Array__push(s.tmp_6, globals.left___88364); - r0 = pxsim_Array__push(s.tmp_6, globals.up___88365); - r0 = pxsim_Array__push(s.tmp_6, globals.right___88366); - r0 = pxsim_Array__push(s.tmp_6, globals.down___88367); - r0 = pxsim_Array__push(s.tmp_6, globals.A___88362); - r0 = pxsim_Array__push(s.tmp_6, globals.B___88363); - r0 = pxsim_Array__push(s.tmp_6, globals.menu___88368); - s.tmp_7 = controller_Controller_constructor__P88412_mk(s); - s.tmp_7.arg0 = s.tmp_5; - s.tmp_7.arg1 = 1; - s.tmp_7.arg2 = s.tmp_6; - s.callLocIdx = 149; s.pc = 5; return s.tmp_7; - case 5: - r0 = s.retval; + r0 = undefined; + r0 = globals.infoState___155574.fields["playerStates"]; + s.tmp_7 = r0; + r0 = s.arg0.fields["_player"]; + s.tmp_9 = r0; + r0 = (s.tmp_9 - 1); + s.tmp_8 = r0; + r0 = pxsim_Array_.setAt(s.tmp_7, s.tmp_8, s.tmp_6); case 3: case 4: - r0 = pxsim_Array__getAt(globals._players___90370, 0); + r0 = undefined; return leave(s, r0) default: oops() } } } -controller__player1__P88402.info = {"start":6776,"length":258,"line":214,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} +info_PlayerInfo_init__P155626.info = {"start":16826,"length":252,"line":554,"column":8,"endLine":560,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"init","argumentNames":["this"]} -function controller__player1__P88402_mk(s) { +function info_PlayerInfo_init__P155626_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__player1__P88402, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_init__P155626, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4134,13 +5212,16 @@ function controller__player1__P88402_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + arg0: undefined, } } -function controller_Controller_constructor__P88412(s) { +function info_initMultiHUD__P155621(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4150,100 +5231,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.leftId___93076 = undefined; - s.i___93084 = undefined; - s.i___93102 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C88408_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.control.allocateNotifyEvent(); + r0 = globals.infoState___155574.fields["visibilityFlag"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_id"] = (s.tmp_1); - r0 = (s.arg0).fields["_connected"] = (false); - r0 = (s.arg0).fields["playerIndex"] = (s.arg1); - r0 = (s.arg0).fields["analog"] = (false); - r0 = pxsim_numops_toBoolDecr(s.arg2); + r0 = (s.tmp_1 & 16); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["buttons"] = (s.arg2); - { step = 4; continue; } + { step = 5; continue; } case 1: - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["buttons"] = (s.tmp_1); - r0 = s.arg0.fields["playerIndex"]; + case 2: + s.tmp_2 = r0 = globals.infoState___155574; + r0 = s.tmp_2.fields["visibilityFlag"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 | 16); + s.tmp_3 = r0; + r0 = (s.tmp_2).fields["visibilityFlag"] = (s.tmp_3); + r0 = globals.infoState___155574.fields["visibilityFlag"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 & 32); s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 * 7); - s.tmp_0 = r0; - r0 = (1 + s.tmp_0); - s.leftId___93076 = (r0); - s.i___93084 = (0); - case 2: - r0 = (s.i___93084 < 7); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C88388_VT); - s.tmp_1 = r0; - s.tmp_2 = controller_Button_constructor__P88394_mk(s); - s.tmp_2.arg0 = s.tmp_1; - r0 = (s.leftId___93076 + s.i___93084); - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = -1; - s.callLocIdx = 155; s.pc = 7; return s.tmp_2; - case 7: + s.tmp_4 = r0 = globals.infoState___155574; + s.tmp_6 = info_defaultMultiplayerHeartImage__P155623_mk(s); + s.callLocIdx = 754; s.pc = 6; return s.tmp_6; + case 6: 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___93084 + 1); - s.i___93084 = (r0); - { step = 2; continue; } + s.tmp_5 = r0; + r0 = (s.tmp_4).fields["heartImage"] = (s.tmp_5); case 3: case 4: - s.i___93102 = (0); + s.tmp_0 = r0 = globals.infoState___155574; + r0 = pxsim.image.ofBuffer(_hex163028); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["multiplierImage"] = (s.tmp_1); case 5: - s.tmp_1 = r0 = s.i___93102; - r0 = s.arg0.fields["buttons"]; - s.tmp_3 = r0; - r0 = pxsim_Array__length(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - r0 = s.arg0.fields["buttons"]; - s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.i___93102); - s.tmp_4 = r0; - r0 = (s.tmp_4).fields["_owner"] = (s.arg0); - r0 = (s.i___93102 + 1); - s.i___93102 = (r0); - { step = 5; continue; } - case 6: - s.tmp_0 = controller_addController__P90371_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 156; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller_constructor__P88412.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"]} +info_initMultiHUD__P155621.info = {"start":4681,"length":393,"line":149,"column":4,"endLine":160,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"initMultiHUD","argumentNames":[]} -function controller_Controller_constructor__P88412_mk(s) { +function info_initMultiHUD__P155621_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_constructor__P88412, depth: s.depth + 1, + parent: s, fn: info_initMultiHUD__P155621, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4251,19 +5287,15 @@ function controller_Controller_constructor__P88412_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - leftId___93076: undefined, - i___93084: undefined, - i___93102: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, + tmp_6: undefined, } } +const _hex163028 = pxsim.BufferMethods.createBufferFromHex("8704030003000000010100001000000001010000") -function controller_addController__P90371(s) { +function info_defaultMultiplayerHeartImage__P155623(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4273,48 +5305,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_numops_toBoolDecr(globals._players___90370); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = pxsim_ImageMethods.isMono(globals.screen___153286); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - globals._players___90370 = (r0); + r0 = pxsim.image.ofBuffer(_hex163032); + { step = 2; continue; } case 1: + r0 = pxsim.image.ofBuffer(_hex163034); case 2: - s.tmp_0 = r0 = globals._players___90370; - r0 = s.arg0.fields["playerIndex"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); + // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.arg0); - r0 = undefined; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -controller_addController__P90371.info = {"start":6613,"length":157,"line":207,"column":4,"endLine":212,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} +info_defaultMultiplayerHeartImage__P155623.info = {"start":5678,"length":503,"line":185,"column":4,"endLine":202,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"defaultMultiplayerHeartImage","argumentNames":[]} -function controller_addController__P90371_mk(s) { +function info_defaultMultiplayerHeartImage__P155623_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_addController__P90371, depth: s.depth + 1, + parent: s, fn: info_defaultMultiplayerHeartImage__P155623, 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, } } +const _hex163032 = pxsim.BufferMethods.createBufferFromHex("870407000500000000000000100100000110000010000100011000001001000000000000") +const _hex163034 = pxsim.BufferMethods.createBufferFromHex("870407000500000000000000100100002112000010240100411200001001000000000000") -function sprites_create__P88459(s) { +function info_PlayerState_constructor__P153685(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4324,87 +5347,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___93246 = undefined; - s.sprite___93249 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 223; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.scene___93246 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(Sprite__C88501_VT); - s.tmp_0 = r0; - s.tmp_1 = Sprite_constructor__P88538_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.callLocIdx = 224; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.sprite___93249 = (s.tmp_0); - s.tmp_0 = Sprite_setKind__P88556_mk(s); - s.tmp_0.arg0 = s.sprite___93249; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 225; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = PhysicsEngine__C88644_v0_2_mk(s); - r0 = s.scene___93246.fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.sprite___93249; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C88644_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__P93264); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtcore_mkAction(1, inline__P93271); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___93249); - s.tmp_2 = helpers_arrayForEach__P86592_mk(s); - s.tmp_3 = helpers_arrayFilter__P86593_mk(s); - r0 = s.scene___93246.fields["createdHandlers"]; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 226; 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 = 228; s.pc = 5; return s.tmp_2; - case 5: - r0 = s.retval; - r0 = s.sprite___93249; + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerState__C153681_VT)) failedCast(r0); + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_create__P88459.info = {"start":890,"length":400,"line":35,"column":4,"endLine":47,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"create","argumentNames":["img","kind"]} +info_PlayerState_constructor__P153685.info = {"start":608,"length":17,"line":27,"column":8,"endLine":27,"endColumn":25,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this"]} -function sprites_create__P88459_mk(s) { +function info_PlayerState_constructor__P153685_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_create__P88459, depth: s.depth + 1, + parent: s, fn: info_PlayerState_constructor__P153685, depth: s.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___93246: undefined, - sprite___93249: undefined, arg0: undefined, - arg1: undefined, } } -function inline__P93264(s) { +function info_PlayerInfo_drawScore__P153736(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4414,24 +5381,153 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.s___163490 = undefined; + s.font___163494 = undefined; + s.offsetY___163495 = undefined; + s.num___163504 = undefined; + s.width___163508 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0.fields["kind"]; + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfo__C153710_VT)) failedCast(r0); + s.tmp_1 = info_PlayerInfo_score__P153725_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 803; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 == s.caps[0]); + r0 = (s.tmp_0 | 0); + s.s___163490 = (r0); + r0 = (s.s___163490 >= 1000000); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.offsetY___163495 = (2); + s.font___163494 = (globals.font5___153234); + { step = 2; continue; } + case 1: + s.offsetY___163495 = (1); + s.font___163494 = (globals.font8___153229); + case 2: + r0 = pxsim_numops.toString(s.s___163490); + s.num___163504 = (r0); + r0 = pxsim_String_.length(s.num___163504); + s.tmp_0 = r0; + s.tmp_2 = if_charWidth_1_mk(s); + s.tmp_2.arg0 = s.font___163494; + 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 = 804; s.pc = 4; return s.tmp_2; } + } + case 4: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0 * s.tmp_1); + s.width___163508 = (r0); + s.tmp_0 = helpers_imageFillRect__P153212_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + r0 = pxsim_ImageMethods.width(globals.screen___153286); + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.width___163508); + s.tmp_1 = r0; + r0 = (s.tmp_1 - 2); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + r0 = pxsim_ImageMethods.width(globals.screen___153286); + s.tmp_0.arg3 = r0; + s.tmp_4 = if_charHeight_1_mk(s); + s.tmp_4.arg0 = globals.font8___153229; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charHeight"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charHeight"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charHeight"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 805; s.pc = 6; return s.tmp_4; } + } + case 6: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 + 3); + s.tmp_0.arg4 = r0; + r0 = globals.infoState___155574.fields["borderColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 806; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = helpers_imageFillRect__P153212_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + r0 = pxsim_ImageMethods.width(globals.screen___153286); + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.width___163508); + s.tmp_1 = r0; + r0 = (s.tmp_1 - 1); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + r0 = pxsim_ImageMethods.width(globals.screen___153286); + s.tmp_0.arg3 = r0; + s.tmp_4 = if_charHeight_1_mk(s); + s.tmp_4.arg0 = globals.font8___153229; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charHeight"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charHeight"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charHeight"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 807; s.pc = 8; return s.tmp_4; } + } + case 8: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 + 2); + s.tmp_0.arg4 = r0; + r0 = globals.infoState___155574.fields["bgColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 808; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.tmp_0 = helpers_imagePrint__P153244_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + s.tmp_0.arg1 = s.num___163504; + r0 = pxsim_ImageMethods.width(globals.screen___153286); + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.width___163508); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.offsetY___163495; + r0 = globals.infoState___155574.fields["fontColor"]; + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.font___163494; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 809; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P93264.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +info_PlayerInfo_drawScore__P153736.info = {"start":24898,"length":1048,"line":807,"column":8,"endLine":845,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"drawScore","argumentNames":["this"]} -function inline__P93264_mk(s) { +function info_PlayerInfo_drawScore__P153736_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P93264, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_drawScore__P153736, depth: s.depth + 1, pc: 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___163490: undefined, + font___163494: undefined, + offsetY___163495: undefined, + num___163504: undefined, + width___163508: undefined, arg0: undefined, } } @@ -4439,7 +5535,7 @@ function inline__P93264_mk(s) { -function inline__P93271(s) { +function info_PlayerInfo_score__P153725(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4449,36 +5545,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.state___162858 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = if_handler_2_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - if (!s.tmp_0.arg0.vtable.iface) { - setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); - s.callLocIdx = 227; 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 = 227; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 227; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 227; s.pc = 1; return s.tmp_0; } - } + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfo__C153710_VT)) failedCast(r0); + r0 = s.arg0.fields["showScore"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = (s.arg0).fields["showScore"] = (true); case 1: + case 2: + r0 = s.arg0.fields["showPlayer"]; + 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 = (s.arg0).fields["showPlayer"] = (true); + case 3: + case 4: + s.tmp_0 = info_PlayerInfo_getState__P153723_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 780; s.pc = 7; return s.tmp_0; + case 7: r0 = s.retval; - r0 = undefined; + s.state___162858 = (r0); + r0 = s.state___162858.fields["score"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == null); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = (s.state___162858).fields["score"] = (0); + case 5: + case 6: + r0 = s.state___162858.fields["score"]; return leave(s, r0) default: oops() } } } -inline__P93271.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +info_PlayerInfo_score__P153725.info = {"start":17492,"length":314,"line":578,"column":8,"endLine":587,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"score","argumentNames":["this"]} -function inline__P93271_mk(s) { +function info_PlayerInfo_score__P153725_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P93271, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_score__P153725, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + state___162858: undefined, arg0: undefined, } } @@ -4486,7 +5606,7 @@ function inline__P93271_mk(s) { -function PhysicsEngine_addSprite__P88646(s) { +function info_PlayerInfo_drawPlayer__P153735(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4496,33 +5616,2625 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.state___163580 = undefined; + s.font___163583 = undefined; + s.score___163585 = undefined; + s.life___163586 = undefined; + s.height___163587 = undefined; + s.scoreWidth___163588 = undefined; + s.lifeWidth___163589 = undefined; + s.offsetY___163592 = undefined; + s.showScore___163593 = undefined; + s.showLife___163601 = undefined; + s.width___163669 = undefined; + s.x___163679 = undefined; + s.y___163686 = undefined; + s.bump___163719 = undefined; + s.xLoc___163744 = undefined; + s.mult___163755 = undefined; + s.pNum___163817 = undefined; + s.iconWidth___163824 = undefined; + s.iconHeight___163832 = undefined; + s.iconX___163840 = undefined; + s.iconY___163852 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C88644_VT)) failedCast(r0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -PhysicsEngine_addSprite__P88646.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__P88646_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: PhysicsEngine_addSprite__P88646, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, -} } - - - - + if (!checkSubtype(r0, info_PlayerInfo__C153710_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfo_getState__P153723_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 786; s.pc = 43; return s.tmp_0; + case 43: + r0 = s.retval; + s.state___163580 = (r0); + s.font___163583 = (globals.font5___153234); + s.height___163587 = (4); + s.scoreWidth___163588 = (0); + s.lifeWidth___163589 = (0); + s.offsetY___163592 = (2); + r0 = s.arg0.fields["showScore"]; + 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.state___163580.fields["score"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + s.showScore___163593 = (s.tmp_2); + r0 = s.arg0.fields["showLife"]; + 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.state___163580.fields["life"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); + case 4: + // jmp value (already in r0) + s.tmp_2 = r0; + s.showLife___163601 = (s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.showScore___163593); + if (!r0) { step = 5; continue; } + r0 = pxsim_String_.mkEmpty(); + s.tmp_0 = r0; + r0 = s.state___163580.fields["score"]; + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 44); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 44: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + s.score___163585 = (r0); + r0 = pxsim_String_.length(s.score___163585); + s.tmp_1 = r0; + s.tmp_3 = if_charWidth_1_mk(s); + s.tmp_3.arg0 = s.font___163583; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charWidth"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charWidth"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charWidth"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 787; s.pc = 45; return s.tmp_3; } + } + case 45: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 3); + s.scoreWidth___163588 = (r0); + s.tmp_0 = r0 = s.height___163587; + s.tmp_2 = if_charHeight_1_mk(s); + s.tmp_2.arg0 = s.font___163583; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charHeight"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charHeight"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 788; s.pc = 46; return s.tmp_2; } + } + case 46: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.height___163587 = (r0); + s.tmp_0 = r0 = s.offsetY___163592; + s.tmp_3 = if_charHeight_1_mk(s); + s.tmp_3.arg0 = s.font___163583; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charHeight"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charHeight"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charHeight"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 789; s.pc = 47; return s.tmp_3; } + } + case 47: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.offsetY___163592 = (r0); + case 5: + case 6: + r0 = pxsim_numops_toBoolDecr(s.showLife___163601); + if (!r0) { step = 9; continue; } + r0 = s.state___163580.fields["life"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } + case 7: + r0 = 0; + case 8: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_2 = r0; + if ((s.tmp_1) && (s.tmp_1).vtable) { + setupResume(s, 48); + pxsim_String__stringConv(s.tmp_1); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_1) + ""; } + case 48: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_String__concat(s.tmp_2, s.tmp_3); + s.life___163586 = (r0); + r0 = globals.infoState___155574.fields["heartImage"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_3); + s.tmp_2 = r0; + r0 = globals.infoState___155574.fields["multiplierImage"]; + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_2 + s.tmp_4); + s.tmp_1 = r0; + r0 = pxsim_String_.length(s.life___163586); + s.tmp_7 = r0; + s.tmp_9 = if_charWidth_1_mk(s); + s.tmp_9.arg0 = s.font___163583; + if (!s.tmp_9.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "charWidth"); + } else { + s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["charWidth"]; + if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["charWidth"]; } + else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } + else { s.callLocIdx = 790; s.pc = 49; return s.tmp_9; } + } + case 49: + r0 = s.retval; + s.tmp_8 = r0; + r0 = (s.tmp_7 * s.tmp_8); + s.tmp_6 = r0; + r0 = (s.tmp_1 + s.tmp_6); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 3); + s.lifeWidth___163589 = (r0); + s.tmp_0 = r0 = s.height___163587; + r0 = globals.infoState___155574.fields["heartImage"]; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.height___163587 = (r0); + case 9: + case 10: + s.tmp_0 = Math_max__P151609_mk(s); + s.tmp_0.arg0 = s.scoreWidth___163588; + s.tmp_0.arg1 = s.lifeWidth___163589; + s.callLocIdx = 791; s.pc = 50; return s.tmp_0; + case 50: + r0 = s.retval; + s.width___163669 = (r0); + s.tmp_0 = r0 = s.showScore___163593; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 11; continue; } + r0 = s.tmp_0; + { step = 12; continue; } + case 11: + r0 = s.showLife___163601; + case 12: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 13; continue; } + r0 = (s.height___163587 + 1); + s.height___163587 = (r0); + case 13: + case 14: + r0 = s.arg0.fields["left"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + r0 = s.width___163669; + { step = 16; continue; } + case 15: + r0 = 0; + case 16: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.arg0.fields["x"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.tmp_1); + s.x___163679 = (r0); + r0 = s.arg0.fields["up"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 17; continue; } + r0 = s.height___163587; + { step = 18; continue; } + case 17: + r0 = 0; + case 18: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.arg0.fields["y"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.tmp_1); + s.y___163686 = (r0); + s.tmp_0 = r0 = s.showScore___163593; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 19; continue; } + r0 = s.tmp_0; + { step = 20; continue; } + case 19: + r0 = s.showLife___163601; + case 20: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 21; continue; } + s.tmp_2 = helpers_imageFillRect__P153212_mk(s); + s.tmp_2.arg0 = globals.screen___153286; + s.tmp_2.arg1 = s.x___163679; + s.tmp_2.arg2 = s.y___163686; + s.tmp_2.arg3 = s.width___163669; + s.tmp_2.arg4 = s.height___163587; + r0 = s.arg0.fields["border"]; + s.tmp_2.arg5 = r0; + s.callLocIdx = 792; s.pc = 51; return s.tmp_2; + case 51: + r0 = s.retval; + s.tmp_0 = helpers_imageFillRect__P153212_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + r0 = (s.x___163679 + 1); + s.tmp_0.arg1 = r0; + r0 = (s.y___163686 + 1); + s.tmp_0.arg2 = r0; + r0 = (s.width___163669 - 2); + s.tmp_0.arg3 = r0; + r0 = (s.height___163587 - 2); + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["bg"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 793; s.pc = 52; return s.tmp_0; + case 52: + r0 = s.retval; + case 21: + case 22: + r0 = pxsim_numops_toBoolDecr(s.showScore___163593); + if (!r0) { step = 25; continue; } + r0 = s.arg0.fields["left"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 23; continue; } + r0 = (s.width___163669 - s.scoreWidth___163588); + { step = 24; continue; } + case 23: + r0 = 0; + case 24: + // jmp value (already in r0) + s.tmp_1 = r0; + s.bump___163719 = (s.tmp_1); + s.tmp_0 = helpers_imagePrint__P153244_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + s.tmp_0.arg1 = s.score___163585; + r0 = (s.x___163679 + 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.bump___163719); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 1); + s.tmp_0.arg2 = r0; + r0 = (s.y___163686 + 2); + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["fc"]; + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.font___163583; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 794; s.pc = 53; return s.tmp_0; + case 53: + r0 = s.retval; + case 25: + case 26: + r0 = pxsim_numops_toBoolDecr(s.showLife___163601); + if (!r0) { step = 29; continue; } + r0 = s.arg0.fields["left"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 27; continue; } + r0 = (s.width___163669 - s.lifeWidth___163589); + { step = 28; continue; } + case 27: + r0 = 0; + case 28: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.x___163679 + 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.tmp_1); + s.xLoc___163744 = (r0); + r0 = globals.infoState___155574.fields["multiplierImage"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.clone(s.tmp_0); + s.mult___163755 = (r0); + r0 = s.arg0.fields["fc"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.replace(s.mult___163755, 1, s.tmp_0); + s.tmp_0 = r0 = globals.screen___153286; + r0 = globals.infoState___155574.fields["heartImage"]; + s.tmp_1 = r0; + s.tmp_2 = r0 = s.xLoc___163744; + r0 = (s.y___163686 + s.offsetY___163592); + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_3); + s.tmp_0 = r0 = globals.screen___153286; + s.tmp_1 = r0 = s.mult___163755; + s.tmp_3 = r0 = s.xLoc___163744; + r0 = globals.infoState___155574.fields["heartImage"]; + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); + s.tmp_2 = r0; + r0 = (s.y___163686 + s.offsetY___163592); + s.tmp_9 = r0; + s.tmp_11 = if_charHeight_1_mk(s); + s.tmp_11.arg0 = s.font___163583; + if (!s.tmp_11.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "charHeight"); + } else { + s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["charHeight"]; + if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["charHeight"]; } + else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } + else { s.callLocIdx = 795; s.pc = 54; return s.tmp_11; } + } + case 54: + r0 = s.retval; + s.tmp_10 = r0; + r0 = (s.tmp_9 + s.tmp_10); + s.tmp_8 = r0; + r0 = globals.infoState___155574.fields["multiplierImage"]; + s.tmp_13 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_13); + s.tmp_12 = r0; + r0 = (s.tmp_8 - s.tmp_12); + s.tmp_7 = r0; + r0 = (s.tmp_7 - 1); + s.tmp_6 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_6); + s.tmp_0 = helpers_imagePrint__P153244_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + s.tmp_0.arg1 = s.life___163586; + s.tmp_3 = r0 = s.xLoc___163744; + r0 = globals.infoState___155574.fields["heartImage"]; + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); + s.tmp_2 = r0; + r0 = globals.infoState___155574.fields["multiplierImage"]; + s.tmp_7 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_7); + s.tmp_6 = r0; + r0 = (s.tmp_2 + s.tmp_6); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 1); + s.tmp_0.arg2 = r0; + r0 = (s.y___163686 + s.offsetY___163592); + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["fc"]; + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.font___163583; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 796; s.pc = 55; return s.tmp_0; + case 55: + r0 = s.retval; + case 29: + case 30: + r0 = s.arg0.fields["showPlayer"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 41; continue; } + r0 = pxsim_String_.mkEmpty(); + s.tmp_1 = r0; + r0 = s.arg0.fields["_player"]; + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 56); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 56: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); + s.pNum___163817 = (r0); + r0 = pxsim_String_.length(s.pNum___163817); + s.tmp_1 = r0; + s.tmp_3 = if_charWidth_1_mk(s); + s.tmp_3.arg0 = s.font___163583; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charWidth"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charWidth"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charWidth"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 797; s.pc = 57; return s.tmp_3; } + } + case 57: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 1); + s.iconWidth___163824 = (r0); + s.tmp_0 = Math_max__P151609_mk(s); + s.tmp_0.arg0 = s.height___163587; + s.tmp_2 = if_charHeight_1_mk(s); + s.tmp_2.arg0 = s.font___163583; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charHeight"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charHeight"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 798; s.pc = 59; return s.tmp_2; } + } + case 59: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 + 2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 799; s.pc = 58; return s.tmp_0; + case 58: + r0 = s.retval; + s.iconHeight___163832 = (r0); + r0 = s.arg0.fields["left"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 31; continue; } + r0 = (s.x___163679 - s.iconWidth___163824); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 1); + { step = 32; continue; } + case 31: + r0 = (s.x___163679 + s.width___163669); + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + case 32: + // jmp value (already in r0) + s.tmp_3 = r0; + s.iconX___163840 = (s.tmp_3); + s.iconY___163852 = (s.y___163686); + r0 = pxsim_numops_toBoolDecr(s.showScore___163593); + 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 = 33; continue; } + r0 = s.tmp_0; + { step = 34; continue; } + case 33: + r0 = pxsim_numops_toBoolDecr(s.showLife___163601); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 34: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 39; continue; } + r0 = s.arg0.fields["left"]; + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 35; continue; } + r0 = -1; + { step = 36; continue; } + case 35: + r0 = 1; + case 36: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = (s.iconX___163840 + s.tmp_5); + s.iconX___163840 = (r0); + r0 = s.arg0.fields["up"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 37; continue; } + r0 = (s.iconY___163852 - 3); + s.iconY___163852 = (r0); + case 37: + case 38: + case 39: + case 40: + s.tmp_0 = helpers_imageFillRect__P153212_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + s.tmp_0.arg1 = s.iconX___163840; + s.tmp_0.arg2 = s.iconY___163852; + s.tmp_0.arg3 = s.iconWidth___163824; + s.tmp_0.arg4 = s.iconHeight___163832; + r0 = s.arg0.fields["border"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 800; s.pc = 60; return s.tmp_0; + case 60: + r0 = s.retval; + s.tmp_0 = helpers_imagePrint__P153244_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + s.tmp_0.arg1 = s.pNum___163817; + r0 = (s.iconX___163840 + 1); + s.tmp_0.arg2 = r0; + s.tmp_2 = r0 = s.iconY___163852; + r0 = (s.iconHeight___163832 >> 1); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + s.tmp_6 = if_charHeight_1_mk(s); + s.tmp_6.arg0 = s.font___163583; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "charHeight"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["charHeight"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["charHeight"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 801; s.pc = 62; return s.tmp_6; } + } + case 62: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 1); + s.tmp_4 = r0; + r0 = (s.tmp_1 - s.tmp_4); + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["bg"]; + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.font___163583; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 802; s.pc = 61; return s.tmp_0; + case 61: + r0 = s.retval; + case 41: + case 42: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +info_PlayerInfo_drawPlayer__P153735.info = {"start":21253,"length":3635,"line":702,"column":8,"endLine":805,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"drawPlayer","argumentNames":["this"]} + +function info_PlayerInfo_drawPlayer__P153735_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: info_PlayerInfo_drawPlayer__P153735, depth: s.depth + 1, + pc: 0, retval: undefined, 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, + state___163580: undefined, + font___163583: undefined, + score___163585: undefined, + life___163586: undefined, + height___163587: undefined, + scoreWidth___163588: undefined, + lifeWidth___163589: undefined, + offsetY___163592: undefined, + showScore___163593: undefined, + showLife___163601: undefined, + width___163669: undefined, + x___163679: undefined, + y___163686: undefined, + bump___163719: undefined, + xLoc___163744: undefined, + mult___163755: undefined, + pNum___163817: undefined, + iconWidth___163824: undefined, + iconHeight___163832: undefined, + iconX___163840: undefined, + iconY___163852: undefined, + arg0: undefined, +} } + + + + + +function info_PlayerInfo_raiseLifeZero__P153734(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.state___163558 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfo__C153710_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfo_getState__P153723_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 783; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.state___163558 = (r0); + r0 = s.state___163558.fields["life"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== null); + 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.state___163558.fields["life"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 <= 0); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 7; continue; } + r0 = (s.state___163558).fields["life"] = (null); + r0 = s.state___163558.fields["lifeZeroHandler"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_1 = if_lifeZeroHandler_1_mk(s); + s.tmp_1.arg0 = s.state___163558; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "lifeZeroHandler"), 1); + s.callLocIdx = 784; s.pc = 10; return s.tmp_1; + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["lifeZeroHandler"]; + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["lifeZeroHandler"], 1); s.callLocIdx = 784; s.pc = 10; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 784; s.pc = 10; return s.tmp_1;; } + else { s.callLocIdx = 784; s.pc = 10; return s.tmp_1; } + } + case 10: + r0 = s.retval; + { step = 6; continue; } + case 3: + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 4; continue; } + s.tmp_0 = game_over__P154026_mk(s); + s.tmp_0.arg0 = false; + s.tmp_0.arg1 = undefined; + s.callLocIdx = 785; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + case 4: + case 5: + case 6: + case 7: + case 8: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +info_PlayerInfo_raiseLifeZero__P153734.info = {"start":20869,"length":374,"line":690,"column":8,"endLine":700,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"raiseLifeZero","argumentNames":["this","gameOver"]} + +function info_PlayerInfo_raiseLifeZero__P153734_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: info_PlayerInfo_raiseLifeZero__P153734, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + state___163558: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function info_PlayerInfo_hasLife__P153732(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.state___163477 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfo__C153710_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfo_getState__P153723_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 782; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.state___163477 = (r0); + r0 = s.state___163477.fields["life"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.state___163477.fields["life"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 !== null); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = s.tmp_3; + return leave(s, r0) + default: oops() +} } } +info_PlayerInfo_hasLife__P153732.info = {"start":20346,"length":141,"line":673,"column":8,"endLine":676,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"hasLife","argumentNames":["this"]} + +function info_PlayerInfo_hasLife__P153732_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: info_PlayerInfo_hasLife__P153732, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + state___163477: undefined, + arg0: undefined, +} } + + + + + +function info_PlayerInfo_hasScore__P153728(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.state___162870 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfo__C153710_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfo_getState__P153723_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 781; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.state___162870 = (r0); + r0 = s.state___162870.fields["score"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 !== undefined); + return leave(s, r0) + default: oops() +} } } +info_PlayerInfo_hasScore__P153728.info = {"start":18619,"length":111,"line":616,"column":8,"endLine":619,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"hasScore","argumentNames":["this"]} + +function info_PlayerInfo_hasScore__P153728_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: info_PlayerInfo_hasScore__P153728, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + state___162870: undefined, + arg0: undefined, +} } + + + + + +function helpers_arrayFilter__P151592(s) { +let r0 = s.r0, 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___159516 = undefined; + s.len___159518 = undefined; + s.i___159521 = undefined; + s.v___159526 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim_Array__mk(); + s.res___159516 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___159518 = (r0); + s.i___159521 = (0); + case 1: + r0 = (s.i___159521 < s.len___159518); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.arg0, s.i___159521); + s.v___159526 = (r0); + s.tmp_1 = lambda_3_mk(s); + s.tmp_1.argL = s.arg1; + s.tmp_1.arg0 = s.v___159526; + s.tmp_1.arg1 = s.i___159521; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 7; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__push(s.res___159516, s.v___159526); + case 2: + case 3: + r0 = (s.i___159521 + 1); + s.i___159521 = (r0); + { step = 1; continue; } + case 4: + r0 = s.res___159516; + return leave(s, r0) + default: oops() +} } } +helpers_arrayFilter__P151592.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__P151592_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: helpers_arrayFilter__P151592, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + res___159516: undefined, + len___159518: undefined, + i___159521: undefined, + v___159526: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function helpers_arrayForEach__P151591(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.len___159542 = undefined; + s.i___159545 = 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___159542 = (r0); + s.i___159545 = (0); + case 1: + r0 = (s.i___159545 < s.len___159542); + 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___159545); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.i___159545; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 6; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + r0 = (s.i___159545 + 1); + s.i___159545 = (r0); + { step = 1; continue; } + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +helpers_arrayForEach__P151591.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__P151591_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: helpers_arrayForEach__P151591, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + len___159542: undefined, + i___159545: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function scene_Scene_millis__P153927(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C153903_VT)) failedCast(r0); + r0 = s.arg0.fields["_millis"]; + return leave(s, r0) + default: oops() +} } } +scene_Scene_millis__P153927.info = {"start":6788,"length":61,"line":189,"column":8,"endLine":191,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]} + +function scene_Scene_millis__P153927_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Scene_millis__P153927, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function controller_Button_isPressed__P153396(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C153387_VT)) failedCast(r0); + r0 = s.arg0.fields["_pressed"]; + return leave(s, r0) + default: oops() +} } } +controller_Button_isPressed__P153396.info = {"start":4129,"length":57,"line":132,"column":8,"endLine":134,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} + +function controller_Button_isPressed__P153396_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Button_isPressed__P153396, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function fade_in__P218840(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + s.tmp_0 = color_startFade__P155054_mk(s); + s.tmp_0.arg0 = globals.originalPalette___155058; + s.tmp_0.arg1 = globals.Black___155069; + s.tmp_0.arg2 = s.arg0; + s.callLocIdx = 117; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 1; continue; } + s.tmp_0 = color_pauseUntilFadeDone__P155056_mk(s); + s.callLocIdx = 118; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +fade_in__P218840.info = {"start":23416,"length":173,"line":172,"column":0,"endLine":177,"endColumn":1,"fileName":"main.ts","functionName":"fade_in","argumentNames":["delay","block"]} + +function fade_in__P218840_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: fade_in__P218840, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function color_pauseUntilFadeDone__P155056(s) { +let r0 = s.r0, 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.activeFade___157327); + if (!r0) { step = 1; continue; } + s.tmp_0 = color_Fade_pauseUntilDone__P155049_mk(s); + s.tmp_0.arg0 = globals.activeFade___157327; + s.callLocIdx = 68; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +color_pauseUntilFadeDone__P155056.info = {"start":7302,"length":121,"line":258,"column":4,"endLine":262,"endColumn":5,"fileName":"pxt_modules/Color Fading/fade.ts","functionName":"pauseUntilFadeDone","argumentNames":[]} + +function color_pauseUntilFadeDone__P155056_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_pauseUntilFadeDone__P155056, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function color_Fade_pauseUntilDone__P155049(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C155035_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P175851); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = pauseUntil__P151840_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = undefined; + s.callLocIdx = 63; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = s.arg0; + return leave(s, r0) + default: oops() +} } } +color_Fade_pauseUntilDone__P155049.info = {"start":2872,"length":114,"line":102,"column":8,"endLine":105,"endColumn":9,"fileName":"pxt_modules/Color Fading/fade.ts","functionName":"pauseUntilDone","argumentNames":["this"]} + +function color_Fade_pauseUntilDone__P155049_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_Fade_pauseUntilDone__P155049, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function inline__P175851(s) { +let r0 = s.r0, 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 = color_Fade_isActive__P155039_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.callLocIdx = 62; s.pc = 1; return s.tmp_2; + case 1: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + return leave(s, r0) + default: oops() +} } } +inline__P175851.info = {"start":2927,"length":22,"line":103,"column":23,"endLine":103,"endColumn":45,"fileName":"pxt_modules/Color Fading/fade.ts","functionName":"inline","argumentNames":[]} + +function inline__P175851_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P175851, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, +} } + + + + + +function color_Fade_isActive__P155039(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C155035_VT)) failedCast(r0); + r0 = s.arg0.fields["startTime"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["duration"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 !== undefined); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (r0) { step = 3; continue; } + r0 = s.tmp_3; + { step = 4; continue; } + case 3: + r0 = s.arg0.fields["startTime"]; + s.tmp_5 = r0; + r0 = s.arg0.fields["duration"]; + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_4 = r0; + s.tmp_8 = game_runtime__P154032_mk(s); + s.callLocIdx = 98; s.pc = 5; return s.tmp_8; + case 5: + r0 = s.retval; + s.tmp_7 = r0; + r0 = (s.tmp_4 > s.tmp_7); + case 4: + // jmp value (already in r0) + s.tmp_9 = r0; + r0 = s.tmp_9; + return leave(s, r0) + default: oops() +} } } +color_Fade_isActive__P155039.info = {"start":623,"length":201,"line":23,"column":8,"endLine":27,"endColumn":9,"fileName":"pxt_modules/Color Fading/fade.ts","functionName":"isActive","argumentNames":["this"]} + +function color_Fade_isActive__P155039_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_Fade_isActive__P155039, depth: s.depth + 1, + pc: 0, retval: undefined, 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, +} } + + + + + +function pauseUntil__P151840(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_2 = lambda_1_mk(s); + s.tmp_2.argL = s.arg0; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 37; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + { step = 7; continue; } + case 3: + case 4: + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_5 = r0; + r0 = pxsim_Boolean__bang(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 5; continue; } + s.arg1 = (0); + case 5: + case 6: + s.tmp_0 = control___queuePollEvent__P151839_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 38; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + case 7: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +pauseUntil__P151840.info = {"start":2205,"length":227,"line":73,"column":0,"endLine":77,"endColumn":1,"fileName":"pxt_modules/base/poll.ts","functionName":"pauseUntil","argumentNames":["condition","timeOut"]} + +function pauseUntil__P151840_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: pauseUntil__P151840, depth: s.depth + 1, + pc: 0, retval: undefined, 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 control___queuePollEvent__P151839(s) { +let r0 = s.r0, 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.ev___162310 = 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__C155347_VT); + s.tmp_0 = r0; + s.tmp_1 = control_PollEvent_constructor__P155348_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = pxsim.control.allocateNotifyEvent(); + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = 1; + r0 = pxsim.control.millis(); + s.tmp_1.arg3 = r0; + s.tmp_1.arg4 = s.arg0; + s.tmp_1.arg5 = s.arg1; + r0 = pxsim_numops_toBoolDecr(s.arg2); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1.arg6 = r0; + s.callLocIdx = 35; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + s.ev___162310 = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___155350); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_Array__mk(); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_2, s.ev___162310); + globals._pollEventQueue___155350 = (s.tmp_2); + r0 = pxsim.control.runInParallel(control_pollEvents__P155351); + { step = 2; continue; } + case 1: + r0 = pxsim_Array__push(globals._pollEventQueue___155350, s.ev___162310); + case 2: + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 3; continue; } + s.tmp_0 = control_onEvent__P151864_mk(s); + r0 = s.ev___162310.fields["eid"]; + s.tmp_0.arg0 = r0; + r0 = s.ev___162310.fields["vid"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = 16; + s.callLocIdx = 36; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + { step = 4; continue; } + case 3: + r0 = s.ev___162310.fields["eid"]; + s.tmp_0 = r0; + r0 = s.ev___162310.fields["vid"]; + s.tmp_1 = r0; + setupResume(s, 7); + pxsim.control.waitForEvent(s.tmp_0, s.tmp_1); + checkResumeConsumed(); + return; + case 7: + r0 = s.retval; + case 4: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control___queuePollEvent__P151839.info = {"start":1262,"length":739,"line":39,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"__queuePollEvent","argumentNames":["timeOut","condition","handler"]} + +function control___queuePollEvent__P151839_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control___queuePollEvent__P151839, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + ev___162310: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function control_pollEvents__P155351(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.now___162422 = undefined; + s.i___162425 = undefined; + s.ev___162431 = undefined; + case 1: + r0 = pxsim_Array__length(globals._pollEventQueue___155350); + 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___162422 = (r0); + s.i___162425 = (0); + case 2: + s.tmp_1 = r0 = s.i___162425; + r0 = pxsim_Array__length(globals._pollEventQueue___155350); + 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___155350, s.i___162425); + s.ev___162431 = (r0); + s.tmp_1 = if_condition_1_mk(s); + s.tmp_1.arg0 = s.ev___162431; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "condition"), 1); + s.callLocIdx = 32; s.pc = 13; return s.tmp_1; + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["condition"]; + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["condition"], 1); s.callLocIdx = 32; s.pc = 13; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 32; s.pc = 13; return s.tmp_1;; } + else { s.callLocIdx = 32; s.pc = 13; return s.tmp_1; } + } + case 13: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 3: + r0 = s.ev___162431.fields["timeOut"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 > 0); + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 4; continue; } + r0 = s.tmp_2; + { step = 5; continue; } + case 4: + r0 = s.ev___162431.fields["start"]; + s.tmp_5 = r0; + r0 = (s.now___162422 - s.tmp_5); + s.tmp_4 = r0; + r0 = s.ev___162431.fields["timeOut"]; + s.tmp_6 = r0; + r0 = (s.tmp_4 > s.tmp_6); + case 5: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = s.tmp_7; + case 6: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); + if (!r0) { step = 9; continue; } + r0 = s.ev___162431.fields["eid"]; + s.tmp_9 = r0; + r0 = s.ev___162431.fields["vid"]; + s.tmp_10 = r0; + r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10); + r0 = s.ev___162431.fields["once"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_1 = helpers_arraySplice__P151582_mk(s); + s.tmp_1.arg0 = globals._pollEventQueue___155350; + s.tmp_1.arg1 = s.i___162425; + s.tmp_1.arg2 = 1; + s.callLocIdx = 33; s.pc = 14; return s.tmp_1; + case 14: + r0 = s.retval; + r0 = (s.i___162425 - 1); + s.i___162425 = (r0); + case 7: + case 8: + case 9: + case 10: + r0 = (s.i___162425 + 1); + s.i___162425 = (r0); + { step = 2; continue; } + case 11: + s.tmp_0 = pause__P151886_mk(s); + s.tmp_0.arg0 = 50; + s.callLocIdx = 34; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + { step = 1; continue; } + case 12: + globals._pollEventQueue___155350 = (undefined); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control_pollEvents__P155351.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__P155351_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_pollEvents__P155351, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + now___162422: undefined, + i___162425: undefined, + ev___162431: undefined, +} } + + + + + +function helpers_arraySplice__P151582(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.i___159582 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = (s.arg1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 5; continue; } + case 1: + case 2: + s.i___159582 = (0); + case 3: + r0 = (s.i___159582 < 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___159582 + 1); + s.i___159582 = (r0); + { step = 3; continue; } + case 4: + case 5: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +helpers_arraySplice__P151582.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__P151582_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: helpers_arraySplice__P151582, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + i___159582: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function control_PollEvent_constructor__P155348(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, control_PollEvent__C155347_VT)) failedCast(r0); + r0 = (s.arg0).fields["eid"] = (s.arg1); + r0 = (s.arg0).fields["vid"] = (s.arg2); + r0 = (s.arg0).fields["start"] = (s.arg3); + r0 = (s.arg0).fields["timeOut"] = (s.arg4); + r0 = (s.arg0).fields["condition"] = (s.arg5); + r0 = (s.arg0).fields["once"] = (s.arg6); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control_PollEvent_constructor__P155348.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__P155348_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_PollEvent_constructor__P155348, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, +} } + + + + + +function control_onEvent__P151864(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.ctx___162352 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + s.tmp_0 = control_eventContext__P151881_mk(s); + s.callLocIdx = 47; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.ctx___162352 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___162352); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.control.internalOnEvent(s.arg0, s.arg1, s.arg2, s.arg3); + { step = 2; continue; } + case 1: + s.tmp_0 = control_EventContext_registerHandler__P151878_mk(s); + s.tmp_0.arg0 = s.ctx___162352; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.arg1; + s.tmp_0.arg3 = s.arg2; + s.tmp_0.arg4 = s.arg3; + s.callLocIdx = 48; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control_onEvent__P151864.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__P151864_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_onEvent__P151864, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + ctx___162352: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + + + + +function control_eventContext__P151881(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___155376); + if (!r0) { step = 1; continue; } + s.tmp_0 = r0 = globals.eventContexts___155376; + r0 = pxsim_Array__length(globals.eventContexts___155376); + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + { step = 2; continue; } + case 1: + r0 = undefined; + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = s.tmp_3; + return leave(s, r0) + default: oops() +} } } +control_eventContext__P151881.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__P151881_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_eventContext__P151881, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, +} } + + + + + +function control_EventContext_registerHandler__P151878(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.h___162375 = undefined; + s.unnamed1476___U1 = undefined; + s.unnamed1477___U2 = undefined; + s.hn___162397 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C151868_VT)) failedCast(r0); + s.h___162375 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed1476___U1 = (r0); + s.unnamed1477___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed1477___U2; + r0 = pxsim_Array__length(s.unnamed1476___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 6; continue; } + r0 = pxsim_Array__getAt(s.unnamed1476___U1, s.unnamed1477___U2); + s.h___162375 = (r0); + r0 = s.h___162375.fields["src"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 == s.arg1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 2; continue; } + r0 = s.tmp_2; + { step = 3; continue; } + case 2: + r0 = s.h___162375.fields["value"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 == s.arg2); + case 3: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 4; continue; } + r0 = (s.h___162375).fields["flags"] = (s.arg4); + r0 = (s.h___162375).fields["handler"] = (s.arg3); + { step = 7; continue; } + case 4: + case 5: + r0 = (s.unnamed1477___U2 + 1); + s.unnamed1477___U2 = (r0); + { step = 1; continue; } + case 6: + s.unnamed1476___U1 = (undefined); + r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C155368_VT); + s.tmp_0 = r0; + s.tmp_1 = control_EventHandler_constructor__P155371_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = s.arg2; + s.tmp_1.arg3 = s.arg3; + s.tmp_1.arg4 = s.arg4; + s.callLocIdx = 60; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; + s.hn___162397 = (s.tmp_0); + r0 = s.arg0.fields["handlers"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.hn___162397); + s.tmp_0 = control_EventHandler_register__P155369_mk(s); + s.tmp_0.arg0 = s.hn___162397; + s.callLocIdx = 61; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + case 7: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control_EventContext_registerHandler__P151878.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__P151878_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_EventContext_registerHandler__P151878, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + h___162375: undefined, + unnamed1476___U1: undefined, + unnamed1477___U2: undefined, + hn___162397: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, +} } + + + + + +function control_EventHandler_constructor__P155371(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, control_EventHandler__C155368_VT)) failedCast(r0); + r0 = (s.arg0).fields["src"] = (s.arg1); + r0 = (s.arg0).fields["value"] = (s.arg2); + r0 = (s.arg0).fields["handler"] = (s.arg3); + r0 = (s.arg0).fields["flags"] = (s.arg4); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control_EventHandler_constructor__P155371.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__P155371_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_EventHandler_constructor__P155371, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, +} } + + + + + +function control_EventHandler_register__P155369(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, control_EventHandler__C155368_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P162506); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = s.arg0.fields["src"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["value"]; + s.tmp_2 = r0; + r0 = s.arg0.fields["flags"]; + s.tmp_3 = r0; + r0 = pxsim.control.internalOnEvent(s.tmp_1, s.tmp_2, s.tmp_0, s.tmp_3); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control_EventHandler_register__P155369.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__P155369_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_EventHandler_register__P155369, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, +} } + + + + + +function inline__P162506(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + r0 = s.caps[0].fields["handler"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = if_handler_1_mk(s); + s.tmp_1.arg0 = s.caps[0]; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "handler"), 1); + s.callLocIdx = 49; s.pc = 3; return s.tmp_1; + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["handler"]; + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["handler"], 1); s.callLocIdx = 49; s.pc = 3; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 49; s.pc = 3; return s.tmp_1;; } + else { s.callLocIdx = 49; s.pc = 3; return s.tmp_1; } + } + case 3: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P162506.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} + +function inline__P162506_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P162506, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, +} } + + + + + +function color_bufferToPalette__P155028(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.p___174144 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_pxtcore_mkClassInstance(color_Palette__C155014_VT); + s.tmp_0 = r0; + s.tmp_1 = color_ColorBuffer_constructor__P154977_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 = 81; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + s.p___174144 = (s.tmp_0); + r0 = (s.p___174144).fields["buf"] = (s.arg0); + r0 = s.p___174144; + return leave(s, r0) + default: oops() +} } } +color_bufferToPalette__P155028.info = {"start":10280,"length":147,"line":335,"column":4,"endLine":339,"endColumn":5,"fileName":"pxt_modules/Color Fading/color.ts","functionName":"bufferToPalette","argumentNames":["buf"]} + +function color_bufferToPalette__P155028_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_bufferToPalette__P155028, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + p___174144: undefined, + arg0: undefined, +} } + + + + + +function color_ColorBuffer_constructor__P154977(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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, color_ColorBuffer__C154974_VT)) failedCast(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 = 0; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.arg0).fields["layout"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 | 0); + s.tmp_3 = r0; + s.tmp_5 = color_ColorBuffer_stride__P154979_mk(s); + s.tmp_5.arg0 = s.arg0; + s.callLocIdx = 70; s.pc = 3; return s.tmp_5; + case 3: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_3 * s.tmp_4); + s.tmp_2 = r0; + r0 = pxsim.control.createBuffer(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["buf"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +color_ColorBuffer_constructor__P154977.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__P154977_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_ColorBuffer_constructor__P154977, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function color_ColorBuffer_stride__P154979(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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_ColorBuffer__C154974_VT)) failedCast(r0); + r0 = s.arg0.fields["layout"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 3; + { step = 2; continue; } + case 1: + r0 = 4; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.tmp_2; + return leaveAccessor(s, r0) + default: oops() +} } } +color_ColorBuffer_stride__P154979.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__P154979.isGetter = true; + +function color_ColorBuffer_stride__P154979_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_ColorBuffer_stride__P154979, 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 color_startFade__P155054(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = s.tmp_3; + { step = 4; continue; } + case 3: + s.tmp_5 = color_ColorBuffer_length__P154980_mk(s); + s.tmp_5.arg0 = s.arg0; + s.callLocIdx = 123; s.pc = 8; return s.tmp_5; + case 8: + r0 = s.retval; + s.tmp_4 = r0; + s.tmp_7 = color_ColorBuffer_length__P154980_mk(s); + s.tmp_7.arg0 = s.arg1; + s.callLocIdx = 124; s.pc = 9; return s.tmp_7; + case 9: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_4 !== s.tmp_6); + case 4: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); + if (!r0) { step = 5; continue; } + { step = 7; continue; } + case 5: + case 6: + r0 = pxsim_pxtcore_mkClassInstance(color_Fade__C155035_VT); + s.tmp_9 = r0; + r0 = undefined; + globals.activeFade___157327 = (s.tmp_9); + s.tmp_0 = color_Fade_setStartPalette__P155043_mk(s); + s.tmp_0.arg0 = globals.activeFade___157327; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 126; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + s.tmp_0 = color_Fade_setEndPalette__P155045_mk(s); + s.tmp_0.arg0 = globals.activeFade___157327; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 127; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = color_Fade_start__P155040_mk(s); + s.tmp_0.arg0 = globals.activeFade___157327; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 128; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + case 7: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +color_startFade__P155054.info = {"start":6657,"length":310,"line":238,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/Color Fading/fade.ts","functionName":"startFade","argumentNames":["start","end","duration"]} + +function color_startFade__P155054_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_startFade__P155054, depth: s.depth + 1, + pc: 0, retval: undefined, 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, + arg2: undefined, +} } + + + + + +function color_Fade_setEndPalette__P155045(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C155035_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = color__clone__P155033_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 104; s.pc = 1; return s.tmp_2; + case 1: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_endPalette"] = (s.tmp_1); + r0 = s.arg0; + return leave(s, r0) + default: oops() +} } } +color_Fade_setEndPalette__P155045.info = {"start":1647,"length":127,"line":59,"column":8,"endLine":62,"endColumn":9,"fileName":"pxt_modules/Color Fading/fade.ts","functionName":"setEndPalette","argumentNames":["this","colors"]} + +function color_Fade_setEndPalette__P155045_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_Fade_setEndPalette__P155045, 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__clone__P155033(s) { +let r0 = s.r0, 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.out___174246 = undefined; + s.i___174252 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_pxtcore_mkClassInstance(color_Palette__C155014_VT); + s.tmp_0 = r0; + s.tmp_1 = color_ColorBuffer_constructor__P154977_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_2 = color_ColorBuffer_length__P154980_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 92; s.pc = 4; return s.tmp_2; + case 4: + r0 = s.retval; + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = undefined; + s.callLocIdx = 93; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.out___174246 = (s.tmp_0); + s.i___174252 = (0); + case 1: + s.tmp_1 = r0 = s.i___174252; + s.tmp_3 = color_ColorBuffer_length__P154980_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 94; s.pc = 5; return s.tmp_3; + case 5: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_4 = color_ColorBuffer_setColor__P154982_mk(s); + s.tmp_4.arg0 = s.out___174246; + s.tmp_4.arg1 = s.i___174252; + s.tmp_5 = color_ColorBuffer_color__P154981_mk(s); + s.tmp_5.arg0 = s.arg0; + s.tmp_5.arg1 = s.i___174252; + s.callLocIdx = 95; s.pc = 7; return s.tmp_5; + case 7: + r0 = s.retval; + s.tmp_4.arg2 = r0; + s.callLocIdx = 96; s.pc = 6; return s.tmp_4; + case 6: + r0 = s.retval; + r0 = (s.i___174252 + 1); + s.i___174252 = (r0); + { step = 1; continue; } + case 2: + r0 = s.out___174246; + return leave(s, r0) + default: oops() +} } } +color__clone__P155033.info = {"start":12453,"length":200,"line":408,"column":4,"endLine":414,"endColumn":5,"fileName":"pxt_modules/Color Fading/color.ts","functionName":"_clone","argumentNames":["p"]} + +function color__clone__P155033_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color__clone__P155033, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + out___174246: undefined, + i___174252: undefined, + arg0: undefined, +} } + + + + + +function color_ColorBuffer_setColor__P154982(s) { +let r0 = s.r0, 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.s___174321 = undefined; + s.start___174323 = undefined; + s.i___174327 = 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_ColorBuffer__C154974_VT)) failedCast(r0); + r0 = (s.arg1 | 0); + s.arg1 = (r0); + r0 = (s.arg1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = color_ColorBuffer_length__P154980_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 74; s.pc = 8; return s.tmp_3; + case 8: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 >= s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + { step = 7; continue; } + case 3: + case 4: + s.tmp_5 = color_ColorBuffer_stride__P154979_mk(s); + s.tmp_5.arg0 = s.arg0; + s.callLocIdx = 75; s.pc = 9; return s.tmp_5; + case 9: + r0 = s.retval; + s.s___174321 = (r0); + r0 = (s.arg1 * s.s___174321); + s.start___174323 = (r0); + r0 = (s.s___174321 - 1); + s.i___174327 = (r0); + case 5: + r0 = (s.i___174327 >= 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___174323 + s.i___174327); + 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___174327 - 1); + s.i___174327 = (r0); + { step = 5; continue; } + case 6: + case 7: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +color_ColorBuffer_setColor__P154982.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__P154982_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_ColorBuffer_setColor__P154982, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + s___174321: undefined, + start___174323: undefined, + i___174327: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + -function Sprite_setKind__P88556(s) { + + +function color_ColorBuffer_color__P154981(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4532,135 +8244,85 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.spritesByKind___93316 = undefined; - s.overlapMap___93345 = undefined; + s.s___174281 = undefined; + s.start___174283 = undefined; + s.c___174287 = undefined; + s.i___174288 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - r0 = (s.arg1 == undefined); + if (!checkSubtype(r0, color_ColorBuffer__C154974_VT)) failedCast(r0); + r0 = (s.arg1 | 0); + s.arg1 = (r0); + r0 = (s.arg1 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.arg0.fields["_kind"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === s.arg1); + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = color_ColorBuffer_length__P154980_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 72; s.pc = 8; return s.tmp_3; + case 8: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 >= s.tmp_2); case 2: // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 3; continue; } - { step = 15; continue; } + r0 = -1; + { step = 7; continue; } case 3: case 4: - s.tmp_3 = game_currentScene__P89017_mk(s); - s.callLocIdx = 292; s.pc = 16; return s.tmp_3; - case 16: + s.tmp_5 = color_ColorBuffer_stride__P154979_mk(s); + s.tmp_5.arg0 = s.arg0; + s.callLocIdx = 73; s.pc = 9; return s.tmp_5; + case 9: r0 = s.retval; - r0 = r0.fields["spritesByKind"]; - s.spritesByKind___93316 = (r0); - r0 = s.arg0.fields["_kind"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } + s.s___174281 = (r0); + r0 = (s.arg1 * s.s___174281); + s.start___174283 = (r0); + s.c___174287 = (0); + s.i___174288 = (0); case 5: - r0 = s.arg0.fields["_kind"]; - s.tmp_2 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___93316, 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__P88603_mk(s); - r0 = s.arg0.fields["_kind"]; - s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___93316, s.tmp_5); - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.arg0; - s.callLocIdx = 293; s.pc = 17; return s.tmp_4; - case 17: - r0 = s.retval; - case 7: - case 8: - r0 = (s.arg1 >= 0); + r0 = (s.i___174288 < s.s___174281); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___93316, s.arg1); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + if (!r0) { step = 6; continue; } + r0 = (s.c___174287 << 8); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteSet__C88596_VT); + r0 = s.arg0.fields["buf"]; s.tmp_4 = r0; - s.tmp_5 = sprites_SpriteSet_constructor__P88598_mk(s); - s.tmp_5.arg0 = s.tmp_4; - s.callLocIdx = 294; s.pc = 18; return s.tmp_5; - case 18: - r0 = s.retval; - r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___93316, s.arg1, s.tmp_4); - case 9: - case 10: - s.tmp_0 = sprites_SpriteSet_add__P88601_mk(s); - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___93316, s.arg1); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 295; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - case 11: - case 12: - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 296; s.pc = 20; return s.tmp_0; - case 20: - r0 = s.retval; - r0 = r0.fields["overlapMap"]; - s.overlapMap___93345 = (r0); - r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___93345, s.arg1); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - s.tmp_3 = r0 = s.overlapMap___93345; - s.tmp_4 = r0 = s.arg1; - r0 = pxsim_Array__mk(); + r0 = (s.start___174283 + s.i___174288); s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_3, s.tmp_4, s.tmp_5); - case 13: - case 14: - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___93345, s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_kindsOverlappedWith"] = (s.tmp_1); - r0 = (s.arg0).fields["_kind"] = (s.arg1); - case 15: - r0 = undefined; + 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___174287 = (r0); + r0 = (s.i___174288 + 1); + s.i___174288 = (r0); + { step = 5; continue; } + case 6: + r0 = s.c___174287; + case 7: return leave(s, r0) default: oops() } } } -Sprite_setKind__P88556.info = {"start":10872,"length":663,"line":398,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setKind","argumentNames":["this","value"]} +color_ColorBuffer_color__P154981.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 Sprite_setKind__P88556_mk(s) { +function color_ColorBuffer_color__P154981_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setKind__P88556, depth: s.depth + 1, + parent: s, fn: color_ColorBuffer_color__P154981, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4668,8 +8330,10 @@ function Sprite_setKind__P88556_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - spritesByKind___93316: undefined, - overlapMap___93345: undefined, + s___174281: undefined, + start___174283: undefined, + c___174287: undefined, + i___174288: undefined, arg0: undefined, arg1: undefined, } } @@ -4678,7 +8342,7 @@ function Sprite_setKind__P88556_mk(s) { -function sprites_SpriteSet_remove__P88603(s) { +function color_Fade_setStartPalette__P155043(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4688,49 +8352,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___93393 = 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__C88596_VT)) failedCast(r0); - r0 = s.arg0.fields["_sprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_0, s.arg1, undefined); - s.i___93393 = (r0); - r0 = (s.i___93393 > -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_arraySplice__P86583_mk(s); - r0 = s.arg0.fields["_sprites"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___93393; - s.tmp_1.arg2 = 1; - s.callLocIdx = 437; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - r0 = true; - { step = 3; continue; } + if (!checkSubtype(r0, color_Fade__C155035_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = color__clone__P155033_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 103; s.pc = 1; return s.tmp_2; case 1: - case 2: - r0 = false; - case 3: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_startPalette"] = (s.tmp_1); + r0 = s.arg0; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_remove__P88603.info = {"start":1816,"length":235,"line":66,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"remove","argumentNames":["this","sprite"]} +color_Fade_setStartPalette__P155043.info = {"start":1352,"length":131,"line":49,"column":8,"endLine":52,"endColumn":9,"fileName":"pxt_modules/Color Fading/fade.ts","functionName":"setStartPalette","argumentNames":["this","colors"]} -function sprites_SpriteSet_remove__P88603_mk(s) { +function color_Fade_setStartPalette__P155043_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_remove__P88603, depth: s.depth + 1, + parent: s, fn: color_Fade_setStartPalette__P155043, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - i___93393: undefined, + tmp_2: undefined, arg0: undefined, arg1: undefined, } } @@ -4739,7 +8389,7 @@ function sprites_SpriteSet_remove__P88603_mk(s) { -function helpers_arraySplice__P86583(s) { +function color_Fade_start__P155040(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4749,55 +8399,155 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___93413 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = (s.arg1 < 0); + r0 = s.arg0; + if (!checkSubtype(r0, color_Fade__C155035_VT)) failedCast(r0); + s.tmp_0 = color_init__P157381_mk(s); + s.callLocIdx = 99; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = (s.arg0).fields["duration"] = (s.arg1); + s.tmp_0 = color_setPalette__P155019_mk(s); + s.tmp_1 = color_Fade_startPalette__P155037_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 100; 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 = 101; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = game_runtime__P154032_mk(s); + s.callLocIdx = 102; 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___157327 = (s.arg0); + r0 = s.arg0; + return leave(s, r0) + default: oops() +} } } +color_Fade_start__P155040.info = {"start":834,"length":258,"line":29,"column":8,"endLine":37,"endColumn":9,"fileName":"pxt_modules/Color Fading/fade.ts","functionName":"start","argumentNames":["this","duration"]} + +function color_Fade_start__P155040_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_Fade_start__P155040, 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_init__P157381(s) { +let r0 = s.r0, 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___157328); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 5; continue; } + s.tmp_2 = game_forever__P154029_mk(s); + s.tmp_2.arg0 = inline__P174410; + s.callLocIdx = 121; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 122; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + globals.currentScene___157328 = (r0); + case 1: + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +color_init__P157381.info = {"start":6049,"length":374,"line":217,"column":4,"endLine":230,"endColumn":5,"fileName":"pxt_modules/Color Fading/fade.ts","functionName":"init","argumentNames":[]} + +function color_init__P157381_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_init__P157381, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, +} } + + + + + +function inline__P174410(s) { +let r0 = s.r0, 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.finished___174412 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.activeFade___157327); + if (!r0) { step = 3; continue; } + s.tmp_0 = color_Fade_step__P155047_mk(s); + s.tmp_0.arg0 = globals.activeFade___157327; + s.callLocIdx = 120; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.finished___174412 = (r0); + r0 = pxsim_numops_toBoolDecr(s.finished___174412); + if (!r0) { step = 1; continue; } + globals.activeFade___157327 = (undefined); case 1: case 2: - s.i___93413 = (0); case 3: - r0 = (s.i___93413 < 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___93413 + 1); - s.i___93413 = (r0); - { step = 3; continue; } case 4: - case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arraySplice__P86583.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"]} +inline__P174410.info = {"start":6121,"length":236,"line":219,"column":25,"endLine":227,"endColumn":13,"fileName":"pxt_modules/Color Fading/fade.ts","functionName":"inline","argumentNames":[]} -function helpers_arraySplice__P86583_mk(s) { +function inline__P174410_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySplice__P86583, depth: s.depth + 1, + parent: s, fn: inline__P174410, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - i___93413: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, + finished___174412: undefined, } } -function sprites_SpriteSet_add__P88601(s) { +function color_Fade_step__P155047(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4807,49 +8557,158 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.time___174440 = undefined; + s.p___174446 = undefined; + s.i___174453 = undefined; + s.col___174459 = 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__C88596_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!checkSubtype(r0, color_Fade__C155035_VT)) failedCast(r0); + r0 = s.arg0.fields["_endPalette"]; + 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 = false; - { step = 5; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = s.arg0.fields["startTime"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 === undefined); case 2: - r0 = s.arg0.fields["_sprites"]; + // jmp value (already in r0) s.tmp_4 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_4, s.arg1, undefined); - s.tmp_3 = r0; - r0 = (s.tmp_3 > -1); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 3; continue; } - r0 = false; - { step = 5; continue; } + r0 = true; + { step = 9; continue; } case 3: case 4: - r0 = s.arg0.fields["_sprites"]; + s.tmp_8 = color_Fade_isActive__P155039_mk(s); + s.tmp_8.arg0 = s.arg0; + s.callLocIdx = 105; s.pc = 10; return s.tmp_8; + case 10: + r0 = s.retval; + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + s.tmp_6 = r0; + r0 = pxsim_Boolean__bang(s.tmp_6); s.tmp_5 = r0; - r0 = pxsim_Array__push(s.tmp_5, s.arg1); + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 5; continue; } + s.tmp_9 = color_setPalette__P155019_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 = 106; s.pc = 11; return s.tmp_9; + case 11: + r0 = s.retval; + r0 = (s.arg0).fields["startTime"] = (undefined); r0 = true; + { step = 9; continue; } case 5: + case 6: + s.tmp_1 = game_runtime__P154032_mk(s); + s.callLocIdx = 107; 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___174440 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(color_Palette__C155014_VT); + s.tmp_0 = r0; + s.tmp_1 = color_ColorBuffer_constructor__P154977_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_2 = color_ColorBuffer_length__P154980_mk(s); + r0 = s.arg0.fields["_startPalette"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 108; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = undefined; + s.callLocIdx = 109; s.pc = 13; return s.tmp_1; + case 13: + r0 = s.retval; + s.p___174446 = (s.tmp_0); + s.i___174453 = (0); + case 7: + s.tmp_1 = r0 = s.i___174453; + s.tmp_3 = color_ColorBuffer_length__P154980_mk(s); + s.tmp_3.arg0 = s.p___174446; + s.callLocIdx = 110; s.pc = 15; return s.tmp_3; + case 15: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.tmp_4 = color_partialColorTransition__P155030_mk(s); + s.tmp_5 = color_ColorBuffer_color__P154981_mk(s); + r0 = s.arg0.fields["_startPalette"]; + s.tmp_5.arg0 = r0; + s.tmp_5.arg1 = s.i___174453; + s.callLocIdx = 111; s.pc = 17; return s.tmp_5; + case 17: + r0 = s.retval; + s.tmp_4.arg0 = r0; + s.tmp_6 = color_ColorBuffer_color__P154981_mk(s); + r0 = s.arg0.fields["_endPalette"]; + s.tmp_6.arg0 = r0; + s.tmp_6.arg1 = s.i___174453; + s.callLocIdx = 112; 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___174440 / s.tmp_7); + s.tmp_4.arg2 = r0; + s.callLocIdx = 113; s.pc = 16; return s.tmp_4; + case 16: + r0 = s.retval; + s.col___174459 = (r0); + s.tmp_0 = color_ColorBuffer_setColor__P154982_mk(s); + s.tmp_0.arg0 = s.p___174446; + s.tmp_0.arg1 = s.i___174453; + s.tmp_0.arg2 = s.col___174459; + s.callLocIdx = 114; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + r0 = (s.i___174453 + 1); + s.i___174453 = (r0); + { step = 7; continue; } + case 8: + s.tmp_0 = color_setPalette__P155019_mk(s); + s.tmp_0.arg0 = s.p___174446; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = 0; + s.callLocIdx = 115; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + r0 = false; + case 9: return leave(s, r0) default: oops() } } } -sprites_SpriteSet_add__P88601.info = {"start":1027,"length":263,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"add","argumentNames":["this","sprite"]} +color_Fade_step__P155047.info = {"start":1934,"length":818,"line":69,"column":8,"endLine":95,"endColumn":9,"fileName":"pxt_modules/Color Fading/fade.ts","functionName":"step","argumentNames":["this"]} -function sprites_SpriteSet_add__P88601_mk(s) { +function color_Fade_step__P155047_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_add__P88601, depth: s.depth + 1, + parent: s, fn: color_Fade_step__P155047, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4857,15 +8716,22 @@ function sprites_SpriteSet_add__P88601_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + time___174440: undefined, + p___174446: undefined, + i___174453: undefined, + col___174459: undefined, arg0: undefined, - arg1: undefined, } } -function sprites_SpriteSet_contains__P88604(s) { +function color_partialColorTransition__P155030(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4875,39 +8741,127 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.r1___174492 = undefined; + s.g1___174496 = undefined; + s.b1___174500 = undefined; + s.rDiff___174504 = undefined; + s.gDiff___174510 = undefined; + s.bDiff___174516 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } + r0 = (s.arg2 <= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C88596_VT)) failedCast(r0); - r0 = s.arg0.fields["_sprites"]; + { step = 5; continue; } + { step = 4; continue; } + case 1: + r0 = (s.arg2 >= 1); s.tmp_1 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_1, s.arg1, undefined); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = s.arg1; + { step = 5; continue; } + case 2: + case 3: + case 4: + r0 = (s.arg0 >> 16); + s.tmp_2 = r0; + r0 = (s.tmp_2 & 255); + s.r1___174492 = (r0); + r0 = (s.arg0 >> 8); s.tmp_0 = r0; - r0 = (s.tmp_0 > -1); + r0 = (s.tmp_0 & 255); + s.g1___174496 = (r0); + r0 = (s.arg0 >> 0); + s.tmp_0 = r0; + r0 = (s.tmp_0 & 255); + s.b1___174500 = (r0); + r0 = (s.arg1 >> 16); + s.tmp_1 = r0; + r0 = (s.tmp_1 & 255); + s.tmp_0 = r0; + r0 = (s.tmp_0 - s.r1___174492); + s.rDiff___174504 = (r0); + r0 = (s.arg1 >> 8); + s.tmp_1 = r0; + r0 = (s.tmp_1 & 255); + s.tmp_0 = r0; + r0 = (s.tmp_0 - s.g1___174496); + s.gDiff___174510 = (r0); + r0 = (s.arg1 >> 0); + s.tmp_1 = r0; + r0 = (s.tmp_1 & 255); + s.tmp_0 = r0; + r0 = (s.tmp_0 - s.b1___174500); + s.bDiff___174516 = (r0); + s.tmp_0 = color_toColor__P157324_mk(s); + s.tmp_1 = r0 = s.r1___174492; + r0 = (s.rDiff___174504 * 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___174496; + r0 = (s.gDiff___174510 * 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___174500; + r0 = (s.bDiff___174516 * 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 = 88; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + case 5: return leave(s, r0) default: oops() } } } -sprites_SpriteSet_contains__P88604.info = {"start":2162,"length":100,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"contains","argumentNames":["this","sprite"]} +color_partialColorTransition__P155030.info = {"start":11146,"length":669,"line":364,"column":4,"endLine":384,"endColumn":5,"fileName":"pxt_modules/Color Fading/color.ts","functionName":"partialColorTransition","argumentNames":["start","end","percentage"]} -function sprites_SpriteSet_contains__P88604_mk(s) { +function color_partialColorTransition__P155030_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_contains__P88604, depth: s.depth + 1, + parent: s, fn: color_partialColorTransition__P155030, depth: s.depth + 1, pc: 0, retval: undefined, 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, + r1___174492: undefined, + g1___174496: undefined, + b1___174500: undefined, + rDiff___174504: undefined, + gDiff___174510: undefined, + bDiff___174516: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function sprites_SpriteSet_constructor__P88598(s) { +function color_toColor__P157324(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4919,35 +8873,49 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C88596_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + r0 = (s.arg0 & 255); + s.tmp_2 = r0; + r0 = (s.tmp_2 << 16); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_sprites"] = (s.tmp_1); - r0 = undefined; + r0 = (s.arg1 & 255); + s.tmp_4 = r0; + r0 = (s.tmp_4 << 8); + s.tmp_3 = r0; + r0 = (s.tmp_1 | s.tmp_3); + s.tmp_0 = r0; + r0 = (s.arg2 & 255); + s.tmp_5 = r0; + r0 = (s.tmp_0 | s.tmp_5); return leave(s, r0) default: oops() } } } -sprites_SpriteSet_constructor__P88598.info = {"start":488,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]} +color_toColor__P157324.info = {"start":12315,"length":132,"line":404,"column":4,"endLine":406,"endColumn":5,"fileName":"pxt_modules/Color Fading/color.ts","functionName":"toColor","argumentNames":["r","g","b"]} -function sprites_SpriteSet_constructor__P88598_mk(s) { +function color_toColor__P157324_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_constructor__P88598, depth: s.depth + 1, + parent: s, fn: color_toColor__P157324, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function Sprite_constructor__P88538(s) { +function color_unpackB__P154968(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4959,137 +8927,100 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_constructor__P88345_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 247; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___88287); - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.arg1); - s.tmp_5 = r0; - r0 = (s.tmp_4 - s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_6 = r0; - r0 = (s.tmp_6 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.height(globals.screen___88287); - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(s.arg1); - s.tmp_5 = r0; - r0 = (s.tmp_4 - s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_6 = r0; - r0 = (s.tmp_6 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = s.arg0.fields["_x"]; + r0 = (s.arg0 >> 0); s.tmp_0 = r0; - r0 = (s.arg0).fields["_lastX"] = (s.tmp_0); - r0 = s.arg0.fields["_y"]; + r0 = (s.tmp_0 & 255); + return leave(s, r0) + default: oops() +} } } +color_unpackB__P154968.info = {"start":6324,"length":86,"line":200,"column":4,"endLine":202,"endColumn":5,"fileName":"pxt_modules/color/colors.ts","functionName":"unpackB","argumentNames":["rgb"]} + +function color_unpackB__P154968_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_unpackB__P154968, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function color_unpackG__P154967(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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 >> 8); s.tmp_0 = r0; - r0 = (s.arg0).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = Sprite_vx__P88515_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 250; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = Sprite_vy__P88517_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 251; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = Sprite_ax__P88519_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 252; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = Sprite_ay__P88521_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 253; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = Sprite_fx__P88523_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 254; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = Sprite_fy__P88525_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 255; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - r0 = (s.arg0).fields["flags"] = (0); - s.tmp_0 = Sprite_setImage__P88541_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 256; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.tmp_0 = Sprite_setKind__P88556_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = -1; - s.callLocIdx = 257; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - r0 = (s.arg0).fields["layer"] = (1); - r0 = (s.arg0).fields["lifespan"] = (undefined); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_overlappers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_obstacles"] = (s.tmp_1); - r0 = undefined; + r0 = (s.tmp_0 & 255); + return leave(s, r0) + default: oops() +} } } +color_unpackG__P154967.info = {"start":6233,"length":86,"line":197,"column":4,"endLine":199,"endColumn":5,"fileName":"pxt_modules/color/colors.ts","functionName":"unpackG","argumentNames":["rgb"]} + +function color_unpackG__P154967_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_unpackG__P154967, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function color_unpackR__P154966(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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 >> 16); + s.tmp_0 = r0; + r0 = (s.tmp_0 & 255); return leave(s, r0) default: oops() } } } -Sprite_constructor__P88538.info = {"start":5178,"length":618,"line":202,"column":4,"endLine":222,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]} +color_unpackR__P154966.info = {"start":6141,"length":87,"line":194,"column":4,"endLine":196,"endColumn":5,"fileName":"pxt_modules/color/colors.ts","functionName":"unpackR","argumentNames":["rgb"]} -function Sprite_constructor__P88538_mk(s) { +function color_unpackR__P154966_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_constructor__P88538, depth: s.depth + 1, + parent: s, fn: color_unpackR__P154966, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, arg0: undefined, - arg1: undefined, } } -function Sprite_setImage__P88541(s) { +function game_forever__P154029(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5101,49 +9032,108 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); + r0 = pxsim_numops_toBoolDecr(globals.foreverRunning___155703); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 3; continue; } + globals.foreverRunning___155703 = (true); + r0 = pxsim.control.runInParallel(inline__P174599); case 1: case 2: - r0 = (s.arg0).fields["_image"] = (s.arg1); - s.tmp_0 = Sprite_setHitbox__P88542_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 258; s.pc = 4; return s.tmp_0; + r0 = pxsim_pxtcore_mkClassInstance(scene_GameForeverHandler__C153882_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_GameForeverHandler_constructor__P153884_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.callLocIdx = 30; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.tmp_3 = game_currentScene__P154016_mk(s); + s.callLocIdx = 29; s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; - case 3: + r0 = r0.fields["gameForeverHandlers"]; + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_2, s.tmp_0); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_setImage__P88541.info = {"start":6825,"length":133,"line":252,"column":4,"endLine":256,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setImage","argumentNames":["this","img"]} +game_forever__P154029.info = {"start":8610,"length":820,"line":277,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"forever","argumentNames":["action"]} -function Sprite_setImage__P88541_mk(s) { +function game_forever__P154029_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setImage__P88541, depth: s.depth + 1, + parent: s, fn: game_forever__P154029, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, - arg1: undefined, } } -function Sprite_setHitbox__P88542(s) { +function inline__P174599(s) { +let r0 = s.r0, 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.handlers___174601 = undefined; + case 1: + r0 = pxsim_numops_toBoolDecr(1); + if (!r0) { step = 2; continue; } + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 25; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = r0.fields["gameForeverHandlers"]; + s.handlers___174601 = (r0); + s.tmp_0 = helpers_arrayForEach__P151591_mk(s); + s.tmp_0.arg0 = s.handlers___174601; + s.tmp_0.arg1 = inline__P174607; + s.callLocIdx = 27; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = pause__P151886_mk(s); + s.tmp_0.arg0 = 20; + s.callLocIdx = 28; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + { step = 1; continue; } + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P174599.info = {"start":8762,"length":535,"line":280,"column":34,"endLine":294,"endColumn":13,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} + +function inline__P174599_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P174599, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + handlers___174601: undefined, +} } + + + + + +function inline__P174607(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5153,30 +9143,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.newHitBox___93489 = undefined; - s.oMinX___93497 = undefined; - s.oMinY___93501 = undefined; - s.oMaxX___93505 = undefined; - s.oMaxY___93512 = undefined; - s.nMinX___93519 = undefined; - s.nMinY___93522 = undefined; - s.nMaxX___93525 = undefined; - s.nMaxY___93531 = undefined; - s.xDiff___93537 = undefined; - s.yDiff___93548 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - s.tmp_0 = game_calculateHitBox__P88455_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 259; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.newHitBox___93489 = (r0); - r0 = s.arg0.fields["_hitbox"]; + r0 = s.arg0.fields["lock"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; @@ -5184,126 +9155,27 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___93489); - { step = 7; continue; } + r0 = (s.arg0).fields["lock"] = (true); + r0 = pxsim_pxtcore_mkAction(1, inline__P174616); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim.control.runInParallel(s.tmp_0); case 1: case 2: - r0 = s.arg0.fields["_hitbox"]; - r0 = r0.fields["ox"]; - s.oMinX___93497 = (r0); - r0 = s.arg0.fields["_hitbox"]; - r0 = r0.fields["oy"]; - s.oMinY___93501 = (r0); - r0 = s.arg0.fields["_hitbox"]; - r0 = r0.fields["width"]; - s.tmp_0 = r0; - r0 = (s.oMinX___93497 + s.tmp_0); - s.oMaxX___93505 = (r0); - r0 = s.arg0.fields["_hitbox"]; - r0 = r0.fields["height"]; - s.tmp_0 = r0; - r0 = (s.oMinY___93501 + s.tmp_0); - s.oMaxY___93512 = (r0); - r0 = s.newHitBox___93489.fields["ox"]; - s.nMinX___93519 = (r0); - r0 = s.newHitBox___93489.fields["oy"]; - s.nMinY___93522 = (r0); - r0 = s.newHitBox___93489.fields["width"]; - s.tmp_0 = r0; - r0 = (s.nMinX___93519 + s.tmp_0); - s.nMaxX___93525 = (r0); - r0 = s.newHitBox___93489.fields["height"]; - s.tmp_0 = r0; - r0 = (s.nMinY___93522 + s.tmp_0); - s.nMaxY___93531 = (r0); - s.tmp_1 = Fx_abs__P86645_mk(s); - r0 = (s.oMinX___93497 - s.nMinX___93519); - s.tmp_1.arg0 = r0; - s.callLocIdx = 265; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P86645_mk(s); - r0 = (s.oMaxX___93505 - s.nMaxX___93525); - s.tmp_3.arg0 = r0; - s.callLocIdx = 267; s.pc = 10; return s.tmp_3; - case 10: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - s.xDiff___93537 = (r0); - s.tmp_1 = Fx_abs__P86645_mk(s); - r0 = (s.oMinY___93501 - s.nMinY___93522); - s.tmp_1.arg0 = r0; - s.callLocIdx = 270; s.pc = 11; return s.tmp_1; - case 11: - r0 = s.retval; - s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P86645_mk(s); - r0 = (s.oMaxY___93512 - s.nMaxY___93531); - s.tmp_3.arg0 = r0; - s.callLocIdx = 272; s.pc = 12; return s.tmp_3; - case 12: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - s.yDiff___93548 = (r0); - r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___93489); - r0 = (s.xDiff___93537 <= 512); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.arg0.fields["_hitbox"]; - s.tmp_1 = r0; - r0 = (s.tmp_1).fields["ox"] = (s.oMinX___93497); - r0 = s.arg0.fields["_hitbox"]; - s.tmp_0 = r0; - r0 = (s.oMaxX___93505 - s.oMinX___93497); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["width"] = (s.tmp_1); - case 3: - case 4: - r0 = (s.yDiff___93548 <= 512); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.arg0.fields["_hitbox"]; - s.tmp_1 = r0; - r0 = (s.tmp_1).fields["oy"] = (s.oMinY___93501); - r0 = s.arg0.fields["_hitbox"]; - s.tmp_0 = r0; - r0 = (s.oMaxY___93512 - s.oMinY___93501); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["height"] = (s.tmp_1); - case 5: - case 6: - case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_setHitbox__P88542.info = {"start":6964,"length":1296,"line":258,"column":4,"endLine":297,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]} +inline__P174607.info = {"start":8913,"length":319,"line":283,"column":37,"endLine":291,"endColumn":21,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["h"]} -function Sprite_setHitbox__P88542_mk(s) { +function inline__P174607_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setHitbox__P88542, depth: s.depth + 1, + parent: s, fn: inline__P174607, depth: s.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___93489: undefined, - oMinX___93497: undefined, - oMinY___93501: undefined, - oMaxX___93505: undefined, - oMaxY___93512: undefined, - nMinX___93519: undefined, - nMinY___93522: undefined, - nMaxX___93525: undefined, - nMaxY___93531: undefined, - xDiff___93537: undefined, - yDiff___93548: undefined, arg0: undefined, } } @@ -5311,7 +9183,7 @@ function Sprite_setHitbox__P88542_mk(s) { -function game_calculateHitBox__P88455(s) { +function inline__P174616(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5321,140 +9193,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___93610 = undefined; - s.minX___93613 = undefined; - s.minY___93616 = undefined; - s.maxX___93619 = undefined; - s.maxY___93620 = undefined; - s.c___93621 = undefined; - s.r___93627 = undefined; - s.width___93658 = undefined; - s.height___93664 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; + s.tmp_0 = if_handler_1_mk(s); + 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 = 26; 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 = 26; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 26; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 26; s.pc = 1; return s.tmp_0; } } - r0 = s.arg0.fields["_image"]; - s.i___93610 = (r0); - r0 = pxsim_ImageMethods.width(s.i___93610); - s.minX___93613 = (r0); - r0 = pxsim_ImageMethods.height(s.i___93610); - s.minY___93616 = (r0); - s.maxX___93619 = (0); - s.maxY___93620 = (0); - s.c___93621 = (0); - case 1: - s.tmp_1 = r0 = s.c___93621; - r0 = pxsim_ImageMethods.width(s.i___93610); - 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___93627 = (0); - case 2: - s.tmp_1 = r0 = s.r___93627; - r0 = pxsim_ImageMethods.height(s.i___93610); - 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___93610, s.c___93621, s.r___93627); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - s.tmp_4 = Math_min__P86611_mk(s); - s.tmp_4.arg0 = s.minX___93613; - s.tmp_4.arg1 = s.c___93621; - s.callLocIdx = 218; s.pc = 7; return s.tmp_4; - case 7: - r0 = s.retval; - s.minX___93613 = (r0); - s.tmp_0 = Math_min__P86611_mk(s); - s.tmp_0.arg0 = s.minY___93616; - s.tmp_0.arg1 = s.r___93627; - s.callLocIdx = 219; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.minY___93616 = (r0); - s.tmp_0 = Math_max__P86610_mk(s); - s.tmp_0.arg0 = s.maxX___93619; - s.tmp_0.arg1 = s.c___93621; - s.callLocIdx = 220; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.maxX___93619 = (r0); - s.tmp_0 = Math_max__P86610_mk(s); - s.tmp_0.arg0 = s.maxY___93620; - s.tmp_0.arg1 = s.r___93627; - s.callLocIdx = 221; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - s.maxY___93620 = (r0); - case 3: - case 4: - r0 = (s.r___93627 + 1); - s.r___93627 = (r0); - { step = 2; continue; } - case 5: - r0 = (s.c___93621 + 1); - s.c___93621 = (r0); - { step = 1; continue; } - case 6: - r0 = (s.maxX___93619 - s.minX___93613); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - s.width___93658 = (r0); - r0 = (s.maxY___93620 - s.minY___93616); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - s.height___93664 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C88444_VT); - s.tmp_0 = r0; - s.tmp_1 = game_Hitbox_constructor__P88450_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.width___93658; - s.tmp_1.arg3 = s.height___93664; - s.tmp_1.arg4 = s.minX___93613; - s.tmp_1.arg5 = s.minY___93616; - s.callLocIdx = 222; s.pc = 11; return s.tmp_1; - case 11: + case 1: r0 = s.retval; - r0 = s.tmp_0; + r0 = (s.caps[0]).fields["lock"] = (false); + r0 = undefined; return leave(s, r0) default: oops() } } } -game_calculateHitBox__P88455.info = {"start":894,"length":684,"line":40,"column":4,"endLine":62,"endColumn":5,"fileName":"pxt_modules/game/hitbox.ts","functionName":"calculateHitBox","argumentNames":["s"]} +inline__P174616.info = {"start":9052,"length":130,"line":286,"column":50,"endLine":289,"endColumn":29,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} -function game_calculateHitBox__P88455_mk(s) { +function inline__P174616_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_calculateHitBox__P88455, depth: s.depth + 1, + parent: s, fn: inline__P174616, depth: s.depth + 1, pc: 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___93610: undefined, - minX___93613: undefined, - minY___93616: undefined, - maxX___93619: undefined, - maxY___93620: undefined, - c___93621: undefined, - r___93627: undefined, - width___93658: undefined, - height___93664: undefined, - arg0: undefined, } } -function Sprite_image__P88540(s) { +function scene_GameForeverHandler_constructor__P153884(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5466,30 +9237,32 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, scene_GameForeverHandler__C153882_VT)) failedCast(r0); + r0 = (s.arg0).fields["handler"] = (s.arg1); + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_image__P88540.info = {"start":6549,"length":54,"line":242,"column":4,"endLine":244,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"image","argumentNames":["this"]} -Sprite_image__P88540.isGetter = true; +scene_GameForeverHandler_constructor__P153884.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 Sprite_image__P88540_mk(s) { +function scene_GameForeverHandler_constructor__P153884_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_image__P88540, depth: s.depth + 1, + parent: s, fn: scene_GameForeverHandler_constructor__P153884, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, + arg1: undefined, } } -function game_Hitbox_constructor__P88450(s) { +function color_Fade_startPalette__P155037(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5501,67 +9274,52 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C88444_VT)) failedCast(r0); - r0 = (s.arg0).fields["parent"] = (s.arg1); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg2 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["width"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg3 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["height"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg4 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["ox"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg5 * 256); + if (!checkSubtype(r0, color_Fade__C155035_VT)) failedCast(r0); + r0 = s.arg0.fields["_startPalette"]; s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["oy"] = (s.tmp_1); - r0 = undefined; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_3 = r0 = s.arg0; + s.tmp_5 = color_currentPalette__P155032_mk(s); + s.callLocIdx = 97; s.pc = 3; return s.tmp_5; + case 3: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["_startPalette"] = (s.tmp_4); + case 1: + case 2: + r0 = s.arg0.fields["_startPalette"]; return leave(s, r0) default: oops() } } } -game_Hitbox_constructor__P88450.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"]} +color_Fade_startPalette__P155037.info = {"start":233,"length":189,"line":9,"column":8,"endLine":14,"endColumn":9,"fileName":"pxt_modules/Color Fading/fade.ts","functionName":"startPalette","argumentNames":["this"]} -function game_Hitbox_constructor__P88450_mk(s) { +function color_Fade_startPalette__P155037_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_constructor__P88450, depth: s.depth + 1, + parent: s, fn: color_Fade_startPalette__P155037, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function Math_min__P86611(s) { +function color_currentPalette__P155032(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5571,41 +9329,61 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = (s.arg0 <= s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + s.p___174230 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.currentColors___157320); if (!r0) { step = 1; continue; } - r0 = s.arg0; + r0 = pxsim_pxtcore_mkClassInstance(color_Palette__C155014_VT); + s.tmp_0 = r0; + s.tmp_1 = color_ColorBuffer_constructor__P154977_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_2 = color_availableColors__P155025_mk(s); + s.callLocIdx = 89; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = undefined; + s.callLocIdx = 90; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + s.p___174230 = (s.tmp_0); + s.tmp_0 = r0 = s.p___174230; + r0 = pxsim.BufferMethods.slice(globals.currentColors___157320, 0, -1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["buf"] = (s.tmp_1); + r0 = s.p___174230; { step = 3; continue; } + { step = 2; continue; } case 1: + s.tmp_0 = color__clone__P155033_mk(s); + s.tmp_0.arg0 = globals.originalPalette___155058; + s.callLocIdx = 91; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + { step = 3; continue; } case 2: - r0 = s.arg1; + r0 = undefined; case 3: return leave(s, r0) default: oops() } } } -Math_min__P86611.info = {"start":15790,"length":105,"line":538,"column":4,"endLine":541,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"min","argumentNames":["a","b"]} +color_currentPalette__P155032.info = {"start":11988,"length":258,"line":393,"column":4,"endLine":401,"endColumn":5,"fileName":"pxt_modules/Color Fading/color.ts","functionName":"currentPalette","argumentNames":[]} -function Math_min__P86611_mk(s) { +function color_currentPalette__P155032_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_min__P86611, depth: s.depth + 1, + parent: s, fn: color_currentPalette__P155032, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, - arg1: undefined, + tmp_1: undefined, + tmp_2: undefined, + p___174230: undefined, } } -function Math_max__P86610(s) { +function color_availableColors__P155025(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5615,41 +9393,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.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; } + s.tmp_0 = color_ColorBuffer_length__P154980_mk(s); + s.tmp_0.arg0 = globals.originalPalette___155058; + s.callLocIdx = 80; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = s.arg1; - case 3: + r0 = s.retval; return leave(s, r0) default: oops() } } } -Math_max__P86610.info = {"start":15575,"length":105,"line":529,"column":4,"endLine":532,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"max","argumentNames":["a","b"]} +color_availableColors__P155025.info = {"start":9742,"length":88,"line":317,"column":4,"endLine":319,"endColumn":5,"fileName":"pxt_modules/Color Fading/color.ts","functionName":"availableColors","argumentNames":[]} -function Math_max__P86610_mk(s) { +function color_availableColors__P155025_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_max__P86610, depth: s.depth + 1, + parent: s, fn: color_availableColors__P155025, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, - arg1: undefined, } } -function Fx_abs__P86645(s) { +function color_Fade_constructor__P155036(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5663,30 +9429,19 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (s.arg0 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (0 - s.arg0); - { step = 3; continue; } - { step = 2; continue; } - case 1: r0 = s.arg0; - { step = 3; continue; } - case 2: + if (!checkSubtype(r0, color_Fade__C155035_VT)) failedCast(r0); r0 = undefined; - case 3: return leave(s, r0) default: oops() } } } -Fx_abs__P86645.info = {"start":1506,"length":164,"line":44,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"abs","argumentNames":["a"]} +color_Fade_constructor__P155036.info = {"start":206,"length":17,"line":7,"column":8,"endLine":7,"endColumn":25,"fileName":"pxt_modules/Color Fading/fade.ts","functionName":"inline","argumentNames":["this"]} -function Fx_abs__P86645_mk(s) { +function color_Fade_constructor__P155036_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_abs__P86645, depth: s.depth + 1, + parent: s, fn: color_Fade_constructor__P155036, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -5694,7 +9449,7 @@ function Fx_abs__P86645_mk(s) { -function Fx_sub__P86639(s) { +function color_ColorBuffer_length__P154980(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5706,29 +9461,44 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 - s.arg1); - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, color_ColorBuffer__C154974_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__P154979_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 71; s.pc = 1; return s.tmp_3; + case 1: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_2); + return leaveAccessor(s, r0) default: oops() } } } -Fx_sub__P86639.info = {"start":749,"length":118,"line":26,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"sub","argumentNames":["a","b"]} +color_ColorBuffer_length__P154980.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__P154980.isGetter = true; -function Fx_sub__P86639_mk(s) { +function color_ColorBuffer_length__P154980_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_sub__P86639, depth: s.depth + 1, + parent: s, fn: color_ColorBuffer_length__P154980, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, - arg1: undefined, } } -function Fx_add__P86637(s) { +function tiles_tilemapRows__P155159(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5738,31 +9508,56 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = (s.arg0 + s.arg1); + s.tm___160463 = undefined; + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 1481; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = r0.fields["tileMap"]; + s.tm___160463 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tm___160463); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 0; + { step = 3; continue; } + case 1: + case 2: + s.tmp_3 = tiles_TileMap_areaHeight__P153808_mk(s); + s.tmp_3.arg0 = s.tm___160463; + s.callLocIdx = 1482; s.pc = 5; return s.tmp_3; + case 5: + r0 = s.retval; + s.tmp_2 = r0; + r0 = s.tm___160463.fields["_scale"]; + s.tmp_4 = r0; + r0 = (s.tmp_2 >> s.tmp_4); + case 3: return leave(s, r0) default: oops() } } } -Fx_add__P86637.info = {"start":511,"length":118,"line":20,"column":4,"endLine":22,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"add","argumentNames":["a","b"]} +tiles_tilemapRows__P155159.info = {"start":14099,"length":170,"line":403,"column":4,"endLine":408,"endColumn":5,"fileName":"pxt_modules/tilemaps/tilemap.ts","functionName":"tilemapRows","argumentNames":[]} -function Fx_add__P86637_mk(s) { +function tiles_tilemapRows__P155159_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_add__P86637, depth: s.depth + 1, + parent: s, fn: tiles_tilemapRows__P155159, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tm___160463: undefined, } } -function Sprite_fy__P88525(s) { +function tiles_TileMap_areaHeight__P153808(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5774,34 +9569,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, Sprite__C88501_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P86610_mk(s); - s.tmp_3.arg0 = 0; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 245; s.pc = 1; return s.tmp_3; - case 1: - r0 = s.retval; + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["_map"]; s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); + r0 = s.tmp_2.fields["_height"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_fy"] = (s.tmp_1); - r0 = undefined; + r0 = s.arg0.fields["_scale"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 << s.tmp_3); + { step = 2; continue; } + case 1: + r0 = 0; + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; return leave(s, r0) default: oops() } } } -Sprite_fy__P88525.info = {"start":4057,"length":64,"line":151,"column":4,"endLine":153,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this","v"]} +tiles_TileMap_areaHeight__P153808.info = {"start":6794,"length":93,"line":247,"column":8,"endLine":249,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} -function Sprite_fy__P88525_mk(s) { +function tiles_TileMap_areaHeight__P153808_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fy__P88525, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaHeight__P153808, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5809,14 +9607,13 @@ function Sprite_fy__P88525_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function Sprite_fy__P88524(s) { +function tiles_TileMapData_height__P153791(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5831,22 +9628,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - r0 = s.arg0.fields["_fy"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); + if (!checkSubtype(r0, tiles_TileMapData__C153788_VT)) failedCast(r0); + r0 = s.arg0.fields["_height"]; return leaveAccessor(s, r0) default: oops() } } } -Sprite_fy__P88524.info = {"start":3895,"length":60,"line":146,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this"]} -Sprite_fy__P88524.isGetter = true; +tiles_TileMapData_height__P153791.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__P153791.isGetter = true; -function Sprite_fy__P88524_mk(s) { +function tiles_TileMapData_height__P153791_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fy__P88524, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_height__P153791, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -5854,7 +9648,7 @@ function Sprite_fy__P88524_mk(s) { -function Sprite_fx__P88523(s) { +function tiles_TileMap_scale__P153803(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5866,49 +9660,101 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P86610_mk(s); - s.tmp_3.arg0 = 0; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 242; s.pc = 1; return s.tmp_3; + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); + r0 = s.arg0.fields["_scale"]; + return leaveAccessor(s, r0) + default: oops() +} } } +tiles_TileMap_scale__P153803.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__P153803.isGetter = true; + +function tiles_TileMap_scale__P153803_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_TileMap_scale__P153803, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function tiles_tilemapColumns__P155158(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.tm___166833 = undefined; + s.height___166839 = undefined; + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 1476; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = r0.fields["tileMap"]; + s.tm___166833 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tm___166833); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 0; + { step = 3; continue; } case 1: + case 2: + s.tmp_3 = tiles_TileMap_areaHeight__P153808_mk(s); + s.tmp_3.arg0 = s.tm___166833; + s.callLocIdx = 1477; s.pc = 5; return s.tmp_3; + case 5: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); + r0 = s.tm___166833.fields["_scale"]; s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_fx"] = (s.tmp_1); - r0 = undefined; + r0 = (s.tmp_2 >> s.tmp_4); + s.height___166839 = (r0); + s.tmp_1 = tiles_TileMap_areaWidth__P153807_mk(s); + s.tmp_1.arg0 = s.tm___166833; + s.callLocIdx = 1479; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.tm___166833.fields["_scale"]; + s.tmp_2 = r0; + r0 = (s.tmp_0 >> s.tmp_2); + case 3: return leave(s, r0) default: oops() } } } -Sprite_fx__P88523.info = {"start":3714,"length":64,"line":141,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this","v"]} +tiles_tilemapColumns__P155158.info = {"start":13660,"length":225,"line":389,"column":4,"endLine":395,"endColumn":5,"fileName":"pxt_modules/tilemaps/tilemap.ts","functionName":"tilemapColumns","argumentNames":[]} -function Sprite_fx__P88523_mk(s) { +function tiles_tilemapColumns__P155158_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P88523, depth: s.depth + 1, + parent: s, fn: tiles_tilemapColumns__P155158, depth: s.depth + 1, pc: 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, + tm___166833: undefined, + height___166839: undefined, } } -function Sprite_fx__P88522(s) { +function tiles_TileMap_areaWidth__P153807(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5923,22 +9769,40 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - r0 = s.arg0.fields["_fx"]; + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["_map"]; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["_width"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 << s.tmp_3); + { step = 2; continue; } + case 1: + r0 = 0; + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; + return leave(s, r0) default: oops() } } } -Sprite_fx__P88522.info = {"start":3552,"length":60,"line":136,"column":4,"endLine":138,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this"]} -Sprite_fx__P88522.isGetter = true; +tiles_TileMap_areaWidth__P153807.info = {"start":6693,"length":91,"line":243,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]} -function Sprite_fx__P88522_mk(s) { +function tiles_TileMap_areaWidth__P153807_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P88522, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaWidth__P153807, depth: s.depth + 1, pc: 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, } } @@ -5946,7 +9810,7 @@ function Sprite_fx__P88522_mk(s) { -function Sprite_ay__P88521(s) { +function tiles_TileMapData_width__P153790(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5958,40 +9822,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_ay"] = (s.tmp_1); - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, tiles_TileMapData__C153788_VT)) failedCast(r0); + r0 = s.arg0.fields["_width"]; + return leaveAccessor(s, r0) default: oops() } } } -Sprite_ay__P88521.info = {"start":3383,"length":51,"line":130,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this","v"]} +tiles_TileMapData_width__P153790.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__P153790.isGetter = true; -function Sprite_ay__P88521_mk(s) { +function tiles_TileMapData_width__P153790_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ay__P88521, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_width__P153790, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, - arg1: undefined, } } -function Sprite_ay__P88520(s) { +function set_end__P218826(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6003,33 +9857,55 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - r0 = s.arg0.fields["_ay"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + s.tmp_0 = tiles_setTileAt__P153826_mk(s); + s.tmp_1 = tiles_getTileLocation__P153828_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 108; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = globals.tile8___155293; + s.callLocIdx = 109; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = tiles_setWallAt__P153827_mk(s); + s.tmp_1 = tiles_getTileLocation__P153828_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 110; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = false; + s.callLocIdx = 111; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_ay__P88520.info = {"start":3217,"length":60,"line":125,"column":4,"endLine":127,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this"]} -Sprite_ay__P88520.isGetter = true; +set_end__P218826.info = {"start":23021,"length":175,"line":161,"column":0,"endLine":164,"endColumn":1,"fileName":"main.ts","functionName":"set_end","argumentNames":["col","row"]} -function Sprite_ay__P88520_mk(s) { +function set_end__P218826_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ay__P88520, depth: s.depth + 1, + parent: s, fn: set_end__P218826, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, + arg1: undefined, } } -function Sprite_ax__P88519(s) { +function tiles_setWallAt__P153827(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6039,33 +9915,88 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___160407 = undefined; + s.scale___160417 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 920; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.scene___160407 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.scene___160407.fields["tileMap"]; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + r0 = null; + { step = 5; continue; } + case 3: + case 4: + r0 = s.scene___160407.fields["tileMap"]; + s.tmp_5 = r0; + r0 = s.tmp_5.fields["_scale"]; + s.scale___160417 = (r0); + s.tmp_0 = tiles_TileMap_setWallAt__P153817_mk(s); + r0 = s.scene___160407.fields["tileMap"]; + s.tmp_0.arg0 = r0; + s.tmp_2 = tiles_Location_x__P153777_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 922; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_ax"] = (s.tmp_1); + r0 = (s.tmp_1 >> s.scale___160417); + s.tmp_0.arg1 = r0; + s.tmp_4 = tiles_Location_y__P153778_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 923; s.pc = 9; return s.tmp_4; + case 9: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 >> s.scale___160417); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.arg1; + s.callLocIdx = 924; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_ax__P88519.info = {"start":3044,"length":51,"line":119,"column":4,"endLine":121,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this","v"]} +tiles_setWallAt__P153827.info = {"start":15717,"length":271,"line":499,"column":4,"endLine":504,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setWallAt","argumentNames":["loc","on"]} -function Sprite_ax__P88519_mk(s) { +function tiles_setWallAt__P153827_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ax__P88519, depth: s.depth + 1, + parent: s, fn: tiles_setWallAt__P153827, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + scene___160407: undefined, + scale___160417: undefined, arg0: undefined, arg1: undefined, } } @@ -6074,7 +10005,7 @@ function Sprite_ax__P88519_mk(s) { -function Sprite_ax__P88518(s) { +function tiles_TileMap_setWallAt__P153817(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6086,33 +10017,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, Sprite__C88501_VT)) failedCast(r0); - r0 = s.arg0.fields["_ax"]; + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); + s.tmp_3 = tiles_TileMapData_isOutsideMap__P153800_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.arg1; + s.tmp_3.arg2 = s.arg2; + s.callLocIdx = 860; s.pc = 3; return s.tmp_3; + case 3: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_4 = tiles_TileMapData_setWall__P153798_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = s.arg1; + s.tmp_4.arg2 = s.arg2; + s.tmp_4.arg3 = s.arg3; + s.callLocIdx = 861; s.pc = 4; return s.tmp_4; + case 4: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_ax__P88518.info = {"start":2878,"length":60,"line":114,"column":4,"endLine":116,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this"]} -Sprite_ax__P88518.isGetter = true; +tiles_TileMap_setWallAt__P153817.info = {"start":8206,"length":173,"line":297,"column":8,"endLine":300,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setWallAt","argumentNames":["this","col","row","on"]} -function Sprite_ax__P88518_mk(s) { +function tiles_TileMap_setWallAt__P153817_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ax__P88518, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_setWallAt__P153817, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function sprites_BaseSprite_constructor__P88345(s) { +function tiles_TileMapData_isOutsideMap__P153800(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6125,48 +10089,75 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C88343_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_z__P88348_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 128; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, tiles_TileMapData__C153788_VT)) failedCast(r0); + r0 = (s.arg1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - r0 = s.retval; - s.tmp_0 = scene_Scene_addSprite__P88929_mk(s); - s.tmp_1 = game_currentScene__P89017_mk(s); - s.callLocIdx = 129; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 130; s.pc = 2; return s.tmp_0; + s.tmp_1 = r0 = s.arg1; + r0 = s.arg0.fields["_width"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 >= s.tmp_2); case 2: - r0 = s.retval; - r0 = undefined; + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = s.tmp_3; + { step = 4; continue; } + case 3: + r0 = (s.arg2 < 0); + case 4: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBool(s.tmp_4); + if (!r0) { step = 5; continue; } + r0 = s.tmp_4; + { step = 6; continue; } + case 5: + s.tmp_5 = r0 = s.arg2; + r0 = s.arg0.fields["_height"]; + s.tmp_6 = r0; + r0 = (s.tmp_5 >= s.tmp_6); + case 6: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = s.tmp_7; return leave(s, r0) default: oops() } } } -sprites_BaseSprite_constructor__P88345.info = {"start":344,"length":170,"line":15,"column":8,"endLine":20,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"inline","argumentNames":["this","z"]} +tiles_TileMapData_isOutsideMap__P153800.info = {"start":5580,"length":132,"line":199,"column":8,"endLine":201,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOutsideMap","argumentNames":["this","col","row"]} -function sprites_BaseSprite_constructor__P88345_mk(s) { +function tiles_TileMapData_isOutsideMap__P153800_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_constructor__P88345, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_isOutsideMap__P153800, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function scene_Scene_addSprite__P88929(s) { +function tiles_TileMapData_setWall__P153798(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6179,56 +10170,48 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C88904_VT)) failedCast(r0); - r0 = s.arg0.fields["allSprites"]; + if (!checkSubtype(r0, tiles_TileMapData__C153788_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg3); + if (!r0) { step = 1; continue; } + r0 = 2; + { step = 2; continue; } + case 1: + r0 = 0; + case 2: + // jmp value (already in r0) s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg1); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["spriteNextId"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); + r0 = s.arg0.fields["layers"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["spriteNextId"] = (s.tmp_1); - s.tmp_3 = if_id_2_mk(s); - s.tmp_3.arg0 = s.arg1; - s.tmp_3.arg1 = s.tmp_2; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_3.arg0, "id", s.tmp_3.arg1); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/id"]; - if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["id"] = s.tmp_3.arg1; } - else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) } - else { s.callLocIdx = 844; s.pc = 1; return s.tmp_3; } - } - case 1: - r0 = s.retval; + r0 = pxsim_ImageMethods.setPixel(s.tmp_1, s.arg1, s.arg2, s.tmp_0); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_addSprite__P88929.info = {"start":6859,"length":128,"line":193,"column":8,"endLine":196,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +tiles_TileMapData_setWall__P153798.info = {"start":5326,"length":127,"line":191,"column":8,"endLine":193,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setWall","argumentNames":["this","col","row","on"]} -function scene_Scene_addSprite__P88929_mk(s) { +function tiles_TileMapData_setWall__P153798_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_addSprite__P88929, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_setWall__P153798, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function sprites_BaseSprite_z__P88348(s) { +function tiles_Location_y__P153778(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6238,56 +10221,50 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scale___158413 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C88343_VT)) failedCast(r0); - r0 = s.arg0.fields["_z"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== s.arg1); + if (!checkSubtype(r0, tiles_Location__C153773_VT)) failedCast(r0); + r0 = s.arg0.fields["tileMap"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["_z"] = (s.arg1); - s.tmp_1 = game_currentScene__P89017_mk(s); - s.callLocIdx = 131; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; + r0 = s.tmp_0.fields["_scale"]; + s.scale___158413 = (r0); + r0 = s.arg0.fields["_row"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 << s.scale___158413); s.tmp_0 = r0; - r0 = s.tmp_0.fields["flags"]; + r0 = (s.scale___158413 - 1); s.tmp_3 = r0; - r0 = (s.tmp_3 | 1); + r0 = (1 << s.tmp_3); s.tmp_2 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_2); - case 1: - case 2: - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_0 + s.tmp_2); + return leaveAccessor(s, r0) default: oops() } } } -sprites_BaseSprite_z__P88348.info = {"start":656,"length":174,"line":30,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"z","argumentNames":["this","v"]} +tiles_Location_y__P153778.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__P153778.isGetter = true; -function sprites_BaseSprite_z__P88348_mk(s) { +function tiles_Location_y__P153778_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_z__P88348, depth: s.depth + 1, + parent: s, fn: tiles_Location_y__P153778, depth: s.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___158413: undefined, arg0: undefined, - arg1: undefined, } } -function sprites_BaseSprite_z__P88347(s) { +function tiles_Location_x__P153777(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6297,24 +10274,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scale___158394 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C88343_VT)) failedCast(r0); - r0 = s.arg0.fields["_z"]; + if (!checkSubtype(r0, tiles_Location__C153773_VT)) failedCast(r0); + r0 = s.arg0.fields["tileMap"]; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["_scale"]; + s.scale___158394 = (r0); + r0 = s.arg0.fields["_col"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 << s.scale___158394); + s.tmp_0 = r0; + r0 = (s.scale___158394 - 1); + s.tmp_3 = r0; + r0 = (1 << s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_0 + s.tmp_2); return leaveAccessor(s, r0) default: oops() } } } -sprites_BaseSprite_z__P88347.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__P88347.isGetter = true; +tiles_Location_x__P153777.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__P153777.isGetter = true; -function sprites_BaseSprite_z__P88347_mk(s) { +function tiles_Location_x__P153777_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_z__P88347, depth: s.depth + 1, + parent: s, fn: tiles_Location_x__P153777, depth: s.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___158394: undefined, arg0: undefined, } } @@ -6322,7 +10317,7 @@ function sprites_BaseSprite_z__P88347_mk(s) { -function helpers_arrayFilter__P86593(s) { +function tiles_getTileLocation__P153828(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6332,62 +10327,73 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___93280 = undefined; - s.len___93282 = undefined; - s.i___93285 = undefined; - s.v___93290 = undefined; + s.scene___166748 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.res___93280 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___93282 = (r0); - s.i___93285 = (0); - case 1: - r0 = (s.i___93285 < s.len___93282); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.arg0, s.i___93285); - s.v___93290 = (r0); - s.tmp_1 = lambda_3_mk(s); - s.tmp_1.argL = s.arg1; - s.tmp_1.arg0 = s.v___93290; - s.tmp_1.arg1 = s.i___93285; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 6; s.pc = 5; return s.tmp_1; - case 5: + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 925; s.pc = 8; return s.tmp_0; + case 8: r0 = s.retval; + s.scene___166748 = (r0); + r0 = (s.arg0 == undefined); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__push(s.res___93280, s.v___93290); + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = (s.arg1 == undefined); case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 3; continue; } + r0 = s.tmp_1; + { step = 4; continue; } case 3: - r0 = (s.i___93285 + 1); - s.i___93285 = (r0); - { step = 1; continue; } + r0 = s.scene___166748.fields["tileMap"]; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); case 4: - r0 = s.res___93280; + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 5; continue; } + r0 = null; + { step = 7; continue; } + case 5: + case 6: + s.tmp_5 = tiles_TileMap_getTile__P153813_mk(s); + r0 = s.scene___166748.fields["tileMap"]; + s.tmp_5.arg0 = r0; + s.tmp_5.arg1 = s.arg0; + s.tmp_5.arg2 = s.arg1; + s.callLocIdx = 926; s.pc = 9; return s.tmp_5; + case 9: + r0 = s.retval; + case 7: return leave(s, r0) default: oops() } } } -helpers_arrayFilter__P86593.info = {"start":7695,"length":317,"line":261,"column":4,"endLine":269,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayFilter","argumentNames":["arr","callbackfn"]} +tiles_getTileLocation__P153828.info = {"start":16285,"length":247,"line":515,"column":4,"endLine":519,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileLocation","argumentNames":["col","row"]} -function helpers_arrayFilter__P86593_mk(s) { +function tiles_getTileLocation__P153828_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayFilter__P86593, depth: s.depth + 1, + parent: s, fn: tiles_getTileLocation__P153828, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - res___93280: undefined, - len___93282: undefined, - i___93285: undefined, - v___93290: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + scene___166748: undefined, arg0: undefined, arg1: undefined, } } @@ -6396,7 +10402,7 @@ function helpers_arrayFilter__P86593_mk(s) { -function helpers_arrayForEach__P86592(s) { +function tiles_TileMap_getTile__P153813(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6406,58 +10412,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___92947 = undefined; - s.i___92950 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_Array__length(s.arg0); - s.len___92947 = (r0); - s.i___92950 = (0); - case 1: - r0 = (s.i___92950 < s.len___92947); + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C153773_VT); 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___92950); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___92950; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 5; s.pc = 3; return s.tmp_1; - case 3: + s.tmp_1 = tiles_Location_constructor__P153776_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 = 852; s.pc = 1; return s.tmp_1; + case 1: r0 = s.retval; - r0 = (s.i___92950 + 1); - s.i___92950 = (r0); - { step = 1; continue; } - case 2: - r0 = undefined; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -helpers_arrayForEach__P86592.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"]} +tiles_TileMap_getTile__P153813.info = {"start":7259,"length":111,"line":269,"column":8,"endLine":271,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} -function helpers_arrayForEach__P86592_mk(s) { +function tiles_TileMap_getTile__P153813_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayForEach__P86592, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTile__P153813, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___92947: undefined, - i___92950: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function make_walls__P196167(s) { +function tiles_Location_constructor__P153776(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6467,60 +10462,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.loc___196169 = undefined; - s.unnamed1362___U1 = undefined; - s.unnamed1363___U2 = undefined; - s.loc___196169 = (undefined); - s.tmp_0 = tiles_getTilesByType__P88835_mk(s); - s.tmp_0.arg0 = globals.tile2___142588; - s.callLocIdx = 152; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.unnamed1362___U1 = (r0); - s.unnamed1363___U2 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed1363___U2; - r0 = pxsim_Array__length(s.unnamed1362___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed1362___U1, s.unnamed1363___U2); - s.loc___196169 = (r0); - s.tmp_2 = tiles_setWallAt__P88828_mk(s); - s.tmp_2.arg0 = s.loc___196169; - s.tmp_2.arg1 = true; - s.callLocIdx = 153; s.pc = 4; return s.tmp_2; - case 4: - r0 = s.retval; - r0 = (s.unnamed1363___U2 + 1); - s.unnamed1363___U2 = (r0); - { step = 1; continue; } - case 2: - s.unnamed1362___U1 = (undefined); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_Location__C153773_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() } } } -make_walls__P196167.info = {"start":26235,"length":126,"line":244,"column":0,"endLine":248,"endColumn":1,"fileName":"main.ts","functionName":"make_walls","argumentNames":[]} +tiles_Location_constructor__P153776.info = {"start":528,"length":153,"line":27,"column":8,"endLine":31,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","col","row","map"]} -function make_walls__P196167_mk(s) { +function tiles_Location_constructor__P153776_mk(s) { checkStack(s.depth); return { - parent: s, fn: make_walls__P196167, depth: s.depth + 1, + parent: s, fn: tiles_Location_constructor__P153776, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - loc___196169: undefined, - unnamed1362___U1: undefined, - unnamed1363___U2: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function tiles_getTilesByType__P88835(s) { +function tiles_setTileAt__P153826(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6530,17 +10505,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___93799 = undefined; - s.index___93809 = undefined; + s.scene___166654 = undefined; + s.scale___166667 = undefined; + s.index___166671 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 797; s.pc = 6; return s.tmp_0; - case 6: + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 914; s.pc = 8; return s.tmp_0; + case 8: r0 = s.retval; - s.scene___93799 = (r0); + s.scene___166654 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -6550,45 +10527,77 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___93799.fields["tileMap"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); case 2: // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); if (!r0) { step = 3; continue; } - r0 = pxsim_Array__mk(); - { step = 5; continue; } + r0 = s.tmp_3; + { step = 4; continue; } case 3: + r0 = s.scene___166654.fields["tileMap"]; + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); case 4: - s.tmp_5 = tiles_TileMap_getImageType__P88817_mk(s); - r0 = s.scene___93799.fields["tileMap"]; - s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = s.arg0; - s.callLocIdx = 798; s.pc = 7; return s.tmp_5; - case 7: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 5; continue; } + r0 = null; + { step = 7; continue; } + case 5: + case 6: + r0 = s.scene___166654.fields["tileMap"]; + s.tmp_7 = r0; + r0 = s.tmp_7.fields["_scale"]; + s.scale___166667 = (r0); + s.tmp_0 = tiles_TileMap_getImageType__P153816_mk(s); + r0 = s.scene___166654.fields["tileMap"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 916; s.pc = 9; return s.tmp_0; + case 9: r0 = s.retval; - s.index___93809 = (r0); - s.tmp_0 = tiles_TileMap_getTilesByType__P88819_mk(s); - r0 = s.scene___93799.fields["tileMap"]; + s.index___166671 = (r0); + s.tmp_0 = tiles_TileMap_setTileAt__P153815_mk(s); + r0 = s.scene___166654.fields["tileMap"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___93809; - s.callLocIdx = 799; s.pc = 8; return s.tmp_0; - case 8: + s.tmp_2 = tiles_Location_x__P153777_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 917; s.pc = 11; return s.tmp_2; + case 11: r0 = s.retval; - case 5: + s.tmp_1 = r0; + r0 = (s.tmp_1 >> s.scale___166667); + s.tmp_0.arg1 = r0; + s.tmp_4 = tiles_Location_y__P153778_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 918; s.pc = 12; return s.tmp_4; + case 12: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 >> s.scale___166667); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.index___166671; + s.callLocIdx = 919; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + case 7: + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_getTilesByType__P88835.info = {"start":19427,"length":262,"line":597,"column":4,"endLine":602,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTilesByType","argumentNames":["tile"]} +tiles_setTileAt__P153826.info = {"start":15058,"length":339,"line":482,"column":4,"endLine":488,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTileAt","argumentNames":["loc","tile"]} -function tiles_getTilesByType__P88835_mk(s) { +function tiles_setTileAt__P153826_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_getTilesByType__P88835, depth: s.depth + 1, + parent: s, fn: tiles_setTileAt__P153826, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6596,16 +10605,20 @@ function tiles_getTilesByType__P88835_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - scene___93799: undefined, - index___93809: undefined, + tmp_6: undefined, + tmp_7: undefined, + scene___166654: undefined, + scale___166667: undefined, + index___166671: undefined, arg0: undefined, + arg1: undefined, } } -function tiles_TileMap_getTilesByType__P88819(s) { +function tiles_TileMap_getImageType__P153816(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6615,134 +10628,83 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.output___93828 = undefined; - s.col___93830 = undefined; - s.row___93837 = undefined; - s.currTile___93844 = undefined; + s.tileset___160154 = undefined; + s.i___160159 = undefined; + s.newIndex___160173 = 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__C88802_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMap_isInvalidIndex__P90473_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 728; s.pc = 12; return s.tmp_1; - case 12: - r0 = s.retval; + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = s.tmp_0.fields["tileset"]; + s.tileset___160154 = (r0); + s.i___160159 = (0); case 1: - r0 = s.arg0.fields["_map"]; - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - s.tmp_6 = r0; - r0 = pxsim_Boolean__bang(s.tmp_6); - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_1 = r0 = s.i___160159; + r0 = pxsim_Array__length(s.tileset___160154); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.tileset___160154, s.i___160159); s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); + r0 = pxsim_ImageMethods.equals(s.tmp_4, s.arg1); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + if (!r0) { step = 2; continue; } + r0 = s.i___160159; + { step = 7; continue; } case 2: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_8); - if (!r0) { step = 3; continue; } - r0 = pxsim_Array__mk(); - { step = 11; continue; } case 3: + r0 = (s.i___160159 + 1); + s.i___160159 = (r0); + { step = 1; continue; } case 4: - r0 = pxsim_Array__mk(); - s.output___93828 = (r0); - s.col___93830 = (0); - case 5: - s.tmp_1 = r0 = s.col___93830; - r0 = s.arg0.fields["_map"]; - s.tmp_3 = r0; - r0 = s.tmp_3.fields["_width"]; + r0 = pxsim_Array__length(s.tileset___160154); + s.newIndex___160173 = (r0); + s.tmp_3 = tiles_TileMap_isInvalidIndex__P155637_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.newIndex___160173; + s.callLocIdx = 859; s.pc = 8; return s.tmp_3; + case 8: + r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - s.row___93837 = (0); + if (!r0) { step = 5; continue; } + r0 = pxsim_Array__push(s.tileset___160154, s.arg1); + r0 = s.newIndex___160173; + { step = 7; continue; } + case 5: case 6: - s.tmp_1 = r0 = s.row___93837; - r0 = s.arg0.fields["_map"]; - s.tmp_3 = r0; - r0 = s.tmp_3.fields["_height"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - s.tmp_4 = tiles_TileMapData_getTile__P88795_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.col___93830; - s.tmp_4.arg2 = s.row___93837; - s.callLocIdx = 732; s.pc = 13; return s.tmp_4; - case 13: - r0 = s.retval; - s.currTile___93844 = (r0); - r0 = (s.currTile___93844 === s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C88774_VT); - s.tmp_1 = r0; - s.tmp_2 = tiles_Location_constructor__P88777_mk(s); - s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = s.col___93830; - s.tmp_2.arg2 = s.row___93837; - s.tmp_2.arg3 = s.arg0; - s.callLocIdx = 733; s.pc = 14; return s.tmp_2; - case 14: - r0 = s.retval; - r0 = pxsim_Array__push(s.output___93828, s.tmp_1); + r0 = -1; case 7: - case 8: - r0 = (s.row___93837 + 1); - s.row___93837 = (r0); - { step = 6; continue; } - case 9: - r0 = (s.col___93830 + 1); - s.col___93830 = (r0); - { step = 5; continue; } - case 10: - r0 = s.output___93828; - case 11: return leave(s, r0) default: oops() } } } -tiles_TileMap_getTilesByType__P88819.info = {"start":8389,"length":561,"line":302,"column":8,"endLine":315,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTilesByType","argumentNames":["this","index"]} +tiles_TileMap_getImageType__P153816.info = {"start":7714,"length":482,"line":282,"column":8,"endLine":295,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getImageType","argumentNames":["this","im"]} -function tiles_TileMap_getTilesByType__P88819_mk(s) { +function tiles_TileMap_getImageType__P153816_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTilesByType__P88819, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getImageType__P153816, depth: s.depth + 1, pc: 0, retval: undefined, 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, - output___93828: undefined, - col___93830: undefined, - row___93837: undefined, - currTile___93844: undefined, + tileset___160154: undefined, + i___160159: undefined, + newIndex___160173: undefined, arg0: undefined, arg1: undefined, } } @@ -6751,7 +10713,7 @@ function tiles_TileMap_getTilesByType__P88819_mk(s) { -function tiles_TileMap_enabled__P88812(s) { +function tiles_TileMap_isInvalidIndex__P155637(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6763,42 +10725,44 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); + r0 = (s.arg1 < 0); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = (s.arg1 > 255); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.tmp_1; + return leave(s, r0) default: oops() } } } -tiles_TileMap_enabled__P88812.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__P88812.isGetter = true; +tiles_TileMap_isInvalidIndex__P155637.info = {"start":10071,"length":106,"line":343,"column":8,"endLine":345,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isInvalidIndex","argumentNames":["this","index"]} -function tiles_TileMap_enabled__P88812_mk(s) { +function tiles_TileMap_isInvalidIndex__P155637_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_enabled__P88812, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isInvalidIndex__P155637, depth: s.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 tiles_TileMapData_getTile__P88795(s) { +function tiles_TileMapData_getTileset__P153796(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6810,71 +10774,29 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C88789_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P88801_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - s.tmp_1.arg2 = s.arg2; - s.callLocIdx = 697; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = 0; - { step = 3; continue; } - case 1: - case 2: - r0 = s.arg0.fields["data"]; - s.tmp_2 = r0; - r0 = (s.arg1 | 0); - s.tmp_5 = r0; - r0 = (4 + s.tmp_5); - s.tmp_4 = r0; - r0 = (s.arg2 | 0); - s.tmp_7 = r0; - r0 = s.arg0.fields["_width"]; - s.tmp_8 = r0; - r0 = (s.tmp_7 * s.tmp_8); - s.tmp_6 = r0; - r0 = (s.tmp_4 + s.tmp_6); - s.tmp_3 = r0; - r0 = pxsim.BufferMethods.getUint8(s.tmp_2, s.tmp_3); - case 3: + if (!checkSubtype(r0, tiles_TileMapData__C153788_VT)) failedCast(r0); + r0 = s.arg0.fields["tileset"]; return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTile__P88795.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_getTileset__P153796.info = {"start":4532,"length":57,"line":168,"column":8,"endLine":170,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileset","argumentNames":["this"]} -function tiles_TileMapData_getTile__P88795_mk(s) { +function tiles_TileMapData_getTileset__P153796_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTile__P88795, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTileset__P153796, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function make_maze__P196018(s) { +function tiles_TileMap_setTileAt__P153815(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6888,192 +10810,65 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - s.tmp_0 = sprites_create__P88459_mk(s); - r0 = pxsim.image.ofBuffer(_hex196027); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.Player___88613; - s.callLocIdx = 115; s.pc = 17; return s.tmp_0; - case 17: - r0 = s.retval; - globals.sprite_cursor___196023 = (r0); - globals.current_col___195851 = (s.arg0); - globals.current_row___195860 = (s.arg1); - s.tmp_0 = tiles_setTileAt__P88827_mk(s); - s.tmp_1 = tiles_getTileLocation__P88829_mk(s); - s.tmp_1.arg0 = globals.current_col___195851; - s.tmp_1.arg1 = globals.current_row___195860; - s.callLocIdx = 116; s.pc = 19; return s.tmp_1; - case 19: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.tile1___142583; - s.callLocIdx = 117; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; - case 1: - s.tmp_3 = tiles_getTilesByType__P88835_mk(s); - s.tmp_3.arg0 = globals.tile3___142593; - s.callLocIdx = 118; s.pc = 20; return s.tmp_3; - case 20: + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); + s.tmp_3 = tiles_TileMapData_isOutsideMap__P153800_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.arg1; + s.tmp_3.arg2 = s.arg2; + s.callLocIdx = 855; s.pc = 5; return s.tmp_3; + case 5: r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_Array__length(s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - s.tmp_5 = Math_percentChance__P89069_mk(s); - s.tmp_5.arg0 = 50; - s.callLocIdx = 119; 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 = 8; continue; } - s.tmp_7 = Math_percentChance__P89069_mk(s); - s.tmp_7.arg0 = 50; - s.callLocIdx = 120; s.pc = 22; return s.tmp_7; - case 22: - r0 = s.retval; - s.tmp_6 = r0; - r0 = pxsim_numops_toBool(s.tmp_6); - if (!r0) { step = 2; continue; } - r0 = s.tmp_6; - { step = 3; continue; } - case 2: - s.tmp_10 = rows_in_tilemap__P196053_mk(s); - r0 = (globals.current_row___195860 + 2); - s.tmp_10.arg0 = r0; - s.callLocIdx = 121; s.pc = 23; return s.tmp_10; - case 23: - r0 = s.retval; - s.tmp_9 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_9); - s.tmp_8 = r0; - r0 = pxsim_Boolean__bang(s.tmp_8); - case 3: - // jmp value (already in r0) - s.tmp_11 = r0; - r0 = pxsim_numops_toBool(s.tmp_11); - if (r0) { step = 4; continue; } - r0 = s.tmp_11; - { step = 5; continue; } - case 4: - s.tmp_12 = rows_in_tilemap__P196053_mk(s); - r0 = (globals.current_row___195860 - 2); - s.tmp_12.arg0 = r0; - s.callLocIdx = 122; s.pc = 24; return s.tmp_12; - case 24: - r0 = s.retval; - case 5: - // jmp value (already in r0) - s.tmp_13 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_13); - if (!r0) { step = 6; continue; } - s.tmp_14 = path_up__P195965_mk(s); - s.callLocIdx = 123; s.pc = 25; return s.tmp_14; - case 25: - r0 = s.retval; - { step = 7; continue; } - case 6: - s.tmp_0 = path_down__P195875_mk(s); - s.callLocIdx = 124; s.pc = 26; return s.tmp_0; - case 26: - r0 = s.retval; - case 7: - { step = 15; continue; } - case 8: - s.tmp_1 = Math_percentChance__P89069_mk(s); - s.tmp_1.arg0 = 50; - s.callLocIdx = 125; s.pc = 27; return s.tmp_1; - case 27: - r0 = s.retval; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 9; continue; } + if (r0) { step = 1; continue; } r0 = s.tmp_0; - { step = 10; continue; } - case 9: - s.tmp_4 = col_in_tilemap__P195825_mk(s); - r0 = (globals.current_col___195851 + 2); - s.tmp_4.arg0 = r0; - s.callLocIdx = 126; s.pc = 28; return s.tmp_4; - case 28: + { step = 2; continue; } + case 1: + s.tmp_6 = tiles_TileMap_isInvalidIndex__P155637_mk(s); + s.tmp_6.arg0 = s.arg0; + s.tmp_6.arg1 = s.arg3; + s.callLocIdx = 856; s.pc = 6; return s.tmp_6; + case 6: r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 10: - // jmp value (already in r0) s.tmp_5 = r0; - r0 = pxsim_numops_toBool(s.tmp_5); - if (r0) { step = 11; continue; } - r0 = s.tmp_5; - { step = 12; continue; } - case 11: - s.tmp_6 = col_in_tilemap__P195825_mk(s); - r0 = (globals.current_col___195851 - 2); - s.tmp_6.arg0 = r0; - s.callLocIdx = 127; s.pc = 29; return s.tmp_6; - case 29: - r0 = s.retval; - case 12: + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + case 2: // jmp value (already in r0) s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 13; continue; } - s.tmp_8 = path_left__P195848_mk(s); - s.callLocIdx = 128; s.pc = 30; return s.tmp_8; - case 30: - r0 = s.retval; - { step = 14; continue; } - case 13: - s.tmp_0 = path_right__P196079_mk(s); - s.callLocIdx = 129; s.pc = 31; return s.tmp_0; - case 31: - r0 = s.retval; - case 14: - case 15: - s.tmp_0 = tiles_placeOnTile__P88833_mk(s); - s.tmp_0.arg0 = globals.sprite_cursor___196023; - s.tmp_1 = tiles_getTileLocation__P88829_mk(s); - s.tmp_1.arg0 = globals.current_col___195851; - s.tmp_1.arg1 = globals.current_row___195860; - s.callLocIdx = 130; s.pc = 33; return s.tmp_1; - case 33: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 131; s.pc = 32; return s.tmp_0; - case 32: - r0 = s.retval; - s.tmp_0 = pause__P86887_mk(s); - s.tmp_0.arg0 = s.arg2; - s.callLocIdx = 132; s.pc = 34; return s.tmp_0; - case 34: - r0 = s.retval; - { step = 1; continue; } - case 16: - s.tmp_0 = Sprite_destroy__P88572_mk(s); - s.tmp_0.arg0 = globals.sprite_cursor___196023; - s.tmp_0.arg1 = undefined; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 133; s.pc = 35; return s.tmp_0; - case 35: + if (!r0) { step = 3; continue; } + s.tmp_8 = tiles_TileMapData_setTile__P153795_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_8.arg0 = r0; + s.tmp_8.arg1 = s.arg1; + s.tmp_8.arg2 = s.arg2; + s.tmp_8.arg3 = s.arg3; + s.callLocIdx = 857; s.pc = 7; return s.tmp_8; + case 7: r0 = s.retval; + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -make_maze__P196018.info = {"start":23294,"length":1717,"line":173,"column":0,"endLine":214,"endColumn":1,"fileName":"main.ts","functionName":"make_maze","argumentNames":["start_col","start_row","delay"]} +tiles_TileMap_setTileAt__P153815.info = {"start":7495,"length":209,"line":277,"column":8,"endLine":280,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTileAt","argumentNames":["this","col","row","index"]} -function make_maze__P196018_mk(s) { +function tiles_TileMap_setTileAt__P153815_mk(s) { checkStack(s.depth); return { - parent: s, fn: make_maze__P196018, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_setTileAt__P153815, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -7084,23 +10879,17 @@ function make_maze__P196018_mk(s) { 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, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, } } -const _hex196027 = pxsim.BufferMethods.createBufferFromHex("87041000100000002222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222") -function Sprite_destroy__P88572(s) { +function tiles_TileMapData_setTile__P153795(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7114,70 +10903,83 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - r0 = s.arg0.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 2); + if (!checkSubtype(r0, tiles_TileMapData__C153788_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P153800_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = s.arg2; + s.callLocIdx = 833; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } { step = 5; continue; } case 1: case 2: - s.tmp_2 = r0 = s.arg0; - r0 = s.tmp_2.fields["flags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 | 2); + r0 = s.arg0.fields["data"]; s.tmp_3 = r0; - r0 = (s.tmp_2).fields["flags"] = (s.tmp_3); - r0 = pxsim_numops_toBoolDecr(s.arg1); + r0 = pxsim.BufferMethods.isReadOnly(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 3; continue; } - s.tmp_0 = effects_ParticleEffect_destroy__P89277_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 = 379; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - { step = 4; continue; } + s.tmp_4 = r0 = s.arg0; + r0 = s.arg0.fields["data"]; + s.tmp_6 = r0; + r0 = pxsim.BufferMethods.slice(s.tmp_6, 0, -1); + s.tmp_5 = r0; + r0 = (s.tmp_4).fields["data"] = (s.tmp_5); case 3: - s.tmp_0 = Sprite__destroyCore__P88573_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 380; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; case 4: + r0 = s.arg0.fields["data"]; + s.tmp_0 = r0; + r0 = (s.arg1 | 0); + s.tmp_3 = r0; + r0 = (4 + s.tmp_3); + s.tmp_2 = r0; + r0 = (s.arg2 | 0); + s.tmp_5 = r0; + r0 = s.arg0.fields["_width"]; + s.tmp_6 = r0; + r0 = (s.tmp_5 * s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_2 + s.tmp_4); + s.tmp_1 = r0; + r0 = pxsim.BufferMethods.setUint8(s.tmp_0, s.tmp_1, s.arg3); case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_destroy__P88572.info = {"start":28412,"length":293,"line":858,"column":4,"endLine":867,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]} +tiles_TileMapData_setTile__P153795.info = {"start":4207,"length":315,"line":158,"column":8,"endLine":166,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTile","argumentNames":["this","col","row","tile"]} -function Sprite_destroy__P88572_mk(s) { +function tiles_TileMapData_setTile__P153795_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_destroy__P88572, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_setTile__P153795, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, } } -function effects_ParticleEffect_destroy__P89277(s) { +function set_start__P218962(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7190,85 +10992,42 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C89274_VT)) failedCast(r0); - s.tmp_0 = Sprite_setFlag__P88564_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = true; - s.callLocIdx = 1177; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = effects_ParticleEffect_start__P89276_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg3; - s.tmp_0.arg3 = null; - r0 = s.arg1.fields["flags"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 & 512); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0.arg4 = r0; - s.callLocIdx = 1178; s.pc = 4; return s.tmp_0; - case 4: + s.tmp_0 = tiles_placeOnTile__P153832_mk(s); + s.tmp_0.arg0 = globals.sprite_player___218831; + s.tmp_1 = tiles_getTileLocation__P153828_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 185; s.pc = 2; return s.tmp_1; + case 2: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 1; continue; } - r0 = s.arg2; - { step = 2; continue; } + s.tmp_0.arg1 = r0; + s.callLocIdx = 186; s.pc = 1; return s.tmp_0; case 1: - r0 = s.arg0.fields["defaultLifespan"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 2); - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.arg1).fields["lifespan"] = (s.tmp_1); - s.tmp_0 = effects_ImageEffect_applyTo__P89303_mk(s); - s.tmp_0.arg0 = globals.dissolve___89306; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1179; s.pc = 5; return s.tmp_0; - case 5: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ParticleEffect_destroy__P89277.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"]} +set_start__P218962.info = {"start":27537,"length":119,"line":270,"column":0,"endLine":272,"endColumn":1,"fileName":"main.ts","functionName":"set_start","argumentNames":["col","row"]} -function effects_ParticleEffect_destroy__P89277_mk(s) { +function set_start__P218962_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_destroy__P89277, depth: s.depth + 1, + parent: s, fn: set_start__P218962, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function inline__P98595(s) { +function scene_cameraFollowSprite__P153948(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7278,105 +11037,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___98598 = undefined; - s.x___98609 = undefined; - s.y___98615 = undefined; - s.w___98621 = undefined; - s.h___98625 = undefined; + s.scene___158081 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.width(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 * s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 5); - s.i___98598 = (r0); + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 1001; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.i___98598 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P89075_mk(s); - s.tmp_1.arg0 = s.arg1; - s.tmp_1.arg1 = 0; - r0 = pxsim_ImageMethods.width(s.arg0); - s.tmp_1.arg2 = r0; - s.callLocIdx = 40; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.x___98609 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P89075_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 0; - r0 = pxsim_ImageMethods.height(s.arg0); - s.tmp_0.arg2 = r0; - s.callLocIdx = 41; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.y___98615 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P89075_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = 3; - s.callLocIdx = 42; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.w___98621 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P89075_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = 3; - s.callLocIdx = 43; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.h___98625 = (r0); - s.tmp_0 = helpers_imageDrawRect__P88216_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.x___98609; - s.tmp_0.arg2 = s.y___98615; - s.tmp_0.arg3 = s.w___98621; - s.tmp_0.arg4 = s.h___98625; - s.tmp_0.arg5 = 0; - s.callLocIdx = 44; s.pc = 7; return s.tmp_0; - case 7: r0 = s.retval; - r0 = (s.i___98598 - 1); - s.i___98598 = (r0); - { step = 1; continue; } - case 2: + s.scene___158081 = (r0); + r0 = s.scene___158081.fields["camera"]; + s.tmp_0 = r0; + r0 = (s.tmp_0).fields["sprite"] = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P98595.info = {"start":2199,"length":360,"line":60,"column":49,"endLine":69,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} +scene_cameraFollowSprite__P153948.info = {"start":3990,"length":139,"line":142,"column":4,"endLine":145,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"cameraFollowSprite","argumentNames":["sprite"]} -function inline__P98595_mk(s) { +function scene_cameraFollowSprite__P153948_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98595, depth: s.depth + 1, + parent: s, fn: scene_cameraFollowSprite__P153948, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - i___98598: undefined, - x___98609: undefined, - y___98615: undefined, - w___98621: undefined, - h___98625: undefined, + scene___158081: undefined, arg0: undefined, - arg1: undefined, } } -function helpers_imageDrawRect__P88216(s) { +function sprites_create__P153458(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7386,110 +11080,87 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___160192 = undefined; + s.sprite___160195 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = (s.arg3 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 264; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.arg4 == 0); + r0 = s.retval; + s.scene___160192 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(Sprite__C153500_VT); + s.tmp_0 = r0; + s.tmp_1 = Sprite_constructor__P153537_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.callLocIdx = 265; s.pc = 2; return s.tmp_1; case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - { step = 5; continue; } - case 3: - case 4: - r0 = (s.arg3 - 1); - s.arg3 = (r0); - r0 = (s.arg4 - 1); - s.arg4 = (r0); - s.tmp_0 = helpers_imageDrawLine__P88215_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - r0 = (s.arg1 + s.arg3); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = s.arg2; - s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 83; s.pc = 6; return s.tmp_0; - case 6: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P88215_mk(s); - s.tmp_0.arg0 = s.arg0; + s.sprite___160195 = (s.tmp_0); + s.tmp_0 = Sprite_setKind__P153555_mk(s); + s.tmp_0.arg0 = s.sprite___160195; s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = s.arg1; - r0 = (s.arg2 + s.arg4); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 84; s.pc = 7; return s.tmp_0; - case 7: + s.callLocIdx = 266; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P88215_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = (s.arg1 + s.arg3); - s.tmp_0.arg1 = r0; - r0 = (s.arg2 + s.arg4); - s.tmp_0.arg2 = r0; - r0 = (s.arg1 + s.arg3); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = s.arg2; - s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 85; s.pc = 8; return s.tmp_0; - case 8: + s.tmp_0 = PhysicsEngine__C153643_v0_2_mk(s); + r0 = s.scene___160192.fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.sprite___160195; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C153643_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; - s.tmp_0 = helpers_imageDrawLine__P88215_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = (s.arg1 + s.arg3); - s.tmp_0.arg1 = r0; - r0 = (s.arg2 + s.arg4); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.arg1; - r0 = (s.arg2 + s.arg4); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 86; s.pc = 9; return s.tmp_0; - case 9: + r0 = pxsim_pxtcore_mkAction(1, inline__P160210); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + r0 = pxsim_pxtcore_mkAction(1, inline__P160216); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___160195); + s.tmp_2 = helpers_arrayForEach__P151591_mk(s); + s.tmp_3 = helpers_arrayFilter__P151592_mk(s); + r0 = s.scene___160192.fields["createdHandlers"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.tmp_0; + s.callLocIdx = 267; 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 = 269; s.pc = 5; return s.tmp_2; case 5: - r0 = undefined; + r0 = s.retval; + r0 = s.sprite___160195; return leave(s, r0) default: oops() } } } -helpers_imageDrawRect__P88216.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"]} +sprites_create__P153458.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 helpers_imageDrawRect__P88216_mk(s) { +function sprites_create__P153458_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawRect__P88216, depth: s.depth + 1, + parent: s, fn: sprites_create__P153458, depth: s.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___160192: undefined, + sprite___160195: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function helpers_imageDrawLine__P88215(s) { +function inline__P160210(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7501,58 +11172,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_pack__P90280_mk(s); - s.tmp_2.arg0 = s.arg1; - s.tmp_2.arg1 = s.arg2; - s.callLocIdx = 81; s.pc = 1; return s.tmp_2; - case 1: - r0 = s.retval; - s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P90280_mk(s); - s.tmp_4.arg0 = s.arg3; - s.tmp_4.arg1 = s.arg4; - s.callLocIdx = 82; s.pc = 2; return s.tmp_4; - case 2: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods._drawLine(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5); - r0 = undefined; + r0 = s.arg0.fields["kind"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 == s.caps[0]); return leave(s, r0) default: oops() } } } -helpers_imageDrawLine__P88215.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"]} +inline__P160210.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} -function helpers_imageDrawLine__P88215_mk(s) { +function inline__P160210_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawLine__P88215, depth: s.depth + 1, + parent: s, fn: inline__P160210, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function helpers_pack__P90280(s) { +function inline__P160216(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7564,57 +11207,42 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_2 = Math_clamp__P86607_mk(s); - s.tmp_2.arg0 = -30000; - s.tmp_2.arg1 = 30000; - r0 = (s.arg0 | 0); - s.tmp_2.arg2 = r0; - s.callLocIdx = 76; s.pc = 1; return s.tmp_2; + s.tmp_0 = if_handler_2_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + if (!s.tmp_0.arg0.vtable.iface) { + setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); + s.callLocIdx = 268; 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 = 268; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 268; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 268; s.pc = 1; return s.tmp_0; } + } case 1: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 65535); - s.tmp_0 = r0; - s.tmp_5 = Math_clamp__P86607_mk(s); - s.tmp_5.arg0 = -30000; - s.tmp_5.arg1 = 30000; - r0 = (s.arg1 | 0); - s.tmp_5.arg2 = r0; - s.callLocIdx = 77; s.pc = 2; return s.tmp_5; - case 2: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 << 16); - s.tmp_3 = r0; - r0 = (s.tmp_0 | s.tmp_3); + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_pack__P90280.info = {"start":3152,"length":145,"line":120,"column":4,"endLine":122,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]} +inline__P160216.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} -function helpers_pack__P90280_mk(s) { +function inline__P160216_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_pack__P90280, depth: s.depth + 1, + parent: s, fn: inline__P160216, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, arg0: undefined, - arg1: undefined, } } -function Math_clamp__P86607(s) { +function PhysicsEngine_addSprite__P153645(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7627,43 +11255,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = Math_min__P86611_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_1 = Math_max__P86610_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg2; - s.callLocIdx = 15; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 16; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C153643_VT)) failedCast(r0); + r0 = undefined; return leave(s, r0) default: oops() } } } -Math_clamp__P86607.info = {"start":14654,"length":130,"line":501,"column":4,"endLine":503,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"clamp","argumentNames":["min","max","value"]} +PhysicsEngine_addSprite__P153645.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 Math_clamp__P86607_mk(s) { +function PhysicsEngine_addSprite__P153645_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_clamp__P86607, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_addSprite__P153645, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function Math_FastRandom_randomRange__P89075(s) { +function Sprite_setKind__P153555(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7673,45 +11288,135 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.spritesByKind___160234 = undefined; + s.overlapMap___160263 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C89071_VT)) failedCast(r0); - r0 = (s.arg2 > s.arg1); + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + r0 = (s.arg1 == undefined); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = Math_FastRandom_next__P89074_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 894; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.arg2 - s.arg1); - s.tmp_4 = r0; - r0 = (s.tmp_4 + 1); - s.tmp_3 = r0; - r0 = (s.tmp_1 % s.tmp_3); + r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = 0; + r0 = s.arg0.fields["_kind"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === s.arg1); case 2: // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + { step = 15; continue; } + case 3: + case 4: + s.tmp_3 = game_currentScene__P154016_mk(s); + s.callLocIdx = 333; s.pc = 16; return s.tmp_3; + case 16: + r0 = s.retval; + r0 = r0.fields["spritesByKind"]; + s.spritesByKind___160234 = (r0); + r0 = s.arg0.fields["_kind"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 5: + r0 = s.arg0.fields["_kind"]; + s.tmp_2 = r0; + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___160234, 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__P153602_mk(s); + r0 = s.arg0.fields["_kind"]; + s.tmp_5 = r0; + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___160234, s.tmp_5); + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = s.arg0; + s.callLocIdx = 334; s.pc = 17; return s.tmp_4; + case 17: + r0 = s.retval; + case 7: + case 8: + r0 = (s.arg1 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___160234, s.arg1); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 9; continue; } + r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteSet__C153595_VT); + s.tmp_4 = r0; + s.tmp_5 = sprites_SpriteSet_constructor__P153597_mk(s); + s.tmp_5.arg0 = s.tmp_4; + s.callLocIdx = 335; s.pc = 18; return s.tmp_5; + case 18: + r0 = s.retval; + r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___160234, s.arg1, s.tmp_4); + case 9: + case 10: + s.tmp_0 = sprites_SpriteSet_add__P153600_mk(s); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___160234, s.arg1); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 336; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + case 11: + case 12: + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 337; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + r0 = r0.fields["overlapMap"]; + s.overlapMap___160263 = (r0); + r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___160263, s.arg1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + s.tmp_3 = r0 = s.overlapMap___160263; + s.tmp_4 = r0 = s.arg1; + r0 = pxsim_Array__mk(); s.tmp_5 = r0; - r0 = (s.arg1 + s.tmp_5); + r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_3, s.tmp_4, s.tmp_5); + case 13: + case 14: + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___160263, s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_kindsOverlappedWith"] = (s.tmp_1); + r0 = (s.arg0).fields["_kind"] = (s.arg1); + case 15: + r0 = undefined; return leave(s, r0) default: oops() } } } -Math_FastRandom_randomRange__P89075.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"]} +Sprite_setKind__P153555.info = {"start":10872,"length":663,"line":398,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setKind","argumentNames":["this","value"]} -function Math_FastRandom_randomRange__P89075_mk(s) { +function Sprite_setKind__P153555_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_randomRange__P89075, depth: s.depth + 1, + parent: s, fn: Sprite_setKind__P153555, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -7719,16 +11424,17 @@ function Math_FastRandom_randomRange__P89075_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + spritesByKind___160234: undefined, + overlapMap___160263: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function Math_FastRandom_next__P89074(s) { +function sprites_SpriteSet_remove__P153602(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7738,55 +11444,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.i___159561 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C89071_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["lfsr"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = s.arg0.fields["lfsr"]; - s.tmp_7 = r0; - r0 = (s.tmp_7 & 1); - s.tmp_6 = r0; - r0 = (0 - s.tmp_6); - s.tmp_5 = r0; - r0 = (s.tmp_5 & 46080); - s.tmp_4 = r0; - r0 = (s.tmp_2 ^ s.tmp_4); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lfsr"] = (s.tmp_1); - r0 = s.tmp_1; + if (!checkSubtype(r0, sprites_SpriteSet__C153595_VT)) failedCast(r0); + r0 = s.arg0.fields["_sprites"]; + s.tmp_0 = r0; + r0 = pxsim_Array_.indexOf(s.tmp_0, s.arg1, undefined); + s.i___159561 = (r0); + r0 = (s.i___159561 > -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = helpers_arraySplice__P151582_mk(s); + r0 = s.arg0.fields["_sprites"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.i___159561; + s.tmp_1.arg2 = 1; + s.callLocIdx = 485; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + r0 = true; + { step = 3; continue; } + case 1: + case 2: + r0 = false; + case 3: return leave(s, r0) default: oops() } } } -Math_FastRandom_next__P89074.info = {"start":1713,"length":107,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"next","argumentNames":["this"]} +sprites_SpriteSet_remove__P153602.info = {"start":1816,"length":235,"line":66,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"remove","argumentNames":["this","sprite"]} -function Math_FastRandom_next__P89074_mk(s) { +function sprites_SpriteSet_remove__P153602_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_next__P89074, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_remove__P153602, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, + i___159561: undefined, arg0: undefined, + arg1: undefined, } } -function effects_ImageEffect_constructor__P89302(s) { +function sprites_SpriteSet_add__P153600(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7799,46 +11508,62 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C89301_VT)) failedCast(r0); - r0 = (s.arg0).fields["effect"] = (s.arg2); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C89071_VT); + if (!checkSubtype(r0, sprites_SpriteSet__C153595_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P89073_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = undefined; - s.callLocIdx = 1187; s.pc = 1; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = false; + { step = 5; continue; } case 1: - r0 = s.retval; - r0 = (s.arg0).fields["fastRandom"] = (s.tmp_0); - r0 = (s.arg0).fields["preferredDelay"] = (s.arg1); - r0 = (s.arg0).fields["times"] = (undefined); - r0 = undefined; + case 2: + r0 = s.arg0.fields["_sprites"]; + s.tmp_4 = r0; + r0 = pxsim_Array_.indexOf(s.tmp_4, s.arg1, undefined); + s.tmp_3 = r0; + r0 = (s.tmp_3 > -1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = false; + { step = 5; continue; } + case 3: + case 4: + r0 = s.arg0.fields["_sprites"]; + s.tmp_5 = r0; + r0 = pxsim_Array__push(s.tmp_5, s.arg1); + r0 = true; + case 5: return leave(s, r0) default: oops() } } } -effects_ImageEffect_constructor__P89302.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"]} +sprites_SpriteSet_add__P153600.info = {"start":1027,"length":263,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"add","argumentNames":["this","sprite"]} -function effects_ImageEffect_constructor__P89302_mk(s) { +function sprites_SpriteSet_add__P153600_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_constructor__P89302, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_add__P153600, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function effects_ImageEffect_applyTo__P89303(s) { +function sprites_SpriteSet_contains__P153603(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7848,71 +11573,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.clonedImage___98705 = 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__C89301_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!checkSubtype(r0, sprites_SpriteSet__C153595_VT)) failedCast(r0); + r0 = s.arg0.fields["_sprites"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = pxsim_Array_.indexOf(s.tmp_1, s.arg1, undefined); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.arg1.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 3; continue; } - { step = 5; continue; } - case 3: - case 4: - r0 = s.arg1.fields["_image"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.clone(s.tmp_5); - s.clonedImage___98705 = (r0); - s.tmp_0 = effects_ImageEffect_change__P89304_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.clonedImage___98705; - s.callLocIdx = 1190; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = Sprite_setImage__P88541_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.clonedImage___98705; - s.callLocIdx = 1191; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - case 5: - r0 = undefined; + r0 = (s.tmp_0 > -1); return leave(s, r0) default: oops() } } } -effects_ImageEffect_applyTo__P89303.info = {"start":823,"length":218,"line":21,"column":8,"endLine":26,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"applyTo","argumentNames":["this","sprite"]} +sprites_SpriteSet_contains__P153603.info = {"start":2162,"length":100,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"contains","argumentNames":["this","sprite"]} -function effects_ImageEffect_applyTo__P89303_mk(s) { +function sprites_SpriteSet_contains__P153603_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_applyTo__P89303, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_contains__P153603, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - clonedImage___98705: undefined, arg0: undefined, arg1: undefined, } } @@ -7921,7 +11605,7 @@ function effects_ImageEffect_applyTo__P89303_mk(s) { -function effects_ImageEffect_change__P89304(s) { +function sprites_SpriteSet_constructor__P153597(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7933,48 +11617,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C89301_VT)) failedCast(r0); - s.tmp_0 = if_effect_3_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - r0 = s.arg0.fields["fastRandom"]; - 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 = 1192; 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 = 1192; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1192; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 1192; s.pc = 1; return s.tmp_0; } - } - case 1: - r0 = s.retval; + if (!checkSubtype(r0, sprites_SpriteSet__C153595_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_sprites"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ImageEffect_change__P89304.info = {"start":1151,"length":81,"line":32,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"change","argumentNames":["this","input"]} +sprites_SpriteSet_constructor__P153597.info = {"start":488,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]} -function effects_ImageEffect_change__P89304_mk(s) { +function sprites_SpriteSet_constructor__P153597_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_change__P89304, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_constructor__P153597, 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 effects_ParticleEffect_start__P89276(s) { +function Sprite_constructor__P153537(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7984,112 +11655,139 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.src___98729 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C89274_VT)) failedCast(r0); - r0 = s.arg0.fields["sourceFactory"]; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_constructor__P153344_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 288; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___153286); + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.arg1); + s.tmp_5 = r0; + r0 = (s.tmp_4 - s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = (s.tmp_2 * 256); + s.tmp_6 = r0; + r0 = (s.tmp_6 | 0); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.height(globals.screen___153286); + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.height(s.arg1); + s.tmp_5 = r0; + r0 = (s.tmp_4 - s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_6 = r0; + r0 = (s.tmp_6 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + r0 = s.arg0.fields["_x"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 9; continue; } - case 1: + r0 = (s.arg0).fields["_lastX"] = (s.tmp_0); + r0 = s.arg0.fields["_y"]; + s.tmp_0 = r0; + r0 = (s.arg0).fields["_lastY"] = (s.tmp_0); + s.tmp_0 = Sprite_vx__P153514_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 291; s.pc = 2; return s.tmp_0; case 2: - r0 = pxsim_numops_toBoolDecr(s.arg3); - if (!r0) { step = 3; continue; } - r0 = s.arg3; - { step = 4; continue; } + r0 = s.retval; + s.tmp_0 = Sprite_vy__P153516_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 292; s.pc = 3; return s.tmp_0; case 3: - r0 = s.arg0.fields["defaultRate"]; - case 4: - // jmp value (already in r0) - s.tmp_3 = r0; - s.tmp_4 = if_sourceFactory_3_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = s.arg1; - 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 = 1175; 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 = 1175; s.pc = 10; return s.tmp_4; } - else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1175; s.pc = 10; return s.tmp_4;; } - else { s.callLocIdx = 1175; s.pc = 10; return s.tmp_4; } - } - case 10: r0 = s.retval; - s.src___98729 = (r0); - s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P89174_mk(s); - s.tmp_0.arg0 = s.src___98729; - r0 = pxsim_numops_toBoolDecr(s.arg4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1176; s.pc = 11; return s.tmp_0; - case 11: + s.tmp_0 = Sprite_ax__P153518_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 293; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 7; continue; } - r0 = (s.arg2 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.arg2; - { step = 6; continue; } + s.tmp_0 = Sprite_ay__P153520_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 294; s.pc = 5; return s.tmp_0; case 5: - r0 = s.arg0.fields["defaultLifespan"]; + r0 = s.retval; + s.tmp_0 = Sprite_fx__P153522_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 295; s.pc = 6; return s.tmp_0; case 6: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.src___98729).fields["lifespan"] = (s.tmp_1); + r0 = s.retval; + s.tmp_0 = Sprite_fy__P153524_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 296; s.pc = 7; return s.tmp_0; case 7: + r0 = s.retval; + r0 = (s.arg0).fields["flags"] = (0); + s.tmp_0 = Sprite_setImage__P153540_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 297; s.pc = 8; return s.tmp_0; case 8: + r0 = s.retval; + s.tmp_0 = Sprite_setKind__P153555_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = -1; + s.callLocIdx = 298; s.pc = 9; return s.tmp_0; case 9: + r0 = s.retval; + r0 = (s.arg0).fields["layer"] = (1); + r0 = (s.arg0).fields["lifespan"] = (undefined); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_overlappers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_obstacles"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ParticleEffect_start__P89276.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"]} +Sprite_constructor__P153537.info = {"start":5178,"length":618,"line":202,"column":4,"endLine":222,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]} -function effects_ParticleEffect_start__P89276_mk(s) { +function Sprite_constructor__P153537_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_start__P89276, depth: s.depth + 1, + parent: s, fn: Sprite_constructor__P153537, depth: s.depth + 1, pc: 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___98729: undefined, + tmp_5: undefined, + tmp_6: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function particles_ParticleSource_setRelativeToCamera__P89174(s) { +function Sprite_setImage__P153540(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8105,44 +11803,36 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C89163_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 1; continue; } - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["pFlags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | 4); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); - { step = 2; continue; } + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 3; continue; } case 1: - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["pFlags"]; - s.tmp_4 = r0; - r0 = (~ s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 | 4); - s.tmp_2 = r0; - r0 = (~ s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); case 2: + r0 = (s.arg0).fields["_image"] = (s.arg1); + s.tmp_0 = Sprite_setHitbox__P153541_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 299; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRelativeToCamera__P89174.info = {"start":6422,"length":173,"line":210,"column":8,"endLine":213,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRelativeToCamera","argumentNames":["this","on"]} +Sprite_setImage__P153540.info = {"start":6825,"length":133,"line":252,"column":4,"endLine":256,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setImage","argumentNames":["this","img"]} -function particles_ParticleSource_setRelativeToCamera__P89174_mk(s) { +function Sprite_setImage__P153540_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRelativeToCamera__P89174, depth: s.depth + 1, + parent: s, fn: Sprite_setImage__P153540, depth: s.depth + 1, pc: 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, } } @@ -8151,7 +11841,7 @@ function particles_ParticleSource_setRelativeToCamera__P89174_mk(s) { -function Sprite_setFlag__P88564(s) { +function Sprite_setHitbox__P153541(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8161,84 +11851,165 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.newHitBox___159751 = undefined; + s.oMinX___159759 = undefined; + s.oMinY___159763 = undefined; + s.oMaxX___159767 = undefined; + s.oMaxY___159774 = undefined; + s.nMinX___159781 = undefined; + s.nMinY___159784 = undefined; + s.nMaxX___159787 = undefined; + s.nMaxY___159793 = undefined; + s.xDiff___159799 = undefined; + s.yDiff___159810 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 1; continue; } - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + s.tmp_0 = game_calculateHitBox__P153454_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 300; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.newHitBox___159751 = (r0); + r0 = s.arg0.fields["_hitbox"]; s.tmp_2 = r0; - r0 = (s.tmp_2 | s.arg1); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - { step = 2; continue; } + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___159751); + { step = 7; continue; } case 1: - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["flags"]; - s.tmp_4 = r0; - r0 = (~ s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 | s.arg1); + case 2: + r0 = s.arg0.fields["_hitbox"]; + r0 = r0.fields["ox"]; + s.oMinX___159759 = (r0); + r0 = s.arg0.fields["_hitbox"]; + r0 = r0.fields["oy"]; + s.oMinY___159763 = (r0); + r0 = s.arg0.fields["_hitbox"]; + r0 = r0.fields["width"]; + s.tmp_0 = r0; + r0 = (s.oMinX___159759 + s.tmp_0); + s.oMaxX___159767 = (r0); + r0 = s.arg0.fields["_hitbox"]; + r0 = r0.fields["height"]; + s.tmp_0 = r0; + r0 = (s.oMinY___159763 + s.tmp_0); + s.oMaxY___159774 = (r0); + r0 = s.newHitBox___159751.fields["ox"]; + s.nMinX___159781 = (r0); + r0 = s.newHitBox___159751.fields["oy"]; + s.nMinY___159784 = (r0); + r0 = s.newHitBox___159751.fields["width"]; + s.tmp_0 = r0; + r0 = (s.nMinX___159781 + s.tmp_0); + s.nMaxX___159787 = (r0); + r0 = s.newHitBox___159751.fields["height"]; + s.tmp_0 = r0; + r0 = (s.nMinY___159784 + s.tmp_0); + s.nMaxY___159793 = (r0); + s.tmp_1 = Fx_abs__P151644_mk(s); + r0 = (s.oMinX___159759 - s.nMinX___159781); + s.tmp_1.arg0 = r0; + s.callLocIdx = 306; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + s.tmp_0 = r0; + s.tmp_3 = Fx_abs__P151644_mk(s); + r0 = (s.oMaxX___159767 - s.nMaxX___159787); + s.tmp_3.arg0 = r0; + s.callLocIdx = 308; s.pc = 10; return s.tmp_3; + case 10: + r0 = s.retval; s.tmp_2 = r0; - r0 = (~ s.tmp_2); + r0 = (s.tmp_0 + s.tmp_2); + s.xDiff___159799 = (r0); + s.tmp_1 = Fx_abs__P151644_mk(s); + r0 = (s.oMinY___159763 - s.nMinY___159784); + s.tmp_1.arg0 = r0; + s.callLocIdx = 311; s.pc = 11; return s.tmp_1; + case 11: + r0 = s.retval; + s.tmp_0 = r0; + s.tmp_3 = Fx_abs__P151644_mk(s); + r0 = (s.oMaxY___159774 - s.nMaxY___159793); + s.tmp_3.arg0 = r0; + s.callLocIdx = 313; s.pc = 12; return s.tmp_3; + case 12: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_0 + s.tmp_2); + s.yDiff___159810 = (r0); + r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___159751); + r0 = (s.xDiff___159799 <= 512); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.arg0.fields["_hitbox"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - case 2: - r0 = (s.arg1 === 512); + r0 = (s.tmp_1).fields["ox"] = (s.oMinX___159759); + r0 = s.arg0.fields["_hitbox"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } + r0 = (s.oMaxX___159767 - s.oMinX___159759); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["width"] = (s.tmp_1); 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); + r0 = (s.yDiff___159810 <= 512); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_2 = Sprite_setFlag__P88564_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 = 357; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; + r0 = s.arg0.fields["_hitbox"]; + s.tmp_1 = r0; + r0 = (s.tmp_1).fields["oy"] = (s.oMinY___159763); + r0 = s.arg0.fields["_hitbox"]; + s.tmp_0 = r0; + r0 = (s.oMaxY___159774 - s.oMinY___159763); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["height"] = (s.tmp_1); case 5: case 6: + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_setFlag__P88564.info = {"start":23896,"length":292,"line":731,"column":4,"endLine":738,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setFlag","argumentNames":["this","flag","on"]} +Sprite_setHitbox__P153541.info = {"start":6964,"length":1296,"line":258,"column":4,"endLine":297,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]} -function Sprite_setFlag__P88564_mk(s) { +function Sprite_setHitbox__P153541_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setFlag__P88564, depth: s.depth + 1, + parent: s, fn: Sprite_setHitbox__P153541, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, + newHitBox___159751: undefined, + oMinX___159759: undefined, + oMinY___159763: undefined, + oMaxX___159767: undefined, + oMaxY___159774: undefined, + nMinX___159781: undefined, + nMinY___159784: undefined, + nMaxX___159787: undefined, + nMaxY___159793: undefined, + xDiff___159799: undefined, + yDiff___159810: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function Sprite__destroyCore__P88573(s) { +function game_calculateHitBox__P153454(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8248,140 +12019,167 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___98515 = undefined; + s.i___159872 = undefined; + s.minX___159875 = undefined; + s.minY___159878 = undefined; + s.maxX___159881 = undefined; + s.maxY___159882 = undefined; + s.c___159883 = undefined; + s.r___159889 = undefined; + s.width___159920 = undefined; + s.height___159926 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; + r0 = s.arg0.fields["_image"]; + s.i___159872 = (r0); + r0 = pxsim_ImageMethods.width(s.i___159872); + s.minX___159875 = (r0); + r0 = pxsim_ImageMethods.height(s.i___159872); + s.minY___159878 = (r0); + s.maxX___159881 = (0); + s.maxY___159882 = (0); + s.c___159883 = (0); + case 1: + s.tmp_1 = r0 = s.c___159883; + r0 = pxsim_ImageMethods.width(s.i___159872); 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__P89017_mk(s); - s.callLocIdx = 381; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.scene___98515 = (r0); - r0 = s.arg0.fields["sayBubbleSprite"]; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = Sprite_destroy__P88572_mk(s); - r0 = s.arg0.fields["sayBubbleSprite"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = undefined; - s.tmp_1.arg2 = undefined; - s.callLocIdx = 382; s.pc = 10; return s.tmp_1; - case 10: - r0 = s.retval; - case 1: + if (!r0) { step = 6; continue; } + s.r___159889 = (0); case 2: - r0 = s.scene___98515.fields["allSprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); - r0 = s.arg0.fields["_kind"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = s.scene___98515.fields["spritesByKind"]; + s.tmp_1 = r0 = s.r___159889; + r0 = pxsim_ImageMethods.height(s.i___159872); 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: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_5 = sprites_SpriteSet_remove__P88603_mk(s); - r0 = s.scene___98515.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 = 386; s.pc = 11; return s.tmp_5; - case 11: + r0 = pxsim_ImageMethods.getPixel(s.i___159872, s.c___159883, s.r___159889); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + s.tmp_4 = Math_min__P151610_mk(s); + s.tmp_4.arg0 = s.minX___159875; + s.tmp_4.arg1 = s.c___159883; + s.callLocIdx = 259; s.pc = 7; return s.tmp_4; + case 7: + r0 = s.retval; + s.minX___159875 = (r0); + s.tmp_0 = Math_min__P151610_mk(s); + s.tmp_0.arg0 = s.minY___159878; + s.tmp_0.arg1 = s.r___159889; + s.callLocIdx = 260; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.minY___159878 = (r0); + s.tmp_0 = Math_max__P151609_mk(s); + s.tmp_0.arg0 = s.maxX___159881; + s.tmp_0.arg1 = s.c___159883; + s.callLocIdx = 261; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.maxX___159881 = (r0); + s.tmp_0 = Math_max__P151609_mk(s); + s.tmp_0.arg0 = s.maxY___159882; + s.tmp_0.arg1 = s.r___159889; + s.callLocIdx = 262; s.pc = 10; return s.tmp_0; + case 10: r0 = s.retval; + s.maxY___159882 = (r0); + case 3: + case 4: + r0 = (s.r___159889 + 1); + s.r___159889 = (r0); + { step = 2; continue; } case 5: + r0 = (s.c___159883 + 1); + s.c___159883 = (r0); + { step = 1; continue; } case 6: - s.tmp_0 = PhysicsEngine__C88644_v1_2_mk(s); - r0 = s.scene___98515.fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C88644_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: - r0 = s.retval; - r0 = s.arg0.fields["destroyHandler"]; + r0 = (s.maxX___159881 - s.minX___159875); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; 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 = 387; s.pc = 13; return s.tmp_1; - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["destroyHandler"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["destroyHandler"], 1); s.callLocIdx = 387; s.pc = 13; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 387; s.pc = 13; return s.tmp_1;; } - else { s.callLocIdx = 387; s.pc = 13; return s.tmp_1; } - } - case 13: - r0 = s.retval; - case 7: - case 8: - r0 = pxsim_pxtcore_mkAction(1, inline__P98551); + r0 = (s.tmp_0 + 1); + s.width___159920 = (r0); + r0 = (s.maxY___159882 - s.minY___159878); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, inline__P98557); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P86592_mk(s); - s.tmp_3 = helpers_arrayFilter__P86593_mk(s); - r0 = s.scene___98515.fields["destroyedHandlers"]; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 389; s.pc = 15; return s.tmp_3; - case 15: - r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 391; s.pc = 14; return s.tmp_2; - case 14: + r0 = (s.tmp_0 + 1); + s.height___159926 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C153443_VT); + s.tmp_0 = r0; + s.tmp_1 = game_Hitbox_constructor__P153449_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.width___159920; + s.tmp_1.arg3 = s.height___159926; + s.tmp_1.arg4 = s.minX___159875; + s.tmp_1.arg5 = s.minY___159878; + s.callLocIdx = 263; s.pc = 11; return s.tmp_1; + case 11: r0 = s.retval; - r0 = undefined; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -Sprite__destroyCore__P88573.info = {"start":28711,"length":693,"line":869,"column":4,"endLine":885,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]} +game_calculateHitBox__P153454.info = {"start":894,"length":684,"line":40,"column":4,"endLine":62,"endColumn":5,"fileName":"pxt_modules/game/hitbox.ts","functionName":"calculateHitBox","argumentNames":["s"]} + +function game_calculateHitBox__P153454_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_calculateHitBox__P153454, depth: s.depth + 1, + pc: 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___159872: undefined, + minX___159875: undefined, + minY___159878: undefined, + maxX___159881: undefined, + maxY___159882: undefined, + c___159883: undefined, + r___159889: undefined, + width___159920: undefined, + height___159926: undefined, + arg0: undefined, +} } + + + + + +function Sprite_image__P153539(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C153500_VT)) failedCast(r0); + r0 = s.arg0.fields["_image"]; + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_image__P153539.info = {"start":6549,"length":54,"line":242,"column":4,"endLine":244,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"image","argumentNames":["this"]} +Sprite_image__P153539.isGetter = true; -function Sprite__destroyCore__P88573_mk(s) { +function Sprite_image__P153539_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite__destroyCore__P88573, depth: s.depth + 1, + parent: s, fn: Sprite_image__P153539, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - scene___98515: undefined, arg0: undefined, } } @@ -8389,7 +12187,7 @@ function Sprite__destroyCore__P88573_mk(s) { -function inline__P98551(s) { +function game_Hitbox_constructor__P153449(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8401,33 +12199,67 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = s.arg0.fields["kind"]; - s.tmp_0 = r0; - r0 = s.caps[0].fields["_kind"]; + r0 = s.arg0; + if (!checkSubtype(r0, game_Hitbox__C153443_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 == s.tmp_1); + r0 = (s.tmp_0).fields["width"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg3 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["height"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg4 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["ox"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg5 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["oy"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P98551.info = {"start":29327,"length":26,"line":883,"column":20,"endLine":883,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +game_Hitbox_constructor__P153449.info = {"start":151,"length":266,"line":8,"column":8,"endLine":14,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"inline","argumentNames":["this","parent","width","height","ox","oy"]} -function inline__P98551_mk(s) { +function game_Hitbox_constructor__P153449_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98551, depth: s.depth + 1, + parent: s, fn: game_Hitbox_constructor__P153449, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function inline__P98557(s) { +function Fx_abs__P151644(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8441,30 +12273,28 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = if_handler_2_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - if (!s.tmp_0.arg0.vtable.iface) { - setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); - s.callLocIdx = 390; 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 = 390; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 390; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 390; s.pc = 1; return s.tmp_0; } - } + r0 = (s.arg0 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = (0 - s.arg0); + { step = 3; continue; } + { step = 2; continue; } case 1: - r0 = s.retval; + r0 = s.arg0; + { step = 3; continue; } + case 2: r0 = undefined; + case 3: return leave(s, r0) default: oops() } } } -inline__P98557.info = {"start":29376,"length":20,"line":884,"column":21,"endLine":884,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +Fx_abs__P151644.info = {"start":1506,"length":164,"line":44,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"abs","argumentNames":["a"]} -function inline__P98557_mk(s) { +function Fx_abs__P151644_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98557, depth: s.depth + 1, + parent: s, fn: Fx_abs__P151644, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -8474,7 +12304,7 @@ function inline__P98557_mk(s) { -function PhysicsEngine_removeSprite__P88647(s) { +function Fx_sub__P151638(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8489,18 +12319,16 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C88644_VT)) failedCast(r0); - r0 = undefined; + r0 = (s.arg0 - s.arg1); return leave(s, r0) default: oops() } } } -PhysicsEngine_removeSprite__P88647.info = {"start":159,"length":32,"line":10,"column":4,"endLine":10,"endColumn":36,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} +Fx_sub__P151638.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 PhysicsEngine_removeSprite__P88647_mk(s) { +function Fx_sub__P151638_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_removeSprite__P88647, depth: s.depth + 1, + parent: s, fn: Fx_sub__P151638, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -8510,7 +12338,7 @@ function PhysicsEngine_removeSprite__P88647_mk(s) { -function Sprite_kind__P88555(s) { +function Fx_add__P151636(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8522,29 +12350,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, Sprite__C88501_VT)) failedCast(r0); - r0 = s.arg0.fields["_kind"]; + r0 = (s.arg0 + s.arg1); return leave(s, r0) default: oops() } } } -Sprite_kind__P88555.info = {"start":10604,"length":41,"line":387,"column":4,"endLine":389,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"kind","argumentNames":["this"]} +Fx_add__P151636.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 Sprite_kind__P88555_mk(s) { +function Fx_add__P151636_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_kind__P88555, depth: s.depth + 1, + parent: s, fn: Fx_add__P151636, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, + arg1: undefined, } } -function path_right__P196079(s) { +function Sprite_fy__P153524(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8554,73 +12382,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.current_col___195851 + 2); - globals.current_col___195851 = (r0); - s.tmp_1 = tiles_tileIs__P89984_mk(s); - s.tmp_2 = tiles_getTileLocation__P88829_mk(s); - s.tmp_2.arg0 = globals.current_col___195851; - s.tmp_2.arg1 = globals.current_row___195860; - s.callLocIdx = 134; s.pc = 4; return s.tmp_2; - case 4: - r0 = s.retval; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = globals.tile3___142593; - s.callLocIdx = 135; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_3 = tiles_setTileAt__P88827_mk(s); - s.tmp_4 = tiles_getTileLocation__P88829_mk(s); - r0 = (globals.current_col___195851 - 1); - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = globals.current_row___195860; - s.callLocIdx = 136; s.pc = 6; return s.tmp_4; - case 6: - r0 = s.retval; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = globals.tile1___142583; - s.callLocIdx = 137; s.pc = 5; return s.tmp_3; - case 5: - r0 = s.retval; - s.tmp_0 = tiles_setTileAt__P88827_mk(s); - s.tmp_1 = tiles_getTileLocation__P88829_mk(s); - s.tmp_1.arg0 = globals.current_col___195851; - s.tmp_1.arg1 = globals.current_row___195860; - s.callLocIdx = 138; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.tile1___142583; - s.callLocIdx = 139; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = Math_max__P151609_mk(s); + s.tmp_3.arg0 = 0; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 286; s.pc = 1; return s.tmp_3; case 1: - case 2: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_fy"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -path_right__P196079.info = {"start":25012,"length":321,"line":215,"column":0,"endLine":221,"endColumn":1,"fileName":"main.ts","functionName":"path_right","argumentNames":[]} +Sprite_fy__P153524.info = {"start":4057,"length":64,"line":151,"column":4,"endLine":153,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this","v"]} -function path_right__P196079_mk(s) { +function Sprite_fy__P153524_mk(s) { checkStack(s.depth); return { - parent: s, fn: path_right__P196079, depth: s.depth + 1, + parent: s, fn: Sprite_fy__P153524, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + arg0: undefined, + arg1: undefined, } } -function tiles_tileIs__P89984(s) { +function Sprite_fy__P153523(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8632,48 +12438,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tiles_tileIsCore__P92158_mk(s); - s.tmp_1 = tiles_locationColumn__P89998_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 66; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_2 = tiles_locationRow__P89999_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 67; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 68; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + r0 = s.arg0.fields["_fy"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -tiles_tileIs__P89984.info = {"start":4593,"length":162,"line":122,"column":4,"endLine":124,"endColumn":5,"fileName":"pxt_modules/tilemaps/tilemap.ts","functionName":"tileIs","argumentNames":["location","tile"]} +Sprite_fy__P153523.info = {"start":3895,"length":60,"line":146,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this"]} +Sprite_fy__P153523.isGetter = true; -function tiles_tileIs__P89984_mk(s) { +function Sprite_fy__P153523_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_tileIs__P89984, depth: s.depth + 1, + parent: s, fn: Sprite_fy__P153523, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_tileIsCore__P92158(s) { +function Fx_toFloat__P151650(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8685,42 +12476,27 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg2; - s.tmp_2 = tiles_getTileAt__P88831_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.arg1; - s.callLocIdx = 69; s.pc = 1; return s.tmp_2; - case 1: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.equals(s.tmp_0, s.tmp_1); + r0 = (s.arg0 / 256); return leave(s, r0) default: oops() } } } -tiles_tileIsCore__P92158.info = {"start":5245,"length":132,"line":140,"column":4,"endLine":142,"endColumn":5,"fileName":"pxt_modules/tilemaps/tilemap.ts","functionName":"tileIsCore","argumentNames":["col","row","tile"]} +Fx_toFloat__P151650.info = {"start":2235,"length":81,"line":71,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]} -function tiles_tileIsCore__P92158_mk(s) { +function Fx_toFloat__P151650_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_tileIsCore__P92158, depth: s.depth + 1, + parent: s, fn: Fx_toFloat__P151650, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function tiles_getTileAt__P88831(s) { +function Sprite_fx__P153522(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8730,95 +12506,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___108882 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 24; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.scene___108882 = (r0); - r0 = (s.arg0 == undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = Math_max__P151609_mk(s); + s.tmp_3.arg0 = 0; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 283; s.pc = 1; return s.tmp_3; case 1: - r0 = (s.arg1 == undefined); - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = s.tmp_1; - { step = 4; continue; } - case 3: - r0 = s.scene___108882.fields["tileMap"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 4: - // jmp value (already in r0) + r0 = (s.tmp_2 * 256); s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 5; continue; } - r0 = pxsim.image.ofBuffer(_hex108897); - { step = 7; continue; } - case 5: - case 6: - s.tmp_5 = tiles_TileMap_getTileImage__P88824_mk(s); - r0 = s.scene___108882.fields["tileMap"]; - s.tmp_5.arg0 = r0; - s.tmp_6 = tiles_Location_tileSet__P88780_mk(s); - s.tmp_7 = tiles_getTileLocation__P88829_mk(s); - s.tmp_7.arg0 = s.arg0; - s.tmp_7.arg1 = s.arg1; - s.callLocIdx = 25; s.pc = 11; return s.tmp_7; - case 11: - r0 = s.retval; - s.tmp_6.arg0 = r0; - s.callLocIdx = 26; s.pc = 10; return s.tmp_6; - case 10: - r0 = s.retval; - s.tmp_5.arg1 = r0; - s.callLocIdx = 27; s.pc = 9; return s.tmp_5; - case 9: - r0 = s.retval; - case 7: + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_fx"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_getTileAt__P88831.info = {"start":16952,"length":275,"line":535,"column":4,"endLine":539,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileAt","argumentNames":["col","row"]} +Sprite_fx__P153522.info = {"start":3714,"length":64,"line":141,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this","v"]} -function tiles_getTileAt__P88831_mk(s) { +function Sprite_fx__P153522_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_getTileAt__P88831, depth: s.depth + 1, + parent: s, fn: Sprite_fx__P153522, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - scene___108882: undefined, arg0: undefined, arg1: undefined, } } -const _hex108897 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") -function tiles_TileMap_getTileImage__P88824(s) { +function Sprite_fx__P153521(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8830,38 +12562,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMapData_getTileImage__P88798_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 778; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - return leave(s, r0) + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + r0 = s.arg0.fields["_fx"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_getTileImage__P88824.info = {"start":13699,"length":96,"line":442,"column":8,"endLine":444,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} +Sprite_fx__P153521.info = {"start":3552,"length":60,"line":136,"column":4,"endLine":138,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this"]} +Sprite_fx__P153521.isGetter = true; -function tiles_TileMap_getTileImage__P88824_mk(s) { +function Sprite_fx__P153521_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTileImage__P88824, depth: s.depth + 1, + parent: s, fn: Sprite_fx__P153521, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_TileMap_data__P90472(s) { +function Sprite_ay__P153520(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8873,30 +12600,40 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_ay"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_TileMap_data__P90472.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__P90472.isGetter = true; +Sprite_ay__P153520.info = {"start":3383,"length":51,"line":130,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this","v"]} -function tiles_TileMap_data__P90472_mk(s) { +function Sprite_ay__P153520_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_data__P90472, depth: s.depth + 1, + parent: s, fn: Sprite_ay__P153520, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, + arg1: undefined, } } -function tiles_TileMapData_getTileImage__P88798(s) { +function Sprite_ay__P153519(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8906,94 +12643,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.size___92782 = undefined; - s.cachedImage___92786 = undefined; - s.originalImage___92793 = 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__C88789_VT)) failedCast(r0); - r0 = s.arg0.fields["_scale"]; - s.tmp_0 = r0; - r0 = (1 << s.tmp_0); - s.size___92782 = (r0); - r0 = s.arg0.fields["cachedTileView"]; - s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); - s.cachedImage___92786 = (r0); - r0 = pxsim_numops_toBoolDecr(s.cachedImage___92786); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = s.arg0.fields["tileset"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, s.arg1); - s.originalImage___92793 = (r0); - r0 = pxsim_numops_toBoolDecr(s.originalImage___92793); - if (!r0) { step = 5; continue; } - r0 = pxsim_ImageMethods.width(s.originalImage___92793); - s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.size___92782); - 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___92793); - s.tmp_2 = r0; - r0 = (s.tmp_2 <= s.size___92782); - 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___92786 = (s.originalImage___92793); - { step = 4; continue; } - case 3: - r0 = pxsim.image.create(s.size___92782, s.size___92782); - s.cachedImage___92786 = (r0); - r0 = pxsim_ImageMethods.drawImage(s.cachedImage___92786, s.originalImage___92793, 0, 0); - case 4: - r0 = s.arg0.fields["cachedTileView"]; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + r0 = s.arg0.fields["_ay"]; s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___92786); - case 5: - case 6: - case 7: - case 8: - r0 = s.cachedImage___92786; - return leave(s, r0) + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMapData_getTileImage__P88798.info = {"start":4599,"length":717,"line":172,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} +Sprite_ay__P153519.info = {"start":3217,"length":60,"line":125,"column":4,"endLine":127,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this"]} +Sprite_ay__P153519.isGetter = true; -function tiles_TileMapData_getTileImage__P88798_mk(s) { +function Sprite_ay__P153519_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTileImage__P88798, depth: s.depth + 1, + parent: s, fn: Sprite_ay__P153519, depth: s.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___92782: undefined, - cachedImage___92786: undefined, - originalImage___92793: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_TileMapData_scale__P88793(s) { +function Sprite_ax__P153518(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9005,30 +12683,40 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C88789_VT)) failedCast(r0); - r0 = s.arg0.fields["_scale"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_ax"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_TileMapData_scale__P88793.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__P88793.isGetter = true; +Sprite_ax__P153518.info = {"start":3044,"length":51,"line":119,"column":4,"endLine":121,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this","v"]} -function tiles_TileMapData_scale__P88793_mk(s) { +function Sprite_ax__P153518_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_scale__P88793, depth: s.depth + 1, + parent: s, fn: Sprite_ax__P153518, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, + arg1: undefined, } } -function tiles_Location_tileSet__P88780(s) { +function Sprite_ax__P153517(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9043,27 +12731,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C88774_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMap_getTileIndex__P88815_mk(s); - r0 = s.arg0.fields["tileMap"]; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["_col"]; - s.tmp_0.arg1 = r0; - r0 = s.arg0.fields["_row"]; - s.tmp_0.arg2 = r0; - s.callLocIdx = 695; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + r0 = s.arg0.fields["_ax"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_tileSet__P88780.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__P88780.isGetter = true; +Sprite_ax__P153517.info = {"start":2878,"length":60,"line":114,"column":4,"endLine":116,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this"]} +Sprite_ax__P153517.isGetter = true; -function tiles_Location_tileSet__P88780_mk(s) { +function Sprite_ax__P153517_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_tileSet__P88780, depth: s.depth + 1, + parent: s, fn: Sprite_ax__P153517, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -9073,7 +12754,7 @@ function tiles_Location_tileSet__P88780_mk(s) { -function tiles_TileMap_getTileIndex__P88815(s) { +function Sprite_vy__P153516(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9086,40 +12767,39 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMapData_getTile__P88795_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 = 720; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_getTileIndex__P88815.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"]} +Sprite_vy__P153516.info = {"start":2705,"length":51,"line":108,"column":4,"endLine":110,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this","v"]} -function tiles_TileMap_getTileIndex__P88815_mk(s) { +function Sprite_vy__P153516_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTileIndex__P88815, depth: s.depth + 1, + parent: s, fn: Sprite_vy__P153516, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function tiles_locationRow__P89999(s) { +function Sprite_vy__P153515(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9133,28 +12813,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = tiles_screenCoordinateToTile__P90015_mk(s); - s.tmp_1 = tiles_Location_y__P88779_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 72; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.callLocIdx = 73; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + r0 = s.arg0.fields["_vy"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -tiles_locationRow__P89999.info = {"start":10678,"length":370,"line":296,"column":4,"endLine":303,"endColumn":5,"fileName":"pxt_modules/tilemaps/tilemap.ts","functionName":"locationRow","argumentNames":["location"]} +Sprite_vy__P153515.info = {"start":2543,"length":60,"line":103,"column":4,"endLine":105,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this"]} +Sprite_vy__P153515.isGetter = true; -function tiles_locationRow__P89999_mk(s) { +function Sprite_vy__P153515_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_locationRow__P89999, depth: s.depth + 1, + parent: s, fn: Sprite_vy__P153515, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -9162,7 +12837,7 @@ function tiles_locationRow__P89999_mk(s) { -function tiles_screenCoordinateToTile__P90015(s) { +function Sprite_vx__P153514(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9172,55 +12847,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___108855 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 74; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = r0.fields["tileMap"]; - s.tm___108855 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tm___108855); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (s.arg0 >> 4); - { step = 3; continue; } - case 1: - case 2: - s.tmp_2 = r0 = s.arg0; - r0 = s.tm___108855.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 >> s.tmp_3); - case 3: + r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_screenCoordinateToTile__P90015.info = {"start":14355,"length":380,"line":413,"column":4,"endLine":420,"endColumn":5,"fileName":"pxt_modules/tilemaps/tilemap.ts","functionName":"screenCoordinateToTile","argumentNames":["value"]} +Sprite_vx__P153514.info = {"start":2374,"length":51,"line":97,"column":4,"endLine":99,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this","v"]} -function tiles_screenCoordinateToTile__P90015_mk(s) { +function Sprite_vx__P153514_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_screenCoordinateToTile__P90015, depth: s.depth + 1, + parent: s, fn: Sprite_vx__P153514, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tm___108855: undefined, arg0: undefined, + arg1: undefined, } } -function tiles_locationColumn__P89998(s) { +function Sprite_vx__P153513(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9234,28 +12896,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = tiles_screenCoordinateToTile__P90015_mk(s); - s.tmp_1 = tiles_Location_x__P88778_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 70; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.callLocIdx = 71; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + r0 = s.arg0.fields["_vx"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -tiles_locationColumn__P89998.info = {"start":10228,"length":376,"line":284,"column":4,"endLine":291,"endColumn":5,"fileName":"pxt_modules/tilemaps/tilemap.ts","functionName":"locationColumn","argumentNames":["location"]} +Sprite_vx__P153513.info = {"start":2212,"length":60,"line":92,"column":4,"endLine":94,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this"]} +Sprite_vx__P153513.isGetter = true; -function tiles_locationColumn__P89998_mk(s) { +function Sprite_vx__P153513_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_locationColumn__P89998, depth: s.depth + 1, + parent: s, fn: Sprite_vx__P153513, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -9263,7 +12920,7 @@ function tiles_locationColumn__P89998_mk(s) { -function path_left__P195848(s) { +function make_walls__P218963(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9273,73 +12930,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.current_col___195851 + -2); - globals.current_col___195851 = (r0); - s.tmp_1 = tiles_tileIs__P89984_mk(s); - s.tmp_2 = tiles_getTileLocation__P88829_mk(s); - s.tmp_2.arg0 = globals.current_col___195851; - s.tmp_2.arg1 = globals.current_row___195860; - s.callLocIdx = 73; s.pc = 4; return s.tmp_2; - case 4: - r0 = s.retval; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = globals.tile3___142593; - s.callLocIdx = 74; s.pc = 3; return s.tmp_1; + s.loc___219133 = undefined; + s.unnamed1958___U1 = undefined; + s.unnamed1959___U2 = undefined; + s.loc___219133 = (undefined); + s.tmp_0 = tiles_getTilesByType__P153834_mk(s); + s.tmp_0.arg0 = globals.tile5___155290; + s.callLocIdx = 187; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_3 = tiles_setTileAt__P88827_mk(s); - s.tmp_4 = tiles_getTileLocation__P88829_mk(s); - r0 = (globals.current_col___195851 + 1); - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = globals.current_row___195860; - s.callLocIdx = 75; s.pc = 6; return s.tmp_4; - case 6: - r0 = s.retval; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = globals.tile1___142583; - s.callLocIdx = 76; s.pc = 5; return s.tmp_3; - case 5: - r0 = s.retval; - s.tmp_0 = tiles_setTileAt__P88827_mk(s); - s.tmp_1 = tiles_getTileLocation__P88829_mk(s); - s.tmp_1.arg0 = globals.current_col___195851; - s.tmp_1.arg1 = globals.current_row___195860; - s.callLocIdx = 77; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.tile1___142583; - s.callLocIdx = 78; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; + s.unnamed1958___U1 = (r0); + s.unnamed1959___U2 = (0); case 1: + s.tmp_0 = r0 = s.unnamed1959___U2; + r0 = pxsim_Array__length(s.unnamed1958___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed1958___U1, s.unnamed1959___U2); + s.loc___219133 = (r0); + s.tmp_2 = tiles_setWallAt__P153827_mk(s); + s.tmp_2.arg0 = s.loc___219133; + s.tmp_2.arg1 = true; + s.callLocIdx = 188; s.pc = 4; return s.tmp_2; + case 4: + r0 = s.retval; + r0 = (s.unnamed1959___U2 + 1); + s.unnamed1959___U2 = (r0); + { step = 1; continue; } case 2: + s.unnamed1958___U1 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -path_left__P195848.info = {"start":355,"length":321,"line":11,"column":0,"endLine":17,"endColumn":1,"fileName":"main.ts","functionName":"path_left","argumentNames":[]} +make_walls__P218963.info = {"start":27657,"length":126,"line":273,"column":0,"endLine":277,"endColumn":1,"fileName":"main.ts","functionName":"make_walls","argumentNames":[]} -function path_left__P195848_mk(s) { +function make_walls__P218963_mk(s) { checkStack(s.depth); return { - parent: s, fn: path_left__P195848, depth: s.depth + 1, + parent: s, fn: make_walls__P218963, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, + loc___219133: undefined, + unnamed1958___U1: undefined, + unnamed1959___U2: undefined, } } -function col_in_tilemap__P195825(s) { +function make_maze__P218843(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9351,125 +12995,251 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 >= 0); + s.tmp_0 = sprites_create__P153458_mk(s); + r0 = pxsim.image.ofBuffer(_hex219144); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = globals.Player___153612; + s.callLocIdx = 133; s.pc = 17; return s.tmp_0; + case 17: + r0 = s.retval; + globals.sprite_cursor___218948 = (r0); + globals.current_col___218969 = (s.arg0); + globals.current_row___218967 = (s.arg1); + s.tmp_0 = tiles_setTileAt__P153826_mk(s); + s.tmp_1 = tiles_getTileLocation__P153828_mk(s); + s.tmp_1.arg0 = globals.current_col___218969; + s.tmp_1.arg1 = globals.current_row___218967; + s.callLocIdx = 134; s.pc = 19; return s.tmp_1; + case 19: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = globals.tile6___155291; + s.callLocIdx = 135; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + case 1: + s.tmp_3 = tiles_getTilesByType__P153834_mk(s); + s.tmp_3.arg0 = globals.tile7___155292; + s.callLocIdx = 136; s.pc = 20; return s.tmp_3; + case 20: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_Array__length(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_1 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + s.tmp_5 = Math_percentChance__P154068_mk(s); + s.tmp_5.arg0 = 50; + s.callLocIdx = 137; 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 = 8; continue; } + s.tmp_7 = Math_percentChance__P154068_mk(s); + s.tmp_7.arg0 = 50; + s.callLocIdx = 138; s.pc = 22; return s.tmp_7; + case 22: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_numops_toBool(s.tmp_6); + if (!r0) { step = 2; continue; } + r0 = s.tmp_6; + { step = 3; continue; } + case 2: + s.tmp_10 = rows_in_tilemap__P218845_mk(s); + r0 = (globals.current_row___218967 + 2); + s.tmp_10.arg0 = r0; + s.callLocIdx = 139; s.pc = 23; return s.tmp_10; + case 23: + r0 = s.retval; + s.tmp_9 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_9); + s.tmp_8 = r0; + r0 = pxsim_Boolean__bang(s.tmp_8); + case 3: + // jmp value (already in r0) + s.tmp_11 = r0; + r0 = pxsim_numops_toBool(s.tmp_11); + if (r0) { step = 4; continue; } + r0 = s.tmp_11; + { step = 5; continue; } + case 4: + s.tmp_12 = rows_in_tilemap__P218845_mk(s); + r0 = (globals.current_row___218967 - 2); + s.tmp_12.arg0 = r0; + s.callLocIdx = 140; s.pc = 24; return s.tmp_12; + case 24: + r0 = s.retval; + case 5: + // jmp value (already in r0) + s.tmp_13 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_13); + if (!r0) { step = 6; continue; } + s.tmp_14 = path_up__P218841_mk(s); + s.callLocIdx = 141; s.pc = 25; return s.tmp_14; + case 25: + r0 = s.retval; + { step = 7; continue; } + case 6: + s.tmp_0 = path_down__P218803_mk(s); + s.callLocIdx = 142; s.pc = 26; return s.tmp_0; + case 26: + r0 = s.retval; + case 7: + { step = 15; continue; } + case 8: + s.tmp_1 = Math_percentChance__P154068_mk(s); + s.tmp_1.arg0 = 50; + s.callLocIdx = 143; s.pc = 27; return s.tmp_1; + case 27: + r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } + if (!r0) { step = 9; continue; } r0 = s.tmp_0; - { step = 2; continue; } - case 1: - s.tmp_1 = r0 = s.arg0; - s.tmp_3 = tiles_tilemapColumns__P90013_mk(s); - s.callLocIdx = 67; s.pc = 3; return s.tmp_3; - case 3: + { step = 10; continue; } + case 9: + s.tmp_4 = col_in_tilemap__P218801_mk(s); + r0 = (globals.current_col___218969 + 2); + s.tmp_4.arg0 = r0; + s.callLocIdx = 144; s.pc = 28; return s.tmp_4; + case 28: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 10: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBool(s.tmp_5); + if (r0) { step = 11; continue; } + r0 = s.tmp_5; + { step = 12; continue; } + case 11: + s.tmp_6 = col_in_tilemap__P218801_mk(s); + r0 = (globals.current_col___218969 - 2); + s.tmp_6.arg0 = r0; + s.callLocIdx = 145; s.pc = 29; return s.tmp_6; + case 29: + r0 = s.retval; + case 12: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 13; continue; } + s.tmp_8 = path_left__P218802_mk(s); + s.callLocIdx = 146; s.pc = 30; return s.tmp_8; + case 30: + r0 = s.retval; + { step = 14; continue; } + case 13: + s.tmp_0 = path_right__P218844_mk(s); + s.callLocIdx = 147; s.pc = 31; return s.tmp_0; + case 31: + r0 = s.retval; + case 14: + case 15: + s.tmp_0 = tiles_placeOnTile__P153832_mk(s); + s.tmp_0.arg0 = globals.sprite_cursor___218948; + s.tmp_1 = tiles_getTileLocation__P153828_mk(s); + s.tmp_1.arg0 = globals.current_col___218969; + s.tmp_1.arg1 = globals.current_row___218967; + s.callLocIdx = 148; s.pc = 33; return s.tmp_1; + case 33: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 149; s.pc = 32; return s.tmp_0; + case 32: r0 = s.retval; + r0 = pxsim_String_.mkEmpty(); s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - case 2: - // jmp value (already in r0) + s.tmp_6 = tiles_getTilesByType__P153834_mk(s); + s.tmp_6.arg0 = globals.tile7___155292; + s.callLocIdx = 150; s.pc = 34; return s.tmp_6; + case 34: + r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_Array__length(s.tmp_5); s.tmp_4 = r0; - r0 = s.tmp_4; - return leave(s, r0) - default: oops() -} } } -col_in_tilemap__P195825.info = {"start":0,"length":93,"line":0,"column":0,"endLine":2,"endColumn":1,"fileName":"main.ts","functionName":"col_in_tilemap","argumentNames":["col"]} - -function col_in_tilemap__P195825_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: col_in_tilemap__P195825, depth: s.depth + 1, - pc: 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 path_down__P195875(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = (globals.current_row___195860 + 2); - globals.current_row___195860 = (r0); - s.tmp_1 = tiles_tileIs__P89984_mk(s); - s.tmp_2 = tiles_getTileLocation__P88829_mk(s); - s.tmp_2.arg0 = globals.current_col___195851; - s.tmp_2.arg1 = globals.current_row___195860; - s.callLocIdx = 79; s.pc = 4; return s.tmp_2; - case 4: + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 35); + pxsim_String__stringConv(s.tmp_4); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_4) + ""; } + case 35: r0 = s.retval; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = globals.tile3___142593; - s.callLocIdx = 80; s.pc = 3; return s.tmp_1; - case 3: + s.tmp_3 = r0; + r0 = pxsim_String__concat(s.tmp_2, s.tmp_3); + s.tmp_1 = r0; + if ((s.tmp_1) && (s.tmp_1).vtable) { + setupResume(s, 36); + pxsim_String__stringConv(s.tmp_1); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_1) + ""; } + case 36: r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_3 = tiles_setTileAt__P88827_mk(s); - s.tmp_4 = tiles_getTileLocation__P88829_mk(s); - s.tmp_4.arg0 = globals.current_col___195851; - r0 = (globals.current_row___195860 - 1); - s.tmp_4.arg1 = r0; - s.callLocIdx = 81; s.pc = 6; return s.tmp_4; - case 6: - r0 = s.retval; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = globals.tile1___142583; - s.callLocIdx = 82; s.pc = 5; return s.tmp_3; - case 5: - r0 = s.retval; - s.tmp_0 = tiles_setTileAt__P88827_mk(s); - s.tmp_1 = tiles_getTileLocation__P88829_mk(s); - s.tmp_1.arg0 = globals.current_col___195851; - s.tmp_1.arg1 = globals.current_row___195860; - s.callLocIdx = 83; s.pc = 8; return s.tmp_1; - case 8: + r0 = pxsim_String__concat(s.tmp_0, " cell(s) left"); + globals.message2___218915 = (r0); + s.tmp_0 = pause__P151886_mk(s); + s.tmp_0.arg0 = 0; + s.callLocIdx = 151; s.pc = 37; return s.tmp_0; + case 37: r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.tile1___142583; - s.callLocIdx = 84; s.pc = 7; return s.tmp_0; - case 7: + { step = 1; continue; } + case 16: + s.tmp_0 = Sprite_destroy__P153571_mk(s); + s.tmp_0.arg0 = globals.sprite_cursor___218948; + s.tmp_0.arg1 = undefined; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 152; s.pc = 38; return s.tmp_0; + case 38: r0 = s.retval; - case 1: - case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -path_down__P195875.info = {"start":677,"length":320,"line":18,"column":0,"endLine":24,"endColumn":1,"fileName":"main.ts","functionName":"path_down","argumentNames":[]} +make_maze__P218843.info = {"start":24370,"length":1327,"line":198,"column":0,"endLine":232,"endColumn":1,"fileName":"main.ts","functionName":"make_maze","argumentNames":["start_col","start_row"]} -function path_down__P195875_mk(s) { +function make_maze__P218843_mk(s) { checkStack(s.depth); return { - parent: s, fn: path_down__P195875, depth: s.depth + 1, + parent: s, fn: make_maze__P218843, depth: s.depth + 1, pc: 0, retval: undefined, 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, + arg0: undefined, + arg1: undefined, } } +const _hex219144 = pxsim.BufferMethods.createBufferFromHex("87040800080000002222222222222222222222222222222222222222222222222222222222222222") -function path_up__P195965(s) { +function path_right__P218844(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9479,60 +13249,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.current_row___195860 + -2); - globals.current_row___195860 = (r0); - s.tmp_1 = tiles_tileIs__P89984_mk(s); - s.tmp_2 = tiles_getTileLocation__P88829_mk(s); - s.tmp_2.arg0 = globals.current_col___195851; - s.tmp_2.arg1 = globals.current_row___195860; - s.callLocIdx = 101; s.pc = 4; return s.tmp_2; + r0 = (globals.current_col___218969 + 2); + globals.current_col___218969 = (r0); + s.tmp_1 = tiles_tileIs__P155129_mk(s); + s.tmp_2 = tiles_getTileLocation__P153828_mk(s); + s.tmp_2.arg0 = globals.current_col___218969; + s.tmp_2.arg1 = globals.current_row___218967; + s.callLocIdx = 153; s.pc = 4; return s.tmp_2; case 4: r0 = s.retval; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = globals.tile3___142593; - s.callLocIdx = 102; s.pc = 3; return s.tmp_1; + s.tmp_1.arg1 = globals.tile7___155292; + s.callLocIdx = 154; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = tiles_setTileAt__P88827_mk(s); - s.tmp_4 = tiles_getTileLocation__P88829_mk(s); - s.tmp_4.arg0 = globals.current_col___195851; - r0 = (globals.current_row___195860 + 1); - s.tmp_4.arg1 = r0; - s.callLocIdx = 103; s.pc = 6; return s.tmp_4; + s.tmp_3 = tiles_setTileAt__P153826_mk(s); + s.tmp_4 = tiles_getTileLocation__P153828_mk(s); + r0 = (globals.current_col___218969 - 1); + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = globals.current_row___218967; + s.callLocIdx = 155; s.pc = 6; return s.tmp_4; case 6: r0 = s.retval; s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = globals.tile1___142583; - s.callLocIdx = 104; s.pc = 5; return s.tmp_3; + s.tmp_3.arg1 = globals.tile6___155291; + s.callLocIdx = 156; s.pc = 5; return s.tmp_3; case 5: r0 = s.retval; - s.tmp_0 = tiles_setTileAt__P88827_mk(s); - s.tmp_1 = tiles_getTileLocation__P88829_mk(s); - s.tmp_1.arg0 = globals.current_col___195851; - s.tmp_1.arg1 = globals.current_row___195860; - s.callLocIdx = 105; s.pc = 8; return s.tmp_1; + s.tmp_0 = tiles_setTileAt__P153826_mk(s); + s.tmp_1 = tiles_getTileLocation__P153828_mk(s); + s.tmp_1.arg0 = globals.current_col___218969; + s.tmp_1.arg1 = globals.current_row___218967; + s.callLocIdx = 157; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.tile1___142583; - s.callLocIdx = 106; s.pc = 7; return s.tmp_0; + s.tmp_0.arg1 = globals.tile6___155291; + s.callLocIdx = 158; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; + r0 = (globals.loading_numerator___218861 + 1); + globals.loading_numerator___218861 = (r0); case 1: case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -path_up__P195965.info = {"start":22553,"length":319,"line":154,"column":0,"endLine":160,"endColumn":1,"fileName":"main.ts","functionName":"path_up","argumentNames":[]} +path_right__P218844.info = {"start":25698,"length":352,"line":233,"column":0,"endLine":240,"endColumn":1,"fileName":"main.ts","functionName":"path_right","argumentNames":[]} -function path_up__P195965_mk(s) { +function path_right__P218844_mk(s) { checkStack(s.depth); return { - parent: s, fn: path_up__P195965, depth: s.depth + 1, + parent: s, fn: path_right__P218844, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -9545,7 +13317,7 @@ function path_up__P195965_mk(s) { -function rows_in_tilemap__P196053(s) { +function tiles_tileIs__P155129(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9557,49 +13329,48 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - s.tmp_1 = r0 = s.arg0; - s.tmp_3 = tiles_tilemapRows__P90014_mk(s); - s.callLocIdx = 140; s.pc = 3; return s.tmp_3; + s.tmp_0 = tiles_tileIsCore__P157420_mk(s); + s.tmp_1 = tiles_locationColumn__P155143_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1452; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_2 = tiles_locationRow__P155144_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1453; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 1454; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -rows_in_tilemap__P196053.info = {"start":25334,"length":91,"line":222,"column":0,"endLine":224,"endColumn":1,"fileName":"main.ts","functionName":"rows_in_tilemap","argumentNames":["row"]} +tiles_tileIs__P155129.info = {"start":4593,"length":162,"line":122,"column":4,"endLine":124,"endColumn":5,"fileName":"pxt_modules/tilemaps/tilemap.ts","functionName":"tileIs","argumentNames":["location","tile"]} -function rows_in_tilemap__P196053_mk(s) { +function tiles_tileIs__P155129_mk(s) { checkStack(s.depth); return { - parent: s, fn: rows_in_tilemap__P196053, depth: s.depth + 1, + parent: s, fn: tiles_tileIs__P155129, depth: s.depth + 1, pc: 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 Math_percentChance__P89069(s) { +function tiles_tileIsCore__P157420(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9611,50 +13382,42 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = (s.arg0 >= 100); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = true; - { step = 5; continue; } - { step = 4; continue; } + s.tmp_0 = r0 = s.arg2; + s.tmp_2 = tiles_getTileAt__P153830_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.arg1; + s.callLocIdx = 1455; s.pc = 1; return s.tmp_2; case 1: - r0 = (s.arg0 <= 0); + r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = false; - { step = 5; continue; } - case 2: - case 3: - case 4: - r0 = pxsim.Math_.randomRange(0, 99); - s.tmp_2 = r0; - r0 = (s.tmp_2 < s.arg0); - case 5: + r0 = pxsim_ImageMethods.equals(s.tmp_0, s.tmp_1); return leave(s, r0) default: oops() } } } -Math_percentChance__P89069.info = {"start":369,"length":259,"line":9,"column":4,"endLine":17,"endColumn":5,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"percentChance","argumentNames":["percentage"]} +tiles_tileIsCore__P157420.info = {"start":5245,"length":132,"line":140,"column":4,"endLine":142,"endColumn":5,"fileName":"pxt_modules/tilemaps/tilemap.ts","functionName":"tileIsCore","argumentNames":["col","row","tile"]} -function Math_percentChance__P89069_mk(s) { +function tiles_tileIsCore__P157420_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_percentChance__P89069, depth: s.depth + 1, + parent: s, fn: tiles_tileIsCore__P157420, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function divide_maze__P195988(s) { +function tiles_getTileAt__P153830(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9664,94 +13427,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.row___195989 = undefined; - s.col___195994 = undefined; - s.row___195989 = (0); - case 1: - s.tmp_1 = r0 = s.row___195989; - s.tmp_3 = tiles_tilemapRows__P90014_mk(s); - s.callLocIdx = 107; s.pc = 9; return s.tmp_3; - case 9: + s.scene___166802 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 930; s.pc = 8; return s.tmp_0; + case 8: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 <= s.tmp_2); + s.scene___166802 = (r0); + r0 = (s.arg0 == undefined); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.col___195994 = (0); + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = (s.arg1 == undefined); case 2: - s.tmp_1 = r0 = s.col___195994; - s.tmp_3 = tiles_tilemapColumns__P90013_mk(s); - s.callLocIdx = 108; s.pc = 10; return s.tmp_3; - case 10: - r0 = s.retval; + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 3; continue; } + r0 = s.tmp_1; + { step = 4; continue; } + case 3: + r0 = s.scene___166802.fields["tileMap"]; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; - r0 = (s.tmp_1 <= s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = pxsim.Math_.idiv(s.col___195994, 2); - s.tmp_5 = r0; - r0 = (s.col___195994 / 2); - s.tmp_6 = r0; - r0 = (s.tmp_5 == s.tmp_6); + r0 = pxsim_Boolean__bang(s.tmp_2); + case 4: + // jmp value (already in r0) s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 3; continue; } - s.tmp_7 = tiles_setTileAt__P88827_mk(s); - s.tmp_8 = tiles_getTileLocation__P88829_mk(s); - s.tmp_8.arg0 = s.col___195994; - s.tmp_8.arg1 = s.row___195989; - s.callLocIdx = 110; s.pc = 12; return s.tmp_8; - case 12: - r0 = s.retval; - s.tmp_7.arg0 = r0; - s.tmp_7.arg1 = globals.tile2___142588; - s.callLocIdx = 111; s.pc = 11; return s.tmp_7; + if (!r0) { step = 5; continue; } + r0 = pxsim.image.ofBuffer(_hex166817); + { step = 7; continue; } + case 5: + case 6: + s.tmp_5 = tiles_TileMap_getTileImage__P153823_mk(s); + r0 = s.scene___166802.fields["tileMap"]; + s.tmp_5.arg0 = r0; + s.tmp_6 = tiles_Location_tileSet__P153779_mk(s); + s.tmp_7 = tiles_getTileLocation__P153828_mk(s); + s.tmp_7.arg0 = s.arg0; + s.tmp_7.arg1 = s.arg1; + s.callLocIdx = 931; s.pc = 11; return s.tmp_7; case 11: r0 = s.retval; - case 3: - case 4: - r0 = pxsim.Math_.idiv(s.row___195989, 2); - s.tmp_1 = r0; - r0 = (s.row___195989 / 2); - 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; } - s.tmp_3 = tiles_setTileAt__P88827_mk(s); - s.tmp_4 = tiles_getTileLocation__P88829_mk(s); - s.tmp_4.arg0 = s.col___195994; - s.tmp_4.arg1 = s.row___195989; - s.callLocIdx = 113; s.pc = 14; return s.tmp_4; - case 14: + s.tmp_6.arg0 = r0; + s.callLocIdx = 932; s.pc = 10; return s.tmp_6; + case 10: r0 = s.retval; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = globals.tile2___142588; - s.callLocIdx = 114; s.pc = 13; return s.tmp_3; - case 13: + s.tmp_5.arg1 = r0; + s.callLocIdx = 933; s.pc = 9; return s.tmp_5; + case 9: r0 = s.retval; - case 5: - case 6: - r0 = (s.col___195994 + 1); - s.col___195994 = (r0); - { step = 2; continue; } case 7: - r0 = (s.row___195989 + 1); - s.row___195989 = (r0); - { step = 1; continue; } - case 8: - r0 = undefined; return leave(s, r0) default: oops() } } } -divide_maze__P195988.info = {"start":22873,"length":420,"line":161,"column":0,"endLine":172,"endColumn":1,"fileName":"main.ts","functionName":"divide_maze","argumentNames":[]} +tiles_getTileAt__P153830.info = {"start":16952,"length":275,"line":535,"column":4,"endLine":539,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileAt","argumentNames":["col","row"]} -function divide_maze__P195988_mk(s) { +function tiles_getTileAt__P153830_mk(s) { checkStack(s.depth); return { - parent: s, fn: divide_maze__P195988, depth: s.depth + 1, + parent: s, fn: tiles_getTileAt__P153830, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -9761,16 +13505,17 @@ function divide_maze__P195988_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tmp_8: undefined, - row___195989: undefined, - col___195994: undefined, + scene___166802: undefined, + arg0: undefined, + arg1: undefined, } } +const _hex166817 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") -function is_even__P196000(s) { +function tiles_TileMap_getTileImage__P153823(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9782,33 +13527,38 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim.Math_.idiv(s.arg0, 2); - s.tmp_0 = r0; - r0 = (s.arg0 / 2); - s.tmp_1 = r0; - r0 = (s.tmp_0 == s.tmp_1); + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMapData_getTileImage__P153797_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 912; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -is_even__P196000.info = {"start":26568,"length":74,"line":253,"column":0,"endLine":255,"endColumn":1,"fileName":"main.ts","functionName":"is_even","argumentNames":["num"]} +tiles_TileMap_getTileImage__P153823.info = {"start":13699,"length":96,"line":442,"column":8,"endLine":444,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} -function is_even__P196000_mk(s) { +function tiles_TileMap_getTileImage__P153823_mk(s) { checkStack(s.depth); return { - parent: s, fn: is_even__P196000, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTileImage__P153823, 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 clear_maze__P195929(s) { +function tiles_TileMap_data__P155636(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9818,90 +13568,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.row___195930 = undefined; - s.col___195935 = undefined; - s.row___195930 = (0); - case 1: - s.tmp_1 = r0 = s.row___195930; - s.tmp_3 = tiles_tilemapRows__P90014_mk(s); - s.callLocIdx = 91; s.pc = 5; return s.tmp_3; - case 5: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 <= s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.col___195935 = (0); - case 2: - s.tmp_1 = r0 = s.col___195935; - s.tmp_3 = tiles_tilemapColumns__P90013_mk(s); - s.callLocIdx = 92; s.pc = 6; return s.tmp_3; - case 6: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 <= s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_4 = tiles_setWallAt__P88828_mk(s); - s.tmp_5 = tiles_getTileLocation__P88829_mk(s); - s.tmp_5.arg0 = s.col___195935; - s.tmp_5.arg1 = s.row___195930; - s.callLocIdx = 93; s.pc = 8; return s.tmp_5; - case 8: - r0 = s.retval; - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = false; - s.callLocIdx = 94; s.pc = 7; return s.tmp_4; - case 7: - r0 = s.retval; - s.tmp_0 = tiles_setTileAt__P88827_mk(s); - s.tmp_1 = tiles_getTileLocation__P88829_mk(s); - s.tmp_1.arg0 = s.col___195935; - s.tmp_1.arg1 = s.row___195930; - s.callLocIdx = 95; s.pc = 10; return s.tmp_1; - case 10: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.tile3___142593; - s.callLocIdx = 96; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - r0 = (s.col___195935 + 1); - s.col___195935 = (r0); - { step = 2; continue; } - case 3: - r0 = (s.row___195930 + 1); - s.row___195930 = (r0); - { step = 1; continue; } - case 4: - r0 = undefined; - return leave(s, r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; + return leaveAccessor(s, r0) default: oops() } } } -clear_maze__P195929.info = {"start":22065,"length":311,"line":142,"column":0,"endLine":149,"endColumn":1,"fileName":"main.ts","functionName":"clear_maze","argumentNames":[]} +tiles_TileMap_data__P155636.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__P155636.isGetter = true; -function clear_maze__P195929_mk(s) { +function tiles_TileMap_data__P155636_mk(s) { checkStack(s.depth); return { - parent: s, fn: clear_maze__P195929, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_data__P155636, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - row___195930: undefined, - col___195935: undefined, + arg0: undefined, } } -function init_maze__P195896(s) { +function tiles_TileMapData_getTileImage__P153797(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9911,104 +13603,94 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.size___158744 = undefined; + s.cachedImage___158748 = undefined; + s.originalImage___158755 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 == 1); + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C153788_VT)) failedCast(r0); + r0 = s.arg0.fields["_scale"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); + r0 = (1 << s.tmp_0); + s.size___158744 = (r0); + r0 = s.arg0.fields["cachedTileView"]; + s.tmp_0 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); + s.cachedImage___158748 = (r0); + r0 = pxsim_numops_toBoolDecr(s.cachedImage___158748); s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_1, globals.transparency16___142578); - s.tmp_2 = tiles_setTilemap__P88826_mk(s); - s.tmp_3 = tiles_createTilemap__P88825_mk(s); - s.tmp_3.arg0 = _hex195903; - r0 = pxsim.image.ofBuffer(_hex195905); - s.tmp_3.arg1 = r0; - s.tmp_3.arg2 = s.tmp_1; - s.tmp_3.arg3 = 4; - s.callLocIdx = 85; s.pc = 6; return s.tmp_3; - case 6: - r0 = s.retval; - s.tmp_2.arg0 = r0; - s.callLocIdx = 86; s.pc = 5; return s.tmp_2; - case 5: - r0 = s.retval; - { step = 4; continue; } - case 1: - r0 = (s.arg0 == 2); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__mk(); + if (!r0) { step = 7; continue; } + r0 = s.arg0.fields["tileset"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, s.arg1); + s.originalImage___158755 = (r0); + r0 = pxsim_numops_toBoolDecr(s.originalImage___158755); + if (!r0) { step = 5; continue; } + r0 = pxsim_ImageMethods.width(s.originalImage___158755); s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_1, globals.transparency16___142578); - s.tmp_2 = tiles_setTilemap__P88826_mk(s); - s.tmp_3 = tiles_createTilemap__P88825_mk(s); - s.tmp_3.arg0 = _hex195914; - r0 = pxsim.image.ofBuffer(_hex195916); - s.tmp_3.arg1 = r0; - s.tmp_3.arg2 = s.tmp_1; - s.tmp_3.arg3 = 4; - s.callLocIdx = 87; s.pc = 8; return s.tmp_3; - case 8: - r0 = s.retval; - s.tmp_2.arg0 = r0; - s.callLocIdx = 88; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - { step = 3; continue; } - case 2: - r0 = pxsim_Array__mk(); + r0 = (s.tmp_1 <= s.size___158744); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, globals.transparency16___142578); - s.tmp_1 = tiles_setTilemap__P88826_mk(s); - s.tmp_2 = tiles_createTilemap__P88825_mk(s); - s.tmp_2.arg0 = _hex195923; - r0 = pxsim.image.ofBuffer(_hex195925); - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = s.tmp_0; - s.tmp_2.arg3 = 4; - s.callLocIdx = 89; s.pc = 10; return s.tmp_2; - case 10: - r0 = s.retval; - s.tmp_1.arg0 = r0; - s.callLocIdx = 90; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; + 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___158755); + s.tmp_2 = r0; + r0 = (s.tmp_2 <= s.size___158744); + 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___158748 = (s.originalImage___158755); + { step = 4; continue; } case 3: + r0 = pxsim.image.create(s.size___158744, s.size___158744); + s.cachedImage___158748 = (r0); + r0 = pxsim_ImageMethods.drawImage(s.cachedImage___158748, s.originalImage___158755, 0, 0); case 4: - r0 = undefined; + r0 = s.arg0.fields["cachedTileView"]; + s.tmp_0 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___158748); + case 5: + case 6: + case 7: + case 8: + r0 = s.cachedImage___158748; return leave(s, r0) default: oops() } } } -init_maze__P195896.info = {"start":998,"length":21066,"line":25,"column":0,"endLine":141,"endColumn":1,"fileName":"main.ts","functionName":"init_maze","argumentNames":["difficulty"]} +tiles_TileMapData_getTileImage__P153797.info = {"start":4599,"length":717,"line":172,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} -function init_maze__P195896_mk(s) { +function tiles_TileMapData_getTileImage__P153797_mk(s) { checkStack(s.depth); return { - parent: s, fn: init_maze__P195896, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTileImage__P153797, depth: s.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___158744: undefined, + cachedImage___158748: undefined, + originalImage___158755: undefined, arg0: undefined, + arg1: undefined, } } -const _hex195903 = pxsim.BufferMethods.createBufferFromHex("14000f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex195905 = pxsim.BufferMethods.createBufferFromHex("870414000f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex195914 = pxsim.BufferMethods.createBufferFromHex("28001e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex195916 = pxsim.BufferMethods.createBufferFromHex("870428001e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex195923 = pxsim.BufferMethods.createBufferFromHex("50003c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex195925 = pxsim.BufferMethods.createBufferFromHex("870450003c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -function tiles_createTilemap__P88825(s) { +function tiles_TileMapData_scale__P153792(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10020,46 +13702,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(tiles_TileMapData__C88789_VT); - s.tmp_0 = r0; - s.tmp_1 = tiles_TileMapData_constructor__P88790_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.arg1; - s.tmp_1.arg3 = s.arg2; - s.tmp_1.arg4 = s.arg3; - s.callLocIdx = 779; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = s.tmp_0; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C153788_VT)) failedCast(r0); + r0 = s.arg0.fields["_scale"]; + return leaveAccessor(s, r0) default: oops() } } } -tiles_createTilemap__P88825.info = {"start":14038,"length":170,"line":456,"column":4,"endLine":458,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"createTilemap","argumentNames":["data","layer","tiles","scale"]} +tiles_TileMapData_scale__P153792.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__P153792.isGetter = true; -function tiles_createTilemap__P88825_mk(s) { +function tiles_TileMapData_scale__P153792_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_createTilemap__P88825, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P153792, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function tiles_TileMapData_constructor__P88790(s) { +function tiles_Location_tileSet__P153779(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10071,56 +13737,40 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C88789_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__P88794_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg4; - s.callLocIdx = 696; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, tiles_Location__C153773_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMap_getTileIndex__P153814_mk(s); + r0 = s.arg0.fields["tileMap"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["_col"]; + s.tmp_0.arg1 = r0; + r0 = s.arg0.fields["_row"]; + s.tmp_0.arg2 = r0; + s.callLocIdx = 826; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.BufferMethods.getNumber(s.arg1, 4, 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_width"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.BufferMethods.getNumber(s.arg1, 4, 2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_height"] = (s.tmp_1); - r0 = undefined; - return leave(s, r0) + return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMapData_constructor__P88790.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_Location_tileSet__P153779.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__P153779.isGetter = true; -function tiles_TileMapData_constructor__P88790_mk(s) { +function tiles_Location_tileSet__P153779_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_constructor__P88790, depth: s.depth + 1, + parent: s, fn: tiles_Location_tileSet__P153779, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function tiles_TileMapData_scale__P88794(s) { +function tiles_TileMap_getTileIndex__P153814(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10133,37 +13783,40 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C88789_VT)) failedCast(r0); - r0 = (s.arg0).fields["_scale"] = (s.arg1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["cachedTileView"] = (s.tmp_1); - r0 = undefined; + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMapData_getTile__P153794_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 = 854; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -tiles_TileMapData_scale__P88794.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_TileMap_getTileIndex__P153814.info = {"start":7380,"length":105,"line":273,"column":8,"endLine":275,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileIndex","argumentNames":["this","col","row"]} -function tiles_TileMapData_scale__P88794_mk(s) { +function tiles_TileMap_getTileIndex__P153814_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_scale__P88794, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTileIndex__P153814, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function tiles_setTilemap__P88826(s) { +function tiles_TileMapData_getTile__P153794(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10175,33 +13828,71 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = scene_setTileMapLevel__P88947_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 780; s.pc = 1; return s.tmp_0; - case 1: + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C153788_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P153800_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = s.arg2; + s.callLocIdx = 831; s.pc = 4; return s.tmp_1; + case 4: r0 = s.retval; - r0 = undefined; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 0; + { step = 3; continue; } + case 1: + case 2: + r0 = s.arg0.fields["data"]; + s.tmp_2 = r0; + r0 = (s.arg1 | 0); + s.tmp_5 = r0; + r0 = (4 + s.tmp_5); + s.tmp_4 = r0; + r0 = (s.arg2 | 0); + s.tmp_7 = r0; + r0 = s.arg0.fields["_width"]; + s.tmp_8 = r0; + r0 = (s.tmp_7 * s.tmp_8); + s.tmp_6 = r0; + r0 = (s.tmp_4 + s.tmp_6); + s.tmp_3 = r0; + r0 = pxsim.BufferMethods.getUint8(s.tmp_2, s.tmp_3); + case 3: return leave(s, r0) default: oops() } } } -tiles_setTilemap__P88826.info = {"start":14603,"length":96,"line":468,"column":4,"endLine":470,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTilemap","argumentNames":["tilemap"]} +tiles_TileMapData_getTile__P153794.info = {"start":3997,"length":200,"line":152,"column":8,"endLine":156,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} -function tiles_setTilemap__P88826_mk(s) { +function tiles_TileMapData_getTile__P153794_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_setTilemap__P88826, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTile__P153794, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function scene_setTileMapLevel__P88947(s) { +function tiles_locationRow__P155144(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10211,67 +13902,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___94210 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 854; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.scene___94210 = (r0); - r0 = s.scene___94210.fields["tileMap"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkClassInstance(tiles_TileMap__C88802_VT); - s.tmp_3 = r0; - s.tmp_4 = tiles_TileMap_constructor__P88803_mk(s); - s.tmp_4.arg0 = s.tmp_3; - s.tmp_4.arg1 = 4; - s.callLocIdx = 855; s.pc = 4; return s.tmp_4; - case 4: - r0 = s.retval; - r0 = (s.scene___94210).fields["tileMap"] = (s.tmp_3); - case 1: + s.tmp_0 = tiles_screenCoordinateToTile__P155160_mk(s); + s.tmp_1 = tiles_Location_y__P153778_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1458; s.pc = 2; return s.tmp_1; case 2: - s.tmp_0 = tiles_TileMap_setData__P88813_mk(s); - r0 = s.scene___94210.fields["tileMap"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 856; s.pc = 5; return s.tmp_0; - case 5: r0 = s.retval; - s.tmp_0 = tiles_TileMap_scale__P88805_mk(s); - r0 = s.scene___94210.fields["tileMap"]; s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_0.arg1 = r0; - s.callLocIdx = 858; s.pc = 6; return s.tmp_0; - case 6: + s.callLocIdx = 1459; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -scene_setTileMapLevel__P88947.info = {"start":2994,"length":260,"line":113,"column":4,"endLine":119,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setTileMapLevel","argumentNames":["map"]} +tiles_locationRow__P155144.info = {"start":10678,"length":370,"line":296,"column":4,"endLine":303,"endColumn":5,"fileName":"pxt_modules/tilemaps/tilemap.ts","functionName":"locationRow","argumentNames":["location"]} -function scene_setTileMapLevel__P88947_mk(s) { +function tiles_locationRow__P155144_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_setTileMapLevel__P88947, depth: s.depth + 1, + parent: s, fn: tiles_locationRow__P155144, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - scene___94210: undefined, arg0: undefined, } } @@ -10279,7 +13935,7 @@ function scene_setTileMapLevel__P88947_mk(s) { -function tiles_TileMap_setData__P88813(s) { +function tiles_screenCoordinateToTile__P155160(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10289,34 +13945,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.tm___158431 = 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__C88802_VT)) failedCast(r0); - r0 = (s.arg0).fields["_map"] = (s.arg1); - r0 = undefined; + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 1484; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = r0.fields["tileMap"]; + s.tm___158431 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tm___158431); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = (s.arg0 >> 4); + { step = 3; continue; } + case 1: + case 2: + s.tmp_2 = r0 = s.arg0; + r0 = s.tm___158431.fields["_scale"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 >> s.tmp_3); + case 3: return leave(s, r0) default: oops() } } } -tiles_TileMap_setData__P88813.info = {"start":7183,"length":66,"line":265,"column":8,"endLine":267,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setData","argumentNames":["this","map"]} +tiles_screenCoordinateToTile__P155160.info = {"start":14355,"length":380,"line":413,"column":4,"endLine":420,"endColumn":5,"fileName":"pxt_modules/tilemaps/tilemap.ts","functionName":"screenCoordinateToTile","argumentNames":["value"]} -function tiles_TileMap_setData__P88813_mk(s) { +function tiles_screenCoordinateToTile__P155160_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_setData__P88813, depth: s.depth + 1, + parent: s, fn: tiles_screenCoordinateToTile__P155160, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tm___158431: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_TileMap_scale__P88805(s) { +function tiles_locationColumn__P155143(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10328,47 +14005,38 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_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__P88794_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 707; s.pc = 3; return s.tmp_1; - case 3: + s.tmp_0 = tiles_screenCoordinateToTile__P155160_mk(s); + s.tmp_1 = tiles_Location_x__P153777_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1456; s.pc = 2; return s.tmp_1; + case 2: r0 = s.retval; + s.tmp_0.arg0 = r0; + s.callLocIdx = 1457; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = undefined; + r0 = s.retval; return leave(s, r0) default: oops() } } } -tiles_TileMap_scale__P88805.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_locationColumn__P155143.info = {"start":10228,"length":376,"line":284,"column":4,"endLine":291,"endColumn":5,"fileName":"pxt_modules/tilemaps/tilemap.ts","functionName":"locationColumn","argumentNames":["location"]} -function tiles_TileMap_scale__P88805_mk(s) { +function tiles_locationColumn__P155143_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_scale__P88805, depth: s.depth + 1, + parent: s, fn: tiles_locationColumn__P155143, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_TileMap_constructor__P88803(s) { +function path_left__P218802(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10378,52 +14046,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_VT)) failedCast(r0); - r0 = (s.arg0).fields["_layer"] = (1); - s.tmp_0 = tiles_TileMap_scale__P88805_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 704; s.pc = 1; return s.tmp_0; - case 1: + r0 = (globals.current_col___218969 + -2); + globals.current_col___218969 = (r0); + s.tmp_1 = tiles_tileIs__P155129_mk(s); + s.tmp_2 = tiles_getTileLocation__P153828_mk(s); + s.tmp_2.arg0 = globals.current_col___218969; + s.tmp_2.arg1 = globals.current_row___218967; + s.callLocIdx = 78; s.pc = 4; return s.tmp_2; + case 4: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = globals.tile7___155292; + s.callLocIdx = 79; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P94256); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = scene_createRenderable__P88868_mk(s); - s.tmp_1.arg0 = -1; - s.tmp_1.arg1 = s.tmp_0; - s.tmp_1.arg2 = undefined; - s.callLocIdx = 706; s.pc = 2; return s.tmp_1; - case 2: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_3 = tiles_setTileAt__P153826_mk(s); + s.tmp_4 = tiles_getTileLocation__P153828_mk(s); + r0 = (globals.current_col___218969 + 1); + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = globals.current_row___218967; + s.callLocIdx = 80; s.pc = 6; return s.tmp_4; + case 6: + r0 = s.retval; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = globals.tile6___155291; + s.callLocIdx = 81; s.pc = 5; return s.tmp_3; + case 5: + r0 = s.retval; + s.tmp_0 = tiles_setTileAt__P153826_mk(s); + s.tmp_1 = tiles_getTileLocation__P153828_mk(s); + s.tmp_1.arg0 = globals.current_col___218969; + s.tmp_1.arg1 = globals.current_row___218967; + s.callLocIdx = 82; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = globals.tile6___155291; + s.callLocIdx = 83; s.pc = 7; return s.tmp_0; + case 7: r0 = s.retval; + r0 = (globals.loading_numerator___218861 + 1); + globals.loading_numerator___218861 = (r0); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_constructor__P88803.info = {"start":5865,"length":250,"line":210,"column":8,"endLine":218,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","scale"]} +path_left__P218802.info = {"start":94,"length":352,"line":3,"column":0,"endLine":10,"endColumn":1,"fileName":"main.ts","functionName":"path_left","argumentNames":[]} -function tiles_TileMap_constructor__P88803_mk(s) { +function path_left__P218802_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_constructor__P88803, depth: s.depth + 1, + parent: s, fn: path_left__P218802, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, - arg1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, } } -function inline__P94256(s) { +function col_in_tilemap__P218801(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10435,37 +14126,49 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tiles_TileMap_draw__P90474_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 705; s.pc = 1; return s.tmp_0; + r0 = (s.arg0 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + s.tmp_1 = r0 = s.arg0; + s.tmp_3 = tiles_tilemapColumns__P155158_mk(s); + s.callLocIdx = 77; s.pc = 3; return s.tmp_3; + case 3: r0 = s.retval; - r0 = undefined; + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; return leave(s, r0) default: oops() } } } -inline__P94256.info = {"start":6065,"length":25,"line":216,"column":16,"endLine":216,"endColumn":41,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["t","c"]} +col_in_tilemap__P218801.info = {"start":0,"length":93,"line":0,"column":0,"endLine":2,"endColumn":1,"fileName":"main.ts","functionName":"col_in_tilemap","argumentNames":["col"]} -function inline__P94256_mk(s) { +function col_in_tilemap__P218801_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P94256, depth: s.depth + 1, + parent: s, fn: col_in_tilemap__P218801, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_TileMap_draw__P90474(s) { +function path_down__P218803(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10475,333 +14178,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.bitmask___94267 = undefined; - s.offsetX___94273 = undefined; - s.offsetY___94278 = undefined; - s.x0___94283 = undefined; - s.xn___94290 = undefined; - s.y0___94307 = undefined; - s.yn___94314 = undefined; - s.x___94331 = undefined; - s.y___94337 = undefined; - s.index___94343 = undefined; - s.tile___94350 = undefined; - s.x___94386 = undefined; - s.xLine___94392 = undefined; - s.y___94418 = undefined; - s.yLine___94424 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - s.tmp_5 = r0; - r0 = pxsim_Boolean__bang(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 23; continue; } - case 1: - case 2: - r0 = s.arg0.fields["_scale"]; - s.tmp_8 = r0; - r0 = (1 << s.tmp_8); - s.tmp_7 = r0; - r0 = (s.tmp_7 - 1); - s.bitmask___94267 = (r0); - r0 = s.arg2.fields["drawOffsetX"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___94267); - s.offsetX___94273 = (r0); - r0 = s.arg2.fields["drawOffsetY"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___94267); - s.offsetY___94278 = (r0); - s.tmp_0 = Math_max__P86610_mk(s); - s.tmp_0.arg0 = 0; - r0 = s.arg2.fields["drawOffsetX"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 >> s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 737; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.x0___94283 = (r0); - s.tmp_0 = Math_min__P86611_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["_width"]; - s.tmp_0.arg0 = r0; - r0 = s.arg2.fields["drawOffsetX"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.arg1); - s.tmp_5 = r0; - r0 = (s.tmp_4 + s.tmp_5); - s.tmp_3 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_6 = r0; - r0 = (s.tmp_3 >> s.tmp_6); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 740; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.xn___94290 = (r0); - s.tmp_0 = Math_max__P86610_mk(s); - s.tmp_0.arg0 = 0; - r0 = s.arg2.fields["drawOffsetY"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 >> s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 742; s.pc = 26; return s.tmp_0; - case 26: - r0 = s.retval; - s.y0___94307 = (r0); - s.tmp_0 = Math_min__P86611_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["_height"]; - s.tmp_0.arg0 = r0; - r0 = s.arg2.fields["drawOffsetY"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(s.arg1); - s.tmp_5 = r0; - r0 = (s.tmp_4 + s.tmp_5); - s.tmp_3 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_6 = r0; - r0 = (s.tmp_3 >> s.tmp_6); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 745; s.pc = 27; return s.tmp_0; - case 27: + r0 = (globals.current_row___218967 + 2); + globals.current_row___218967 = (r0); + s.tmp_1 = tiles_tileIs__P155129_mk(s); + s.tmp_2 = tiles_getTileLocation__P153828_mk(s); + s.tmp_2.arg0 = globals.current_col___218969; + s.tmp_2.arg1 = globals.current_row___218967; + s.callLocIdx = 84; s.pc = 4; return s.tmp_2; + case 4: r0 = s.retval; - s.yn___94314 = (r0); - s.x___94331 = (s.x0___94283); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = globals.tile7___155292; + s.callLocIdx = 85; s.pc = 3; return s.tmp_1; case 3: - r0 = (s.x___94331 <= s.xn___94290); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.y___94337 = (s.y0___94307); - case 4: - r0 = (s.y___94337 <= s.yn___94314); + r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_1 = tiles_TileMapData_getTile__P88795_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.x___94331; - s.tmp_1.arg2 = s.y___94337; - s.callLocIdx = 746; s.pc = 28; return s.tmp_1; - case 28: - r0 = s.retval; - s.index___94343 = (r0); - s.tmp_0 = tiles_TileMapData_getTileImage__P88798_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___94343; - s.callLocIdx = 747; s.pc = 29; return s.tmp_0; - case 29: + if (!r0) { step = 1; continue; } + s.tmp_3 = tiles_setTileAt__P153826_mk(s); + s.tmp_4 = tiles_getTileLocation__P153828_mk(s); + s.tmp_4.arg0 = globals.current_col___218969; + r0 = (globals.current_row___218967 - 1); + s.tmp_4.arg1 = r0; + s.callLocIdx = 86; s.pc = 6; return s.tmp_4; + case 6: r0 = s.retval; - s.tile___94350 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tile___94350); - if (!r0) { step = 5; continue; } - s.tmp_0 = r0 = s.arg1; - s.tmp_1 = r0 = s.tile___94350; - r0 = (s.x___94331 - s.x0___94283); - 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___94273); - s.tmp_2 = r0; - r0 = (s.y___94337 - s.y0___94307); - 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___94278); - s.tmp_6 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_6); + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = globals.tile6___155291; + s.callLocIdx = 87; s.pc = 5; return s.tmp_3; case 5: - case 6: - r0 = (s.y___94337 + 1); - s.y___94337 = (r0); - { step = 4; continue; } - case 7: - r0 = (s.x___94331 + 1); - s.x___94331 = (r0); - { step = 3; continue; } + r0 = s.retval; + s.tmp_0 = tiles_setTileAt__P153826_mk(s); + s.tmp_1 = tiles_getTileLocation__P153828_mk(s); + s.tmp_1.arg0 = globals.current_col___218969; + s.tmp_1.arg1 = globals.current_row___218967; + s.callLocIdx = 88; s.pc = 8; return s.tmp_1; case 8: - r0 = pxsim_numops_toBoolDecr(globals.debug___89013); - if (!r0) { step = 21; continue; } - s.x___94386 = (s.x0___94283); - case 9: - r0 = (s.x___94386 <= s.xn___94290); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = (s.x___94386 - s.x0___94283); - 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___94273); - s.xLine___94392 = (r0); - r0 = (s.xLine___94392 >= 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___94392; - r0 = pxsim_ImageMethods.width(globals.screen___88287); - s.tmp_2 = r0; - r0 = (s.tmp_1 <= s.tmp_2); - case 11: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 12; continue; } - s.tmp_4 = helpers_imageDrawLine__P88215_mk(s); - s.tmp_4.arg0 = s.arg1; - s.tmp_4.arg1 = s.xLine___94392; - s.tmp_4.arg2 = 0; - s.tmp_4.arg3 = s.xLine___94392; - r0 = pxsim_ImageMethods.height(s.arg1); - s.tmp_4.arg4 = r0; - s.tmp_4.arg5 = 1; - s.callLocIdx = 751; s.pc = 30; return s.tmp_4; - case 30: r0 = s.retval; - case 12: - case 13: - r0 = (s.x___94386 + 1); - s.x___94386 = (r0); - { step = 9; continue; } - case 14: - s.y___94418 = (s.y0___94307); - case 15: - r0 = (s.y___94418 <= s.yn___94314); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - r0 = (s.y___94418 - s.y0___94307); - 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___94278); - s.yLine___94424 = (r0); - r0 = (s.yLine___94424 >= 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___94424; - r0 = pxsim_ImageMethods.height(globals.screen___88287); - s.tmp_2 = r0; - r0 = (s.tmp_1 <= s.tmp_2); - case 17: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 18; continue; } - s.tmp_4 = helpers_imageDrawLine__P88215_mk(s); - s.tmp_4.arg0 = s.arg1; - s.tmp_4.arg1 = 0; - s.tmp_4.arg2 = s.yLine___94424; - r0 = pxsim_ImageMethods.width(s.arg1); - s.tmp_4.arg3 = r0; - s.tmp_4.arg4 = s.yLine___94424; - s.tmp_4.arg5 = 1; - s.callLocIdx = 753; s.pc = 31; return s.tmp_4; - case 31: + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = globals.tile6___155291; + s.callLocIdx = 89; s.pc = 7; return s.tmp_0; + case 7: r0 = s.retval; - case 18: - case 19: - r0 = (s.y___94418 + 1); - s.y___94418 = (r0); - { step = 15; continue; } - case 20: - case 21: - case 22: - case 23: + r0 = (globals.loading_numerator___218861 + 1); + globals.loading_numerator___218861 = (r0); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_draw__P90474.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"]} +path_down__P218803.info = {"start":447,"length":351,"line":11,"column":0,"endLine":18,"endColumn":1,"fileName":"main.ts","functionName":"path_down","argumentNames":[]} -function tiles_TileMap_draw__P90474_mk(s) { +function path_down__P218803_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_draw__P90474, depth: s.depth + 1, + parent: s, fn: path_down__P218803, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - bitmask___94267: undefined, - offsetX___94273: undefined, - offsetY___94278: undefined, - x0___94283: undefined, - xn___94290: undefined, - y0___94307: undefined, - yn___94314: undefined, - x___94331: undefined, - y___94337: undefined, - index___94343: undefined, - tile___94350: undefined, - x___94386: undefined, - xLine___94392: undefined, - y___94418: undefined, - yLine___94424: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function scene_createRenderable__P88868(s) { +function path_up__P218841(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10811,60 +14256,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.renderable___94495 = 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__C88863_VT); + r0 = (globals.current_row___218967 + -2); + globals.current_row___218967 = (r0); + s.tmp_1 = tiles_tileIs__P155129_mk(s); + s.tmp_2 = tiles_getTileLocation__P153828_mk(s); + s.tmp_2.arg0 = globals.current_col___218969; + s.tmp_2.arg1 = globals.current_row___218967; + s.callLocIdx = 119; s.pc = 4; return s.tmp_2; + case 4: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = globals.tile7___155292; + s.callLocIdx = 120; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; s.tmp_0 = r0; - s.tmp_1 = r0 = s.arg2; - r0 = pxsim_numops_toBool(s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_1; - { step = 2; continue; } + s.tmp_3 = tiles_setTileAt__P153826_mk(s); + s.tmp_4 = tiles_getTileLocation__P153828_mk(s); + s.tmp_4.arg0 = globals.current_col___218969; + r0 = (globals.current_row___218967 + 1); + s.tmp_4.arg1 = r0; + s.callLocIdx = 121; s.pc = 6; return s.tmp_4; + case 6: + r0 = s.retval; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = globals.tile6___155291; + s.callLocIdx = 122; s.pc = 5; return s.tmp_3; + case 5: + r0 = s.retval; + s.tmp_0 = tiles_setTileAt__P153826_mk(s); + s.tmp_1 = tiles_getTileLocation__P153828_mk(s); + s.tmp_1.arg0 = globals.current_col___218969; + s.tmp_1.arg1 = globals.current_row___218967; + s.callLocIdx = 123; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = globals.tile6___155291; + s.callLocIdx = 124; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + r0 = (globals.loading_numerator___218861 + 1); + globals.loading_numerator___218861 = (r0); case 1: - r0 = inline__P94501; case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - s.tmp_3 = scene_Renderable_constructor__P88864_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 = 820; s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; - s.renderable___94495 = (s.tmp_0); - r0 = s.renderable___94495; + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_createRenderable__P88868.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"]} +path_up__P218841.info = {"start":23590,"length":350,"line":178,"column":0,"endLine":185,"endColumn":1,"fileName":"main.ts","functionName":"path_up","argumentNames":[]} -function scene_createRenderable__P88868_mk(s) { +function path_up__P218841_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_createRenderable__P88868, depth: s.depth + 1, + parent: s, fn: path_up__P218841, depth: s.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___94495: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, + tmp_4: undefined, } } -function inline__P94501(s) { +function rows_in_tilemap__P218845(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10874,24 +14334,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = true; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = (s.arg0 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_1 = r0 = s.arg0; + s.tmp_3 = tiles_tilemapRows__P155159_mk(s); + s.callLocIdx = 159; s.pc = 3; return s.tmp_3; + case 3: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; return leave(s, r0) default: oops() } } } -inline__P94501.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} +rows_in_tilemap__P218845.info = {"start":26051,"length":91,"line":241,"column":0,"endLine":243,"endColumn":1,"fileName":"main.ts","functionName":"rows_in_tilemap","argumentNames":["row"]} -function inline__P94501_mk(s) { +function rows_in_tilemap__P218845_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P94501, depth: s.depth + 1, + parent: s, fn: rows_in_tilemap__P218845, depth: s.depth + 1, pc: 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 scene_Renderable_constructor__P88864(s) { +function Math_percentChance__P154068(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10903,44 +14390,50 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C88863_VT)) failedCast(r0); - r0 = (s.arg0).fields["handler"] = (s.arg1); - r0 = (s.arg0).fields["shouldBeVisible"] = (s.arg2); - s.tmp_0 = sprites_BaseSprite_constructor__P88345_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg3; - s.callLocIdx = 817; s.pc = 1; return s.tmp_0; + r0 = (s.arg0 >= 100); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = true; + { step = 5; continue; } + { step = 4; continue; } case 1: - r0 = s.retval; - r0 = undefined; + r0 = (s.arg0 <= 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = false; + { step = 5; continue; } + case 2: + case 3: + case 4: + r0 = pxsim.Math_.randomRange(0, 99); + s.tmp_2 = r0; + r0 = (s.tmp_2 < s.arg0); + case 5: return leave(s, r0) default: oops() } } } -scene_Renderable_constructor__P88864.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"]} +Math_percentChance__P154068.info = {"start":369,"length":259,"line":9,"column":4,"endLine":17,"endColumn":5,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"percentChance","argumentNames":["percentage"]} -function scene_Renderable_constructor__P88864_mk(s) { +function Math_percentChance__P154068_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable_constructor__P88864, depth: s.depth + 1, + parent: s, fn: Math_percentChance__P154068, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function minimap_getImage__P89960(s) { +function tiles_getTilesByType__P153834(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10950,33 +14443,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___160059 = undefined; + s.index___160069 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = if_image_1_mk(s); - s.tmp_0.arg0 = s.arg0; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "image"); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["image"]; - if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["image"]; } - else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } - else { s.callLocIdx = 61; s.pc = 1; return s.tmp_0; } - } + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 936; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.scene___160059 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = s.scene___160059.fields["tileMap"]; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + r0 = pxsim_Array__mk(); + { step = 5; continue; } + case 3: + case 4: + s.tmp_5 = tiles_TileMap_getImageType__P153816_mk(s); + r0 = s.scene___160059.fields["tileMap"]; + s.tmp_5.arg0 = r0; + s.tmp_5.arg1 = s.arg0; + s.callLocIdx = 937; s.pc = 7; return s.tmp_5; + case 7: + r0 = s.retval; + s.index___160069 = (r0); + s.tmp_0 = tiles_TileMap_getTilesByType__P153818_mk(s); + r0 = s.scene___160059.fields["tileMap"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.index___160069; + s.callLocIdx = 938; s.pc = 8; return s.tmp_0; + case 8: r0 = s.retval; + case 5: return leave(s, r0) default: oops() } } } -minimap_getImage__P89960.info = {"start":2905,"length":86,"line":92,"column":4,"endLine":94,"endColumn":5,"fileName":"pxt_modules/arcade-minimap/minimap.ts","functionName":"getImage","argumentNames":["minimap"]} +tiles_getTilesByType__P153834.info = {"start":19427,"length":262,"line":597,"column":4,"endLine":602,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTilesByType","argumentNames":["tile"]} -function minimap_getImage__P89960_mk(s) { +function tiles_getTilesByType__P153834_mk(s) { checkStack(s.depth); return { - parent: s, fn: minimap_getImage__P89960, depth: s.depth + 1, + parent: s, fn: tiles_getTilesByType__P153834, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + scene___160059: undefined, + index___160069: undefined, arg0: undefined, } } @@ -10984,7 +14518,7 @@ function minimap_getImage__P89960_mk(s) { -function spriteutils_drawTransparentImage__P89971(s) { +function tiles_TileMap_getTilesByType__P153818(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10994,61 +14528,143 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.output___160088 = undefined; + s.col___160090 = undefined; + s.row___160097 = undefined; + s.currTile___160104 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMap_isInvalidIndex__P155637_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 862; s.pc = 12; return s.tmp_1; + case 12: + r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_numops_toBoolDecr(s.arg1); + r0 = s.arg0.fields["_map"]; + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + s.tmp_6 = r0; + r0 = pxsim_Boolean__bang(s.tmp_6); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); case 2: // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); if (!r0) { step = 3; continue; } + r0 = pxsim_Array__mk(); + { step = 11; continue; } + case 3: + case 4: + r0 = pxsim_Array__mk(); + s.output___160088 = (r0); + s.col___160090 = (0); + case 5: + s.tmp_1 = r0 = s.col___160090; + r0 = s.arg0.fields["_map"]; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["_width"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 10; continue; } + s.row___160097 = (0); + case 6: + s.tmp_1 = r0 = s.row___160097; + r0 = s.arg0.fields["_map"]; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["_height"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + s.tmp_4 = tiles_TileMapData_getTile__P153794_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = s.col___160090; + s.tmp_4.arg2 = s.row___160097; + s.callLocIdx = 866; s.pc = 13; return s.tmp_4; + case 13: + r0 = s.retval; + s.currTile___160104 = (r0); + r0 = (s.currTile___160104 === s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C153773_VT); + s.tmp_1 = r0; + s.tmp_2 = tiles_Location_constructor__P153776_mk(s); + s.tmp_2.arg0 = s.tmp_1; + s.tmp_2.arg1 = s.col___160090; + s.tmp_2.arg2 = s.row___160097; + s.tmp_2.arg3 = s.arg0; + s.callLocIdx = 867; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + r0 = pxsim_Array__push(s.output___160088, s.tmp_1); + case 7: + case 8: + r0 = (s.row___160097 + 1); + s.row___160097 = (r0); + { step = 6; continue; } + case 9: + r0 = (s.col___160090 + 1); + s.col___160090 = (r0); { step = 5; continue; } - case 3: - case 4: - r0 = pxsim_ImageMethods.drawTransparentImage(s.arg1, s.arg0, s.arg2, s.arg3); - case 5: - r0 = undefined; + case 10: + r0 = s.output___160088; + case 11: return leave(s, r0) default: oops() } } } -spriteutils_drawTransparentImage__P89971.info = {"start":5153,"length":190,"line":157,"column":4,"endLine":162,"endColumn":5,"fileName":"pxt_modules/arcade-sprite-util/spriteutils.ts","functionName":"drawTransparentImage","argumentNames":["src","to","x","y"]} +tiles_TileMap_getTilesByType__P153818.info = {"start":8389,"length":561,"line":302,"column":8,"endLine":315,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTilesByType","argumentNames":["this","index"]} -function spriteutils_drawTransparentImage__P89971_mk(s) { +function tiles_TileMap_getTilesByType__P153818_mk(s) { checkStack(s.depth); return { - parent: s, fn: spriteutils_drawTransparentImage__P89971, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTilesByType__P153818, depth: s.depth + 1, pc: 0, retval: undefined, 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, + output___160088: undefined, + col___160090: undefined, + row___160097: undefined, + currTile___160104: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function spriteutils_isDestroyed__P89963(s) { +function tiles_TileMap_enabled__P153811(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11062,48 +14678,32 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.arg0.fields["flags"]; - s.tmp_6 = r0; - r0 = (s.tmp_6 & 2); - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = s.tmp_7; - return leave(s, r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + return leaveAccessor(s, r0) default: oops() } } } -spriteutils_isDestroyed__P89963.info = {"start":528,"length":129,"line":19,"column":4,"endLine":21,"endColumn":5,"fileName":"pxt_modules/arcade-sprite-util/spriteutils.ts","functionName":"isDestroyed","argumentNames":["sprite"]} +tiles_TileMap_enabled__P153811.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__P153811.isGetter = true; -function spriteutils_isDestroyed__P89963_mk(s) { +function tiles_TileMap_enabled__P153811_mk(s) { checkStack(s.depth); return { - parent: s, fn: spriteutils_isDestroyed__P89963, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_enabled__P153811, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -11111,7 +14711,7 @@ function spriteutils_isDestroyed__P89963_mk(s) { -function minimap_includeSprite__P89961(s) { +function divide_maze__P218842(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11121,160 +14721,98 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scale___92509 = undefined; - s.x___92516 = undefined; - s.y___92533 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - s.tmp_0 = Math_max__P86610_mk(s); - s.tmp_2 = if_scale_1_mk(s); - s.tmp_2.arg0 = s.arg0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "scale"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["scale"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["scale"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1224; s.pc = 2; return s.tmp_2; } - } - case 2: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 - s.arg2); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1225; s.pc = 1; return s.tmp_0; + s.row___219331 = undefined; + s.col___219338 = undefined; + s.row___219331 = (0); case 1: + s.tmp_1 = r0 = s.row___219331; + s.tmp_4 = tiles_tilemapRows__P155159_mk(s); + s.callLocIdx = 125; s.pc = 9; return s.tmp_4; + case 9: r0 = s.retval; - s.scale___92509 = (r0); - s.tmp_3 = Sprite_x__P88510_mk(s); - s.tmp_3.arg0 = s.arg1; - s.callLocIdx = 1226; s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 - 1); s.tmp_2 = r0; - s.tmp_5 = if_scale_1_mk(s); - s.tmp_5.arg0 = s.arg0; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "scale"); - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["scale"]; - if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["scale"]; } - else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1227; s.pc = 4; return s.tmp_5; } - } - case 4: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_2 >> s.tmp_4); - s.tmp_1 = r0; - r0 = s.arg1.fields["_image"]; - s.tmp_9 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_9); - s.tmp_8 = r0; - r0 = (s.tmp_8 / 2); - s.tmp_7 = r0; - r0 = (s.tmp_7 >> s.scale___92509); - s.tmp_6 = r0; - r0 = (s.tmp_1 - s.tmp_6); + r0 = (s.tmp_1 <= s.tmp_2); s.tmp_0 = r0; - s.tmp_11 = if_borderWidth_1_mk(s); - s.tmp_11.arg0 = s.arg0; - if (!s.tmp_11.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "borderWidth"); - } else { - s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["borderWidth"]; - if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["borderWidth"]; } - else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } - else { s.callLocIdx = 1229; s.pc = 5; return s.tmp_11; } - } - case 5: - r0 = s.retval; - s.tmp_10 = r0; - r0 = (s.tmp_0 + s.tmp_10); - s.x___92516 = (r0); - s.tmp_3 = Sprite_y__P88512_mk(s); - s.tmp_3.arg0 = s.arg1; - s.callLocIdx = 1230; s.pc = 6; return s.tmp_3; - case 6: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.col___219338 = (0); + case 2: + s.tmp_1 = r0 = s.col___219338; + s.tmp_4 = tiles_tilemapColumns__P155158_mk(s); + s.callLocIdx = 126; s.pc = 10; return s.tmp_4; + case 10: r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 - 1); s.tmp_2 = r0; - s.tmp_5 = if_scale_1_mk(s); - s.tmp_5.arg0 = s.arg0; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "scale"); - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["scale"]; - if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["scale"]; } - else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1231; s.pc = 7; return s.tmp_5; } - } - case 7: + r0 = (s.tmp_1 <= s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = pxsim.Math_.idiv(s.col___219338, 2); + s.tmp_6 = r0; + r0 = (s.col___219338 / 2); + s.tmp_7 = r0; + r0 = (s.tmp_6 == s.tmp_7); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 3; continue; } + s.tmp_8 = tiles_setTileAt__P153826_mk(s); + s.tmp_9 = tiles_getTileLocation__P153828_mk(s); + s.tmp_9.arg0 = s.col___219338; + s.tmp_9.arg1 = s.row___219331; + s.callLocIdx = 128; s.pc = 12; return s.tmp_9; + case 12: r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_2 >> s.tmp_4); + s.tmp_8.arg0 = r0; + s.tmp_8.arg1 = globals.tile5___155290; + s.callLocIdx = 129; s.pc = 11; return s.tmp_8; + case 11: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim.Math_.idiv(s.row___219331, 2); s.tmp_1 = r0; - r0 = s.arg1.fields["_image"]; - s.tmp_9 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_9); - s.tmp_8 = r0; - r0 = (s.tmp_8 / 2); - s.tmp_7 = r0; - r0 = (s.tmp_7 >> s.scale___92509); - s.tmp_6 = r0; - r0 = (s.tmp_1 - s.tmp_6); + r0 = (s.row___219331 / 2); + s.tmp_2 = r0; + r0 = (s.tmp_1 == s.tmp_2); s.tmp_0 = r0; - s.tmp_11 = if_borderWidth_1_mk(s); - s.tmp_11.arg0 = s.arg0; - if (!s.tmp_11.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "borderWidth"); - } else { - s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["borderWidth"]; - if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["borderWidth"]; } - else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } - else { s.callLocIdx = 1233; s.pc = 8; return s.tmp_11; } - } - case 8: - r0 = s.retval; - s.tmp_10 = r0; - r0 = (s.tmp_0 + s.tmp_10); - s.y___92533 = (r0); - s.tmp_0 = minimap_renderScaledImage__P92155_mk(s); - r0 = s.arg1.fields["_image"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = if_image_1_mk(s); - s.tmp_1.arg0 = s.arg0; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "image"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["image"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["image"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1235; s.pc = 10; return s.tmp_1; } - } - case 10: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_3 = tiles_setTileAt__P153826_mk(s); + s.tmp_4 = tiles_getTileLocation__P153828_mk(s); + s.tmp_4.arg0 = s.col___219338; + s.tmp_4.arg1 = s.row___219331; + s.callLocIdx = 131; s.pc = 14; return s.tmp_4; + case 14: r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.x___92516; - s.tmp_0.arg3 = s.y___92533; - s.tmp_0.arg4 = s.scale___92509; - s.callLocIdx = 1236; s.pc = 9; return s.tmp_0; - case 9: + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = globals.tile5___155290; + s.callLocIdx = 132; s.pc = 13; return s.tmp_3; + case 13: r0 = s.retval; + case 5: + case 6: + r0 = (s.col___219338 + 1); + s.col___219338 = (r0); + { step = 2; continue; } + case 7: + r0 = (s.row___219331 + 1); + s.row___219331 = (r0); + { step = 1; continue; } + case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -minimap_includeSprite__P89961.info = {"start":3241,"length":451,"line":102,"column":4,"endLine":107,"endColumn":5,"fileName":"pxt_modules/arcade-minimap/minimap.ts","functionName":"includeSprite","argumentNames":["minimap","sprite","spriteScale"]} +divide_maze__P218842.info = {"start":23941,"length":428,"line":186,"column":0,"endLine":197,"endColumn":1,"fileName":"main.ts","functionName":"divide_maze","argumentNames":[]} -function minimap_includeSprite__P89961_mk(s) { +function divide_maze__P218842_mk(s) { checkStack(s.depth); return { - parent: s, fn: minimap_includeSprite__P89961, depth: s.depth + 1, + parent: s, fn: divide_maze__P218842, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11286,21 +14824,15 @@ function minimap_includeSprite__P89961_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - scale___92509: undefined, - x___92516: undefined, - y___92533: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, + row___219331: undefined, + col___219338: undefined, } } -function minimap_renderScaledImage__P92155(s) { +function is_even__P218965(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11310,111 +14842,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tile___92567 = undefined; - s.i___92569 = undefined; - s.j___92575 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - s.tile___92567 = (s.arg0); - s.i___92569 = (0); - case 1: - s.tmp_1 = r0 = s.i___92569; - r0 = pxsim_ImageMethods.width(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.j___92575 = (0); - case 2: - s.tmp_1 = r0 = s.j___92575; - r0 = pxsim_ImageMethods.height(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = pxsim.Math_.idiv(s.arg0, 2); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = pxsim_ImageMethods.getPixel(s.arg0, s.i___92569, s.j___92575); - s.tmp_4 = r0; - r0 = (s.tmp_4 != 0); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - s.tmp_5 = r0 = s.arg1; - s.tmp_7 = r0 = s.arg2; - r0 = (s.i___92569 >> s.arg4); - s.tmp_8 = r0; - r0 = (s.tmp_7 + s.tmp_8); - s.tmp_6 = r0; - s.tmp_10 = r0 = s.arg3; - r0 = (s.j___92575 >> s.arg4); - s.tmp_11 = r0; - r0 = (s.tmp_10 + s.tmp_11); - s.tmp_9 = r0; - r0 = pxsim_ImageMethods.getPixel(s.arg0, s.i___92569, s.j___92575); - s.tmp_12 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_5, s.tmp_6, s.tmp_9, s.tmp_12); - case 3: - case 4: - s.tmp_0 = r0 = s.j___92575; - r0 = (1 << s.arg4); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.j___92575 = (r0); - { step = 2; continue; } - case 5: - s.tmp_0 = r0 = s.i___92569; - r0 = (1 << s.arg4); + r0 = (s.arg0 / 2); s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.i___92569 = (r0); - { step = 1; continue; } - case 6: - r0 = undefined; + r0 = (s.tmp_0 == s.tmp_1); return leave(s, r0) default: oops() } } } -minimap_renderScaledImage__P92155.info = {"start":544,"length":459,"line":26,"column":4,"endLine":35,"endColumn":5,"fileName":"pxt_modules/arcade-minimap/minimap.ts","functionName":"renderScaledImage","argumentNames":["source","destination","x","y","scale"]} +is_even__P218965.info = {"start":27990,"length":74,"line":282,"column":0,"endLine":284,"endColumn":1,"fileName":"main.ts","functionName":"is_even","argumentNames":["num"]} -function minimap_renderScaledImage__P92155_mk(s) { +function is_even__P218965_mk(s) { checkStack(s.depth); return { - parent: s, fn: minimap_renderScaledImage__P92155, depth: s.depth + 1, + parent: s, fn: is_even__P218965, depth: s.depth + 1, pc: 0, retval: undefined, 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, - tile___92567: undefined, - i___92569: undefined, - j___92575: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function Sprite_height__P88546(s) { +function clear_maze__P218824(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11424,35 +14880,90 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; + s.row___219370 = undefined; + s.col___219375 = undefined; + s.row___219370 = (0); + case 1: + s.tmp_1 = r0 = s.row___219370; + s.tmp_3 = tiles_tilemapRows__P155159_mk(s); + s.callLocIdx = 100; s.pc = 5; return s.tmp_3; + case 5: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 <= s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_0); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.col___219375 = (0); + case 2: + s.tmp_1 = r0 = s.col___219375; + s.tmp_3 = tiles_tilemapColumns__P155158_mk(s); + s.callLocIdx = 101; s.pc = 6; return s.tmp_3; + case 6: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 <= s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_4 = tiles_setWallAt__P153827_mk(s); + s.tmp_5 = tiles_getTileLocation__P153828_mk(s); + s.tmp_5.arg0 = s.col___219375; + s.tmp_5.arg1 = s.row___219370; + s.callLocIdx = 102; s.pc = 8; return s.tmp_5; + case 8: + r0 = s.retval; + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = false; + s.callLocIdx = 103; s.pc = 7; return s.tmp_4; + case 7: + r0 = s.retval; + s.tmp_0 = tiles_setTileAt__P153826_mk(s); + s.tmp_1 = tiles_getTileLocation__P153828_mk(s); + s.tmp_1.arg0 = s.col___219375; + s.tmp_1.arg1 = s.row___219370; + s.callLocIdx = 104; s.pc = 10; return s.tmp_1; + case 10: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = globals.tile7___155292; + s.callLocIdx = 105; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + r0 = (s.col___219375 + 1); + s.col___219375 = (r0); + { step = 2; continue; } + case 3: + r0 = (s.row___219370 + 1); + s.row___219370 = (r0); + { step = 1; continue; } + case 4: + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_height__P88546.info = {"start":8639,"length":54,"line":314,"column":4,"endLine":316,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"height","argumentNames":["this"]} -Sprite_height__P88546.isGetter = true; +clear_maze__P218824.info = {"start":22534,"length":311,"line":147,"column":0,"endLine":154,"endColumn":1,"fileName":"main.ts","functionName":"clear_maze","argumentNames":[]} -function Sprite_height__P88546_mk(s) { +function clear_maze__P218824_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_height__P88546, depth: s.depth + 1, + parent: s, fn: clear_maze__P218824, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + row___219370: undefined, + col___219375: undefined, } } -function Sprite_width__P88545(s) { +function init_maze__P218804(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11466,31 +14977,100 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; + r0 = (s.arg0 == 1); s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_0); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_1, globals.transparency8___155289); + s.tmp_2 = tiles_setSmallTilemap__P155121_mk(s); + s.tmp_3 = tiles_createTilemap__P153824_mk(s); + s.tmp_3.arg0 = _hex219399; + r0 = pxsim.image.ofBuffer(_hex219401); + s.tmp_3.arg1 = r0; + s.tmp_3.arg2 = s.tmp_1; + s.tmp_3.arg3 = 3; + s.callLocIdx = 90; s.pc = 6; return s.tmp_3; + case 6: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.callLocIdx = 91; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; + { step = 4; continue; } + case 1: + r0 = (s.arg0 == 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_1, globals.transparency8___155289); + s.tmp_2 = tiles_setSmallTilemap__P155121_mk(s); + s.tmp_3 = tiles_createTilemap__P153824_mk(s); + s.tmp_3.arg0 = _hex219410; + r0 = pxsim.image.ofBuffer(_hex219412); + s.tmp_3.arg1 = r0; + s.tmp_3.arg2 = s.tmp_1; + s.tmp_3.arg3 = 3; + s.callLocIdx = 92; s.pc = 8; return s.tmp_3; + case 8: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.callLocIdx = 93; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + { step = 3; continue; } + case 2: + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, globals.transparency8___155289); + s.tmp_1 = tiles_setSmallTilemap__P155121_mk(s); + s.tmp_2 = tiles_createTilemap__P153824_mk(s); + s.tmp_2.arg0 = _hex219419; + r0 = pxsim.image.ofBuffer(_hex219421); + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = s.tmp_0; + s.tmp_2.arg3 = 3; + s.callLocIdx = 94; s.pc = 10; return s.tmp_2; + case 10: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.callLocIdx = 95; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + case 3: + case 4: + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_width__P88545.info = {"start":8494,"length":52,"line":309,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"width","argumentNames":["this"]} -Sprite_width__P88545.isGetter = true; +init_maze__P218804.info = {"start":799,"length":21479,"line":19,"column":0,"endLine":137,"endColumn":1,"fileName":"main.ts","functionName":"init_maze","argumentNames":["difficulty"]} -function Sprite_width__P88545_mk(s) { +function init_maze__P218804_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_width__P88545, depth: s.depth + 1, + parent: s, fn: init_maze__P218804, depth: s.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, } } +const _hex219399 = pxsim.BufferMethods.createBufferFromHex("15000f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex219401 = pxsim.BufferMethods.createBufferFromHex("870415000f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex219410 = pxsim.BufferMethods.createBufferFromHex("29001f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex219412 = pxsim.BufferMethods.createBufferFromHex("870429001f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex219419 = pxsim.BufferMethods.createBufferFromHex("51003d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex219421 = pxsim.BufferMethods.createBufferFromHex("870451003d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -function Sprite_y__P88512(s) { +function tiles_createTilemap__P153824(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11502,45 +15082,46 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - r0 = s.arg0.fields["_y"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 / 256); + r0 = pxsim_pxtcore_mkClassInstance(tiles_TileMapData__C153788_VT); s.tmp_0 = r0; - r0 = s.arg0.fields["_image"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 / 2); - s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - return leaveAccessor(s, r0) + s.tmp_1 = tiles_TileMapData_constructor__P153789_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.arg1; + s.tmp_1.arg3 = s.arg2; + s.tmp_1.arg4 = s.arg3; + s.callLocIdx = 913; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = s.tmp_0; + return leave(s, r0) default: oops() } } } -Sprite_y__P88512.info = {"start":1849,"length":85,"line":81,"column":4,"endLine":83,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this"]} -Sprite_y__P88512.isGetter = true; +tiles_createTilemap__P153824.info = {"start":14038,"length":170,"line":456,"column":4,"endLine":458,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"createTilemap","argumentNames":["data","layer","tiles","scale"]} -function Sprite_y__P88512_mk(s) { +function tiles_createTilemap__P153824_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_y__P88512, depth: s.depth + 1, + parent: s, fn: tiles_createTilemap__P153824, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function Sprite_x__P88510(s) { +function tiles_TileMapData_constructor__P153789(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11552,45 +15133,56 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - r0 = s.arg0.fields["_x"]; + if (!checkSubtype(r0, tiles_TileMapData__C153788_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__P153793_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg4; + s.callLocIdx = 830; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.BufferMethods.getNumber(s.arg1, 4, 0); s.tmp_1 = r0; - r0 = (s.tmp_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) + r0 = (s.tmp_0).fields["_width"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.BufferMethods.getNumber(s.arg1, 4, 2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_height"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_x__P88510.info = {"start":1501,"length":84,"line":70,"column":4,"endLine":72,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this"]} -Sprite_x__P88510.isGetter = true; +tiles_TileMapData_constructor__P153789.info = {"start":3293,"length":358,"line":125,"column":8,"endLine":133,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","data","layers","tileset","scale"]} -function Sprite_x__P88510_mk(s) { +function tiles_TileMapData_constructor__P153789_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_x__P88510, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_constructor__P153789, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function minimap_minimap__P89959(s) { +function tiles_TileMapData_scale__P153793(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11600,199 +15192,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tilemap___92663 = undefined; - s.numRows___92674 = undefined; - s.numCols___92681 = undefined; - s.tileWidth___92688 = undefined; - s.minimap___92693 = undefined; - s.r___92720 = undefined; - s.c___92725 = undefined; - s.idx___92730 = undefined; - s.tile___92736 = undefined; - s.nx___92741 = undefined; - s.ny___92750 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 1215; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - r0 = r0.fields["tileMap"]; - s.tilemap___92663 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tilemap___92663); - 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.image.create(1, 1); - s.tmp_3 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_2, "image", s.tmp_3); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_2, "scale", s.arg0); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_2, "borderWidth", s.arg1); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_2, "borderColor", s.arg2); - r0 = s.tmp_2; - { step = 9; continue; } - case 1: - case 2: - s.tmp_5 = tiles_TileMap_areaHeight__P88809_mk(s); - s.tmp_5.arg0 = s.tilemap___92663; - s.callLocIdx = 1216; s.pc = 11; return s.tmp_5; - case 11: - r0 = s.retval; - s.tmp_4 = r0; - r0 = s.tilemap___92663.fields["_scale"]; - s.tmp_6 = r0; - r0 = (s.tmp_4 >> s.tmp_6); - s.numRows___92674 = (r0); - s.tmp_1 = tiles_TileMap_areaWidth__P88808_mk(s); - s.tmp_1.arg0 = s.tilemap___92663; - s.callLocIdx = 1218; s.pc = 12; return s.tmp_1; - case 12: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.tilemap___92663.fields["_scale"]; - s.tmp_2 = r0; - r0 = (s.tmp_0 >> s.tmp_2); - s.numCols___92681 = (r0); - r0 = s.tilemap___92663.fields["_scale"]; - s.tmp_0 = r0; - r0 = (1 << s.tmp_0); - s.tileWidth___92688 = (r0); - r0 = (s.numCols___92681 * s.tileWidth___92688); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> s.arg0); - s.tmp_1 = r0; - r0 = (s.arg1 * 2); - s.tmp_3 = r0; - r0 = (s.tmp_1 + s.tmp_3); - s.tmp_0 = r0; - r0 = (s.numRows___92674 * s.tileWidth___92688); - s.tmp_6 = r0; - r0 = (s.tmp_6 >> s.arg0); - s.tmp_5 = r0; - r0 = (s.arg1 * 2); - s.tmp_7 = r0; - r0 = (s.tmp_5 + s.tmp_7); - s.tmp_4 = r0; - r0 = pxsim.image.create(s.tmp_0, s.tmp_4); - s.minimap___92693 = (r0); - r0 = (s.arg1 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_ImageMethods.fill(s.minimap___92693, s.arg2); - case 3: - case 4: - s.r___92720 = (0); - case 5: - r0 = (s.r___92720 < s.numRows___92674); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.c___92725 = (0); - case 6: - r0 = (s.c___92725 < s.numCols___92681); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_1 = tiles_TileMap_getTileIndex__P88815_mk(s); - s.tmp_1.arg0 = s.tilemap___92663; - s.tmp_1.arg1 = s.c___92725; - s.tmp_1.arg2 = s.r___92720; - s.callLocIdx = 1221; s.pc = 13; return s.tmp_1; - case 13: - r0 = s.retval; - s.idx___92730 = (r0); - s.tmp_0 = tiles_TileMap_getTileImage__P88824_mk(s); - s.tmp_0.arg0 = s.tilemap___92663; - s.tmp_0.arg1 = s.idx___92730; - s.callLocIdx = 1222; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - s.tile___92736 = (r0); - r0 = (s.c___92725 * s.tileWidth___92688); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> s.arg0); - s.tmp_0 = r0; - r0 = (s.tmp_0 + s.arg1); - s.nx___92741 = (r0); - r0 = (s.r___92720 * s.tileWidth___92688); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> s.arg0); - s.tmp_0 = r0; - r0 = (s.tmp_0 + s.arg1); - s.ny___92750 = (r0); - s.tmp_0 = minimap_renderScaledImage__P92155_mk(s); - s.tmp_0.arg0 = s.tile___92736; - s.tmp_0.arg1 = s.minimap___92693; - s.tmp_0.arg2 = s.nx___92741; - s.tmp_0.arg3 = s.ny___92750; - s.tmp_0.arg4 = s.arg0; - s.callLocIdx = 1223; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - r0 = (s.c___92725 + 1); - s.c___92725 = (r0); - { step = 6; continue; } - case 7: - r0 = (s.r___92720 + 1); - s.r___92720 = (r0); - { step = 5; continue; } - case 8: - r0 = pxsim_pxtrt.mkMap(); - s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "image", s.minimap___92693); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "scale", s.arg0); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "borderWidth", s.arg1); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "borderColor", s.arg2); - r0 = s.tmp_0; - case 9: + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C153788_VT)) failedCast(r0); + r0 = (s.arg0).fields["_scale"] = (s.arg1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["cachedTileView"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -minimap_minimap__P89959.info = {"start":1349,"length":1436,"line":45,"column":4,"endLine":87,"endColumn":5,"fileName":"pxt_modules/arcade-minimap/minimap.ts","functionName":"minimap","argumentNames":["scale","borderWidth","borderColor"]} +tiles_TileMapData_scale__P153793.info = {"start":3885,"length":102,"line":147,"column":8,"endLine":150,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} -function minimap_minimap__P89959_mk(s) { +function tiles_TileMapData_scale__P153793_mk(s) { checkStack(s.depth); return { - parent: s, fn: minimap_minimap__P89959, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P153793, depth: s.depth + 1, pc: 0, retval: undefined, 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, - tilemap___92663: undefined, - numRows___92674: undefined, - numCols___92681: undefined, - tileWidth___92688: undefined, - minimap___92693: undefined, - r___92720: undefined, - c___92725: undefined, - idx___92730: undefined, - tile___92736: undefined, - nx___92741: undefined, - ny___92750: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function spriteutils_createRenderable__P89970(s) { +function tiles_setSmallTilemap__P155121(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11804,37 +15237,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = scene_createRenderable__P88868_mk(s); + s.tmp_0 = scene_setTileMapLevel__P153946_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 61; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1450; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -spriteutils_createRenderable__P89970.info = {"start":4522,"length":137,"line":139,"column":4,"endLine":141,"endColumn":5,"fileName":"pxt_modules/arcade-sprite-util/spriteutils.ts","functionName":"createRenderable","argumentNames":["index","handler"]} +tiles_setSmallTilemap__P155121.info = {"start":463,"length":101,"line":11,"column":4,"endLine":13,"endColumn":5,"fileName":"pxt_modules/small-tilemaps/main.ts","functionName":"setSmallTilemap","argumentNames":["tilemap"]} -function spriteutils_createRenderable__P89970_mk(s) { +function tiles_setSmallTilemap__P155121_mk(s) { checkStack(s.depth); return { - parent: s, fn: spriteutils_createRenderable__P89970, depth: s.depth + 1, + parent: s, fn: tiles_setSmallTilemap__P155121, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function game_over__P89027(s) { +function scene_setTileMapLevel__P153946(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11844,207 +15273,103 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scoreInfo___189311 = undefined; - s.highScore___189315 = undefined; - s.overDialog___189344 = undefined; + s.scene___166412 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P90536_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 191; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals.__isOver___90535); - if (!r0) { step = 1; continue; } - { step = 17; continue; } - case 1: - case 2: - globals.__isOver___90535 = (true); - r0 = pxsim_numops_toBoolDecr(globals.__gameOverHandler___90533); - if (!r0) { step = 3; continue; } - s.tmp_0 = lambda_2_mk(s); - s.tmp_0.argL = globals.__gameOverHandler___90533; - s.tmp_0.arg0 = s.arg0; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 192; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - { step = 16; continue; } + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 996; s.pc = 3; return s.tmp_0; case 3: - r0 = pxsim_numops_toBoolDecr(s.arg1); + r0 = s.retval; + s.scene___166412 = (r0); + r0 = s.scene___166412.fields["tileMap"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - if (!r0) { step = 4; continue; } - r0 = globals.winEffect___89015; - { step = 5; continue; } + if (!r0) { step = 1; continue; } + r0 = pxsim_pxtcore_mkClassInstance(tiles_TileMap__C153801_VT); + s.tmp_3 = r0; + s.tmp_4 = tiles_TileMap_constructor__P153802_mk(s); + s.tmp_4.arg0 = s.tmp_3; + s.tmp_4.arg1 = 4; + s.callLocIdx = 997; s.pc = 4; return s.tmp_4; case 4: - r0 = globals.loseEffect___89016; - case 5: - // jmp value (already in r0) - s.tmp_2 = r0; - s.arg1 = (s.tmp_2); - case 6: - case 7: - s.tmp_0 = info_PlayerInfo_getState__P88724_mk(s); - s.tmp_0.arg0 = globals.player1___88742; - s.callLocIdx = 193; s.pc = 20; return s.tmp_0; - case 20: - r0 = s.retval; - s.scoreInfo___189311 = (r0); - s.tmp_0 = info_highScore__P88690_mk(s); - s.callLocIdx = 194; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - s.highScore___189315 = (r0); - r0 = s.scoreInfo___189311.fields["score"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 > s.highScore___189315); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.tmp_2 = info_saveHighScore__P88687_mk(s); - s.callLocIdx = 195; s.pc = 22; return s.tmp_2; - case 22: - r0 = s.retval; - case 8: - case 9: - case 10: - s.tmp_0 = r0 = globals._sceneStack___90529; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 11; continue; } - r0 = s.tmp_0; - { step = 12; continue; } - case 11: - r0 = pxsim_Array__length(globals._sceneStack___90529); - case 12: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 13; continue; } - s.tmp_2 = scene_Scene_destroy__P88930_mk(s); - s.tmp_2.arg0 = globals._scene___90528; - s.callLocIdx = 196; s.pc = 23; return s.tmp_2; - case 23: - r0 = s.retval; - s.tmp_0 = game_popScene__P89022_mk(s); - s.callLocIdx = 197; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - { step = 10; continue; } - case 13: - s.tmp_0 = game_pushScene__P89021_mk(s); - s.callLocIdx = 198; s.pc = 25; return s.tmp_0; - case 25: r0 = s.retval; - s.tmp_0 = scene_setBackgroundImage__P88944_mk(s); - r0 = pxsim_ImageMethods.clone(globals.screen___88287); + r0 = (s.scene___166412).fields["tileMap"] = (s.tmp_3); + case 1: + case 2: + s.tmp_0 = tiles_TileMap_setData__P153812_mk(s); + r0 = s.scene___166412.fields["tileMap"]; s.tmp_0.arg0 = r0; - s.callLocIdx = 199; s.pc = 26; return s.tmp_0; - case 26: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg0); - if (!r0) { step = 14; continue; } - s.tmp_0 = music_Melody_play__P88090_mk(s); - s.tmp_0.arg0 = globals.winSound___90527; - s.tmp_0.arg1 = 255; - s.callLocIdx = 200; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - { step = 15; continue; } - case 14: - s.tmp_0 = music_Melody_play__P88090_mk(s); - s.tmp_0.arg0 = globals.loseSound___90525; - s.tmp_0.arg1 = 255; - s.callLocIdx = 201; s.pc = 28; return s.tmp_0; - case 28: - r0 = s.retval; - case 15: - s.tmp_0 = if_startScreenEffect_1_mk(s); - s.tmp_0.arg0 = s.arg1; - if (!s.tmp_0.arg0.vtable.iface) { - setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "startScreenEffect"), 1); - s.callLocIdx = 202; s.pc = 29; return s.tmp_0; - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["startScreenEffect"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["startScreenEffect"], 1); s.callLocIdx = 202; s.pc = 29; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 202; s.pc = 29; return s.tmp_0;; } - else { s.callLocIdx = 202; s.pc = 29; return s.tmp_0; } - } - case 29: - r0 = s.retval; - s.tmp_0 = pause__P86887_mk(s); - s.tmp_0.arg0 = 400; - s.callLocIdx = 203; s.pc = 30; return s.tmp_0; - case 30: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(game_GameOverDialog__C89001_VT); - s.tmp_0 = r0; - s.tmp_1 = game_GameOverDialog_constructor__P89002_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - r0 = s.scoreInfo___189311.fields["score"]; - s.tmp_1.arg2 = r0; - s.tmp_1.arg3 = s.highScore___189315; - s.callLocIdx = 204; s.pc = 31; return s.tmp_1; - case 31: - r0 = s.retval; - s.overDialog___189344 = (s.tmp_0); - r0 = pxsim_pxtcore_mkAction(1, inline__P189354); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.overDialog___189344); - s.tmp_1 = scene_createRenderable__P88868_mk(s); - s.tmp_1.arg0 = 100; - s.tmp_1.arg1 = s.tmp_0; - s.tmp_1.arg2 = undefined; - s.callLocIdx = 205; s.pc = 32; return s.tmp_1; - case 32: - r0 = s.retval; - s.tmp_0 = pause__P86887_mk(s); - s.tmp_0.arg0 = 500; - s.callLocIdx = 206; s.pc = 33; return s.tmp_0; - case 33: - r0 = s.retval; - s.tmp_0 = game_GameOverDialog_displayCursor__P89003_mk(s); - s.tmp_0.arg0 = s.overDialog___189344; - s.callLocIdx = 207; s.pc = 34; return s.tmp_0; - case 34: - r0 = s.retval; - s.tmp_0 = game_waitAnyButton__P89019_mk(s); - s.callLocIdx = 208; s.pc = 35; return s.tmp_0; - case 35: + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 998; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; - setupResume(s, 36); - pxsim.control.reset(); - checkResumeConsumed(); - return; - case 36: + s.tmp_0 = tiles_TileMap_scale__P153804_mk(s); + r0 = s.scene___166412.fields["tileMap"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1000; s.pc = 6; return s.tmp_0; + case 6: r0 = s.retval; - case 16: - case 17: r0 = undefined; return leave(s, r0) default: oops() } } } -game_over__P89027.info = {"start":5382,"length":1774,"line":181,"column":4,"endLine":232,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"over","argumentNames":["win","effect"]} +scene_setTileMapLevel__P153946.info = {"start":2994,"length":260,"line":113,"column":4,"endLine":119,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setTileMapLevel","argumentNames":["map"]} -function game_over__P89027_mk(s) { +function scene_setTileMapLevel__P153946_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_over__P89027, depth: s.depth + 1, + parent: s, fn: scene_setTileMapLevel__P153946, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - scoreInfo___189311: undefined, - highScore___189315: undefined, - overDialog___189344: undefined, + tmp_3: undefined, + tmp_4: undefined, + scene___166412: undefined, + arg0: undefined, +} } + + + + + +function tiles_TileMap_setData__P153812(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); + r0 = (s.arg0).fields["_map"] = (s.arg1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +tiles_TileMap_setData__P153812.info = {"start":7183,"length":66,"line":265,"column":8,"endLine":267,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setData","argumentNames":["this","map"]} + +function tiles_TileMap_setData__P153812_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_TileMap_setData__P153812, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, } } @@ -12053,7 +15378,7 @@ function game_over__P89027_mk(s) { -function inline__P189354(s) { +function tiles_TileMap_scale__P153804(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12065,55 +15390,47 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_GameOverDialog__C89001_v0_1_mk(s); - s.tmp_0.arg0 = s.caps[0]; - if (!checkSubtype(s.tmp_0.arg0, game_GameOverDialog__C89001_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; - s.pc = 1; return s.tmp_0; - case 1: + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C153801_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__P153793_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 841; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = s.caps[0].fields["image"]; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___88287); - s.tmp_4 = r0; - r0 = s.caps[0].fields["image"]; - s.tmp_6 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_6); - s.tmp_5 = r0; - r0 = (s.tmp_4 - s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, 0, s.tmp_2); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P189354.info = {"start":6721,"length":254,"line":218,"column":48,"endLine":225,"endColumn":13,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["target"]} +tiles_TileMap_scale__P153804.info = {"start":6190,"length":144,"line":224,"column":8,"endLine":229,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} -function inline__P189354_mk(s) { +function tiles_TileMap_scale__P153804_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P189354, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_scale__P153804, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, arg0: undefined, + arg1: undefined, } } -function game_init__P90536(s) { +function tiles_TileMap_constructor__P153802(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12125,105 +15442,50 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scene___90528); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: r0 = s.arg0; - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(scene_Scene__C88904_VT); - s.tmp_3 = r0; - s.tmp_4 = scene_Scene_constructor__P88925_mk(s); - s.tmp_4.arg0 = s.tmp_3; - s.tmp_5 = control_pushEventContext__P86883_mk(s); - s.callLocIdx = 862; s.pc = 14; return s.tmp_5; - case 14: - r0 = s.retval; - s.tmp_4.arg1 = r0; - s.tmp_4.arg2 = globals._scene___90528; - s.callLocIdx = 863; s.pc = 13; return s.tmp_4; - case 13: - r0 = s.retval; - globals._scene___90528 = (s.tmp_3); - case 3: - case 4: - s.tmp_0 = scene_Scene_init__P88926_mk(s); - s.tmp_0.arg0 = globals._scene___90528; - s.callLocIdx = 864; s.pc = 15; return s.tmp_0; - case 15: + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); + r0 = (s.arg0).fields["_layer"] = (1); + s.tmp_0 = tiles_TileMap_scale__P153804_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 838; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals.winEffect___89015); - 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___89015 = (globals.confetti___89286); - case 5: - case 6: - r0 = pxsim_numops_toBoolDecr(globals.loseEffect___89016); - 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___89016 = (globals.melt___89307); - case 7: - case 8: - r0 = pxsim_numops_toBoolDecr(globals.winSound___90527); - 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___90527 = (globals.powerUp___88103); - case 9: - case 10: - r0 = pxsim_numops_toBoolDecr(globals.loseSound___90525); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = pxsim_pxtcore_mkAction(1, inline__P166458); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - globals.loseSound___90525 = (globals.wawawawaa___88100); - case 11: - case 12: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = scene_createRenderable__P153867_mk(s); + s.tmp_1.arg0 = -1; + s.tmp_1.arg1 = s.tmp_0; + s.tmp_1.arg2 = undefined; + s.callLocIdx = 840; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -game_init__P90536.info = {"start":1202,"length":452,"line":45,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} +tiles_TileMap_constructor__P153802.info = {"start":5865,"length":250,"line":210,"column":8,"endLine":218,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","scale"]} -function game_init__P90536_mk(s) { +function tiles_TileMap_constructor__P153802_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_init__P90536, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_constructor__P153802, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, arg0: undefined, + arg1: undefined, } } -function inline__P94575(s) { +function inline__P166458(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12233,87 +15495,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rounds___94578 = undefined; - s.j___94586 = undefined; - s.x___94591 = undefined; - s.y___94597 = undefined; - s.c___94603 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.width(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 * s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 5); - s.rounds___94578 = (r0); - s.j___94586 = (0); + s.tmp_0 = tiles_TileMap_draw__P155638_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 839; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.j___94586 < s.rounds___94578); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P89075_mk(s); - s.tmp_1.arg0 = s.arg1; - s.tmp_1.arg1 = 0; - r0 = pxsim_ImageMethods.width(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1.arg2 = r0; - s.callLocIdx = 46; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.x___94591 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P89075_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 0; - r0 = pxsim_ImageMethods.height(s.arg0); - s.tmp_1 = r0; - r0 = (s.tmp_1 - 3); - s.tmp_0.arg2 = r0; - s.callLocIdx = 47; s.pc = 4; return s.tmp_0; - case 4: r0 = s.retval; - s.y___94597 = (r0); - r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___94591, s.y___94597); - s.c___94603 = (r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___94591; - r0 = (s.y___94597 + 1); - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___94603); - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___94591; - r0 = (s.y___94597 + 2); - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___94603); - r0 = (s.j___94586 + 1); - s.j___94586 = (r0); - { step = 1; continue; } - case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P94575.info = {"start":2652,"length":386,"line":72,"column":45,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} +inline__P166458.info = {"start":6065,"length":25,"line":216,"column":16,"endLine":216,"endColumn":41,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["t","c"]} -function inline__P94575_mk(s) { +function inline__P166458_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P94575, depth: s.depth + 1, + parent: s, fn: inline__P166458, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - rounds___94578: undefined, - j___94586: undefined, - x___94591: undefined, - y___94597: undefined, - c___94603: undefined, arg0: undefined, arg1: undefined, } } @@ -12322,7 +15527,7 @@ function inline__P94575_mk(s) { -function inline__P94683(s) { +function tiles_TileMap_draw__P155638(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12332,81 +15537,297 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.factory___94686 = undefined; + s.bitmask___166469 = undefined; + s.offsetX___166475 = undefined; + s.offsetY___166480 = undefined; + s.x0___166485 = undefined; + s.xn___166492 = undefined; + s.y0___166509 = undefined; + s.yn___166516 = undefined; + s.x___166533 = undefined; + s.y___166539 = undefined; + s.index___166545 = undefined; + s.tile___166552 = undefined; + s.x___166588 = undefined; + s.xLine___166594 = undefined; + s.y___166620 = undefined; + s.yLine___166626 = 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(particles_ConfettiFactory__C89230_VT); + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + s.tmp_5 = r0; + r0 = pxsim_Boolean__bang(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - s.tmp_2 = if_width_1_mk(s); - s.tmp_2.arg0 = s.arg0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "width"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["width"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["width"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 34; s.pc = 3; return s.tmp_2; } - } - case 3: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 23; continue; } + case 1: + case 2: + r0 = s.arg0.fields["_scale"]; + s.tmp_8 = r0; + r0 = (1 << s.tmp_8); + s.tmp_7 = r0; + r0 = (s.tmp_7 - 1); + s.bitmask___166469 = (r0); + r0 = s.arg2.fields["drawOffsetX"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 & s.bitmask___166469); + s.offsetX___166475 = (r0); + r0 = s.arg2.fields["drawOffsetY"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 & s.bitmask___166469); + s.offsetY___166480 = (r0); + s.tmp_0 = Math_max__P151609_mk(s); + s.tmp_0.arg0 = 0; + r0 = s.arg2.fields["drawOffsetX"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 >> s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 871; s.pc = 24; return s.tmp_0; + case 24: r0 = s.retval; + s.x0___166485 = (r0); + s.tmp_0 = Math_min__P151610_mk(s); + r0 = s.arg0.fields["_map"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 1; continue; } - s.tmp_3 = if_width_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "width"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["width"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["width"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 35; s.pc = 4; return s.tmp_3; } - } + r0 = s.tmp_1.fields["_width"]; + s.tmp_0.arg0 = r0; + r0 = s.arg2.fields["drawOffsetX"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.arg1); + s.tmp_5 = r0; + r0 = (s.tmp_4 + s.tmp_5); + s.tmp_3 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_6 = r0; + r0 = (s.tmp_3 >> s.tmp_6); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 874; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.xn___166492 = (r0); + s.tmp_0 = Math_max__P151609_mk(s); + s.tmp_0.arg0 = 0; + r0 = s.arg2.fields["drawOffsetY"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 >> s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 876; s.pc = 26; return s.tmp_0; + case 26: + r0 = s.retval; + s.y0___166509 = (r0); + s.tmp_0 = Math_min__P151610_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_1 = r0; + r0 = s.tmp_1.fields["_height"]; + s.tmp_0.arg0 = r0; + r0 = s.arg2.fields["drawOffsetY"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.height(s.arg1); + s.tmp_5 = r0; + r0 = (s.tmp_4 + s.tmp_5); + s.tmp_3 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_6 = r0; + r0 = (s.tmp_3 >> s.tmp_6); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 879; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + s.yn___166516 = (r0); + s.x___166533 = (s.x0___166485); + case 3: + r0 = (s.x___166533 <= s.xn___166492); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.y___166539 = (s.y0___166509); case 4: + r0 = (s.y___166539 <= s.yn___166516); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_1 = tiles_TileMapData_getTile__P153794_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.x___166533; + s.tmp_1.arg2 = s.y___166539; + s.callLocIdx = 880; s.pc = 28; return s.tmp_1; + case 28: r0 = s.retval; - { step = 2; continue; } - case 1: - r0 = 16; - case 2: - // jmp value (already in r0) + s.index___166545 = (r0); + s.tmp_0 = tiles_TileMapData_getTileImage__P153797_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.index___166545; + s.callLocIdx = 881; s.pc = 29; return s.tmp_0; + case 29: + r0 = s.retval; + s.tile___166552 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tile___166552); + if (!r0) { step = 5; continue; } + s.tmp_0 = r0 = s.arg1; + s.tmp_1 = r0 = s.tile___166552; + r0 = (s.x___166533 - s.x0___166485); s.tmp_4 = r0; - s.tmp_5 = particles_ConfettiFactory_constructor__P89231_mk(s); - s.tmp_5.arg0 = s.tmp_0; - s.tmp_5.arg1 = s.tmp_4; - s.tmp_5.arg2 = 16; - s.callLocIdx = 36; s.pc = 5; return s.tmp_5; + 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___166475); + s.tmp_2 = r0; + r0 = (s.y___166539 - s.y0___166509); + 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___166480); + s.tmp_6 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_6); case 5: - r0 = s.retval; - s.factory___94686 = (s.tmp_0); - s.tmp_0 = particles_SprayFactory_setSpeed__P89207_mk(s); - s.tmp_0.arg0 = s.factory___94686; - s.tmp_0.arg1 = 30; - s.callLocIdx = 37; s.pc = 6; return s.tmp_0; case 6: + r0 = (s.y___166539 + 1); + s.y___166539 = (r0); + { step = 4; continue; } + case 7: + r0 = (s.x___166533 + 1); + s.x___166533 = (r0); + { step = 3; continue; } + case 8: + r0 = pxsim_numops_toBoolDecr(globals.debug___154012); + if (!r0) { step = 21; continue; } + s.x___166588 = (s.x0___166485); + case 9: + r0 = (s.x___166588 <= s.xn___166492); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = (s.x___166588 - s.x0___166485); + 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___166475); + s.xLine___166594 = (r0); + r0 = (s.xLine___166594 >= 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___166594; + r0 = pxsim_ImageMethods.width(globals.screen___153286); + s.tmp_2 = r0; + r0 = (s.tmp_1 <= s.tmp_2); + case 11: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 12; continue; } + s.tmp_4 = helpers_imageDrawLine__P153214_mk(s); + s.tmp_4.arg0 = s.arg1; + s.tmp_4.arg1 = s.xLine___166594; + s.tmp_4.arg2 = 0; + s.tmp_4.arg3 = s.xLine___166594; + r0 = pxsim_ImageMethods.height(s.arg1); + s.tmp_4.arg4 = r0; + s.tmp_4.arg5 = 1; + s.callLocIdx = 885; s.pc = 30; return s.tmp_4; + case 30: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C89163_VT); + case 12: + case 13: + r0 = (s.x___166588 + 1); + s.x___166588 = (r0); + { step = 9; continue; } + case 14: + s.y___166620 = (s.y0___166509); + case 15: + r0 = (s.y___166620 <= s.yn___166516); s.tmp_0 = r0; - s.tmp_1 = particles_ParticleSource_constructor__P89168_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___94686; - s.callLocIdx = 38; s.pc = 7; return s.tmp_1; - case 7: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + r0 = (s.y___166620 - s.y0___166509); + 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___166480); + s.yLine___166626 = (r0); + r0 = (s.yLine___166626 >= 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___166626; + r0 = pxsim_ImageMethods.height(globals.screen___153286); + s.tmp_2 = r0; + r0 = (s.tmp_1 <= s.tmp_2); + case 17: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 18; continue; } + s.tmp_4 = helpers_imageDrawLine__P153214_mk(s); + s.tmp_4.arg0 = s.arg1; + s.tmp_4.arg1 = 0; + s.tmp_4.arg2 = s.yLine___166626; + r0 = pxsim_ImageMethods.width(s.arg1); + s.tmp_4.arg3 = r0; + s.tmp_4.arg4 = s.yLine___166626; + s.tmp_4.arg5 = 1; + s.callLocIdx = 887; s.pc = 31; return s.tmp_4; + case 31: r0 = s.retval; - r0 = s.tmp_0; + case 18: + case 19: + r0 = (s.y___166620 + 1); + s.y___166620 = (r0); + { step = 15; continue; } + case 20: + case 21: + case 22: + case 23: + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P94683.info = {"start":7534,"length":284,"line":191,"column":59,"endLine":195,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} +tiles_TileMap_draw__P155638.info = {"start":10187,"length":2224,"line":347,"column":8,"endLine":402,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"draw","argumentNames":["this","target","camera"]} -function inline__P94683_mk(s) { +function tiles_TileMap_draw__P155638_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P94683, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_draw__P155638, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -12414,16 +15835,35 @@ function inline__P94683_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - factory___94686: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + bitmask___166469: undefined, + offsetX___166475: undefined, + offsetY___166480: undefined, + x0___166485: undefined, + xn___166492: undefined, + y0___166509: undefined, + yn___166516: undefined, + x___166533: undefined, + y___166539: undefined, + index___166545: undefined, + tile___166552: undefined, + x___166588: undefined, + xLine___166594: undefined, + y___166620: undefined, + yLine___166626: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function particles_ParticleSource_constructor__P89168(s) { +function helpers_imageDrawLine__P153214(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12433,130 +15873,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___94707 = undefined; - s.removedSource___94716 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C89163_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_constructor__P88345_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1063; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = particles_init__P90886_mk(s); - s.callLocIdx = 1064; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = particles_particleSources__P90892_mk(s); - s.callLocIdx = 1065; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.sources___94707 = (r0); - r0 = pxsim_Array__length(s.sources___94707); - s.tmp_1 = r0; - r0 = (s.tmp_1 >= globals.MAX_SOURCES___90863); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = particles_sortSources__P90889_mk(s); - s.tmp_2.arg0 = s.sources___94707; - s.callLocIdx = 1066; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - r0 = pxsim_Array_.removeAt(s.sources___94707, 0); - s.removedSource___94716 = (r0); - s.tmp_0 = particles_ParticleSource_clear__P89178_mk(s); - s.tmp_0.arg0 = s.removedSource___94716; - s.callLocIdx = 1068; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.tmp_0 = particles_ParticleSource_destroy__P89177_mk(s); - s.tmp_0.arg0 = s.removedSource___94716; - s.callLocIdx = 1069; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = helpers_pack__P155444_mk(s); + s.tmp_2.arg0 = s.arg1; + s.tmp_2.arg1 = s.arg2; + s.callLocIdx = 123; s.pc = 1; return s.tmp_2; case 1: - case 2: - r0 = (s.arg0).fields["pFlags"] = (0); - s.tmp_0 = particles_ParticleSource_setRate__P89180_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 1070; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = particles_ParticleSource_setAcceleration__P89172_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 0; - s.callLocIdx = 1071; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.tmp_0 = particles_ParticleSource_setAnchor__P89179_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1072; s.pc = 13; return s.tmp_0; - case 13: r0 = s.retval; - r0 = (s.arg0).fields["lifespan"] = (undefined); - r0 = (s.arg0).fields["_dt"] = (0); - r0 = (s.arg0).fields["priority"] = (0); - s.tmp_0 = r0 = s.arg3; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = globals.defaultFactory___89183; - case 4: - // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_2 = particles_ParticleSource_setFactory__P89182_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 1073; s.pc = 14; return s.tmp_2; - case 14: - r0 = s.retval; - r0 = pxsim_Array__push(s.sources___94707, s.arg0); - s.tmp_0 = particles_ParticleSource_enabled__P89176_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = true; - s.callLocIdx = 1074; s.pc = 15; return s.tmp_0; - case 15: + s.tmp_4 = helpers_pack__P155444_mk(s); + s.tmp_4.arg0 = s.arg3; + s.tmp_4.arg1 = s.arg4; + s.callLocIdx = 124; s.pc = 2; return s.tmp_4; + case 2: r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods._drawLine(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_constructor__P89168.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"]} +helpers_imageDrawLine__P153214.info = {"start":3977,"length":159,"line":137,"column":4,"endLine":139,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]} -function particles_ParticleSource_constructor__P89168_mk(s) { +function helpers_imageDrawLine__P153214_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_constructor__P89168, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawLine__P153214, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - sources___94707: undefined, - removedSource___94716: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, arg1: undefined, arg2: undefined, arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function particles_particleSources__P90892(s) { +function fade_out__P218825(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12566,33 +15936,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___95144 = undefined; - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 1125; s.pc = 1; return s.tmp_0; - case 1: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + s.tmp_0 = color_startFade__P155054_mk(s); + s.tmp_0.arg0 = globals.Black___155069; + s.tmp_0.arg1 = globals.originalPalette___155058; + s.tmp_0.arg2 = s.arg0; + s.callLocIdx = 106; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - r0 = r0.fields["particleSources"]; - s.sources___95144 = (r0); - r0 = s.sources___95144; + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 1; continue; } + s.tmp_0 = color_pauseUntilFadeDone__P155056_mk(s); + s.callLocIdx = 107; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_particleSources__P90892.info = {"start":12831,"length":119,"line":420,"column":4,"endLine":423,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]} +fade_out__P218825.info = {"start":22846,"length":174,"line":155,"column":0,"endLine":160,"endColumn":1,"fileName":"main.ts","functionName":"fade_out","argumentNames":["delay","block"]} -function particles_particleSources__P90892_mk(s) { +function fade_out__P218825_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_particleSources__P90892, depth: s.depth + 1, + parent: s, fn: fade_out__P218825, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___95144: undefined, + arg0: undefined, + arg1: undefined, } } -function particles_sortSources__P90889(s) { +function game_runtime__P154032(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12602,36 +15986,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = helpers_arraySort__P86588_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = inline__P95014; - s.callLocIdx = 1112; s.pc = 1; return s.tmp_0; + s.tmp_1 = game_currentScene__P154016_mk(s); + s.callLocIdx = 31; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - r0 = undefined; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["_millis"]; return leave(s, r0) default: oops() } } } -particles_sortSources__P90889.info = {"start":10009,"length":129,"line":331,"column":4,"endLine":333,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"sortSources","argumentNames":["sources"]} +game_runtime__P154032.info = {"start":10291,"length":81,"line":332,"column":4,"endLine":334,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"runtime","argumentNames":[]} -function particles_sortSources__P90889_mk(s) { +function game_runtime__P154032_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_sortSources__P90889, depth: s.depth + 1, + parent: s, fn: game_runtime__P154032, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, } } -function inline__P95014(s) { +function color_setPalette__P155019(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12641,40 +16020,110 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.fromStart___174372 = undefined; + s.toStart___174375 = undefined; + s.asBuf___174378 = undefined; + s.copyLength___174381 = undefined; + s.i___174388 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0.fields["priority"]; + r0 = pxsim_numops_toBoolDecr(s.arg2); s.tmp_1 = r0; - r0 = s.arg1.fields["priority"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.arg0.fields["id"]; + s.tmp_2 = r0 = s.arg2; + s.tmp_4 = color_ColorBuffer_length__P154980_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 76; s.pc = 9; return s.tmp_4; + case 9: + r0 = s.retval; s.tmp_3 = r0; - r0 = s.arg1.fields["id"]; - s.tmp_4 = r0; - r0 = (s.tmp_3 - s.tmp_4); + r0 = (s.tmp_2 > s.tmp_3); case 2: // jmp value (already in r0) s.tmp_5 = r0; - r0 = s.tmp_5; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 3; continue; } + s.tmp_6 = color_ColorBuffer_length__P154980_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 77; 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___157320); + 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___155058.fields["buf"]; + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.slice(s.tmp_2, 0, -1); + globals.currentColors___157320 = (r0); + case 5: + case 6: + r0 = (s.arg3 * 3); + s.fromStart___174372 = (r0); + r0 = (s.arg1 * 3); + s.toStart___174375 = (r0); + r0 = s.arg0.fields["buf"]; + s.asBuf___174378 = (r0); + s.tmp_1 = Math_clamp__P151606_mk(s); + s.tmp_1.arg0 = 0; + s.tmp_2 = color_availableColors__P155025_mk(s); + s.callLocIdx = 78; 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 = 79; s.pc = 11; return s.tmp_1; + case 11: + r0 = s.retval; + s.tmp_0 = r0; + r0 = (3 * s.tmp_0); + s.copyLength___174381 = (r0); + s.i___174388 = (0); + case 7: + r0 = (s.i___174388 < s.copyLength___174381); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.tmp_1 = r0 = globals.currentColors___157320; + r0 = (s.toStart___174375 + s.i___174388); + s.tmp_2 = r0; + s.tmp_4 = r0 = s.asBuf___174378; + r0 = (s.fromStart___174372 + s.i___174388); + 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___174388 + 1); + s.i___174388 = (r0); + { step = 7; continue; } + case 8: + r0 = pxsim_pxtcore.setPalette(globals.currentColors___157320); + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P95014.info = {"start":10080,"length":50,"line":332,"column":21,"endLine":332,"endColumn":71,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["a","b"]} +color_setPalette__P155019.info = {"start":6189,"length":617,"line":219,"column":4,"endLine":236,"endColumn":5,"fileName":"pxt_modules/Color Fading/color.ts","functionName":"setPalette","argumentNames":["palette","start","length","paletteOffset"]} -function inline__P95014_mk(s) { +function color_setPalette__P155019_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P95014, depth: s.depth + 1, + parent: s, fn: color_setPalette__P155019, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -12682,15 +16131,23 @@ function inline__P95014_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, + fromStart___174372: undefined, + toStart___174375: undefined, + asBuf___174378: undefined, + copyLength___174381: undefined, + i___174388: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function helpers_arraySort__P86588(s) { +function minimap_getImage__P155100(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12702,58 +16159,39 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_Array__length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_2 > 1); - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - s.arg1 = (inline__P95037); - case 3: - case 4: - s.tmp_0 = helpers_sortHelper__P90138_mk(s); + s.tmp_0 = if_image_1_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 2; s.pc = 5; return s.tmp_0; - case 5: + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "image"); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["image"]; + if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["image"]; } + else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } + else { s.callLocIdx = 1434; s.pc = 1; return s.tmp_0; } + } + case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -helpers_arraySort__P86588.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"]} +minimap_getImage__P155100.info = {"start":2905,"length":86,"line":92,"column":4,"endLine":94,"endColumn":5,"fileName":"pxt_modules/arcade-minimap/minimap.ts","functionName":"getImage","argumentNames":["minimap"]} -function helpers_arraySort__P86588_mk(s) { +function minimap_getImage__P155100_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySort__P86588, depth: s.depth + 1, + parent: s, fn: minimap_getImage__P155100, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, arg0: undefined, - arg1: undefined, } } -function inline__P95037(s) { +function spriteutils_drawTransparentImage__P155111(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12763,142 +16201,61 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.aIsUndef___95040 = undefined; - s.bIsUndef___95044 = undefined; - s.aIsNull___95055 = undefined; - s.bIsNull___95059 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = (s.arg0 === undefined); - s.aIsUndef___95040 = (r0); - r0 = (s.arg1 === undefined); - s.bIsUndef___95044 = (r0); - s.tmp_0 = r0 = s.aIsUndef___95040; + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } + if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.bIsUndef___95044; + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); case 2: // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - r0 = 0; - { step = 17; continue; } - { step = 8; continue; } + { step = 5; continue; } case 3: - r0 = pxsim_numops_toBoolDecr(s.aIsUndef___95040); - if (!r0) { step = 4; continue; } - r0 = 1; - { step = 17; continue; } - { step = 7; continue; } case 4: - r0 = pxsim_numops_toBoolDecr(s.bIsUndef___95044); - if (!r0) { step = 5; continue; } - r0 = -1; - { step = 17; continue; } + r0 = pxsim_ImageMethods.drawTransparentImage(s.arg1, s.arg0, s.arg2, s.arg3); case 5: - case 6: - case 7: - case 8: - r0 = (s.arg0 === null); - s.aIsNull___95055 = (r0); - r0 = (s.arg1 === null); - s.bIsNull___95059 = (r0); - s.tmp_0 = r0 = s.aIsNull___95055; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 9; continue; } - r0 = s.tmp_0; - { step = 10; continue; } - case 9: - r0 = s.bIsNull___95059; - case 10: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 11; continue; } - r0 = 0; - { step = 17; continue; } - { step = 16; continue; } - case 11: - r0 = pxsim_numops_toBoolDecr(s.aIsNull___95055); - if (!r0) { step = 12; continue; } - r0 = 1; - { step = 17; continue; } - { step = 15; continue; } - case 12: - r0 = pxsim_numops_toBoolDecr(s.bIsNull___95059); - if (!r0) { step = 13; continue; } - r0 = -1; - { step = 17; continue; } - case 13: - case 14: - case 15: - case 16: - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 18); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 18: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.tmp_2 = r0; - if ((s.arg1) && (s.arg1).vtable) { - setupResume(s, 19); - pxsim_String__stringConv(s.arg1); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg1) + ""; } - case 19: - r0 = s.retval; - s.tmp_6 = r0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_7 = r0; - r0 = pxsim_String__concat(s.tmp_6, s.tmp_7); - s.tmp_5 = r0; - r0 = pxsim_String_.compare(s.tmp_2, s.tmp_5); - case 17: + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P95037.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"]} +spriteutils_drawTransparentImage__P155111.info = {"start":5153,"length":190,"line":157,"column":4,"endLine":162,"endColumn":5,"fileName":"pxt_modules/arcade-sprite-util/spriteutils.ts","functionName":"drawTransparentImage","argumentNames":["src","to","x","y"]} -function inline__P95037_mk(s) { +function spriteutils_drawTransparentImage__P155111_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P95037, depth: s.depth + 1, + parent: s, fn: spriteutils_drawTransparentImage__P155111, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - aIsUndef___95040: undefined, - bIsUndef___95044: undefined, - aIsNull___95055: undefined, - bIsNull___95059: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function helpers_sortHelper__P90138(s) { +function spriteutils_isDestroyed__P155103(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12908,114 +16265,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___95094 = undefined; - s.i___95097 = undefined; - s.j___95103 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__length(s.arg0); + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; - r0 = (s.tmp_1 <= 0); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_numops_toBoolDecr(s.arg1); + r0 = s.arg0.fields["flags"]; + s.tmp_6 = r0; + r0 = (s.tmp_6 & 2); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); case 2: // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - r0 = s.arg0; - { step = 11; continue; } - case 3: - case 4: - r0 = pxsim_Array__length(s.arg0); - s.len___95094 = (r0); - s.i___95097 = (0); - case 5: - s.tmp_1 = r0 = s.i___95097; - r0 = (s.len___95094 - 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___95097 + 1); - s.j___95103 = (r0); - case 6: - r0 = (s.j___95103 < s.len___95094); - 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___95097); - s.tmp_3.arg0 = r0; - r0 = pxsim_Array__getAt(s.arg0, s.j___95103); - s.tmp_3.arg1 = r0; - setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 0; s.pc = 12; return s.tmp_3; - case 12: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 > 0); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 7; continue; } - s.tmp_4 = helpers_swap__P90137_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = s.i___95097; - s.tmp_4.arg2 = s.j___95103; - s.callLocIdx = 1; s.pc = 13; return s.tmp_4; - case 13: - r0 = s.retval; - case 7: - case 8: - r0 = (s.j___95103 + 1); - s.j___95103 = (r0); - { step = 6; continue; } - case 9: - r0 = (s.i___95097 + 1); - s.i___95097 = (r0); - { step = 5; continue; } - case 10: - r0 = s.arg0; - case 11: + s.tmp_7 = r0; + r0 = s.tmp_7; return leave(s, r0) default: oops() } } } -helpers_sortHelper__P90138.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"]} +spriteutils_isDestroyed__P155103.info = {"start":528,"length":129,"line":19,"column":4,"endLine":21,"endColumn":5,"fileName":"pxt_modules/arcade-sprite-util/spriteutils.ts","functionName":"isDestroyed","argumentNames":["sprite"]} -function helpers_sortHelper__P90138_mk(s) { +function spriteutils_isDestroyed__P155103_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_sortHelper__P90138, depth: s.depth + 1, + parent: s, fn: spriteutils_isDestroyed__P155103, depth: s.depth + 1, pc: 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___95094: undefined, - i___95097: undefined, - j___95103: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, arg0: undefined, - arg1: undefined, } } -function helpers_swap__P90137(s) { +function minimap_includeSprite__P155101(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13025,162 +16328,186 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.temp___95132 = undefined; + s.scale___158475 = undefined; + s.x___158482 = undefined; + s.y___158499 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_Array__getAt(s.arg0, s.arg1); - s.temp___95132 = (r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - r0 = pxsim_Array__getAt(s.arg0, s.arg2); + s.tmp_0 = Math_max__P151609_mk(s); + s.tmp_2 = if_scale_1_mk(s); + s.tmp_2.arg0 = s.arg0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "scale"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["scale"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["scale"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1435; s.pc = 2; return s.tmp_2; } + } + case 2: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.arg2); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1436; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.scale___158475 = (r0); + s.tmp_3 = Sprite_x__P153509_mk(s); + s.tmp_3.arg0 = s.arg1; + s.callLocIdx = 1437; s.pc = 3; return s.tmp_3; + case 3: + r0 = s.retval; 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___95132); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -helpers_swap__P90137.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__P90137_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: helpers_swap__P90137, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - temp___95132: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function particles_init__P90886(s) { -let r0 = s.r0, 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___95149 = undefined; - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 1102; s.pc = 4; return s.tmp_0; + s.tmp_5 = if_scale_1_mk(s); + s.tmp_5.arg0 = s.arg0; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "scale"); + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["scale"]; + if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["scale"]; } + else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } + else { s.callLocIdx = 1438; s.pc = 4; return s.tmp_5; } + } case 4: r0 = s.retval; - s.scene___95149 = (r0); - r0 = s.scene___95149.fields["particleSources"]; + s.tmp_4 = r0; + r0 = (s.tmp_2 >> s.tmp_4); + s.tmp_1 = r0; + r0 = s.arg1.fields["_image"]; + s.tmp_9 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_9); + s.tmp_8 = r0; + r0 = (s.tmp_8 / 2); + s.tmp_7 = r0; + r0 = (s.tmp_7 >> s.scale___158475); + s.tmp_6 = r0; + r0 = (s.tmp_1 - s.tmp_6); 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___95149; - r0 = pxsim_Array__mk(); - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["particleSources"] = (s.tmp_2); - r0 = pxsim.control.millis(); - globals.lastUpdate___90881 = (r0); - s.tmp_0 = game_onUpdate__P89028_mk(s); - s.tmp_0.arg0 = particles_updateParticles__P90887; - s.callLocIdx = 1103; s.pc = 5; return s.tmp_0; + s.tmp_11 = if_borderWidth_1_mk(s); + s.tmp_11.arg0 = s.arg0; + if (!s.tmp_11.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "borderWidth"); + } else { + s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["borderWidth"]; + if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["borderWidth"]; } + else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } + else { s.callLocIdx = 1440; s.pc = 5; return s.tmp_11; } + } case 5: r0 = s.retval; - s.tmp_0 = game_onUpdateInterval__P89029_mk(s); - s.tmp_0.arg0 = 250; - s.tmp_0.arg1 = particles_pruneParticles__P90888; - s.callLocIdx = 1104; s.pc = 6; return s.tmp_0; + s.tmp_10 = r0; + r0 = (s.tmp_0 + s.tmp_10); + s.x___158482 = (r0); + s.tmp_3 = Sprite_y__P153511_mk(s); + s.tmp_3.arg0 = s.arg1; + s.callLocIdx = 1441; s.pc = 6; return s.tmp_3; case 6: r0 = s.retval; - case 3: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_init__P90886.info = {"start":9219,"length":276,"line":303,"column":4,"endLine":310,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]} - -function particles_init__P90886_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_init__P90886, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - scene___95149: undefined, -} } - - - - - -function particles_pruneParticles__P90888(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.sources___95164 = undefined; - s.tmp_0 = particles_particleSources__P90892_mk(s); - s.callLocIdx = 1108; s.pc = 3; return s.tmp_0; - case 3: + s.tmp_2 = r0; + s.tmp_5 = if_scale_1_mk(s); + s.tmp_5.arg0 = s.arg0; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "scale"); + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["scale"]; + if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["scale"]; } + else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } + else { s.callLocIdx = 1442; s.pc = 7; return s.tmp_5; } + } + case 7: r0 = s.retval; - s.sources___95164 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___95164); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P86592_mk(s); - s.tmp_1 = helpers_arraySlice__P86597_mk(s); - s.tmp_1.arg0 = s.sources___95164; - s.tmp_1.arg1 = 0; - r0 = pxsim_Array__length(s.sources___95164); - s.tmp_1.arg2 = r0; - s.callLocIdx = 1109; s.pc = 5; return s.tmp_1; - case 5: + s.tmp_4 = r0; + r0 = (s.tmp_2 >> s.tmp_4); + s.tmp_1 = r0; + r0 = s.arg1.fields["_image"]; + s.tmp_9 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_9); + s.tmp_8 = r0; + r0 = (s.tmp_8 / 2); + s.tmp_7 = r0; + r0 = (s.tmp_7 >> s.scale___158475); + s.tmp_6 = r0; + r0 = (s.tmp_1 - s.tmp_6); + s.tmp_0 = r0; + s.tmp_11 = if_borderWidth_1_mk(s); + s.tmp_11.arg0 = s.arg0; + if (!s.tmp_11.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "borderWidth"); + } else { + s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["borderWidth"]; + if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["borderWidth"]; } + else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } + else { s.callLocIdx = 1444; s.pc = 8; return s.tmp_11; } + } + case 8: r0 = s.retval; + s.tmp_10 = r0; + r0 = (s.tmp_0 + s.tmp_10); + s.y___158499 = (r0); + s.tmp_0 = minimap_renderScaledImage__P157417_mk(s); + r0 = s.arg1.fields["_image"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P95173; - s.callLocIdx = 1111; s.pc = 4; return s.tmp_0; - case 4: + s.tmp_1 = if_image_1_mk(s); + s.tmp_1.arg0 = s.arg0; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "image"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["image"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["image"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 1446; s.pc = 10; return s.tmp_1; } + } + case 10: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.x___158482; + s.tmp_0.arg3 = s.y___158499; + s.tmp_0.arg4 = s.scale___158475; + s.callLocIdx = 1447; s.pc = 9; return s.tmp_0; + case 9: r0 = s.retval; - case 1: - case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_pruneParticles__P90888.info = {"start":9847,"length":156,"line":326,"column":4,"endLine":329,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]} +minimap_includeSprite__P155101.info = {"start":3241,"length":451,"line":102,"column":4,"endLine":107,"endColumn":5,"fileName":"pxt_modules/arcade-minimap/minimap.ts","functionName":"includeSprite","argumentNames":["minimap","sprite","spriteScale"]} -function particles_pruneParticles__P90888_mk(s) { +function minimap_includeSprite__P155101_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_pruneParticles__P90888, depth: s.depth + 1, + parent: s, fn: minimap_includeSprite__P155101, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - sources___95164: 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, + scale___158475: undefined, + x___158482: undefined, + y___158499: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function inline__P95173(s) { +function minimap_renderScaledImage__P157417(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13190,35 +16517,111 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.tile___158533 = undefined; + s.i___158535 = undefined; + s.j___158541 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource__prune__P89171_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1110; s.pc = 1; return s.tmp_0; + s.tile___158533 = (s.arg0); + s.i___158535 = (0); case 1: - r0 = s.retval; + s.tmp_1 = r0 = s.i___158535; + r0 = pxsim_ImageMethods.width(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.j___158541 = (0); + case 2: + s.tmp_1 = r0 = s.j___158541; + r0 = pxsim_ImageMethods.height(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = pxsim_ImageMethods.getPixel(s.arg0, s.i___158535, s.j___158541); + s.tmp_4 = r0; + r0 = (s.tmp_4 != 0); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + s.tmp_5 = r0 = s.arg1; + s.tmp_7 = r0 = s.arg2; + r0 = (s.i___158535 >> s.arg4); + s.tmp_8 = r0; + r0 = (s.tmp_7 + s.tmp_8); + s.tmp_6 = r0; + s.tmp_10 = r0 = s.arg3; + r0 = (s.j___158541 >> s.arg4); + s.tmp_11 = r0; + r0 = (s.tmp_10 + s.tmp_11); + s.tmp_9 = r0; + r0 = pxsim_ImageMethods.getPixel(s.arg0, s.i___158535, s.j___158541); + s.tmp_12 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_5, s.tmp_6, s.tmp_9, s.tmp_12); + case 3: + case 4: + s.tmp_0 = r0 = s.j___158541; + r0 = (1 << s.arg4); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.j___158541 = (r0); + { step = 2; continue; } + case 5: + s.tmp_0 = r0 = s.i___158535; + r0 = (1 << s.arg4); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.i___158535 = (r0); + { step = 1; continue; } + case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P95173.info = {"start":9980,"length":15,"line":328,"column":62,"endLine":328,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +minimap_renderScaledImage__P157417.info = {"start":544,"length":459,"line":26,"column":4,"endLine":35,"endColumn":5,"fileName":"pxt_modules/arcade-minimap/minimap.ts","functionName":"renderScaledImage","argumentNames":["source","destination","x","y","scale"]} -function inline__P95173_mk(s) { +function minimap_renderScaledImage__P157417_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P95173, depth: s.depth + 1, + parent: s, fn: minimap_renderScaledImage__P157417, depth: s.depth + 1, pc: 0, retval: undefined, 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, + tile___158533: undefined, + i___158535: undefined, + j___158541: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function particles_ParticleSource__prune__P89171(s) { +function Sprite_height__P153545(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13228,147 +16631,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___94961 = undefined; - s.sources___94969 = undefined; - s.current___94983 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C89163_VT)) failedCast(r0); - case 1: - r0 = s.arg0.fields["head"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 2; continue; } - r0 = s.tmp_0; - { step = 3; continue; } - case 2: - r0 = s.arg0.fields["head"]; - r0 = r0.fields["lifespan"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 <= 0); - case 3: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 4; continue; } - r0 = s.arg0.fields["head"]; - r0 = r0.fields["next"]; - s.tmp_3 = r0; - r0 = (s.arg0).fields["head"] = (s.tmp_3); - { step = 1; continue; } - case 4: - r0 = s.arg0.fields["pFlags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["head"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 6: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 13; continue; } - s.tmp_5 = game_currentScene__P89017_mk(s); - s.callLocIdx = 1083; s.pc = 21; return s.tmp_5; - case 21: - r0 = s.retval; - s.scene___94961 = (r0); - r0 = pxsim_numops_toBoolDecr(s.scene___94961); - if (!r0) { step = 7; continue; } - r0 = s.scene___94961.fields["allSprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); - case 7: - case 8: - s.tmp_0 = particles_particleSources__P90892_mk(s); - s.callLocIdx = 1084; s.pc = 22; return s.tmp_0; - case 22: - r0 = s.retval; - s.sources___94969 = (r0); - s.tmp_0 = r0 = s.sources___94969; - 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___94969); - 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___94969, s.arg0); - case 11: - case 12: - r0 = s.arg0.fields["anchor"]; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + r0 = s.arg0.fields["_image"]; s.tmp_0 = r0; - r0 = (s.tmp_0 == undefined); - case 13: - case 14: - r0 = s.arg0.fields["head"]; - s.current___94983 = (r0); - case 15: - s.tmp_0 = r0 = s.current___94983; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 16; continue; } - r0 = s.tmp_0; - { step = 17; continue; } - case 16: - r0 = s.current___94983.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___94983.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___94983.fields["next"]; - r0 = r0.fields["next"]; - s.tmp_4 = r0; - r0 = (s.current___94983).fields["next"] = (s.tmp_4); - { step = 19; continue; } - case 18: - r0 = s.current___94983.fields["next"]; - s.current___94983 = (r0); - case 19: - { step = 15; continue; } - case 20: - r0 = undefined; - return leave(s, r0) + r0 = pxsim_ImageMethods.height(s.tmp_0); + return leaveAccessor(s, r0) default: oops() } } } -particles_ParticleSource__prune__P89171.info = {"start":5087,"length":830,"line":165,"column":8,"endLine":188,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_prune","argumentNames":["this"]} +Sprite_height__P153545.info = {"start":8639,"length":54,"line":314,"column":4,"endLine":316,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"height","argumentNames":["this"]} +Sprite_height__P153545.isGetter = true; -function particles_ParticleSource__prune__P89171_mk(s) { +function Sprite_height__P153545_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource__prune__P89171, depth: s.depth + 1, + parent: s, fn: Sprite_height__P153545, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - scene___94961: undefined, - sources___94969: undefined, - current___94983: undefined, arg0: undefined, } } @@ -13376,7 +16659,7 @@ function particles_ParticleSource__prune__P89171_mk(s) { -function helpers_arraySlice__P86597(s) { +function Sprite_width__P153544(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13386,114 +16669,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___95180 = undefined; - s.len___95182 = undefined; - s.i___95216 = 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___95180 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___95182 = (r0); - r0 = (s.arg1 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.arg1 = (0); - { step = 4; continue; } - case 1: - r0 = (s.arg1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = Math_max__P86610_mk(s); - r0 = (s.len___95182 + s.arg1); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 9; s.pc = 16; return s.tmp_1; - case 16: - r0 = s.retval; - s.arg1 = (r0); - case 2: - case 3: - case 4: - r0 = (s.arg1 > s.len___95182); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.res___95180; - { step = 15; continue; } - case 5: - case 6: - r0 = (s.arg2 === undefined); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 7; continue; } - s.arg2 = (s.len___95182); - { 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___95182 + s.arg2); - s.arg2 = (r0); - case 8: - case 9: - case 10: - r0 = (s.arg2 > s.len___95182); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.arg2 = (s.len___95182); - case 11: - case 12: - s.i___95216 = (s.arg1); - case 13: - r0 = (s.i___95216 < s.arg2); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + r0 = s.arg0.fields["_image"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - s.tmp_1 = r0 = s.res___95180; - r0 = pxsim_Array__getAt(s.arg0, s.i___95216); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___95216 + 1); - s.i___95216 = (r0); - { step = 13; continue; } - case 14: - r0 = s.res___95180; - case 15: - return leave(s, r0) + r0 = pxsim_ImageMethods.width(s.tmp_0); + return leaveAccessor(s, r0) default: oops() } } } -helpers_arraySlice__P86597.info = {"start":8909,"length":690,"line":299,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySlice","argumentNames":["arr","start","end"]} +Sprite_width__P153544.info = {"start":8494,"length":52,"line":309,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"width","argumentNames":["this"]} +Sprite_width__P153544.isGetter = true; -function helpers_arraySlice__P86597_mk(s) { +function Sprite_width__P153544_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySlice__P86597, depth: s.depth + 1, + parent: s, fn: Sprite_width__P153544, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - res___95180: undefined, - len___95182: undefined, - i___95216: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function particles_updateParticles__P90887(s) { +function Sprite_y__P153511(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13503,350 +16707,97 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___95685 = undefined; - s.time___95692 = undefined; - s.dt___95695 = undefined; - s.i___95701 = undefined; - s.tmp_0 = particles_particleSources__P90892_mk(s); - s.callLocIdx = 1105; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.sources___95685 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___95685); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + r0 = s.arg0.fields["_y"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 / 256); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 5; continue; } - case 1: - case 2: - s.tmp_2 = particles_sortSources__P90889_mk(s); - s.tmp_2.arg0 = s.sources___95685; - s.callLocIdx = 1106; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - r0 = pxsim.control.millis(); - s.time___95692 = (r0); - r0 = (s.time___95692 - globals.lastUpdate___90881); - s.dt___95695 = (r0); - globals.lastUpdate___90881 = (s.time___95692); - s.i___95701 = (0); - case 3: - s.tmp_1 = r0 = s.i___95701; - r0 = pxsim_Array__length(s.sources___95685); + 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 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_3 = particles_ParticleSource__update__P89170_mk(s); - r0 = pxsim_Array__getAt(s.sources___95685, s.i___95701); - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.dt___95695; - s.callLocIdx = 1107; s.pc = 8; return s.tmp_3; - case 8: - r0 = s.retval; - r0 = (s.i___95701 + 1); - s.i___95701 = (r0); - { step = 3; continue; } - case 4: - case 5: - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_0 + s.tmp_2); + return leaveAccessor(s, r0) default: oops() } } } -particles_updateParticles__P90887.info = {"start":9501,"length":340,"line":312,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]} +Sprite_y__P153511.info = {"start":1849,"length":85,"line":81,"column":4,"endLine":83,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this"]} +Sprite_y__P153511.isGetter = true; -function particles_updateParticles__P90887_mk(s) { +function Sprite_y__P153511_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_updateParticles__P90887, depth: s.depth + 1, + parent: s, fn: Sprite_y__P153511, depth: s.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___95685: undefined, - time___95692: undefined, - dt___95695: undefined, - i___95701: undefined, + tmp_4: undefined, + arg0: undefined, } } -function particles_ParticleSource__update__P89170(s) { +function Sprite_x__P153509(s) { let r0 = s.r0, step = s.pc; s.pc = -1; - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.p___95764 = undefined; - s.current___95783 = undefined; - s.fixedDt___95791 = 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__C89163_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["timer"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["timer"] = (s.tmp_1); - r0 = s.arg0.fields["lifespan"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_2 = r0 = s.arg0; - r0 = s.tmp_2.fields["lifespan"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 - s.arg1); - s.tmp_3 = r0; - r0 = (s.tmp_2).fields["lifespan"] = (s.tmp_3); - r0 = s.arg0.fields["lifespan"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 <= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["lifespan"] = (undefined); - s.tmp_0 = particles_ParticleSource_destroy__P89177_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1078; s.pc = 28; return s.tmp_0; - case 28: - r0 = s.retval; - case 1: - case 2: - { step = 10; continue; } - case 3: - r0 = s.arg0.fields["anchor"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 4; continue; } - r0 = s.tmp_0; - { step = 5; continue; } - case 4: - s.tmp_2 = if_flags_1_mk(s); - r0 = s.arg0.fields["anchor"]; - s.tmp_2.arg0 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "flags"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["flags"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["flags"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1079; s.pc = 29; return s.tmp_2; } - } - case 29: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); - case 5: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (r0) { step = 6; continue; } - r0 = s.tmp_3; - { step = 7; continue; } - case 6: - s.tmp_5 = if_flags_1_mk(s); - r0 = s.arg0.fields["anchor"]; - s.tmp_5.arg0 = r0; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "flags"); - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["flags"]; - if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["flags"]; } - else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1080; s.pc = 30; return s.tmp_5; } - } - case 30: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 & 2); - case 7: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 8; continue; } - r0 = (s.arg0).fields["lifespan"] = (750); - case 8: - case 9: - case 10: - case 11: - r0 = s.arg0.fields["timer"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 12; continue; } - r0 = s.tmp_0; - { step = 13; continue; } - case 12: - s.tmp_2 = particles_ParticleSource_enabled__P89175_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 1081; s.pc = 31; return s.tmp_2; - case 31: - r0 = s.retval; - case 13: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 16; continue; } - s.tmp_4 = r0 = s.arg0; - r0 = s.tmp_4.fields["timer"]; - s.tmp_6 = r0; - r0 = s.arg0.fields["period"]; - s.tmp_7 = r0; - r0 = (s.tmp_6 + s.tmp_7); - s.tmp_5 = r0; - r0 = (s.tmp_4).fields["timer"] = (s.tmp_5); - s.tmp_0 = particles_ParticleFactory__C89199_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__C89199_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___95764 = (r0); - r0 = pxsim_numops_toBoolDecr(s.p___95764); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - { step = 11; continue; } - case 14: - case 15: - r0 = s.arg0.fields["head"]; - s.tmp_2 = r0; - r0 = (s.p___95764).fields["next"] = (s.tmp_2); - r0 = (s.arg0).fields["head"] = (s.p___95764); - { step = 11; continue; } - case 16: - r0 = s.arg0.fields["head"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 17; continue; } - { step = 27; continue; } - case 17: - case 18: - r0 = s.arg0.fields["head"]; - s.current___95783 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["_dt"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_dt"] = (s.tmp_1); - r0 = s.arg0.fields["_dt"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 * 256); - s.tmp_1 = r0; - r0 = (s.tmp_1 | 0); - s.fixedDt___95791 = (r0); - r0 = pxsim_numops_toBoolDecr(s.fixedDt___95791); - if (!r0) { step = 23; continue; } - case 19: - r0 = s.current___95783.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___95783; - 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__C89163_v4_3_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.current___95783; - s.tmp_0.arg2 = s.fixedDt___95791; - if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C89163_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___95783.fields["next"]; - s.tmp_0 = r0; - s.current___95783 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - { step = 19; continue; } - case 22: - r0 = (s.arg0).fields["_dt"] = (0); - { step = 26; continue; } - case 23: - case 24: - s.tmp_0 = r0 = s.current___95783; - r0 = s.tmp_0.fields["lifespan"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.arg1); + +while (true) { +if (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__C153500_VT)) failedCast(r0); + r0 = s.arg0.fields["_x"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lifespan"] = (s.tmp_1); - r0 = s.current___95783.fields["next"]; + r0 = (s.tmp_1 / 256); s.tmp_0 = r0; - s.current___95783 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 25; continue; } - { step = 24; continue; } - case 25: - case 26: - case 27: - r0 = undefined; - return leave(s, r0) + 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() } } } -particles_ParticleSource__update__P89170.info = {"start":3677,"length":1400,"line":123,"column":8,"endLine":163,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_update","argumentNames":["this","dt"]} +Sprite_x__P153509.info = {"start":1501,"length":84,"line":70,"column":4,"endLine":72,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this"]} +Sprite_x__P153509.isGetter = true; -function particles_ParticleSource__update__P89170_mk(s) { +function Sprite_x__P153509_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource__update__P89170, depth: s.depth + 1, + parent: s, fn: Sprite_x__P153509, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - p___95764: undefined, - current___95783: undefined, - fixedDt___95791: undefined, arg0: undefined, - arg1: undefined, } } -function particles_ParticleSource_updateParticle__P90883(s) { +function minimap_minimap__P155099(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13856,74 +16807,169 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.tilemap___158625 = undefined; + s.numRows___158636 = undefined; + s.numCols___158643 = undefined; + s.tileWidth___158650 = undefined; + s.minimap___158655 = undefined; + s.r___158682 = undefined; + s.c___158687 = undefined; + s.idx___158692 = undefined; + s.tile___158698 = undefined; + s.nx___158703 = undefined; + s.ny___158712 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C89163_VT)) failedCast(r0); - r0 = (s.arg2 >> 10); - s.arg2 = (r0); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["vx"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["ax"]; - s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 1425; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + r0 = r0.fields["tileMap"]; + s.tilemap___158625 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tilemap___158625); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["vy"]; + r0 = 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 = s.arg0.fields["ay"]; - s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); + r0 = pxsim.image.create(1, 1); s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["_x"]; - s.tmp_2 = r0; - r0 = s.arg1.fields["vx"]; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_2, "image", s.tmp_3); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_2, "scale", s.arg0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_2, "borderWidth", s.arg1); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_2, "borderColor", s.arg2); + r0 = s.tmp_2; + { step = 9; continue; } + case 1: + case 2: + s.tmp_5 = tiles_TileMap_areaHeight__P153808_mk(s); + s.tmp_5.arg0 = s.tilemap___158625; + s.callLocIdx = 1426; s.pc = 11; return s.tmp_5; + case 11: + r0 = s.retval; s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["_y"]; + r0 = s.tilemap___158625.fields["_scale"]; + s.tmp_6 = r0; + r0 = (s.tmp_4 >> s.tmp_6); + s.numRows___158636 = (r0); + s.tmp_1 = tiles_TileMap_areaWidth__P153807_mk(s); + s.tmp_1.arg0 = s.tilemap___158625; + s.callLocIdx = 1428; s.pc = 12; return s.tmp_1; + case 12: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.tilemap___158625.fields["_scale"]; s.tmp_2 = r0; - r0 = s.arg1.fields["vy"]; - s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); + r0 = (s.tmp_0 >> s.tmp_2); + s.numCols___158643 = (r0); + r0 = s.tilemap___158625.fields["_scale"]; + s.tmp_0 = r0; + r0 = (1 << s.tmp_0); + s.tileWidth___158650 = (r0); + r0 = (s.numCols___158643 * s.tileWidth___158650); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> s.arg0); + s.tmp_1 = r0; + r0 = (s.arg1 * 2); s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + r0 = (s.tmp_1 + s.tmp_3); + s.tmp_0 = r0; + r0 = (s.numRows___158636 * s.tileWidth___158650); + s.tmp_6 = r0; + r0 = (s.tmp_6 >> s.arg0); + s.tmp_5 = r0; + r0 = (s.arg1 * 2); + s.tmp_7 = r0; + r0 = (s.tmp_5 + s.tmp_7); + s.tmp_4 = r0; + r0 = pxsim.image.create(s.tmp_0, s.tmp_4); + s.minimap___158655 = (r0); + r0 = (s.arg1 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_ImageMethods.fill(s.minimap___158655, s.arg2); + case 3: + case 4: + s.r___158682 = (0); + case 5: + r0 = (s.r___158682 < s.numRows___158636); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.c___158687 = (0); + case 6: + r0 = (s.c___158687 < s.numCols___158643); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_1 = tiles_TileMap_getTileIndex__P153814_mk(s); + s.tmp_1.arg0 = s.tilemap___158625; + s.tmp_1.arg1 = s.c___158687; + s.tmp_1.arg2 = s.r___158682; + s.callLocIdx = 1431; s.pc = 13; return s.tmp_1; + case 13: + r0 = s.retval; + s.idx___158692 = (r0); + s.tmp_0 = tiles_TileMap_getTileImage__P153823_mk(s); + s.tmp_0.arg0 = s.tilemap___158625; + s.tmp_0.arg1 = s.idx___158692; + s.callLocIdx = 1432; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.tile___158698 = (r0); + r0 = (s.c___158687 * s.tileWidth___158650); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = undefined; + r0 = (s.tmp_1 >> s.arg0); + s.tmp_0 = r0; + r0 = (s.tmp_0 + s.arg1); + s.nx___158703 = (r0); + r0 = (s.r___158682 * s.tileWidth___158650); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> s.arg0); + s.tmp_0 = r0; + r0 = (s.tmp_0 + s.arg1); + s.ny___158712 = (r0); + s.tmp_0 = minimap_renderScaledImage__P157417_mk(s); + s.tmp_0.arg0 = s.tile___158698; + s.tmp_0.arg1 = s.minimap___158655; + s.tmp_0.arg2 = s.nx___158703; + s.tmp_0.arg3 = s.ny___158712; + s.tmp_0.arg4 = s.arg0; + s.callLocIdx = 1433; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + r0 = (s.c___158687 + 1); + s.c___158687 = (r0); + { step = 6; continue; } + case 7: + r0 = (s.r___158682 + 1); + s.r___158682 = (r0); + { step = 5; continue; } + case 8: + r0 = pxsim_pxtrt.mkMap(); + s.tmp_0 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "image", s.minimap___158655); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "scale", s.arg0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "borderWidth", s.arg1); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "borderColor", s.arg2); + r0 = s.tmp_0; + case 9: return leave(s, r0) default: oops() } } } -particles_ParticleSource_updateParticle__P90883.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"]} +minimap_minimap__P155099.info = {"start":1349,"length":1436,"line":45,"column":4,"endLine":87,"endColumn":5,"fileName":"pxt_modules/arcade-minimap/minimap.ts","functionName":"minimap","argumentNames":["scale","borderWidth","borderColor"]} -function particles_ParticleSource_updateParticle__P90883_mk(s) { +function minimap_minimap__P155099_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_updateParticle__P90883, depth: s.depth + 1, + parent: s, fn: minimap_minimap__P155099, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -13931,6 +16977,19 @@ function particles_ParticleSource_updateParticle__P90883_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tilemap___158625: undefined, + numRows___158636: undefined, + numCols___158643: undefined, + tileWidth___158650: undefined, + minimap___158655: undefined, + r___158682: undefined, + c___158687: undefined, + idx___158692: undefined, + tile___158698: undefined, + nx___158703: undefined, + ny___158712: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -13940,7 +16999,7 @@ function particles_ParticleSource_updateParticle__P90883_mk(s) { -function Fx_rightShift__P86649(s) { +function images_printCenter__P155119(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13953,28 +17012,42 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = (s.arg0 >> s.arg1); + s.tmp_0 = helpers_imagePrintCenter__P153243_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = s.arg3; + s.tmp_0.arg4 = undefined; + s.callLocIdx = 1449; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_rightShift__P86649.info = {"start":2031,"length":108,"line":65,"column":4,"endLine":67,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"rightShift","argumentNames":["a","n"]} +images_printCenter__P155119.info = {"start":675,"length":123,"line":21,"column":4,"endLine":23,"endColumn":5,"fileName":"pxt_modules/arcade-text/images.ts","functionName":"printCenter","argumentNames":["i","text","y","color"]} -function Fx_rightShift__P86649_mk(s) { +function images_printCenter__P155119_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_rightShift__P86649, depth: s.depth + 1, + parent: s, fn: images_printCenter__P155119, 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 Fx_mul__P86640(s) { +function helpers_imagePrintCenter__P153243(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13984,34 +17057,92 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.w___158881 = undefined; + s.x___158887 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = pxsim.Math_.imul(s.arg0, s.arg1); + r0 = pxsim_numops_toBoolDecr(s.arg4); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = (s.tmp_0 >> 8); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = image_getFontForText__P153231_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 136; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + s.arg4 = (r0); + case 1: + case 2: + r0 = pxsim_String_.length(s.arg1); + s.tmp_0 = r0; + s.tmp_2 = if_charWidth_1_mk(s); + s.tmp_2.arg0 = s.arg4; + 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 = 137; s.pc = 4; return s.tmp_2; } + } + case 4: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0 * s.tmp_1); + s.w___158881 = (r0); + r0 = pxsim_ImageMethods.width(s.arg0); + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.w___158881); + s.tmp_0 = r0; + r0 = (s.tmp_0 / 2); + s.x___158887 = (r0); + s.tmp_0 = helpers_imagePrint__P153244_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.x___158887; + s.tmp_0.arg3 = s.arg2; + s.tmp_0.arg4 = s.arg3; + s.tmp_0.arg5 = s.arg4; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 138; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_mul__P86640.info = {"start":872,"length":133,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"mul","argumentNames":["a","b"]} +helpers_imagePrintCenter__P153243.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 Fx_mul__P86640_mk(s) { +function helpers_imagePrintCenter__P153243_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_mul__P86640, depth: s.depth + 1, + parent: s, fn: helpers_imagePrintCenter__P153243, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + w___158881: undefined, + x___158887: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function particles_ParticleFactory_createParticle__P89201(s) { +function helpers_imageFillRect__P153212(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14021,83 +17152,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___95881 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C89199_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C89144_VT); - s.p___95881 = (r0); - s.tmp_0 = r0 = s.p___95881; - s.tmp_3 = if_x_1_mk(s); - s.tmp_3.arg0 = s.arg1; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "x"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["x"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["x"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1132; s.pc = 1; return s.tmp_3; } - } + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = helpers_pack__P155444_mk(s); + s.tmp_2.arg0 = s.arg1; + s.tmp_2.arg1 = s.arg2; + s.callLocIdx = 121; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___95881; - s.tmp_3 = if_y_1_mk(s); - s.tmp_3.arg0 = s.arg1; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "y"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["y"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["y"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1134; s.pc = 2; return s.tmp_3; } - } + s.tmp_4 = helpers_pack__P155444_mk(s); + s.tmp_4.arg0 = s.arg3; + s.tmp_4.arg1 = s.arg4; + s.callLocIdx = 122; s.pc = 2; return s.tmp_4; case 2: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = (s.p___95881).fields["vx"] = (0); - r0 = (s.p___95881).fields["vy"] = (0); - r0 = (s.p___95881).fields["lifespan"] = (500); - r0 = s.p___95881; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods._fillRect(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5); + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleFactory_createParticle__P89201.info = {"start":1822,"length":282,"line":67,"column":8,"endLine":77,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +helpers_imageFillRect__P153212.info = {"start":3650,"length":159,"line":131,"column":4,"endLine":133,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]} -function particles_ParticleFactory_createParticle__P89201_mk(s) { +function helpers_imageFillRect__P153212_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_createParticle__P89201, depth: s.depth + 1, + parent: s, fn: helpers_imageFillRect__P153212, depth: s.depth + 1, pc: 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___95881: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function game_onUpdateInterval__P89029(s) { +function scene_screenHeight__P153940(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14107,79 +17215,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.timer___95240 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - s.tmp_0 = game_init__P90536_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 880; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = (s.arg0 < 0); - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - { step = 5; continue; } - case 3: - case 4: - r0 = pxsim_pxtrt.mklocRef(); - s.timer___95240 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.timer___95240, 0); - r0 = pxsim_pxtcore_mkAction(3, inline__P95244); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___95240); - 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__P86877_mk(s); - s.tmp_2 = game_eventContext__P89020_mk(s); - s.callLocIdx = 881; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 19; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 885; s.pc = 7; return s.tmp_1; - case 7: - r0 = s.retval; - case 5: - r0 = undefined; + r0 = pxsim_ImageMethods.height(globals.screen___153286); return leave(s, r0) default: oops() } } } -game_onUpdateInterval__P89029.info = {"start":7929,"length":417,"line":256,"column":4,"endLine":267,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]} +scene_screenHeight__P153940.info = {"start":876,"length":76,"line":41,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"screenHeight","argumentNames":[]} -function game_onUpdateInterval__P89029_mk(s) { +function scene_screenHeight__P153940_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdateInterval__P89029, depth: s.depth + 1, + parent: s, fn: scene_screenHeight__P153940, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - timer___95240: undefined, - arg0: undefined, - arg1: undefined, } } -function inline__P95244(s) { +function helpers_imageDrawRect__P153215(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14189,55 +17242,110 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.time___95245 = undefined; - s.tmp_1 = game_currentScene__P89017_mk(s); - s.callLocIdx = 882; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["_millis"]; - s.time___95245 = (r0); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.time___95245); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.lambdaArgs = null; + } + r0 = (s.arg3 == 0); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = r0 = s.caps[0]; - r0 = (s.time___95245 + 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 = 884; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = (s.arg4 == 0); case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + { step = 5; continue; } + case 3: + case 4: + r0 = (s.arg3 - 1); + s.arg3 = (r0); + r0 = (s.arg4 - 1); + s.arg4 = (r0); + s.tmp_0 = helpers_imageDrawLine__P153214_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + r0 = (s.arg1 + s.arg3); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = s.arg2; + s.tmp_0.arg5 = s.arg5; + s.callLocIdx = 125; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = helpers_imageDrawLine__P153214_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = s.arg1; + r0 = (s.arg2 + s.arg4); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.arg5; + s.callLocIdx = 126; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.tmp_0 = helpers_imageDrawLine__P153214_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = (s.arg1 + s.arg3); + s.tmp_0.arg1 = r0; + r0 = (s.arg2 + s.arg4); + s.tmp_0.arg2 = r0; + r0 = (s.arg1 + s.arg3); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = s.arg2; + s.tmp_0.arg5 = s.arg5; + s.callLocIdx = 127; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.tmp_0 = helpers_imageDrawLine__P153214_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = (s.arg1 + s.arg3); + s.tmp_0.arg1 = r0; + r0 = (s.arg2 + s.arg4); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.arg1; + r0 = (s.arg2 + s.arg4); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.arg5; + s.callLocIdx = 128; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P95244.info = {"start":8159,"length":179,"line":260,"column":81,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} +helpers_imageDrawRect__P153215.info = {"start":4141,"length":370,"line":140,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]} -function inline__P95244_mk(s) { +function helpers_imageDrawRect__P153215_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P95244, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawRect__P153215, depth: s.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___95245: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function scene_Scene_millis__P88928(s) { +function scene_screenWidth__P153939(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14247,31 +17355,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C88904_VT)) failedCast(r0); - r0 = s.arg0.fields["_millis"]; + r0 = pxsim_ImageMethods.width(globals.screen___153286); return leave(s, r0) default: oops() } } } -scene_Scene_millis__P88928.info = {"start":6788,"length":61,"line":189,"column":8,"endLine":191,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]} +scene_screenWidth__P153939.info = {"start":604,"length":74,"line":30,"column":4,"endLine":32,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"screenWidth","argumentNames":[]} -function scene_Scene_millis__P88928_mk(s) { +function scene_screenWidth__P153939_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_millis__P88928, depth: s.depth + 1, + parent: s, fn: scene_screenWidth__P153939, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, } } -function control_EventContext_registerFrameHandler__P86877(s) { +function Math_constrain__P151756(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14281,95 +17382,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.fn___95272 = undefined; - s.i___95281 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C86869_VT)) failedCast(r0); - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.arg0 < s.arg1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["frameCallbacks"] = (s.tmp_4); - s.tmp_0 = control_EventContext_registerFrameCallbacks__P90210_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 52; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; + r0 = s.arg1; + { step = 4; continue; } case 1: + r0 = (s.arg0 > s.arg2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = s.arg2; + { step = 3; continue; } case 2: - r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C86866_VT); - s.fn___95272 = (r0); - r0 = (s.fn___95272).fields["order"] = (s.arg1); - r0 = (s.fn___95272).fields["handler"] = (s.arg2); - s.i___95281 = (0); + r0 = s.arg0; case 3: - s.tmp_1 = r0 = s.i___95281; - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_3 = r0; - r0 = pxsim_Array__length(s.tmp_3); + // jmp value (already in r0) s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_6 = r0; - r0 = pxsim_Array__getAt(s.tmp_6, s.i___95281); - r0 = r0.fields["order"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 > s.arg1); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 4; continue; } - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_7 = r0; - r0 = pxsim_Array_.insertAt(s.tmp_7, s.i___95281, s.fn___95272); - r0 = s.fn___95272; - { step = 7; continue; } + r0 = s.tmp_2; case 4: - case 5: - r0 = (s.i___95281 + 1); - s.i___95281 = (r0); - { step = 3; continue; } - case 6: - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.fn___95272); - r0 = s.fn___95272; - case 7: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = s.tmp_3; return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameHandler__P86877.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"]} +Math_constrain__P151756.info = {"start":1679,"length":147,"line":34,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/base/math.ts","functionName":"constrain","argumentNames":["value","low","high"]} -function control_EventContext_registerFrameHandler__P86877_mk(s) { +function Math_constrain__P151756_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameHandler__P86877, depth: s.depth + 1, + parent: s, fn: Math_constrain__P151756, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - fn___95272: undefined, - i___95281: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -14379,7 +17434,7 @@ function control_EventContext_registerFrameHandler__P86877_mk(s) { -function control_EventContext_registerFrameCallbacks__P90210(s) { +function Math_map__P151755(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14389,55 +17444,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.worker___95315 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C86869_VT)) failedCast(r0); - r0 = s.arg0.fields["frameCallbacks"]; + r0 = (s.arg0 - s.arg1); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = (s.arg4 - s.arg3); + s.tmp_3 = r0; + r0 = (s.tmp_2 * s.tmp_3); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: - case 2: - r0 = s.arg0.fields["frameWorker"]; - s.worker___95315 = (r0); - r0 = pxsim_pxtcore_mkAction(2, inline__P95321); + r0 = (s.arg2 - s.arg1); + s.tmp_4 = r0; + r0 = (s.tmp_1 / s.tmp_4); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___95315); - r0 = pxsim.control.runInParallel(s.tmp_0); - case 3: - r0 = undefined; + r0 = (s.tmp_0 + s.arg3); return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameCallbacks__P90210.info = {"start":3481,"length":895,"line":105,"column":8,"endLine":129,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} +Math_map__P151755.info = {"start":1093,"length":202,"line":22,"column":4,"endLine":24,"endColumn":5,"fileName":"pxt_modules/base/math.ts","functionName":"map","argumentNames":["value","fromLow","fromHigh","toLow","toHigh"]} -function control_EventContext_registerFrameCallbacks__P90210_mk(s) { +function Math_map__P151755_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameCallbacks__P90210, depth: s.depth + 1, + parent: s, fn: Math_map__P151755, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - worker___95315: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function inline__P95321(s) { +function spriteutils_createRenderable__P155110(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14447,73 +17499,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.delay___95351 = 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__P95327); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.caps[0]); - s.tmp_2 = pauseUntil__P86841_mk(s); - s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = undefined; - s.callLocIdx = 46; s.pc = 5; return s.tmp_2; - case 5: - r0 = s.retval; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + s.tmp_0 = scene_createRenderable__P153867_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 1448; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = (s.caps[0]).fields["runningCallbacks"] = (true); - r0 = (s.caps[0]).fields["framesInSample"] = (0); - r0 = (s.caps[0]).fields["timeInSample"] = (0); - r0 = (s.caps[0]).fields["deltaTimeMillis"] = (0); - s.tmp_0 = r0 = s.caps[0]; - r0 = pxsim.control.millis(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["prevTimeMillis"] = (s.tmp_1); - case 3: - r0 = s.caps[0].fields["frameWorker"]; - s.tmp_1 = r0; - r0 = (s.caps[1] == s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_2 = control_EventContext_runCallbacks__P90209_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.callLocIdx = 47; s.pc = 6; return s.tmp_2; - case 6: - r0 = s.retval; - s.delay___95351 = (r0); - s.tmp_0 = pause__P86887_mk(s); - s.tmp_0.arg0 = s.delay___95351; - s.callLocIdx = 48; s.pc = 7; return s.tmp_0; - case 7: r0 = s.retval; - { step = 3; continue; } - case 4: - r0 = (s.caps[0]).fields["runningCallbacks"] = (false); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P95321.info = {"start":3642,"length":723,"line":109,"column":34,"endLine":128,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +spriteutils_createRenderable__P155110.info = {"start":4522,"length":137,"line":139,"column":4,"endLine":141,"endColumn":5,"fileName":"pxt_modules/arcade-sprite-util/spriteutils.ts","functionName":"createRenderable","argumentNames":["index","handler"]} -function inline__P95321_mk(s) { +function spriteutils_createRenderable__P155110_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P95321, depth: s.depth + 1, + parent: s, fn: spriteutils_createRenderable__P155110, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - delay___95351: undefined, + arg0: undefined, + arg1: undefined, } } -function inline__P95327(s) { +function inline__P163979(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14523,30 +17541,96 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["runningCallbacks"]; + s.rounds___163982 = undefined; + s.j___163990 = undefined; + s.x___163995 = undefined; + s.y___164001 = undefined; + s.c___164007 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim_ImageMethods.width(s.arg0); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = pxsim_ImageMethods.height(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + r0 = (s.tmp_0 >> 5); + s.rounds___163982 = (r0); + s.j___163990 = (0); + case 1: + r0 = (s.j___163990 < s.rounds___163982); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = Math_FastRandom_randomRange__P154074_mk(s); + s.tmp_1.arg0 = s.arg1; + s.tmp_1.arg1 = 0; + r0 = pxsim_ImageMethods.width(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1.arg2 = r0; + s.callLocIdx = 50; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.x___163995 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P154074_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 0; + r0 = pxsim_ImageMethods.height(s.arg0); + s.tmp_1 = r0; + r0 = (s.tmp_1 - 3); + s.tmp_0.arg2 = r0; + s.callLocIdx = 51; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.y___164001 = (r0); + r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___163995, s.y___164001); + s.c___164007 = (r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.x___163995; + r0 = (s.y___164001 + 1); + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___164007); + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.x___163995; + r0 = (s.y___164001 + 2); + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___164007); + r0 = (s.j___163990 + 1); + s.j___163990 = (r0); + { step = 1; continue; } + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P95327.info = {"start":3873,"length":28,"line":113,"column":31,"endLine":113,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +inline__P163979.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__P95327_mk(s) { +function inline__P163979_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P95327, depth: s.depth + 1, + parent: s, fn: inline__P163979, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + rounds___163982: undefined, + j___163990: undefined, + x___163995: undefined, + y___164001: undefined, + c___164007: undefined, + arg0: undefined, + arg1: undefined, } } -function control_EventContext_runCallbacks__P90209(s) { +function Math_FastRandom_randomRange__P154074(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14556,234 +17640,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.loopStart___95360 = undefined; - s.f___95373 = undefined; - s.unnamed368___U2 = undefined; - s.unnamed369___U3 = undefined; - s.runtime___95378 = undefined; - s.fps___95398 = undefined; - s.delay___95460 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C86869_VT)) failedCast(r0); - r0 = pxsim.control.millis(); - s.loopStart___95360 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["prevTimeMillis"]; - s.tmp_2 = r0; - r0 = (s.loopStart___95360 - s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["deltaTimeMillis"] = (s.tmp_1); - r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___95360); - s.f___95373 = (undefined); - r0 = s.arg0.fields["frameCallbacks"]; - s.unnamed368___U2 = (r0); - s.unnamed369___U3 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed369___U3; - r0 = pxsim_Array__length(s.unnamed368___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed368___U2, s.unnamed369___U3); - s.f___95373 = (r0); - s.tmp_2 = if_handler_1_mk(s); - s.tmp_2.arg0 = s.f___95373; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 1); - s.callLocIdx = 43; s.pc = 13; return s.tmp_2; - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["handler"]; - if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["handler"], 1); s.callLocIdx = 43; s.pc = 13; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 43; s.pc = 13; return s.tmp_2;; } - else { s.callLocIdx = 43; s.pc = 13; return s.tmp_2; } - } - case 13: - r0 = s.retval; - r0 = (s.unnamed369___U3 + 1); - s.unnamed369___U3 = (r0); - { step = 1; continue; } - case 2: - s.unnamed368___U2 = (undefined); - r0 = pxsim.control.millis(); - s.tmp_0 = r0; - r0 = (s.tmp_0 - s.loopStart___95360); - s.runtime___95378 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["timeInSample"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.runtime___95378); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["timeInSample"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["framesInSample"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["framesInSample"] = (s.tmp_1); - r0 = s.arg0.fields["timeInSample"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 1000); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = s.arg0.fields["framesInSample"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 > 30); - case 4: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 11; continue; } - r0 = s.arg0.fields["framesInSample"]; - s.tmp_4 = r0; - r0 = s.arg0.fields["timeInSample"]; - s.tmp_6 = r0; - r0 = (s.tmp_6 / 1000); - s.tmp_5 = r0; - r0 = (s.tmp_4 / s.tmp_5); - s.fps___95398 = (r0); - r0 = pxsim.Math_.round(s.fps___95398); - s.tmp_1 = r0; - if ((s.tmp_1) && (s.tmp_1).vtable) { - setupResume(s, 14); - pxsim_String__stringConv(s.tmp_1); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_1) + ""; } - case 14: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_String__concat("fps:", s.tmp_0); - globals.control_EventContext_lastStats___86871 = (r0); - r0 = (s.fps___95398 < 99); + if (!checkSubtype(r0, Math_FastRandom__C154070_VT)) failedCast(r0); + r0 = (s.arg2 > s.arg1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - if ((globals.control_EventContext_lastStats___86871) && (globals.control_EventContext_lastStats___86871).vtable) { - setupResume(s, 15); - pxsim_String__stringConv(globals.control_EventContext_lastStats___86871); - checkResumeConsumed(); - return; - } else { s.retval = (globals.control_EventContext_lastStats___86871) + ""; } - case 15: + if (!r0) { step = 1; continue; } + s.tmp_2 = Math_FastRandom_next__P154073_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1086; s.pc = 3; return s.tmp_2; + case 3: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.fps___95398 * 10); - s.tmp_7 = r0; - r0 = pxsim.Math_.round(s.tmp_7); - s.tmp_6 = r0; - r0 = (s.tmp_6 % 10); - s.tmp_5 = r0; - if ((s.tmp_5) && (s.tmp_5).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.tmp_5); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_5) + ""; } - case 16: - r0 = s.retval; + r0 = (s.arg2 - s.arg1); s.tmp_4 = r0; - r0 = pxsim_String__concat(".", s.tmp_4); + r0 = (s.tmp_4 + 1); s.tmp_3 = r0; - if ((s.tmp_3) && (s.tmp_3).vtable) { - setupResume(s, 17); - pxsim_String__stringConv(s.tmp_3); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_3) + ""; } - case 17: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); - globals.control_EventContext_lastStats___86871 = (r0); - case 5: - case 6: - s.tmp_2 = control_ramSize__P86820_mk(s); - s.callLocIdx = 44; s.pc = 18; return s.tmp_2; - case 18: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 2000000); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 7; continue; } - r0 = s.tmp_0; - { step = 8; continue; } - case 7: - r0 = pxsim.control.profilingEnabled(); - case 8: + r0 = (s.tmp_1 % s.tmp_3); + { step = 2; continue; } + case 1: + r0 = 0; + case 2: // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 9; continue; } - r0 = pxsim_String_.mkEmpty(); - s.tmp_8 = r0; - r0 = (s.fps___95398 * 100); - s.tmp_11 = r0; - r0 = (s.tmp_11 | 0); - s.tmp_10 = r0; - if ((s.tmp_10) && (s.tmp_10).vtable) { - setupResume(s, 19); - pxsim_String__stringConv(s.tmp_10); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_10) + ""; } - case 19: - r0 = s.retval; - s.tmp_9 = r0; - r0 = pxsim_String__concat(s.tmp_8, s.tmp_9); - s.tmp_7 = r0; - r0 = pxsim_String__concat(s.tmp_7, "/100 fps - "); - s.tmp_6 = r0; - r0 = s.arg0.fields["framesInSample"]; - s.tmp_13 = r0; - if ((s.tmp_13) && (s.tmp_13).vtable) { - setupResume(s, 20); - pxsim_String__stringConv(s.tmp_13); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_13) + ""; } - case 20: - r0 = s.retval; - s.tmp_12 = r0; - r0 = pxsim_String__concat(s.tmp_6, s.tmp_12); s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_5, " frames"); - s.tmp_4 = r0; - r0 = pxsim.control.dmesg(s.tmp_4); - r0 = pxsim.control.gc(); - r0 = pxsim_pxtcore.dumpPerfCounters(); - case 9: - case 10: - r0 = (s.arg0).fields["timeInSample"] = (0); - r0 = (s.arg0).fields["framesInSample"] = (0); - case 11: - case 12: - s.tmp_0 = Math_max__P86610_mk(s); - s.tmp_0.arg0 = 1; - r0 = (20 - s.runtime___95378); - s.tmp_0.arg1 = r0; - s.callLocIdx = 45; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - s.delay___95460 = (r0); - r0 = s.delay___95460; + r0 = (s.arg1 + s.tmp_5); return leave(s, r0) default: oops() } } } -control_EventContext_runCallbacks__P90209.info = {"start":2182,"length":1246,"line":74,"column":8,"endLine":102,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]} +Math_FastRandom_randomRange__P154074.info = {"start":2079,"length":131,"line":62,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"randomRange","argumentNames":["this","min","max"]} -function control_EventContext_runCallbacks__P90209_mk(s) { +function Math_FastRandom_randomRange__P154074_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_runCallbacks__P90209, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_randomRange__P154074, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14791,29 +17686,16 @@ function control_EventContext_runCallbacks__P90209_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - loopStart___95360: undefined, - f___95373: undefined, - unnamed368___U2: undefined, - unnamed369___U3: undefined, - runtime___95378: undefined, - fps___95398: undefined, - delay___95460: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function pauseUntil__P86841(s) { +function Math_FastRandom_next__P154073(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14825,59 +17707,36 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - s.tmp_2 = lambda_1_mk(s); - s.tmp_2.argL = s.arg0; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 30; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - case 2: - // jmp value (already in r0) + r0 = s.arg0; + if (!checkSubtype(r0, Math_FastRandom__C154070_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["lfsr"]; s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - { step = 7; continue; } - case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(s.arg1); + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = s.arg0.fields["lfsr"]; + s.tmp_7 = r0; + r0 = (s.tmp_7 & 1); + s.tmp_6 = r0; + r0 = (0 - s.tmp_6); s.tmp_5 = r0; - r0 = pxsim_Boolean__bang(s.tmp_5); + r0 = (s.tmp_5 & 46080); s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 5; continue; } - s.arg1 = (0); - case 5: - case 6: - s.tmp_0 = control___queuePollEvent__P86840_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 31; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - case 7: - r0 = undefined; + r0 = (s.tmp_2 ^ s.tmp_4); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["lfsr"] = (s.tmp_1); + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -pauseUntil__P86841.info = {"start":2205,"length":227,"line":73,"column":0,"endLine":77,"endColumn":1,"fileName":"pxt_modules/base/poll.ts","functionName":"pauseUntil","argumentNames":["condition","timeOut"]} +Math_FastRandom_next__P154073.info = {"start":1713,"length":107,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"next","argumentNames":["this"]} -function pauseUntil__P86841_mk(s) { +function Math_FastRandom_next__P154073_mk(s) { checkStack(s.depth); return { - parent: s, fn: pauseUntil__P86841, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_next__P154073, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14885,15 +17744,16 @@ function pauseUntil__P86841_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, arg0: undefined, - arg1: undefined, } } -function control___queuePollEvent__P86840(s) { +function effects_ImageEffect_constructor__P154301(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14903,87 +17763,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ev___95482 = 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__C90183_VT); + r0 = s.arg0; + if (!checkSubtype(r0, effects_ImageEffect__C154300_VT)) failedCast(r0); + r0 = (s.arg0).fields["effect"] = (s.arg2); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C154070_VT); s.tmp_0 = r0; - s.tmp_1 = control_PollEvent_constructor__P90184_mk(s); + s.tmp_1 = Math_FastRandom_constructor__P154072_mk(s); s.tmp_1.arg0 = s.tmp_0; - r0 = pxsim.control.allocateNotifyEvent(); - s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = 1; - r0 = pxsim.control.millis(); - s.tmp_1.arg3 = r0; - s.tmp_1.arg4 = s.arg0; - s.tmp_1.arg5 = s.arg1; - r0 = pxsim_numops_toBoolDecr(s.arg2); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1.arg6 = r0; - s.callLocIdx = 28; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.ev___95482 = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___90186); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_2, s.ev___95482); - globals._pollEventQueue___90186 = (s.tmp_2); - r0 = pxsim.control.runInParallel(control_pollEvents__P90187); - { step = 2; continue; } + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1387; s.pc = 1; return s.tmp_1; case 1: - r0 = pxsim_Array__push(globals._pollEventQueue___90186, s.ev___95482); - case 2: - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 3; continue; } - s.tmp_0 = control_onEvent__P86865_mk(s); - r0 = s.ev___95482.fields["eid"]; - s.tmp_0.arg0 = r0; - r0 = s.ev___95482.fields["vid"]; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = 16; - s.callLocIdx = 29; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - { step = 4; continue; } - case 3: - r0 = s.ev___95482.fields["eid"]; - s.tmp_0 = r0; - r0 = s.ev___95482.fields["vid"]; - s.tmp_1 = r0; - setupResume(s, 7); - pxsim.control.waitForEvent(s.tmp_0, s.tmp_1); - checkResumeConsumed(); - return; - case 7: r0 = s.retval; - case 4: + r0 = (s.arg0).fields["fastRandom"] = (s.tmp_0); + r0 = (s.arg0).fields["preferredDelay"] = (s.arg1); + r0 = (s.arg0).fields["times"] = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -control___queuePollEvent__P86840.info = {"start":1262,"length":739,"line":39,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"__queuePollEvent","argumentNames":["timeOut","condition","handler"]} +effects_ImageEffect_constructor__P154301.info = {"start":410,"length":290,"line":10,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["this","defaultRate","effectFactory"]} -function control___queuePollEvent__P86840_mk(s) { +function effects_ImageEffect_constructor__P154301_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___queuePollEvent__P86840, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_constructor__P154301, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - ev___95482: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -14993,7 +17805,7 @@ function control___queuePollEvent__P86840_mk(s) { -function control_pollEvents__P90187(s) { +function inline__P217912(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15003,139 +17815,68 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.now___95608 = undefined; - s.i___95611 = undefined; - s.ev___95617 = undefined; + s.factory___217915 = undefined; + s.src___217923 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim_pxtcore_mkClassInstance(particles_AshFactory__C154242_VT); + s.tmp_0 = r0; + s.tmp_1 = particles_AshFactory_constructor__P154243_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = true; + s.tmp_1.arg3 = 30; + s.callLocIdx = 40; s.pc = 1; return s.tmp_1; case 1: - r0 = pxsim_Array__length(globals._pollEventQueue___90186); - s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); + r0 = s.retval; + s.factory___217915 = (s.tmp_0); + r0 = (s.factory___217915).fields["minLifespan"] = (200); + r0 = (s.factory___217915).fields["maxLifespan"] = (500); + r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C154162_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - r0 = pxsim.control.millis(); - s.now___95608 = (r0); - s.i___95611 = (0); + s.tmp_1 = particles_ParticleSource_constructor__P154167_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___217915; + s.callLocIdx = 41; s.pc = 2; return s.tmp_1; case 2: - s.tmp_1 = r0 = s.i___95611; - r0 = pxsim_Array__length(globals._pollEventQueue___90186); - 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___90186, s.i___95611); - s.ev___95617 = (r0); - s.tmp_1 = if_condition_1_mk(s); - s.tmp_1.arg0 = s.ev___95617; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "condition"), 1); - s.callLocIdx = 25; s.pc = 13; return s.tmp_1; - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["condition"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["condition"], 1); s.callLocIdx = 25; s.pc = 13; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 25; s.pc = 13; return s.tmp_1;; } - else { s.callLocIdx = 25; s.pc = 13; return s.tmp_1; } - } - case 13: r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 6; continue; } + s.src___217923 = (s.tmp_0); + s.tmp_0 = particles_ParticleSource_setAcceleration__P154171_mk(s); + s.tmp_0.arg0 = s.src___217923; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 750; + s.callLocIdx = 42; s.pc = 3; return s.tmp_0; case 3: - r0 = s.ev___95617.fields["timeOut"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 > 0); - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 4; continue; } - r0 = s.tmp_2; - { step = 5; continue; } - case 4: - r0 = s.ev___95617.fields["start"]; - s.tmp_5 = r0; - r0 = (s.now___95608 - s.tmp_5); - s.tmp_4 = r0; - r0 = s.ev___95617.fields["timeOut"]; - s.tmp_6 = r0; - r0 = (s.tmp_4 > s.tmp_6); - case 5: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = s.tmp_7; - case 6: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_8); - if (!r0) { step = 9; continue; } - r0 = s.ev___95617.fields["eid"]; - s.tmp_9 = r0; - r0 = s.ev___95617.fields["vid"]; - s.tmp_10 = r0; - r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10); - r0 = s.ev___95617.fields["once"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_1 = helpers_arraySplice__P86583_mk(s); - s.tmp_1.arg0 = globals._pollEventQueue___90186; - s.tmp_1.arg1 = s.i___95611; - s.tmp_1.arg2 = 1; - s.callLocIdx = 26; s.pc = 14; return s.tmp_1; - case 14: - r0 = s.retval; - r0 = (s.i___95611 - 1); - s.i___95611 = (r0); - case 7: - case 8: - case 9: - case 10: - r0 = (s.i___95611 + 1); - s.i___95611 = (r0); - { step = 2; continue; } - case 11: - s.tmp_0 = pause__P86887_mk(s); - s.tmp_0.arg0 = 50; - s.callLocIdx = 27; s.pc = 15; return s.tmp_0; - case 15: r0 = s.retval; - { step = 1; continue; } - case 12: - globals._pollEventQueue___90186 = (undefined); - r0 = undefined; + r0 = s.src___217923; return leave(s, r0) default: oops() } } } -control_pollEvents__P90187.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]} +inline__P217912.info = {"start":11189,"length":361,"line":282,"column":61,"endLine":289,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} -function control_pollEvents__P90187_mk(s) { +function inline__P217912_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_pollEvents__P90187, depth: s.depth + 1, + parent: s, fn: inline__P217912, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - now___95608: undefined, - i___95611: undefined, - ev___95617: undefined, + factory___217915: undefined, + src___217923: undefined, + arg0: undefined, + arg1: undefined, } } -function control_PollEvent_constructor__P90184(s) { +function particles_ParticleSource_setAcceleration__P154171(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15149,45 +17890,46 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.arg6 = (s.lambdaArgs[6]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_PollEvent__C90183_VT)) failedCast(r0); - r0 = (s.arg0).fields["eid"] = (s.arg1); - r0 = (s.arg0).fields["vid"] = (s.arg2); - r0 = (s.arg0).fields["start"] = (s.arg3); - r0 = (s.arg0).fields["timeOut"] = (s.arg4); - r0 = (s.arg0).fields["condition"] = (s.arg5); - r0 = (s.arg0).fields["once"] = (s.arg6); + if (!checkSubtype(r0, particles_ParticleSource__C154162_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["ax"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg2 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["ay"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -control_PollEvent_constructor__P90184.info = {"start":239,"length":316,"line":8,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/base/poll.ts","functionName":"inline","argumentNames":["this","eid","vid","start","timeOut","condition","once"]} +particles_ParticleSource_setAcceleration__P154171.info = {"start":6009,"length":113,"line":193,"column":8,"endLine":196,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAcceleration","argumentNames":["this","ax","ay"]} -function control_PollEvent_constructor__P90184_mk(s) { +function particles_ParticleSource_setAcceleration__P154171_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_PollEvent_constructor__P90184, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAcceleration__P154171, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, } } -function control_onEvent__P86865(s) { +function particles_ParticleSource_constructor__P154167(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15197,7 +17939,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___95524 = undefined; + s.sources___164057 = undefined; + s.removedSource___164066 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -15205,44 +17948,110 @@ switch (step) { s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - s.tmp_0 = control_eventContext__P86882_mk(s); - s.callLocIdx = 40; s.pc = 3; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C154162_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_constructor__P153344_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1255; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = particles_init__P156050_mk(s); + s.callLocIdx = 1256; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = particles_particleSources__P156056_mk(s); + s.callLocIdx = 1257; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.sources___164057 = (r0); + r0 = pxsim_Array__length(s.sources___164057); + s.tmp_1 = r0; + r0 = (s.tmp_1 >= globals.MAX_SOURCES___156027); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = particles_sortSources__P156053_mk(s); + s.tmp_2.arg0 = s.sources___164057; + s.callLocIdx = 1258; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + r0 = pxsim_Array_.removeAt(s.sources___164057, 0); + s.removedSource___164066 = (r0); + s.tmp_0 = particles_ParticleSource_clear__P154177_mk(s); + s.tmp_0.arg0 = s.removedSource___164066; + s.callLocIdx = 1260; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = particles_ParticleSource_destroy__P154176_mk(s); + s.tmp_0.arg0 = s.removedSource___164066; + s.callLocIdx = 1261; 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__P154179_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 1262; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = particles_ParticleSource_setAcceleration__P154171_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + s.callLocIdx = 1263; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.tmp_0 = particles_ParticleSource_setAnchor__P154178_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1264; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + r0 = (s.arg0).fields["lifespan"] = (undefined); + r0 = (s.arg0).fields["_dt"] = (0); + r0 = (s.arg0).fields["priority"] = (0); + s.tmp_0 = r0 = s.arg3; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } case 3: - r0 = s.retval; - s.ctx___95524 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___95524); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.control.internalOnEvent(s.arg0, s.arg1, s.arg2, s.arg3); - { step = 2; continue; } - case 1: - s.tmp_0 = control_EventContext_registerHandler__P86879_mk(s); - s.tmp_0.arg0 = s.ctx___95524; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = s.arg1; - s.tmp_0.arg3 = s.arg2; - s.tmp_0.arg4 = s.arg3; - s.callLocIdx = 41; s.pc = 4; return s.tmp_0; + r0 = globals.defaultFactory___154182; case 4: + // jmp value (already in r0) + s.tmp_1 = r0; + s.tmp_2 = particles_ParticleSource_setFactory__P154181_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 1265; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + r0 = pxsim_Array__push(s.sources___164057, s.arg0); + s.tmp_0 = particles_ParticleSource_enabled__P154175_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = true; + s.callLocIdx = 1266; s.pc = 15; return s.tmp_0; + case 15: r0 = s.retval; - case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -control_onEvent__P86865.info = {"start":336,"length":325,"line":9,"column":4,"endLine":15,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"onEvent","argumentNames":["src","value","handler","flags"]} +particles_ParticleSource_constructor__P154167.info = {"start":2290,"length":899,"line":86,"column":8,"endLine":109,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["this","anchor","particlesPerSecond","factory"]} -function control_onEvent__P86865_mk(s) { +function particles_ParticleSource_constructor__P154167_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_onEvent__P86865, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_constructor__P154167, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - ctx___95524: undefined, + tmp_2: undefined, + sources___164057: undefined, + removedSource___164066: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -15253,7 +18062,7 @@ function control_onEvent__P86865_mk(s) { -function control_eventContext__P86882(s) { +function particles_particleSources__P156056(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15263,42 +18072,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___90212); - if (!r0) { step = 1; continue; } - s.tmp_0 = r0 = globals.eventContexts___90212; - r0 = pxsim_Array__length(globals.eventContexts___90212); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - { step = 2; continue; } + s.sources___162052 = undefined; + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 1317; s.pc = 1; return s.tmp_0; case 1: - r0 = undefined; - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = s.tmp_3; + r0 = s.retval; + r0 = r0.fields["particleSources"]; + s.sources___162052 = (r0); + r0 = s.sources___162052; return leave(s, r0) default: oops() } } } -control_eventContext__P86882.info = {"start":6907,"length":136,"line":209,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]} +particles_particleSources__P156056.info = {"start":12831,"length":119,"line":420,"column":4,"endLine":423,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]} -function control_eventContext__P86882_mk(s) { +function particles_particleSources__P156056_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_eventContext__P86882, depth: s.depth + 1, + parent: s, fn: particles_particleSources__P156056, depth: s.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___162052: undefined, } } -function control_EventContext_registerHandler__P86879(s) { +function particles_sortSources__P156053(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15308,113 +18108,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___95547 = undefined; - s.unnamed374___U1 = undefined; - s.unnamed375___U2 = undefined; - s.hn___95570 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C86869_VT)) failedCast(r0); - s.h___95547 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed374___U1 = (r0); - s.unnamed375___U2 = (0); + s.tmp_0 = helpers_arraySort__P151587_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = inline__P164264; + s.callLocIdx = 1304; s.pc = 1; return s.tmp_0; case 1: - s.tmp_0 = r0 = s.unnamed375___U2; - r0 = pxsim_Array__length(s.unnamed374___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed374___U1, s.unnamed375___U2); - s.h___95547 = (r0); - r0 = s.h___95547.fields["src"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 == s.arg1); - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 2; continue; } - r0 = s.tmp_2; - { step = 3; continue; } - case 2: - r0 = s.h___95547.fields["value"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 == s.arg2); - case 3: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 4; continue; } - r0 = (s.h___95547).fields["flags"] = (s.arg4); - r0 = (s.h___95547).fields["handler"] = (s.arg3); - { step = 7; continue; } - case 4: - case 5: - r0 = (s.unnamed375___U2 + 1); - s.unnamed375___U2 = (r0); - { step = 1; continue; } - case 6: - s.unnamed374___U1 = (undefined); - r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C90204_VT); - s.tmp_0 = r0; - s.tmp_1 = control_EventHandler_constructor__P90207_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg1; - s.tmp_1.arg2 = s.arg2; - s.tmp_1.arg3 = s.arg3; - s.tmp_1.arg4 = s.arg4; - s.callLocIdx = 53; s.pc = 8; return s.tmp_1; - case 8: r0 = s.retval; - s.hn___95570 = (s.tmp_0); - r0 = s.arg0.fields["handlers"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.hn___95570); - s.tmp_0 = control_EventHandler_register__P90205_mk(s); - s.tmp_0.arg0 = s.hn___95570; - s.callLocIdx = 54; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_registerHandler__P86879.info = {"start":5573,"length":525,"line":169,"column":8,"endLine":182,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerHandler","argumentNames":["this","src","value","handler","flags"]} +particles_sortSources__P156053.info = {"start":10009,"length":129,"line":331,"column":4,"endLine":333,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"sortSources","argumentNames":["sources"]} -function control_EventContext_registerHandler__P86879_mk(s) { +function particles_sortSources__P156053_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerHandler__P86879, depth: s.depth + 1, + parent: s, fn: particles_sortSources__P156053, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - h___95547: undefined, - unnamed374___U1: undefined, - unnamed375___U2: undefined, - hn___95570: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function control_EventHandler_constructor__P90207(s) { +function inline__P164264(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15427,40 +18150,53 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C90204_VT)) failedCast(r0); - r0 = (s.arg0).fields["src"] = (s.arg1); - r0 = (s.arg0).fields["value"] = (s.arg2); - r0 = (s.arg0).fields["handler"] = (s.arg3); - r0 = (s.arg0).fields["flags"] = (s.arg4); - r0 = undefined; + r0 = s.arg0.fields["priority"]; + s.tmp_1 = r0; + r0 = s.arg1.fields["priority"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["id"]; + s.tmp_3 = r0; + r0 = s.arg1.fields["id"]; + s.tmp_4 = r0; + r0 = (s.tmp_3 - s.tmp_4); + case 2: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = s.tmp_5; return leave(s, r0) default: oops() } } } -control_EventHandler_constructor__P90207.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"]} +inline__P164264.info = {"start":10080,"length":50,"line":332,"column":21,"endLine":332,"endColumn":71,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["a","b"]} -function control_EventHandler_constructor__P90207_mk(s) { +function inline__P164264_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_constructor__P90207, depth: s.depth + 1, + parent: s, fn: inline__P164264, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function control_EventHandler_register__P90205(s) { +function helpers_arraySort__P151587(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15472,43 +18208,58 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C90204_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P95591); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = s.arg0.fields["src"]; + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; - r0 = s.arg0.fields["value"]; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_Array__length(s.arg0); s.tmp_2 = r0; - r0 = s.arg0.fields["flags"]; + r0 = (s.tmp_2 > 1); + case 2: + // jmp value (already in r0) s.tmp_3 = r0; - r0 = pxsim.control.internalOnEvent(s.tmp_1, s.tmp_2, s.tmp_0, s.tmp_3); - r0 = undefined; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + s.arg1 = (inline__P164287); + case 3: + case 4: + s.tmp_0 = helpers_sortHelper__P155302_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 3; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; return leave(s, r0) default: oops() } } } -control_EventHandler_register__P90205.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} +helpers_arraySort__P151587.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 control_EventHandler_register__P90205_mk(s) { +function helpers_arraySort__P151587_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_register__P90205, depth: s.depth + 1, + parent: s, fn: helpers_arraySort__P151587, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, arg0: undefined, + arg1: undefined, } } -function inline__P95591(s) { +function inline__P164287(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15518,45 +18269,142 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["handler"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = if_handler_1_mk(s); - s.tmp_1.arg0 = s.caps[0]; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "handler"), 1); - s.callLocIdx = 42; s.pc = 3; return s.tmp_1; - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["handler"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["handler"], 1); s.callLocIdx = 42; s.pc = 3; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 42; s.pc = 3; return s.tmp_1;; } - else { s.callLocIdx = 42; s.pc = 3; return s.tmp_1; } + s.aIsUndef___164290 = undefined; + s.bIsUndef___164294 = undefined; + s.aIsNull___164305 = undefined; + s.bIsNull___164309 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; } - case 3: - r0 = s.retval; + r0 = (s.arg0 === undefined); + s.aIsUndef___164290 = (r0); + r0 = (s.arg1 === undefined); + s.bIsUndef___164294 = (r0); + s.tmp_0 = r0 = s.aIsUndef___164290; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = s.bIsUndef___164294; case 2: - r0 = undefined; + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + r0 = 0; + { step = 17; continue; } + { step = 8; continue; } + case 3: + r0 = pxsim_numops_toBoolDecr(s.aIsUndef___164290); + if (!r0) { step = 4; continue; } + r0 = 1; + { step = 17; continue; } + { step = 7; continue; } + case 4: + r0 = pxsim_numops_toBoolDecr(s.bIsUndef___164294); + if (!r0) { step = 5; continue; } + r0 = -1; + { step = 17; continue; } + case 5: + case 6: + case 7: + case 8: + r0 = (s.arg0 === null); + s.aIsNull___164305 = (r0); + r0 = (s.arg1 === null); + s.bIsNull___164309 = (r0); + s.tmp_0 = r0 = s.aIsNull___164305; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } + case 9: + r0 = s.bIsNull___164309; + case 10: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 11; continue; } + r0 = 0; + { step = 17; continue; } + { step = 16; continue; } + case 11: + r0 = pxsim_numops_toBoolDecr(s.aIsNull___164305); + if (!r0) { step = 12; continue; } + r0 = 1; + { step = 17; continue; } + { step = 15; continue; } + case 12: + r0 = pxsim_numops_toBoolDecr(s.bIsNull___164309); + if (!r0) { step = 13; continue; } + r0 = -1; + { step = 17; continue; } + case 13: + case 14: + case 15: + case 16: + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 18); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 18: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); + s.tmp_2 = r0; + if ((s.arg1) && (s.arg1).vtable) { + setupResume(s, 19); + pxsim_String__stringConv(s.arg1); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg1) + ""; } + case 19: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_7 = r0; + r0 = pxsim_String__concat(s.tmp_6, s.tmp_7); + s.tmp_5 = r0; + r0 = pxsim_String_.compare(s.tmp_2, s.tmp_5); + case 17: return leave(s, r0) default: oops() } } } -inline__P95591.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +inline__P164287.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__P95591_mk(s) { +function inline__P164287_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P95591, depth: s.depth + 1, + parent: s, fn: inline__P164287, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + aIsUndef___164290: undefined, + bIsUndef___164294: undefined, + aIsNull___164305: undefined, + bIsNull___164309: undefined, + arg0: undefined, + arg1: undefined, } } -function game_onUpdate__P89028(s) { +function helpers_sortHelper__P155302(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15566,59 +18414,114 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.len___164344 = undefined; + s.i___164347 = undefined; + s.j___164353 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P90536_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 877; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg0); + r0 = pxsim_Array__length(s.arg0); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 <= 0); s.tmp_0 = r0; - r0 = pxsim_numops_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 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); case 2: - s.tmp_2 = control_EventContext_registerFrameHandler__P86877_mk(s); - s.tmp_3 = game_eventContext__P89020_mk(s); - s.callLocIdx = 878; s.pc = 6; return s.tmp_3; + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = s.arg0; + { step = 11; continue; } + case 3: + case 4: + r0 = pxsim_Array__length(s.arg0); + s.len___164344 = (r0); + s.i___164347 = (0); + case 5: + s.tmp_1 = r0 = s.i___164347; + r0 = (s.len___164344 - 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___164347 + 1); + s.j___164353 = (r0); case 6: + r0 = (s.j___164353 < s.len___164344); + 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___164347); + s.tmp_3.arg0 = r0; + r0 = pxsim_Array__getAt(s.arg0, s.j___164353); + s.tmp_3.arg1 = r0; + setupLambda(s.tmp_3, s.tmp_3.argL); + s.callLocIdx = 1; s.pc = 12; return s.tmp_3; + case 12: r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = 20; - s.tmp_2.arg2 = s.arg0; - s.callLocIdx = 879; s.pc = 5; return s.tmp_2; - case 5: + s.tmp_2 = r0; + r0 = (s.tmp_2 > 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 7; continue; } + s.tmp_4 = helpers_swap__P155301_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = s.i___164347; + s.tmp_4.arg2 = s.j___164353; + s.callLocIdx = 2; s.pc = 13; return s.tmp_4; + case 13: r0 = s.retval; - case 3: - r0 = undefined; + case 7: + case 8: + r0 = (s.j___164353 + 1); + s.j___164353 = (r0); + { step = 6; continue; } + case 9: + r0 = (s.i___164347 + 1); + s.i___164347 = (r0); + { step = 5; continue; } + case 10: + r0 = s.arg0; + case 11: return leave(s, r0) default: oops() } } } -game_onUpdate__P89028.info = {"start":7427,"length":169,"line":242,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdate","argumentNames":["a"]} +helpers_sortHelper__P155302.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 game_onUpdate__P89028_mk(s) { +function helpers_sortHelper__P155302_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdate__P89028, depth: s.depth + 1, + parent: s, fn: helpers_sortHelper__P155302, depth: s.depth + 1, pc: 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___164344: undefined, + i___164347: undefined, + j___164353: undefined, arg0: undefined, + arg1: undefined, } } -function particles_SprayFactory_constructor__P89204(s) { +function helpers_swap__P155301(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15628,56 +18531,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.temp___164382 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C89203_VT)) failedCast(r0); - r0 = undefined; - s.tmp_0 = particles_initTrig__P90907_mk(s); - s.callLocIdx = 1139; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setSpeed__P89207_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1140; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setDirection__P89208_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - s.callLocIdx = 1141; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; + r0 = pxsim_Array__getAt(s.arg0, s.arg1); + s.temp___164382 = (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___164382); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_SprayFactory_constructor__P89204.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"]} +helpers_swap__P155301.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 particles_SprayFactory_constructor__P89204_mk(s) { +function helpers_swap__P155301_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_constructor__P89204, depth: s.depth + 1, + parent: s, fn: helpers_swap__P155301, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + temp___164382: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, } } -function particles_initTrig__P90907(s) { +function particles_init__P156050(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15687,47 +18580,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.cachedSin___90893); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + s.scene___164394 = undefined; + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 1294; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.scene___164394 = (r0); + r0 = s.scene___164394.fields["particleSources"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = particles_cacheSin__P89197_mk(s); - s.tmp_2.arg0 = 100; - s.callLocIdx = 1127; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - globals.cachedSin___90893 = (r0); - s.tmp_0 = particles_cacheCos__P89198_mk(s); - s.tmp_0.arg0 = 100; - s.callLocIdx = 1128; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - globals.cachedCos___90894 = (r0); + { step = 3; continue; } case 1: case 2: + s.tmp_1 = r0 = s.scene___164394; + r0 = pxsim_Array__mk(); + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["particleSources"] = (s.tmp_2); + r0 = pxsim.control.millis(); + globals.lastUpdate___156045 = (r0); + s.tmp_0 = game_onUpdate__P154027_mk(s); + s.tmp_0.arg0 = particles_updateParticles__P156051; + s.callLocIdx = 1295; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = game_onUpdateInterval__P154028_mk(s); + s.tmp_0.arg0 = 250; + s.tmp_0.arg1 = particles_pruneParticles__P156052; + s.callLocIdx = 1296; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_initTrig__P90907.info = {"start":291,"length":155,"line":11,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"initTrig","argumentNames":[]} +particles_init__P156050.info = {"start":9219,"length":276,"line":303,"column":4,"endLine":310,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]} -function particles_initTrig__P90907_mk(s) { +function particles_init__P156050_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_initTrig__P90907, depth: s.depth + 1, + parent: s, fn: particles_init__P156050, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + scene___164394: undefined, } } -function particles_cacheCos__P89198(s) { +function particles_pruneParticles__P156052(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15737,65 +18642,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cos___94839 = undefined; - s.anglePerSlice___94841 = undefined; - s.i___94847 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_Array__mk(); - s.cos___94839 = (r0); - r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___94841 = (r0); - s.i___94847 = (0); + s.sources___161890 = undefined; + s.tmp_0 = particles_particleSources__P156056_mk(s); + s.callLocIdx = 1300; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.sources___161890 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___161890); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayForEach__P151591_mk(s); + s.tmp_1 = helpers_arraySlice__P151596_mk(s); + s.tmp_1.arg0 = s.sources___161890; + s.tmp_1.arg1 = 0; + r0 = pxsim_Array__length(s.sources___161890); + s.tmp_1.arg2 = r0; + s.callLocIdx = 1301; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = inline__P161899; + s.callLocIdx = 1303; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; case 1: - r0 = (s.i___94847 < s.arg0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.cos___94839; - r0 = (s.i___94847 * s.anglePerSlice___94841); - s.tmp_4 = r0; - r0 = pxsim.Math_.cos(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 * 256); - s.tmp_5 = r0; - r0 = (s.tmp_5 | 0); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___94847 + 1); - s.i___94847 = (r0); - { step = 1; continue; } case 2: - r0 = s.cos___94839; + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_cacheCos__P89198.info = {"start":1005,"length":263,"line":35,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheCos","argumentNames":["slices"]} +particles_pruneParticles__P156052.info = {"start":9847,"length":156,"line":326,"column":4,"endLine":329,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]} -function particles_cacheCos__P89198_mk(s) { +function particles_pruneParticles__P156052_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_cacheCos__P89198, depth: s.depth + 1, + parent: s, fn: particles_pruneParticles__P156052, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - cos___94839: undefined, - anglePerSlice___94841: undefined, - i___94847: undefined, - arg0: undefined, + sources___161890: undefined, } } -function particles_cacheSin__P89197(s) { +function inline__P161899(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15805,57 +18696,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sin___94865 = undefined; - s.anglePerSlice___94867 = undefined; - s.i___94873 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.sin___94865 = (r0); - r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___94867 = (r0); - s.i___94873 = (0); + s.tmp_0 = particles_ParticleSource__prune__P154170_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1302; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.i___94873 < s.arg0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.sin___94865; - r0 = (s.i___94873 * s.anglePerSlice___94867); - s.tmp_4 = r0; - r0 = pxsim.Math_.sin(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 * 256); - s.tmp_5 = r0; - r0 = (s.tmp_5 | 0); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___94873 + 1); - s.i___94873 = (r0); - { step = 1; continue; } - case 2: - r0 = s.sin___94865; + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_cacheSin__P89197.info = {"start":594,"length":263,"line":22,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheSin","argumentNames":["slices"]} +inline__P161899.info = {"start":9980,"length":15,"line":328,"column":62,"endLine":328,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function particles_cacheSin__P89197_mk(s) { +function inline__P161899_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_cacheSin__P89197, depth: s.depth + 1, + parent: s, fn: inline__P161899, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - sin___94865: undefined, - anglePerSlice___94867: undefined, - i___94873: undefined, arg0: undefined, } } @@ -15863,7 +18724,7 @@ function particles_cacheSin__P89197_mk(s) { -function particles_SprayFactory_setDirection__P89208(s) { +function particles_ParticleSource__prune__P154170(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15873,52 +18734,137 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___161928 = undefined; + s.sources___161936 = undefined; + s.current___161950 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C89203_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_4 = particles_toRadians__P90912_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 = 1149; s.pc = 1; return s.tmp_4; + if (!checkSubtype(r0, particles_ParticleSource__C154162_VT)) failedCast(r0); case 1: - r0 = s.retval; + r0 = s.arg0.fields["head"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 2; continue; } + r0 = s.tmp_0; + { step = 3; continue; } + case 2: + r0 = s.arg0.fields["head"]; + r0 = r0.fields["lifespan"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 <= 0); + case 3: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 4; continue; } + r0 = s.arg0.fields["head"]; + r0 = r0.fields["next"]; + s.tmp_3 = r0; + r0 = (s.arg0).fields["head"] = (s.tmp_3); + { step = 1; continue; } + case 4: + r0 = s.arg0.fields["pFlags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 5: + r0 = s.arg0.fields["head"]; s.tmp_3 = r0; - r0 = (s.tmp_3 / globals.angleSlice___90906); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = pxsim_Boolean__bang(s.tmp_2); + case 6: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 13; continue; } + s.tmp_5 = game_currentScene__P154016_mk(s); + s.callLocIdx = 1275; s.pc = 21; return s.tmp_5; + case 21: + r0 = s.retval; + s.scene___161928 = (r0); + r0 = pxsim_numops_toBoolDecr(s.scene___161928); + if (!r0) { step = 7; continue; } + r0 = s.scene___161928.fields["allSprites"]; + s.tmp_0 = r0; + r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); + case 7: + case 8: + s.tmp_0 = particles_particleSources__P156056_mk(s); + s.callLocIdx = 1276; s.pc = 22; return s.tmp_0; + case 22: + r0 = s.retval; + s.sources___161936 = (r0); + s.tmp_0 = r0 = s.sources___161936; + 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___161936); + 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___161936, s.arg0); + case 11: + case 12: + r0 = s.arg0.fields["anchor"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 == undefined); + case 13: + case 14: + r0 = s.arg0.fields["head"]; + s.current___161950 = (r0); + case 15: + s.tmp_0 = r0 = s.current___161950; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 16; continue; } + r0 = s.tmp_0; + { step = 17; continue; } + case 16: + r0 = s.current___161950.fields["next"]; + case 17: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_0).fields["minAngle"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - s.tmp_4 = particles_toRadians__P90912_mk(s); - s.tmp_4.arg0 = s.arg2; - s.callLocIdx = 1150; s.pc = 2; return s.tmp_4; - case 2: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 20; continue; } + r0 = s.current___161950.fields["next"]; + r0 = r0.fields["lifespan"]; s.tmp_3 = r0; - r0 = (s.tmp_3 / globals.angleSlice___90906); + r0 = (s.tmp_3 <= 0); s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["spread"] = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 18; continue; } + r0 = s.current___161950.fields["next"]; + r0 = r0.fields["next"]; + s.tmp_4 = r0; + r0 = (s.current___161950).fields["next"] = (s.tmp_4); + { step = 19; continue; } + case 18: + r0 = s.current___161950.fields["next"]; + s.current___161950 = (r0); + case 19: + { step = 15; continue; } + case 20: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_SprayFactory_setDirection__P89208.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_ParticleSource__prune__P154170.info = {"start":5087,"length":830,"line":165,"column":8,"endLine":188,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_prune","argumentNames":["this"]} -function particles_SprayFactory_setDirection__P89208_mk(s) { +function particles_ParticleSource__prune__P154170_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_setDirection__P89208, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource__prune__P154170, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15926,17 +18872,17 @@ function particles_SprayFactory_setDirection__P89208_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, + scene___161928: undefined, + sources___161936: undefined, + current___161950: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function particles_toRadians__P90912(s) { +function helpers_arraySlice__P151596(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15946,52 +18892,114 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.res___161973 = undefined; + s.len___161975 = undefined; + s.i___162009 = 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 < 0); + r0 = pxsim_Array__mk(); + s.res___161973 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___161975 = (r0); + r0 = (s.arg1 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = Math_abs__P86608_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1131; s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 % 360); - s.tmp_1 = r0; - r0 = (360 - s.tmp_1); - s.arg0 = (r0); - { step = 2; continue; } + s.arg1 = (0); + { step = 4; continue; } case 1: - r0 = (s.arg0 % 360); - s.arg0 = (r0); + r0 = (s.arg1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = Math_max__P151609_mk(s); + r0 = (s.len___161975 + s.arg1); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 10; s.pc = 16; return s.tmp_1; + case 16: + r0 = s.retval; + s.arg1 = (r0); case 2: - r0 = (s.arg0 * 0.017453292519943295); + case 3: + case 4: + r0 = (s.arg1 > s.len___161975); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.res___161973; + { step = 15; continue; } + case 5: + case 6: + r0 = (s.arg2 === undefined); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 7; continue; } + s.arg2 = (s.len___161975); + { 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___161975 + s.arg2); + s.arg2 = (r0); + case 8: + case 9: + case 10: + r0 = (s.arg2 > s.len___161975); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + s.arg2 = (s.len___161975); + case 11: + case 12: + s.i___162009 = (s.arg1); + case 13: + r0 = (s.i___162009 < s.arg2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + s.tmp_1 = r0 = s.res___161973; + r0 = pxsim_Array__getAt(s.arg0, s.i___162009); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___162009 + 1); + s.i___162009 = (r0); + { step = 13; continue; } + case 14: + r0 = s.res___161973; + case 15: return leave(s, r0) default: oops() } } } -particles_toRadians__P90912.info = {"start":1307,"length":206,"line":45,"column":4,"endLine":52,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"toRadians","argumentNames":["degrees"]} +helpers_arraySlice__P151596.info = {"start":8909,"length":690,"line":299,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySlice","argumentNames":["arr","start","end"]} -function particles_toRadians__P90912_mk(s) { +function helpers_arraySlice__P151596_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_toRadians__P90912, depth: s.depth + 1, + parent: s, fn: helpers_arraySlice__P151596, depth: s.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___161973: undefined, + len___161975: undefined, + i___162009: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function particles_ParticleFactory_constructor__P89200(s) { +function particles_updateParticles__P156051(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16001,31 +19009,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C89199_VT)) failedCast(r0); + s.sources___164484 = undefined; + s.time___164491 = undefined; + s.dt___164494 = undefined; + s.i___164500 = undefined; + s.tmp_0 = particles_particleSources__P156056_mk(s); + s.callLocIdx = 1297; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.sources___164484 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___164484); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 5; continue; } + case 1: + case 2: + s.tmp_2 = particles_sortSources__P156053_mk(s); + s.tmp_2.arg0 = s.sources___164484; + s.callLocIdx = 1298; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + r0 = pxsim.control.millis(); + s.time___164491 = (r0); + r0 = (s.time___164491 - globals.lastUpdate___156045); + s.dt___164494 = (r0); + globals.lastUpdate___156045 = (s.time___164491); + s.i___164500 = (0); + case 3: + s.tmp_1 = r0 = s.i___164500; + r0 = pxsim_Array__length(s.sources___164484); + 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__P154169_mk(s); + r0 = pxsim_Array__getAt(s.sources___164484, s.i___164500); + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.dt___164494; + s.callLocIdx = 1299; s.pc = 8; return s.tmp_3; + case 8: + r0 = s.retval; + r0 = (s.i___164500 + 1); + s.i___164500 = (r0); + { step = 3; continue; } + case 4: + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleFactory_constructor__P89200.info = {"start":1617,"length":78,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this"]} +particles_updateParticles__P156051.info = {"start":9501,"length":340,"line":312,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]} -function particles_ParticleFactory_constructor__P89200_mk(s) { +function particles_updateParticles__P156051_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_constructor__P89200, depth: s.depth + 1, + parent: s, fn: particles_updateParticles__P156051, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + sources___164484: undefined, + time___164491: undefined, + dt___164494: undefined, + i___164500: undefined, } } -function particles_ParticleSource_setFactory__P89182(s) { +function particles_ParticleSource__update__P154169(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16035,29 +19093,257 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.p___164563 = undefined; + s.current___164582 = undefined; + s.fixedDt___164590 = 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__C89163_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!checkSubtype(r0, particles_ParticleSource__C154162_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["timer"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["timer"] = (s.tmp_1); + r0 = s.arg0.fields["lifespan"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_2 = r0 = s.arg0; + r0 = s.tmp_2.fields["lifespan"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 - s.arg1); + s.tmp_3 = r0; + r0 = (s.tmp_2).fields["lifespan"] = (s.tmp_3); + r0 = s.arg0.fields["lifespan"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 <= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["_factory"] = (s.arg1); + r0 = (s.arg0).fields["lifespan"] = (undefined); + s.tmp_0 = particles_ParticleSource_destroy__P154176_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1270; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; case 1: case 2: + { step = 10; continue; } + case 3: + r0 = s.arg0.fields["anchor"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 4; continue; } + r0 = s.tmp_0; + { step = 5; continue; } + case 4: + s.tmp_2 = if_flags_1_mk(s); + r0 = s.arg0.fields["anchor"]; + s.tmp_2.arg0 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "flags"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["flags"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["flags"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1271; s.pc = 29; return s.tmp_2; } + } + case 29: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); + case 5: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (r0) { step = 6; continue; } + r0 = s.tmp_3; + { step = 7; continue; } + case 6: + s.tmp_5 = if_flags_1_mk(s); + r0 = s.arg0.fields["anchor"]; + s.tmp_5.arg0 = r0; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "flags"); + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["flags"]; + if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["flags"]; } + else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } + else { s.callLocIdx = 1272; s.pc = 30; return s.tmp_5; } + } + case 30: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 2); + case 7: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 8; continue; } + r0 = (s.arg0).fields["lifespan"] = (750); + case 8: + case 9: + case 10: + case 11: + r0 = s.arg0.fields["timer"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 12; continue; } + r0 = s.tmp_0; + { step = 13; continue; } + case 12: + s.tmp_2 = particles_ParticleSource_enabled__P154174_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1273; s.pc = 31; return s.tmp_2; + case 31: + r0 = s.retval; + case 13: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 16; continue; } + s.tmp_4 = r0 = s.arg0; + r0 = s.tmp_4.fields["timer"]; + s.tmp_6 = r0; + r0 = s.arg0.fields["period"]; + s.tmp_7 = r0; + r0 = (s.tmp_6 + s.tmp_7); + s.tmp_5 = r0; + r0 = (s.tmp_4).fields["timer"] = (s.tmp_5); + s.tmp_0 = particles_ParticleFactory__C154198_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__C154198_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___164563 = (r0); + r0 = pxsim_numops_toBoolDecr(s.p___164563); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + { step = 11; continue; } + case 14: + case 15: + r0 = s.arg0.fields["head"]; + s.tmp_2 = r0; + r0 = (s.p___164563).fields["next"] = (s.tmp_2); + r0 = (s.arg0).fields["head"] = (s.p___164563); + { step = 11; continue; } + case 16: + r0 = s.arg0.fields["head"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 17; continue; } + { step = 27; continue; } + case 17: + case 18: + r0 = s.arg0.fields["head"]; + s.current___164582 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["_dt"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_dt"] = (s.tmp_1); + r0 = s.arg0.fields["_dt"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 * 256); + s.tmp_1 = r0; + r0 = (s.tmp_1 | 0); + s.fixedDt___164590 = (r0); + r0 = pxsim_numops_toBoolDecr(s.fixedDt___164590); + if (!r0) { step = 23; continue; } + case 19: + r0 = s.current___164582.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___164582; + 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__C154162_v4_3_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.current___164582; + s.tmp_0.arg2 = s.fixedDt___164590; + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C154162_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___164582.fields["next"]; + s.tmp_0 = r0; + s.current___164582 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + { step = 19; continue; } + case 22: + r0 = (s.arg0).fields["_dt"] = (0); + { step = 26; continue; } + case 23: + case 24: + s.tmp_0 = r0 = s.current___164582; + 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___164582.fields["next"]; + s.tmp_0 = r0; + s.current___164582 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 25; continue; } + { step = 24; continue; } + case 25: + case 26: + case 27: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setFactory__P89182.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__update__P154169.info = {"start":3677,"length":1400,"line":123,"column":8,"endLine":163,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_update","argumentNames":["this","dt"]} -function particles_ParticleSource_setFactory__P89182_mk(s) { +function particles_ParticleSource__update__P154169_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setFactory__P89182, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource__update__P154169, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + p___164563: undefined, + current___164582: undefined, + fixedDt___164590: undefined, arg0: undefined, arg1: undefined, } } @@ -16066,7 +19352,7 @@ function particles_ParticleSource_setFactory__P89182_mk(s) { -function particles_ParticleSource_setRate__P89180(s) { +function particles_ParticleSource_updateParticle__P156047(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16079,40 +19365,88 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C89163_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (1000 / s.arg1); + if (!checkSubtype(r0, particles_ParticleSource__C154162_VT)) failedCast(r0); + r0 = (s.arg2 >> 10); + s.arg2 = (r0); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["vx"]; s.tmp_2 = r0; - r0 = pxsim.Math_.ceil(s.tmp_2); + r0 = s.arg0.fields["ax"]; + s.tmp_4 = r0; + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 8); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["period"] = (s.tmp_1); - r0 = (s.arg0).fields["timer"] = (0); + r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["vy"]; + s.tmp_2 = r0; + r0 = s.arg0.fields["ay"]; + s.tmp_4 = r0; + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 8); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["_x"]; + s.tmp_2 = r0; + r0 = s.arg1.fields["vx"]; + s.tmp_4 = r0; + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 8); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["_y"]; + s.tmp_2 = r0; + r0 = s.arg1.fields["vy"]; + s.tmp_4 = r0; + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 8); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRate__P89180.info = {"start":7785,"length":139,"line":258,"column":8,"endLine":261,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRate","argumentNames":["this","particlesPerSecond"]} +particles_ParticleSource_updateParticle__P156047.info = {"start":8231,"length":357,"line":276,"column":8,"endLine":284,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticle","argumentNames":["this","p","fixedDt"]} -function particles_ParticleSource_setRate__P89180_mk(s) { +function particles_ParticleSource_updateParticle__P156047_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRate__P89180, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_updateParticle__P156047, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function particles_ParticleSource_setAnchor__P89179(s) { +function Fx_rightShift__P151648(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16127,19 +19461,16 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C89163_VT)) failedCast(r0); - r0 = (s.arg0).fields["anchor"] = (s.arg1); - r0 = undefined; + r0 = (s.arg0 >> s.arg1); return leave(s, r0) default: oops() } } } -particles_ParticleSource_setAnchor__P89179.info = {"start":7577,"length":79,"line":250,"column":8,"endLine":252,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAnchor","argumentNames":["this","anchor"]} +Fx_rightShift__P151648.info = {"start":2031,"length":108,"line":65,"column":4,"endLine":67,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"rightShift","argumentNames":["a","n"]} -function particles_ParticleSource_setAnchor__P89179_mk(s) { +function Fx_rightShift__P151648_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setAnchor__P89179, depth: s.depth + 1, + parent: s, fn: Fx_rightShift__P151648, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -16149,7 +19480,7 @@ function particles_ParticleSource_setAnchor__P89179_mk(s) { -function particles_ParticleSource_clear__P89178(s) { +function Fx_mul__P151639(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16161,30 +19492,32 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C89163_VT)) failedCast(r0); - r0 = (s.arg0).fields["head"] = (undefined); - r0 = undefined; + r0 = pxsim.Math_.imul(s.arg0, s.arg1); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 8); return leave(s, r0) default: oops() } } } -particles_ParticleSource_clear__P89178.info = {"start":7407,"length":54,"line":242,"column":8,"endLine":244,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"clear","argumentNames":["this"]} +Fx_mul__P151639.info = {"start":872,"length":133,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"mul","argumentNames":["a","b"]} -function particles_ParticleSource_clear__P89178_mk(s) { +function Fx_mul__P151639_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_clear__P89178, depth: s.depth + 1, + parent: s, fn: Fx_mul__P151639, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function particles_ParticleSource_destroy__P89177(s) { +function particles_ParticleFactory_createParticle__P154200(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16194,51 +19527,83 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.p___164680 = 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__C89163_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleSource_enabled__P89176_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = false; - s.callLocIdx = 1088; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, particles_ParticleFactory__C154198_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C154143_VT); + s.p___164680 = (r0); + s.tmp_0 = r0 = s.p___164680; + s.tmp_3 = if_x_1_mk(s); + s.tmp_3.arg0 = s.arg1; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "x"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["x"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["x"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 1324; s.pc = 1; return s.tmp_3; } + } case 1: r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["pFlags"]; s.tmp_2 = r0; - r0 = (s.tmp_2 | 2); + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); - s.tmp_0 = particles_ParticleSource__prune__P89171_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1089; s.pc = 2; return s.tmp_0; + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_0 = r0 = s.p___164680; + s.tmp_3 = if_y_1_mk(s); + s.tmp_3.arg0 = s.arg1; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "y"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["y"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["y"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 1326; s.pc = 2; return s.tmp_3; } + } case 2: r0 = s.retval; - r0 = undefined; + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + r0 = (s.p___164680).fields["vx"] = (0); + r0 = (s.p___164680).fields["vy"] = (0); + r0 = (s.p___164680).fields["lifespan"] = (500); + r0 = s.p___164680; return leave(s, r0) default: oops() } } } -particles_ParticleSource_destroy__P89177.info = {"start":7077,"length":240,"line":232,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]} +particles_ParticleFactory_createParticle__P154200.info = {"start":1822,"length":282,"line":67,"column":8,"endLine":77,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} -function particles_ParticleSource_destroy__P89177_mk(s) { +function particles_ParticleFactory_createParticle__P154200_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_destroy__P89177, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_createParticle__P154200, depth: s.depth + 1, pc: 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___164680: undefined, arg0: undefined, + arg1: undefined, } } -function particles_ParticleSource_enabled__P89176(s) { +function game_onUpdateInterval__P154028(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16248,118 +19613,137 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.timer___164418 = 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__C89163_VT)) failedCast(r0); - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = particles_ParticleSource_enabled__P89175_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1087; s.pc = 5; return s.tmp_3; - case 5: + s.tmp_0 = game_init__P155700_mk(s); + s.tmp_0.arg0 = undefined; + s.callLocIdx = 1078; s.pc = 6; return s.tmp_0; + case 6: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 !== s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } r0 = pxsim_numops_toBoolDecr(s.arg1); + 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.arg0.fields["pFlags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 | 1); + r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.arg0.fields["pFlags"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 ^ 1); + r0 = (s.arg0 < 0); case 2: // jmp value (already in r0) - s.tmp_6 = r0; - r0 = (s.arg0).fields["pFlags"] = (s.tmp_6); - r0 = (s.arg0).fields["timer"] = (0); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + { step = 5; continue; } case 3: case 4: + r0 = pxsim_pxtrt.mklocRef(); + s.timer___164418 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.timer___164418, 0); + r0 = pxsim_pxtcore_mkAction(3, inline__P164422); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___164418); + 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__P151876_mk(s); + s.tmp_2 = game_eventContext__P154019_mk(s); + s.callLocIdx = 1079; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 19; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1083; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_enabled__P89176.info = {"start":6799,"length":214,"line":222,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this","v"]} +game_onUpdateInterval__P154028.info = {"start":7929,"length":417,"line":256,"column":4,"endLine":267,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]} -function particles_ParticleSource_enabled__P89176_mk(s) { +function game_onUpdateInterval__P154028_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_enabled__P89176, depth: s.depth + 1, + parent: s, fn: game_onUpdateInterval__P154028, depth: s.depth + 1, pc: 0, retval: undefined, 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, + timer___164418: undefined, arg0: undefined, arg1: undefined, } } - - -function particles_ParticleSource_enabled__P89175(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C89163_VT)) failedCast(r0); - r0 = s.arg0.fields["pFlags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 & 1); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + + +function inline__P164422(s) { +let r0 = s.r0, 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.time___164423 = undefined; + s.tmp_1 = game_currentScene__P154016_mk(s); + s.callLocIdx = 1080; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["_millis"]; + s.time___164423 = (r0); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = (s.tmp_1 <= s.time___164423); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = r0 = s.caps[0]; + r0 = (s.time___164423 + 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 = 1082; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) default: oops() } } } -particles_ParticleSource_enabled__P89175.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__P89175.isGetter = true; +inline__P164422.info = {"start":8159,"length":179,"line":260,"column":81,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} -function particles_ParticleSource_enabled__P89175_mk(s) { +function inline__P164422_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_enabled__P89175, depth: s.depth + 1, + parent: s, fn: inline__P164422, depth: s.depth + 1, pc: 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, + time___164423: undefined, } } -function particles_ParticleSource_setAcceleration__P89172(s) { +function game_init__P155700(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16371,48 +19755,105 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } + r0 = pxsim_numops_toBoolDecr(globals._scene___155692); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C89163_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + case 2: + // jmp value (already in r0) s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkClassInstance(scene_Scene__C153903_VT); + s.tmp_3 = r0; + s.tmp_4 = scene_Scene_constructor__P153924_mk(s); + s.tmp_4.arg0 = s.tmp_3; + s.tmp_5 = control_pushEventContext__P151882_mk(s); + s.callLocIdx = 1042; s.pc = 14; return s.tmp_5; + case 14: + r0 = s.retval; + s.tmp_4.arg1 = r0; + s.tmp_4.arg2 = globals._scene___155692; + s.callLocIdx = 1043; s.pc = 13; return s.tmp_4; + case 13: + r0 = s.retval; + globals._scene___155692 = (s.tmp_3); + case 3: + case 4: + s.tmp_0 = scene_Scene_init__P153925_mk(s); + s.tmp_0.arg0 = globals._scene___155692; + s.callLocIdx = 1044; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals.winEffect___154014); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["ax"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg2 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + 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___154014 = (globals.confetti___154285); + case 5: + case 6: + r0 = pxsim_numops_toBoolDecr(globals.loseEffect___154015); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["ay"] = (s.tmp_1); + 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___154015 = (globals.melt___154306); + case 7: + case 8: + r0 = pxsim_numops_toBoolDecr(globals.winSound___155691); + 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___155691 = (globals.powerUp___153102); + case 9: + case 10: + r0 = pxsim_numops_toBoolDecr(globals.loseSound___155689); + 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___155689 = (globals.wawawawaa___153099); + case 11: + case 12: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setAcceleration__P89172.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"]} +game_init__P155700.info = {"start":1202,"length":452,"line":45,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} -function particles_ParticleSource_setAcceleration__P89172_mk(s) { +function game_init__P155700_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setAcceleration__P89172, depth: s.depth + 1, + parent: s, fn: game_init__P155700, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function helpers_arrayShift__P86585(s) { +function inline__P164033(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16422,29 +19863,98 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.factory___164036 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array_.removeAt(s.arg0, 0); + r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C154229_VT); + s.tmp_0 = r0; + s.tmp_2 = if_width_1_mk(s); + s.tmp_2.arg0 = s.arg0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "width"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["width"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["width"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 34; s.pc = 3; return s.tmp_2; } + } + case 3: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 1; continue; } + s.tmp_3 = if_width_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "width"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["width"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["width"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 35; s.pc = 4; return s.tmp_3; } + } + case 4: + r0 = s.retval; + { step = 2; continue; } + case 1: + r0 = 16; + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + s.tmp_5 = particles_ConfettiFactory_constructor__P154230_mk(s); + s.tmp_5.arg0 = s.tmp_0; + s.tmp_5.arg1 = s.tmp_4; + s.tmp_5.arg2 = 16; + s.callLocIdx = 36; s.pc = 5; return s.tmp_5; + case 5: + r0 = s.retval; + s.factory___164036 = (s.tmp_0); + s.tmp_0 = particles_SprayFactory_setSpeed__P154206_mk(s); + s.tmp_0.arg0 = s.factory___164036; + s.tmp_0.arg1 = 30; + s.callLocIdx = 37; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C154162_VT); + s.tmp_0 = r0; + s.tmp_1 = particles_ParticleSource_constructor__P154167_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___164036; + s.callLocIdx = 38; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -helpers_arrayShift__P86585.info = {"start":4045,"length":82,"line":153,"column":4,"endLine":155,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayShift","argumentNames":["arr"]} +inline__P164033.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 helpers_arrayShift__P86585_mk(s) { +function inline__P164033_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayShift__P86585, depth: s.depth + 1, + parent: s, fn: inline__P164033, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + factory___164036: undefined, arg0: undefined, + arg1: undefined, } } -function particles_SprayFactory_setSpeed__P89207(s) { +function particles_SprayFactory_setSpeed__P154206(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16460,7 +19970,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C89203_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_SprayFactory__C154202_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -16471,12 +19981,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_SprayFactory_setSpeed__P89207.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__P154206.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__P89207_mk(s) { +function particles_SprayFactory_setSpeed__P154206_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_setSpeed__P89207, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_setSpeed__P154206, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16489,7 +19999,7 @@ function particles_SprayFactory_setSpeed__P89207_mk(s) { -function particles_ConfettiFactory_constructor__P89231(s) { +function particles_ConfettiFactory_constructor__P154230(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16499,8 +20009,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.confetti___95922 = undefined; - s.i___95938 = undefined; + s.confetti___164721 = undefined; + s.i___164737 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -16508,52 +20018,52 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ConfettiFactory__C89230_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ConfettiFactory__C154229_VT)) failedCast(r0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim.image.ofBuffer(_hex95925); + r0 = pxsim.image.ofBuffer(_hex164724); s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - r0 = pxsim.image.ofBuffer(_hex95927); + r0 = pxsim.image.ofBuffer(_hex164726); s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); - r0 = pxsim.image.ofBuffer(_hex95929); + r0 = pxsim.image.ofBuffer(_hex164728); s.tmp_3 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_3); - r0 = pxsim.image.ofBuffer(_hex95931); + r0 = pxsim.image.ofBuffer(_hex164730); s.tmp_4 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_4); - r0 = pxsim.image.ofBuffer(_hex95933); + r0 = pxsim.image.ofBuffer(_hex164732); s.tmp_5 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_5); - s.confetti___95922 = (s.tmp_0); - s.tmp_0 = particles_ShapeFactory_constructor__P89226_mk(s); + s.confetti___164721 = (s.tmp_0); + s.tmp_0 = particles_ShapeFactory_constructor__P154225_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___95922, 0); + r0 = pxsim_Array__getAt(s.confetti___164721, 0); s.tmp_0.arg3 = r0; - s.callLocIdx = 1173; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1365; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.i___95938 = (1); + s.i___164737 = (1); case 1: - s.tmp_1 = r0 = s.i___95938; - r0 = pxsim_Array__length(s.confetti___95922); + s.tmp_1 = r0 = s.i___164737; + r0 = pxsim_Array__length(s.confetti___164721); 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__P89227_mk(s); + s.tmp_3 = particles_ShapeFactory_addShape__P154226_mk(s); s.tmp_3.arg0 = s.arg0; - r0 = pxsim_Array__getAt(s.confetti___95922, s.i___95938); + r0 = pxsim_Array__getAt(s.confetti___164721, s.i___164737); s.tmp_3.arg1 = r0; - s.callLocIdx = 1174; s.pc = 4; return s.tmp_3; + s.callLocIdx = 1366; s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; - r0 = (s.i___95938 + 1); - s.i___95938 = (r0); + r0 = (s.i___164737 + 1); + s.i___164737 = (r0); { step = 1; continue; } case 2: r0 = (s.arg0).fields["minLifespan"] = (1000); @@ -16562,12 +20072,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ConfettiFactory_constructor__P89231.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__P154230.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__P89231_mk(s) { +function particles_ConfettiFactory_constructor__P154230_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ConfettiFactory_constructor__P89231, depth: s.depth + 1, + parent: s, fn: particles_ConfettiFactory_constructor__P154230, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16575,23 +20085,23 @@ function particles_ConfettiFactory_constructor__P89231_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - confetti___95922: undefined, - i___95938: undefined, + confetti___164721: undefined, + i___164737: undefined, arg0: undefined, arg1: undefined, arg2: undefined, } } -const _hex95925 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") -const _hex95927 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") -const _hex95929 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") -const _hex95931 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") -const _hex95933 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") +const _hex164724 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") +const _hex164726 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") +const _hex164728 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") +const _hex164730 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") +const _hex164732 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") -function particles_ShapeFactory_addShape__P89227(s) { +function particles_ShapeFactory_addShape__P154226(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16607,7 +20117,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C89225_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ShapeFactory__C154224_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["sources"]; @@ -16619,12 +20129,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ShapeFactory_addShape__P89227.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__P154226.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__P89227_mk(s) { +function particles_ShapeFactory_addShape__P154226_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_addShape__P89227, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_addShape__P154226, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -16635,7 +20145,7 @@ function particles_ShapeFactory_addShape__P89227_mk(s) { -function particles_ShapeFactory_constructor__P89226(s) { +function particles_ShapeFactory_constructor__P154225(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16653,14 +20163,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C89225_VT)) failedCast(r0); - s.tmp_0 = particles_AreaFactory_constructor__P89214_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C154224_VT)) failedCast(r0); + s.tmp_0 = particles_AreaFactory_constructor__P154213_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 = 1163; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1355; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = pxsim_Array__mk(); @@ -16691,12 +20201,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ShapeFactory_constructor__P89226.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__P154225.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__P89226_mk(s) { +function particles_ShapeFactory_constructor__P154225_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_constructor__P89226, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_constructor__P154225, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16713,7 +20223,7 @@ function particles_ShapeFactory_constructor__P89226_mk(s) { -function particles_AreaFactory_constructor__P89214(s) { +function particles_AreaFactory_constructor__P154213(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16732,13 +20242,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AreaFactory__C89209_VT)) failedCast(r0); - s.tmp_0 = particles_SprayFactory_constructor__P89204_mk(s); + if (!checkSubtype(r0, particles_AreaFactory__C154208_VT)) failedCast(r0); + s.tmp_0 = particles_SprayFactory_constructor__P154203_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 = 1151; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1343; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = (s.arg0).fields["xRange"] = (s.arg1); @@ -16763,12 +20273,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__C89071_VT); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C154070_VT); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P89073_mk(s); + s.tmp_1 = Math_FastRandom_constructor__P154072_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = undefined; - s.callLocIdx = 1152; s.pc = 6; return s.tmp_1; + s.callLocIdx = 1344; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; r0 = (s.arg0).fields["galois"] = (s.tmp_0); @@ -16776,12 +20286,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_AreaFactory_constructor__P89214.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__P154213.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__P89214_mk(s) { +function particles_AreaFactory_constructor__P154213_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_constructor__P89214, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_constructor__P154213, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16796,7 +20306,7 @@ function particles_AreaFactory_constructor__P89214_mk(s) { -function effects_ScreenEffect_constructor__P89279(s) { +function particles_SprayFactory_constructor__P154203(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16811,44 +20321,51 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ScreenEffect__C89278_VT)) failedCast(r0); - s.tmp_0 = effects_ParticleEffect_constructor__P89275_mk(s); + if (!checkSubtype(r0, particles_SprayFactory__C154202_VT)) failedCast(r0); + r0 = undefined; + s.tmp_0 = particles_initTrig__P156071_mk(s); + s.callLocIdx = 1331; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = particles_SprayFactory_setSpeed__P154206_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1332; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.tmp_0 = particles_SprayFactory_setDirection__P154207_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; s.tmp_0.arg2 = s.arg3; - s.tmp_0.arg3 = s.arg4; - s.callLocIdx = 1180; s.pc = 1; return s.tmp_0; - case 1: + s.callLocIdx = 1333; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - r0 = (s.arg0).fields["sceneDefaultRate"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ScreenEffect_constructor__P89279.info = {"start":2911,"length":332,"line":81,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this","anchorDefault","sceneDefault","defaultLifespan","sourceFactory"]} +particles_SprayFactory_constructor__P154203.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 effects_ScreenEffect_constructor__P89279_mk(s) { +function particles_SprayFactory_constructor__P154203_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ScreenEffect_constructor__P89279, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_constructor__P154203, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, arg1: undefined, arg2: undefined, arg3: undefined, - arg4: undefined, } } -function effects_ParticleEffect_constructor__P89275(s) { +function particles_initTrig__P156071(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16858,40 +20375,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C89274_VT)) failedCast(r0); - r0 = (s.arg0).fields["sourceFactory"] = (s.arg3); - r0 = (s.arg0).fields["defaultRate"] = (s.arg1); - r0 = (s.arg0).fields["defaultLifespan"] = (s.arg2); + r0 = pxsim_numops_toBoolDecr(globals.cachedSin___156057); + 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__P154196_mk(s); + s.tmp_2.arg0 = 100; + s.callLocIdx = 1319; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + globals.cachedSin___156057 = (r0); + s.tmp_0 = particles_cacheCos__P154197_mk(s); + s.tmp_0.arg0 = 100; + s.callLocIdx = 1320; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + globals.cachedCos___156058 = (r0); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ParticleEffect_constructor__P89275.info = {"start":384,"length":364,"line":13,"column":8,"endLine":18,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this","defaultParticlesPerSecond","defaultLifespan","sourceFactory"]} +particles_initTrig__P156071.info = {"start":291,"length":155,"line":11,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"initTrig","argumentNames":[]} -function effects_ParticleEffect_constructor__P89275_mk(s) { +function particles_initTrig__P156071_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_constructor__P89275, depth: s.depth + 1, + parent: s, fn: particles_initTrig__P156071, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, } } -function scene_Scene_init__P88926(s) { +function particles_cacheCos__P154197(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16901,122 +20425,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.cos___164160 = undefined; + s.anglePerSlice___164162 = undefined; + s.i___164168 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C88904_VT)) failedCast(r0); - r0 = s.arg0.fields["allSprites"]; + r0 = pxsim_Array__mk(); + s.cos___164160 = (r0); + r0 = (6.283185307179586 / s.arg0); + s.anglePerSlice___164162 = (r0); + s.i___164168 = (0); + case 1: + r0 = (s.i___164168 < s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: + if (!r0) { step = 2; continue; } + s.tmp_1 = r0 = s.cos___164160; + r0 = (s.i___164168 * s.anglePerSlice___164162); + s.tmp_4 = r0; + r0 = pxsim.Math_.cos(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 * 256); + s.tmp_5 = r0; + r0 = (s.tmp_5 | 0); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___164168 + 1); + s.i___164168 = (r0); + { step = 1; continue; } case 2: - s.tmp_1 = power_poke__P88190_mk(s); - s.callLocIdx = 824; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["allSprites"] = (s.tmp_1); - r0 = (s.arg0).fields["spriteNextId"] = (0); - r0 = pxsim_pxtcore_mkAction(1, inline__P96057); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P86877_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 = 827; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P86877_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 13; - s.tmp_0.arg2 = controller__moveSprites__P88407; - s.callLocIdx = 828; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P96080); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P86877_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 = 830; s.pc = 7; return s.tmp_1; - case 7: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P96093); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P86877_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 = 834; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P96114); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P86877_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 = 836; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P96122); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P86877_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 = 840; s.pc = 10; return s.tmp_1; - case 10: - r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P86877_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 200; - s.tmp_0.arg2 = control___screen_update__P88248; - s.callLocIdx = 841; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P96151); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P86592_mk(s); - s.tmp_1.arg0 = globals.scene_Scene_initializers___88924; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 843; s.pc = 12; return s.tmp_1; - case 12: - r0 = s.retval; - case 3: - r0 = undefined; + r0 = s.cos___164160; return leave(s, r0) default: oops() } } } -scene_Scene_init__P88926.info = {"start":4168,"length":2477,"line":122,"column":8,"endLine":180,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]} +particles_cacheCos__P154197.info = {"start":1005,"length":263,"line":35,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheCos","argumentNames":["slices"]} -function scene_Scene_init__P88926_mk(s) { +function particles_cacheCos__P154197_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init__P88926, depth: s.depth + 1, + parent: s, fn: particles_cacheCos__P154197, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + cos___164160: undefined, + anglePerSlice___164162: undefined, + i___164168: undefined, arg0: undefined, } } @@ -17024,7 +20483,7 @@ function scene_Scene_init__P88926_mk(s) { -function inline__P96057(s) { +function particles_cacheSin__P154196(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17034,47 +20493,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = r0 = s.caps[0]; - r0 = s.tmp_0.fields["_millis"]; - s.tmp_2 = r0; - r0 = s.caps[0].fields["eventContext"]; - r0 = r0.fields["deltaTimeMillis"]; + s.sin___164186 = undefined; + s.anglePerSlice___164188 = undefined; + s.i___164194 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_Array__mk(); + s.sin___164186 = (r0); + r0 = (6.283185307179586 / s.arg0); + s.anglePerSlice___164188 = (r0); + s.i___164194 = (0); + case 1: + r0 = (s.i___164194 < s.arg0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = r0 = s.sin___164186; + r0 = (s.i___164194 * s.anglePerSlice___164188); + s.tmp_4 = r0; + r0 = pxsim.Math_.sin(s.tmp_4); s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_millis"] = (s.tmp_1); - s.tmp_0 = controller___update__P88435_mk(s); - r0 = s.caps[0].fields["eventContext"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["deltaTimeMillis"]; + r0 = (s.tmp_3 * 256); + s.tmp_5 = r0; + r0 = (s.tmp_5 | 0); s.tmp_2 = r0; - r0 = (s.tmp_2 / 1000); - s.tmp_0.arg0 = r0; - s.callLocIdx = 826; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___164194 + 1); + s.i___164194 = (r0); + { step = 1; continue; } + case 2: + r0 = s.sin___164186; return leave(s, r0) default: oops() } } } -inline__P96057.info = {"start":4458,"length":217,"line":129,"column":72,"endLine":133,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +particles_cacheSin__P154196.info = {"start":594,"length":263,"line":22,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheSin","argumentNames":["slices"]} -function inline__P96057_mk(s) { +function particles_cacheSin__P154196_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P96057, depth: s.depth + 1, + parent: s, fn: particles_cacheSin__P154196, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + sin___164186: undefined, + anglePerSlice___164188: undefined, + i___164194: undefined, + arg0: undefined, } } -function inline__P96080(s) { +function particles_SprayFactory_setDirection__P154207(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17084,41 +20561,70 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = PhysicsEngine__C88644_v4_2_mk(s); - r0 = s.caps[0].fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - r0 = s.caps[0].fields["eventContext"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["deltaTimeMillis"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 / 1000); - s.tmp_0.arg1 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C88644_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.move; - s.pc = 1; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_SprayFactory__C154202_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_4 = particles_toRadians__P156076_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 = 1341; s.pc = 1; return s.tmp_4; case 1: r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 / globals.angleSlice___156070); + 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__P156076_mk(s); + s.tmp_4.arg0 = s.arg2; + s.callLocIdx = 1342; s.pc = 2; return s.tmp_4; + case 2: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 / globals.angleSlice___156070); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["spread"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P96080.info = {"start":4970,"length":159,"line":138,"column":69,"endLine":141,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +particles_SprayFactory_setDirection__P154207.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 inline__P96080_mk(s) { +function particles_SprayFactory_setDirection__P154207_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P96080, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_setDirection__P154207, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function inline__P96093(s) { +function particles_toRadians__P156076(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17128,80 +20634,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dt___96094 = undefined; - s.s___96102 = undefined; - s.unnamed394___U2 = undefined; - s.unnamed395___U3 = undefined; - r0 = s.caps[0].fields["eventContext"]; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = (s.arg0 < 0); s.tmp_0 = r0; - r0 = s.tmp_0.fields["deltaTimeMillis"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 / 1000); - s.dt___96094 = (r0); - s.tmp_0 = scene_Camera_update__P88861_mk(s); - r0 = s.caps[0].fields["camera"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 832; s.pc = 3; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_3 = Math_abs__P151607_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1323; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; - s.s___96102 = (undefined); - r0 = s.caps[0].fields["allSprites"]; - s.unnamed394___U2 = (r0); - s.unnamed395___U3 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed395___U3; - r0 = pxsim_Array__length(s.unnamed394___U2); + s.tmp_2 = r0; + r0 = (s.tmp_2 % 360); s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed394___U2, s.unnamed395___U3); - s.s___96102 = (r0); - s.tmp_2 = if___update_3_mk(s); - s.tmp_2.arg0 = s.s___96102; - r0 = s.caps[0].fields["camera"]; - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = s.dt___96094; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3); - s.callLocIdx = 833; 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 = 833; s.pc = 4; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 833; s.pc = 4; return s.tmp_2;; } - else { s.callLocIdx = 833; s.pc = 4; return s.tmp_2; } - } - case 4: - r0 = s.retval; - r0 = (s.unnamed395___U3 + 1); - s.unnamed395___U3 = (r0); - { step = 1; continue; } + r0 = (360 - s.tmp_1); + s.arg0 = (r0); + { step = 2; continue; } + case 1: + r0 = (s.arg0 % 360); + s.arg0 = (r0); case 2: - s.unnamed394___U2 = (undefined); - r0 = undefined; + r0 = (s.arg0 * 0.017453292519943295); return leave(s, r0) default: oops() } } } -inline__P96093.info = {"start":5318,"length":214,"line":147,"column":79,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +particles_toRadians__P156076.info = {"start":1307,"length":206,"line":45,"column":4,"endLine":52,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"toRadians","argumentNames":["degrees"]} -function inline__P96093_mk(s) { +function particles_toRadians__P156076_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P96093, depth: s.depth + 1, + parent: s, fn: particles_toRadians__P156076, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - dt___96094: undefined, - s___96102: undefined, - unnamed394___U2: undefined, - unnamed395___U3: undefined, + tmp_3: undefined, + arg0: undefined, } } -function inline__P96114(s) { +function particles_ParticleFactory_constructor__P154199(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17211,30 +20689,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_Scene_render__P88931_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 835; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleFactory__C154198_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P96114.info = {"start":5673,"length":109,"line":158,"column":76,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +particles_ParticleFactory_constructor__P154199.info = {"start":1617,"length":78,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this"]} -function inline__P96114_mk(s) { +function particles_ParticleFactory_constructor__P154199_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P96114, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_constructor__P154199, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, + arg0: undefined, } } -function inline__P96122(s) { +function effects_ScreenEffect_constructor__P154278(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17244,108 +20723,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = r0 = globals.stats___89014; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, effects_ScreenEffect__C154277_VT)) failedCast(r0); + s.tmp_0 = effects_ParticleEffect_constructor__P154274_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 = 1375; s.pc = 1; return s.tmp_0; case 1: - r0 = globals.control_EventContext_onStats___86872; - 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___86872; - if ((globals.control_EventContext_lastStats___86871) && (globals.control_EventContext_lastStats___86871).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(globals.control_EventContext_lastStats___86871); - checkResumeConsumed(); - return; - } else { s.retval = (globals.control_EventContext_lastStats___86871) + ""; } - case 8: - r0 = s.retval; - s.tmp_3 = r0; - r0 = s.caps[0].fields["allSprites"]; - s.tmp_8 = r0; - r0 = pxsim_Array__length(s.tmp_8); - s.tmp_7 = r0; - if ((s.tmp_7) && (s.tmp_7).vtable) { - setupResume(s, 9); - pxsim_String__stringConv(s.tmp_7); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_7) + ""; } - case 9: - r0 = s.retval; - s.tmp_6 = r0; - r0 = pxsim_String__concat(" sprites:", s.tmp_6); - s.tmp_5 = r0; - if ((s.tmp_5) && (s.tmp_5).vtable) { - setupResume(s, 10); - pxsim_String__stringConv(s.tmp_5); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_5) + ""; } - case 10: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.tmp_2.arg0 = r0; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 837; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(globals.debug___89013); - if (!r0) { step = 5; continue; } - s.tmp_0 = PhysicsEngine__C88644_v3_1_mk(s); - r0 = s.caps[0].fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C88644_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__P89139_mk(s); - s.callLocIdx = 838; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.tmp_0 = power_checkDeepSleep__P88191_mk(s); - s.callLocIdx = 839; s.pc = 13; return s.tmp_0; - case 13: r0 = s.retval; + r0 = (s.arg0).fields["sceneDefaultRate"] = (s.arg2); r0 = undefined; return leave(s, r0) - default: oops() -} } } -inline__P96122.info = {"start":5899,"length":504,"line":163,"column":80,"endLine":175,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} - -function inline__P96122_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P96122, depth: s.depth + 1, - pc: 0, retval: undefined, 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, + default: oops() +} } } +effects_ScreenEffect_constructor__P154278.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__P154278_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: effects_ScreenEffect_constructor__P154278, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function inline__P96151(s) { +function scene_Scene_init__P153925(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17359,25 +20779,118 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = lambda_2_mk(s); - s.tmp_0.argL = s.arg0; - s.tmp_0.arg0 = s.caps[0]; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 842; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, scene_Scene__C153903_VT)) failedCast(r0); + r0 = s.arg0.fields["allSprites"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 3; continue; } case 1: + case 2: + s.tmp_1 = power_poke__P153189_mk(s); + s.callLocIdx = 963; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["allSprites"] = (s.tmp_1); + r0 = (s.arg0).fields["spriteNextId"] = (0); + r0 = pxsim_pxtcore_mkAction(1, inline__P164853); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P151876_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 = 966; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + s.tmp_0 = control_EventContext_registerFrameHandler__P151876_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 13; + s.tmp_0.arg2 = controller__moveSprites__P153406; + s.callLocIdx = 967; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P164876); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P151876_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 = 969; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P164889); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P151876_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 = 973; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P164910); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P151876_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 = 975; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P164918); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P151876_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 = 979; s.pc = 10; return s.tmp_1; + case 10: + r0 = s.retval; + s.tmp_0 = control_EventContext_registerFrameHandler__P151876_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 200; + s.tmp_0.arg2 = control___screen_update__P153247; + s.callLocIdx = 980; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P164947); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = helpers_arrayForEach__P151591_mk(s); + s.tmp_1.arg0 = globals.scene_Scene_initializers___153923; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 982; s.pc = 12; return s.tmp_1; + case 12: r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P96151.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__P153925.info = {"start":4168,"length":2477,"line":122,"column":8,"endLine":180,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]} -function inline__P96151_mk(s) { +function scene_Scene_init__P153925_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P96151, depth: s.depth + 1, + parent: s, fn: scene_Scene_init__P153925, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -17385,7 +20898,7 @@ function inline__P96151_mk(s) { -function game_consoleOverlay_draw__P89139(s) { +function inline__P164853(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17395,216 +20908,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.height___96200 = undefined; - s.top___96205 = undefined; - s.i___96211 = undefined; - s.t___96224 = undefined; - s.tOff___96231 = undefined; - s.tab___96233 = undefined; - s.unnamed398___U6 = undefined; - s.unnamed399___U7 = undefined; - s.padding___96235 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___90826); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_numops_toBoolDecr(globals.instance___90780); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 3; continue; } - { step = 13; continue; } - case 3: - case 4: - s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = globals.consoleFont___90834; - 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 = 1056; s.pc = 14; return s.tmp_7; } - } - case 14: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 + 2); - s.height___96200 = (r0); - r0 = pxsim_numops_toBoolDecr(globals.stats___89014); - if (!r0) { step = 5; continue; } - r0 = s.height___96200; - { step = 6; continue; } - case 5: - r0 = 0; - case 6: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = (2 + s.tmp_0); - s.top___96205 = (r0); - s.i___96211 = (0); - case 7: - s.tmp_1 = r0 = s.i___96211; - r0 = pxsim_Array__length(globals.consoleStrings___90826); + s.tmp_0 = r0 = s.caps[0]; + r0 = s.tmp_0.fields["_millis"]; 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___90826, s.i___96211); - s.tmp_5 = r0; - r0 = pxsim_String_.indexOf(s.tmp_5, "\t", undefined); - s.tmp_4 = r0; - r0 = (s.tmp_4 >= 0); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 10; continue; } - s.tmp_6 = helpers_stringSplit__P86602_mk(s); - r0 = pxsim_Array__getAt(globals.consoleStrings___90826, s.i___96211); - s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = "\t"; - s.tmp_6.arg2 = undefined; - s.callLocIdx = 1057; s.pc = 15; return s.tmp_6; - case 15: - r0 = s.retval; - s.t___96224 = (r0); - s.tOff___96231 = (0); - s.tab___96233 = (undefined); - s.unnamed398___U6 = (s.t___96224); - s.unnamed399___U7 = (0); - case 8: - s.tmp_0 = r0 = s.unnamed399___U7; - r0 = pxsim_Array__length(s.unnamed398___U6); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 9; continue; } - r0 = pxsim_Array__getAt(s.unnamed398___U6, s.unnamed399___U7); - s.tab___96233 = (r0); - s.tmp_2 = r0 = globals.tabSize___90828; - s.tmp_5 = r0 = s.tOff___96231; - r0 = pxsim_String_.length(s.tab___96233); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_4 % globals.tabSize___90828); - s.tmp_3 = r0; - r0 = (s.tmp_2 - s.tmp_3); - s.padding___96235 = (r0); - s.tmp_0 = helpers_imagePrint__P88245_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - s.tmp_0.arg1 = s.tab___96233; - s.tmp_2 = r0 = s.tOff___96231; - s.tmp_4 = if_charWidth_1_mk(s); - s.tmp_4.arg0 = globals.consoleFont___90834; - 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 = 1058; s.pc = 17; return s.tmp_4; } - } - case 17: - r0 = s.retval; + r0 = s.caps[0].fields["eventContext"]; + r0 = r0.fields["deltaTimeMillis"]; s.tmp_3 = r0; - r0 = (s.tmp_2 * s.tmp_3); + r0 = (s.tmp_2 + s.tmp_3); s.tmp_1 = r0; - r0 = (4 + s.tmp_1); - s.tmp_0.arg2 = r0; - s.tmp_5 = r0 = s.top___96205; - r0 = (s.i___96211 * s.height___96200); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___90825; - s.tmp_0.arg5 = globals.consoleFont___90834; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1059; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - s.tmp_0 = r0 = s.tOff___96231; - r0 = pxsim_String_.length(s.tab___96233); - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.padding___96235); + r0 = (s.tmp_0).fields["_millis"] = (s.tmp_1); + s.tmp_0 = controller___update__P153434_mk(s); + r0 = s.caps[0].fields["eventContext"]; s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.tOff___96231 = (r0); - r0 = (s.unnamed399___U7 + 1); - s.unnamed399___U7 = (r0); - { step = 8; continue; } - case 9: - s.unnamed398___U6 = (undefined); - { step = 11; continue; } - case 10: - s.tmp_0 = helpers_imagePrint__P88245_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - r0 = pxsim_Array__getAt(globals.consoleStrings___90826, s.i___96211); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 4; - s.tmp_1 = r0 = s.top___96205; - r0 = (s.i___96211 * s.height___96200); + r0 = s.tmp_1.fields["deltaTimeMillis"]; s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___90825; - s.tmp_0.arg5 = globals.consoleFont___90834; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1060; s.pc = 18; return s.tmp_0; - case 18: + r0 = (s.tmp_2 / 1000); + s.tmp_0.arg0 = r0; + s.callLocIdx = 965; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - case 11: - r0 = (s.i___96211 + 1); - s.i___96211 = (r0); - { step = 7; continue; } - case 12: - case 13: r0 = undefined; return leave(s, r0) default: oops() } } } -game_consoleOverlay_draw__P89139.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} +inline__P164853.info = {"start":4458,"length":217,"line":129,"column":72,"endLine":133,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function game_consoleOverlay_draw__P89139_mk(s) { +function inline__P164853_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_draw__P89139, depth: s.depth + 1, + parent: s, fn: inline__P164853, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - height___96200: undefined, - top___96205: undefined, - i___96211: undefined, - t___96224: undefined, - tOff___96231: undefined, - tab___96233: undefined, - unnamed398___U6: undefined, - unnamed399___U7: undefined, - padding___96235: undefined, } } -function scene_systemMenu_isVisible__P89120(s) { +function inline__P164876(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17614,22 +20958,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___90780); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_0 = PhysicsEngine__C153643_v4_2_mk(s); + r0 = s.caps[0].fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + r0 = s.caps[0].fields["eventContext"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + r0 = s.tmp_1.fields["deltaTimeMillis"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 / 1000); + s.tmp_0.arg1 = r0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C153643_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.move; + s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_isVisible__P89120.info = {"start":13170,"length":62,"line":395,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} +inline__P164876.info = {"start":4970,"length":159,"line":138,"column":69,"endLine":141,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_isVisible__P89120_mk(s) { +function inline__P164876_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_isVisible__P89120, depth: s.depth + 1, + parent: s, fn: inline__P164876, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17640,7 +20992,7 @@ function scene_systemMenu_isVisible__P89120_mk(s) { -function helpers_imagePrint__P88245(s) { +function inline__P164889(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17650,506 +21002,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x0___96307 = undefined; - s.cp___96309 = undefined; - s.mult___96310 = undefined; - s.dataW___96315 = undefined; - s.dataH___96321 = undefined; - s.byteHeight___96327 = undefined; - s.charSize___96333 = undefined; - s.dataSize___96337 = undefined; - s.fontdata___96341 = undefined; - s.lastchar___96344 = undefined; - s.imgBuf___96351 = undefined; - s.xOffset___96375 = undefined; - s.yOffset___96376 = undefined; - s.ch___96391 = undefined; - s.l___96410 = undefined; - s.r___96411 = undefined; - s.off___96413 = undefined; - s.guess___96414 = undefined; - s.m___96433 = undefined; - s.v___96442 = undefined; - s.i___96498 = undefined; - s.j___96503 = undefined; - s.mask___96504 = undefined; - s.c___96505 = undefined; - s.n___96522 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.arg6 = (s.lambdaArgs[6]); - s.lambdaArgs = null; - } - r0 = (s.arg2 | 0); - s.arg2 = (r0); - r0 = (s.arg3 | 0); - s.arg3 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg5); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = image_getFontForText__P88232_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 97; s.pc = 39; return s.tmp_2; - case 39: - r0 = s.retval; - s.arg5 = (r0); - case 1: - case 2: - r0 = pxsim_numops_toBoolDecr(s.arg4); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.arg4 = (1); - case 3: - case 4: - s.x0___96307 = (s.arg2); - s.cp___96309 = (0); - s.tmp_1 = if_multiplier_1_mk(s); - s.tmp_1.arg0 = s.arg5; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "multiplier"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["multiplier"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["multiplier"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 98; s.pc = 40; return s.tmp_1; } - } - case 40: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_2 = if_multiplier_1_mk(s); - s.tmp_2.arg0 = s.arg5; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "multiplier"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["multiplier"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["multiplier"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 99; s.pc = 41; return s.tmp_2; } - } - case 41: - r0 = s.retval; - { step = 6; continue; } - case 5: - r0 = 1; - case 6: - // jmp value (already in r0) - s.tmp_3 = r0; - s.mult___96310 = (s.tmp_3); - s.tmp_1 = if_charWidth_1_mk(s); - s.tmp_1.arg0 = s.arg5; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charWidth"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charWidth"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charWidth"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 100; s.pc = 42; return s.tmp_1; } - } - case 42: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___96310); - s.dataW___96315 = (r0); - s.tmp_1 = if_charHeight_1_mk(s); - s.tmp_1.arg0 = s.arg5; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charHeight"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charHeight"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charHeight"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 101; s.pc = 43; return s.tmp_1; } - } - case 43: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___96310); - s.dataH___96321 = (r0); - r0 = (s.dataH___96321 + 7); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 3); - s.byteHeight___96327 = (r0); - r0 = (s.byteHeight___96327 * s.dataW___96315); - s.charSize___96333 = (r0); - r0 = (2 + s.charSize___96333); - s.dataSize___96337 = (r0); - s.tmp_0 = if_data_1_mk(s); - s.tmp_0.arg0 = s.arg5; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "data"); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["data"]; - if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["data"]; } - else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } - else { s.callLocIdx = 102; s.pc = 44; return s.tmp_0; } - } - case 44: - r0 = s.retval; - s.fontdata___96341 = (r0); - r0 = pxsim.BufferMethods.length(s.fontdata___96341); - s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___96337); - s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); - s.lastchar___96344 = (r0); - r0 = (s.mult___96310 == 1); + s.dt___164890 = undefined; + s.s___164898 = undefined; + s.unnamed1496___U2 = undefined; + s.unnamed1497___U3 = undefined; + r0 = s.caps[0].fields["eventContext"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = (8 + s.charSize___96333); + r0 = s.tmp_0.fields["deltaTimeMillis"]; s.tmp_1 = r0; - r0 = pxsim.control.createBuffer(s.tmp_1); - s.imgBuf___96351 = (r0); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___96351, 0, 135); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___96351, 1, 1); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___96351, 2, s.dataW___96315); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___96351, 4, s.dataH___96321); - case 7: - case 8: - case 9: - s.tmp_1 = r0 = s.cp___96309; - 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___96375 = (0); - s.yOffset___96376 = (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___96309; - r0 = pxsim_Array__length(s.arg6); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - case 11: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 12; continue; } - s.tmp_4 = if_xOffset_1_mk(s); - r0 = pxsim_Array__getAt(s.arg6, s.cp___96309); - s.tmp_4.arg0 = r0; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "xOffset"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["xOffset"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["xOffset"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 103; s.pc = 45; return s.tmp_4; } - } - case 45: - r0 = s.retval; - s.xOffset___96375 = (r0); - s.tmp_0 = if_yOffset_1_mk(s); - r0 = pxsim_Array__getAt(s.arg6, s.cp___96309); + r0 = (s.tmp_1 / 1000); + s.dt___164890 = (r0); + s.tmp_0 = scene_Camera_update__P153860_mk(s); + r0 = s.caps[0].fields["camera"]; s.tmp_0.arg0 = r0; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "yOffset"); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["yOffset"]; - if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["yOffset"]; } - else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } - else { s.callLocIdx = 104; s.pc = 46; return s.tmp_0; } - } - case 46: - r0 = s.retval; - s.yOffset___96376 = (r0); - case 12: - case 13: - s.tmp_0 = r0 = s.cp___96309; - r0 = (s.tmp_0 + 1); - s.cp___96309 = (r0); - r0 = pxsim_String_.charCodeAt(s.arg1, s.tmp_0); - s.ch___96391 = (r0); - r0 = (s.ch___96391 == 10); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - s.tmp_1 = r0 = s.arg3; - s.tmp_4 = if_charHeight_1_mk(s); - s.tmp_4.arg0 = s.arg5; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charHeight"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charHeight"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charHeight"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 105; s.pc = 47; return s.tmp_4; } - } - case 47: + s.callLocIdx = 971; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 + 2); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.arg3 = (r0); - s.arg2 = (s.x0___96307); - case 14: - case 15: - r0 = (s.ch___96391 < 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___96410 = (0); - s.r___96411 = (s.lastchar___96344); - s.off___96413 = (0); - r0 = (s.ch___96391 - 32); - s.tmp_0 = r0; - r0 = (s.tmp_0 * s.dataSize___96337); - s.guess___96414 = (r0); - r0 = pxsim.BufferMethods.getNumber(s.fontdata___96341, 4, s.guess___96414); - s.tmp_1 = r0; - r0 = (s.tmp_1 == s.ch___96391); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 18; continue; } - s.off___96413 = (s.guess___96414); - { step = 25; continue; } - case 18: - case 19: - r0 = (s.l___96410 <= s.r___96411); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 24; continue; } - s.tmp_1 = r0 = s.l___96410; - r0 = (s.r___96411 - s.l___96410); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.m___96433 = (r0); - s.tmp_0 = r0 = s.fontdata___96341; - r0 = (s.m___96433 * s.dataSize___96337); + s.s___164898 = (undefined); + r0 = s.caps[0].fields["allSprites"]; + s.unnamed1496___U2 = (r0); + s.unnamed1497___U3 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed1497___U3; + r0 = pxsim_Array__length(s.unnamed1496___U2); s.tmp_1 = r0; - r0 = pxsim.BufferMethods.getNumber(s.tmp_0, 4, s.tmp_1); - s.v___96442 = (r0); - r0 = (s.v___96442 == s.ch___96391); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - r0 = (s.m___96433 * s.dataSize___96337); - s.off___96413 = (r0); - { step = 24; continue; } - case 20: - case 21: - r0 = (s.v___96442 < s.ch___96391); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - r0 = (s.m___96433 + 1); - s.l___96410 = (r0); - { step = 23; continue; } - case 22: - r0 = (s.m___96433 - 1); - s.r___96411 = (r0); - case 23: - { step = 19; continue; } - case 24: - case 25: - r0 = (s.mult___96310 == 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 26; continue; } - s.tmp_1 = r0 = s.imgBuf___96351; - s.tmp_3 = r0 = s.fontdata___96341; - r0 = (s.off___96413 + 2); - s.tmp_4 = r0; - r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___96333); - s.tmp_2 = r0; - r0 = pxsim.BufferMethods.write(s.tmp_1, 8, s.tmp_2); - s.tmp_0 = helpers_imageDrawIcon__P88212_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.imgBuf___96351; - r0 = (s.arg2 + s.xOffset___96375); - s.tmp_0.arg2 = r0; - r0 = (s.arg3 + s.yOffset___96376); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = s.arg4; - s.callLocIdx = 106; s.pc = 48; return s.tmp_0; - case 48: - r0 = s.retval; - s.tmp_0 = r0 = s.arg2; - s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.arg5; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed1496___U2, s.unnamed1497___U3); + s.s___164898 = (r0); + s.tmp_2 = if___update_3_mk(s); + s.tmp_2.arg0 = s.s___164898; + r0 = s.caps[0].fields["camera"]; + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = s.dt___164890; 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 = 107; s.pc = 49; return s.tmp_2; } - } - case 49: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.arg2 = (r0); - { step = 37; continue; } - case 26: - r0 = (s.off___96413 + 2); - s.off___96413 = (r0); - s.i___96498 = (0); - case 27: - r0 = (s.i___96498 < s.dataW___96315); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 36; continue; } - s.j___96503 = (0); - s.mask___96504 = (1); - s.tmp_0 = r0 = s.off___96413; - r0 = (s.tmp_0 + 1); - s.off___96413 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___96341, s.tmp_0); - s.c___96505 = (r0); - case 28: - r0 = (s.j___96503 < s.dataH___96321); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 35; continue; } - r0 = (s.mask___96504 == 256); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 29; continue; } - s.tmp_2 = r0 = s.off___96413; - r0 = (s.tmp_2 + 1); - s.off___96413 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___96341, s.tmp_2); - s.c___96505 = (r0); - s.mask___96504 = (1); - case 29: - case 30: - s.n___96522 = (0); - case 31: - r0 = (s.c___96505 & s.mask___96504); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 32; continue; } - r0 = (s.n___96522 + 1); - s.n___96522 = (r0); - r0 = (s.mask___96504 << 1); - s.mask___96504 = (r0); - { step = 31; continue; } - case 32: - r0 = pxsim_numops_toBoolDecr(s.n___96522); - if (!r0) { step = 33; continue; } - s.tmp_0 = helpers_imageFillRect__P88213_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.arg2; - r0 = (s.xOffset___96375 * s.mult___96310); - 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___96503 + s.yOffset___96376); - s.tmp_5 = r0; - r0 = (s.tmp_5 * s.mult___96310); - s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.mult___96310; - r0 = (s.mult___96310 * s.n___96522); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.arg4; - s.callLocIdx = 108; s.pc = 50; return s.tmp_0; - case 50: + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3); + s.callLocIdx = 972; 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 = 972; s.pc = 4; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 972; s.pc = 4; return s.tmp_2;; } + else { s.callLocIdx = 972; s.pc = 4; return s.tmp_2; } + } + case 4: r0 = s.retval; - r0 = (s.j___96503 + s.n___96522); - s.j___96503 = (r0); - { step = 34; continue; } - case 33: - r0 = (s.mask___96504 << 1); - s.mask___96504 = (r0); - r0 = (s.j___96503 + 1); - s.j___96503 = (r0); - case 34: - { step = 28; continue; } - case 35: - r0 = (s.arg2 + s.mult___96310); - s.arg2 = (r0); - r0 = (s.i___96498 + 1); - s.i___96498 = (r0); - { step = 27; continue; } - case 36: - case 37: - { step = 9; continue; } - case 38: + r0 = (s.unnamed1497___U3 + 1); + s.unnamed1497___U3 = (r0); + { step = 1; continue; } + case 2: + s.unnamed1496___U2 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_imagePrint__P88245.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"]} +inline__P164889.info = {"start":5318,"length":214,"line":147,"column":79,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function helpers_imagePrint__P88245_mk(s) { +function inline__P164889_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrint__P88245, depth: s.depth + 1, + parent: s, fn: inline__P164889, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - x0___96307: undefined, - cp___96309: undefined, - mult___96310: undefined, - dataW___96315: undefined, - dataH___96321: undefined, - byteHeight___96327: undefined, - charSize___96333: undefined, - dataSize___96337: undefined, - fontdata___96341: undefined, - lastchar___96344: undefined, - imgBuf___96351: undefined, - xOffset___96375: undefined, - yOffset___96376: undefined, - ch___96391: undefined, - l___96410: undefined, - r___96411: undefined, - off___96413: undefined, - guess___96414: undefined, - m___96433: undefined, - v___96442: undefined, - i___96498: undefined, - j___96503: undefined, - mask___96504: undefined, - c___96505: undefined, - n___96522: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, + dt___164890: undefined, + s___164898: undefined, + unnamed1496___U2: undefined, + unnamed1497___U3: undefined, } } -function image_getFontForText__P88232(s) { +function inline__P164910(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18159,60 +21085,141 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___96599 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.i___96599 = (0); + s.tmp_0 = scene_Scene_render__P153930_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 974; s.pc = 1; return s.tmp_0; case 1: - s.tmp_1 = r0 = s.i___96599; - 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___96599); - 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___88231; - { step = 5; continue; } + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P164910.info = {"start":5673,"length":109,"line":158,"column":76,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} + +function inline__P164910_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P164910, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function inline__P164918(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.tmp_0 = r0 = globals.stats___154013; + 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___151871; 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___151871; + if ((globals.control_EventContext_lastStats___151870) && (globals.control_EventContext_lastStats___151870).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(globals.control_EventContext_lastStats___151870); + checkResumeConsumed(); + return; + } else { s.retval = (globals.control_EventContext_lastStats___151870) + ""; } + case 8: + r0 = s.retval; + s.tmp_3 = r0; + r0 = s.caps[0].fields["allSprites"]; + s.tmp_8 = r0; + r0 = pxsim_Array__length(s.tmp_8); + s.tmp_7 = r0; + if ((s.tmp_7) && (s.tmp_7).vtable) { + setupResume(s, 9); + pxsim_String__stringConv(s.tmp_7); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_7) + ""; } + case 9: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_String__concat(" sprites:", s.tmp_6); + s.tmp_5 = r0; + if ((s.tmp_5) && (s.tmp_5).vtable) { + setupResume(s, 10); + pxsim_String__stringConv(s.tmp_5); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_5) + ""; } + case 10: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); + s.tmp_2.arg0 = r0; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 976; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; case 3: - r0 = (s.i___96599 + 1); - s.i___96599 = (r0); - { step = 1; continue; } case 4: - r0 = globals.font8___88230; + r0 = pxsim_numops_toBoolDecr(globals.debug___154012); + if (!r0) { step = 5; continue; } + s.tmp_0 = PhysicsEngine__C153643_v3_1_mk(s); + r0 = s.caps[0].fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C153643_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__P154138_mk(s); + s.callLocIdx = 977; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.tmp_0 = power_checkDeepSleep__P153190_mk(s); + s.callLocIdx = 978; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -image_getFontForText__P88232.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]} +inline__P164918.info = {"start":5899,"length":504,"line":163,"column":80,"endLine":175,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function image_getFontForText__P88232_mk(s) { +function inline__P164918_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_getFontForText__P88232, depth: s.depth + 1, + parent: s, fn: inline__P164918, depth: s.depth + 1, pc: 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___96599: undefined, - arg0: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, } } -function helpers_imageFillRect__P88213(s) { +function inline__P164947(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18224,58 +21231,254 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_pack__P90280_mk(s); - s.tmp_2.arg0 = s.arg1; - s.tmp_2.arg1 = s.arg2; - s.callLocIdx = 79; s.pc = 1; return s.tmp_2; + s.tmp_0 = lambda_2_mk(s); + s.tmp_0.argL = s.arg0; + s.tmp_0.arg0 = s.caps[0]; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 981; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P164947.info = {"start":6621,"length":12,"line":179,"column":39,"endLine":179,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]} + +function inline__P164947_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P164947, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function game_consoleOverlay_draw__P154138(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.height___164996 = undefined; + s.top___165001 = undefined; + s.i___165007 = undefined; + s.t___165020 = undefined; + s.tOff___165027 = undefined; + s.tab___165029 = undefined; + s.unnamed1500___U6 = undefined; + s.unnamed1501___U7 = undefined; + s.padding___165031 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___155990); s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P90280_mk(s); - s.tmp_4.arg0 = s.arg3; - s.tmp_4.arg1 = s.arg4; - s.callLocIdx = 80; s.pc = 2; return s.tmp_4; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_numops_toBoolDecr(globals.instance___155944); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); case 2: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 3; continue; } + { step = 13; continue; } + case 3: + case 4: + s.tmp_7 = if_charHeight_1_mk(s); + s.tmp_7.arg0 = globals.consoleFont___155998; + 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 = 1248; s.pc = 14; return s.tmp_7; } + } + case 14: r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_6 + 2); + s.height___164996 = (r0); + r0 = pxsim_numops_toBoolDecr(globals.stats___154013); + if (!r0) { step = 5; continue; } + r0 = s.height___164996; + { step = 6; continue; } + case 5: + r0 = 0; + case 6: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = (2 + s.tmp_0); + s.top___165001 = (r0); + s.i___165007 = (0); + case 7: + s.tmp_1 = r0 = s.i___165007; + r0 = pxsim_Array__length(globals.consoleStrings___155990); + 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___155990, s.i___165007); + s.tmp_5 = r0; + r0 = pxsim_String_.indexOf(s.tmp_5, "\t", undefined); + s.tmp_4 = r0; + r0 = (s.tmp_4 >= 0); s.tmp_3 = r0; - r0 = pxsim_ImageMethods._fillRect(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 10; continue; } + s.tmp_6 = helpers_stringSplit__P151601_mk(s); + r0 = pxsim_Array__getAt(globals.consoleStrings___155990, s.i___165007); + s.tmp_6.arg0 = r0; + s.tmp_6.arg1 = "\t"; + s.tmp_6.arg2 = undefined; + s.callLocIdx = 1249; s.pc = 15; return s.tmp_6; + case 15: + r0 = s.retval; + s.t___165020 = (r0); + s.tOff___165027 = (0); + s.tab___165029 = (undefined); + s.unnamed1500___U6 = (s.t___165020); + s.unnamed1501___U7 = (0); + case 8: + s.tmp_0 = r0 = s.unnamed1501___U7; + r0 = pxsim_Array__length(s.unnamed1500___U6); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 9; continue; } + r0 = pxsim_Array__getAt(s.unnamed1500___U6, s.unnamed1501___U7); + s.tab___165029 = (r0); + s.tmp_2 = r0 = globals.tabSize___155992; + s.tmp_5 = r0 = s.tOff___165027; + r0 = pxsim_String_.length(s.tab___165029); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_4 % globals.tabSize___155992); + s.tmp_3 = r0; + r0 = (s.tmp_2 - s.tmp_3); + s.padding___165031 = (r0); + s.tmp_0 = helpers_imagePrint__P153244_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + s.tmp_0.arg1 = s.tab___165029; + s.tmp_2 = r0 = s.tOff___165027; + s.tmp_4 = if_charWidth_1_mk(s); + s.tmp_4.arg0 = globals.consoleFont___155998; + 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 = 1250; s.pc = 17; return s.tmp_4; } + } + case 17: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_2 * s.tmp_3); + s.tmp_1 = r0; + r0 = (4 + s.tmp_1); + s.tmp_0.arg2 = r0; + s.tmp_5 = r0 = s.top___165001; + r0 = (s.i___165007 * s.height___164996); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.consoleColor___155989; + s.tmp_0.arg5 = globals.consoleFont___155998; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1251; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + s.tmp_0 = r0 = s.tOff___165027; + r0 = pxsim_String_.length(s.tab___165029); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.padding___165031); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.tOff___165027 = (r0); + r0 = (s.unnamed1501___U7 + 1); + s.unnamed1501___U7 = (r0); + { step = 8; continue; } + case 9: + s.unnamed1500___U6 = (undefined); + { step = 11; continue; } + case 10: + s.tmp_0 = helpers_imagePrint__P153244_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + r0 = pxsim_Array__getAt(globals.consoleStrings___155990, s.i___165007); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 4; + s.tmp_1 = r0 = s.top___165001; + r0 = (s.i___165007 * s.height___164996); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.consoleColor___155989; + s.tmp_0.arg5 = globals.consoleFont___155998; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1252; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + case 11: + r0 = (s.i___165007 + 1); + s.i___165007 = (r0); + { step = 7; continue; } + case 12: + case 13: r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_imageFillRect__P88213.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"]} +game_consoleOverlay_draw__P154138.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} -function helpers_imageFillRect__P88213_mk(s) { +function game_consoleOverlay_draw__P154138_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageFillRect__P88213, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_draw__P154138, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + height___164996: undefined, + top___165001: undefined, + i___165007: undefined, + t___165020: undefined, + tOff___165027: undefined, + tab___165029: undefined, + unnamed1500___U6: undefined, + unnamed1501___U7: undefined, + padding___165031: undefined, } } -function helpers_imageDrawIcon__P88212(s) { +function scene_systemMenu_isVisible__P154119(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18285,51 +21488,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.lambdaArgs = null; - } - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = helpers_pack__P90280_mk(s); - s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.arg3; - s.callLocIdx = 78; s.pc = 1; return s.tmp_3; - case 1: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals.instance___155944); s.tmp_2 = r0; - r0 = pxsim_ImageMethods._drawIcon(s.tmp_0, s.tmp_1, s.tmp_2, s.arg4); - r0 = undefined; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -helpers_imageDrawIcon__P88212.info = {"start":3500,"length":145,"line":128,"column":4,"endLine":130,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]} +scene_systemMenu_isVisible__P154119.info = {"start":13170,"length":62,"line":395,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} -function helpers_imageDrawIcon__P88212_mk(s) { +function scene_systemMenu_isVisible__P154119_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawIcon__P88212, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_isVisible__P154119, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function helpers_stringSplit__P86602(s) { +function helpers_stringSplit__P151601(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18339,15 +21524,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.A___96622 = undefined; - s.lim___96624 = undefined; - s.s___96640 = undefined; - s.p___96643 = undefined; - s.R___96644 = undefined; - s.z___96658 = undefined; - s.T___96671 = undefined; - s.q___96672 = undefined; - s.e___96678 = undefined; + s.A___165085 = undefined; + s.lim___165087 = undefined; + s.s___165103 = undefined; + s.p___165106 = undefined; + s.R___165107 = undefined; + s.z___165121 = undefined; + s.T___165134 = undefined; + s.q___165135 = undefined; + s.e___165141 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -18355,36 +21540,36 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.A___96622 = (r0); - s.lim___96624 = (0); + s.A___165085 = (r0); + s.lim___165087 = (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___96624 = (r0); + s.lim___165087 = (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___96624 = (0); + s.lim___165087 = (0); { step = 3; continue; } case 2: r0 = (s.arg2 | 0); - s.lim___96624 = (r0); + s.lim___165087 = (r0); case 3: case 4: r0 = pxsim_String_.length(s.arg0); - s.s___96640 = (r0); - s.p___96643 = (0); - s.R___96644 = (s.arg1); - r0 = (s.lim___96624 == 0); + s.s___165103 = (r0); + s.p___165106 = (0); + s.R___165107 = (s.arg1); + r0 = (s.lim___165087 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = s.A___96622; + r0 = s.A___165085; { step = 21; continue; } case 5: case 6: @@ -18392,123 +21577,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___96622, 0, s.arg0); - r0 = s.A___96622; + r0 = pxsim_Array_.setAt(s.A___165085, 0, s.arg0); + r0 = s.A___165085; { step = 21; continue; } case 7: case 8: - r0 = (s.s___96640 == 0); + r0 = (s.s___165103 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - s.tmp_1 = helpers_splitMatch__P90139_mk(s); + s.tmp_1 = helpers_splitMatch__P155303_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = 0; - s.tmp_1.arg2 = s.R___96644; - s.callLocIdx = 11; s.pc = 22; return s.tmp_1; + s.tmp_1.arg2 = s.R___165107; + s.callLocIdx = 12; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; - s.z___96658 = (r0); - r0 = (s.z___96658 > -1); + s.z___165121 = (r0); + r0 = (s.z___165121 > -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } - r0 = s.A___96622; + r0 = s.A___165085; { step = 21; continue; } case 9: case 10: - r0 = pxsim_Array_.setAt(s.A___96622, 0, s.arg0); - r0 = s.A___96622; + r0 = pxsim_Array_.setAt(s.A___165085, 0, s.arg0); + r0 = s.A___165085; { step = 21; continue; } case 11: case 12: - s.q___96672 = (s.p___96643); + s.q___165135 = (s.p___165106); case 13: - r0 = (s.q___96672 != s.s___96640); + r0 = (s.q___165135 != s.s___165103); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 20; continue; } - s.tmp_1 = helpers_splitMatch__P90139_mk(s); + s.tmp_1 = helpers_splitMatch__P155303_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.q___96672; - s.tmp_1.arg2 = s.R___96644; - s.callLocIdx = 12; s.pc = 23; return s.tmp_1; + s.tmp_1.arg1 = s.q___165135; + s.tmp_1.arg2 = s.R___165107; + s.callLocIdx = 13; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; - s.e___96678 = (r0); - r0 = (s.e___96678 < 0); + s.e___165141 = (r0); + r0 = (s.e___165141 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - r0 = (s.q___96672 + 1); - s.q___96672 = (r0); + r0 = (s.q___165135 + 1); + s.q___165135 = (r0); { step = 19; continue; } case 14: - r0 = (s.e___96678 == s.p___96643); + r0 = (s.e___165141 == s.p___165106); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 15; continue; } - r0 = (s.q___96672 + 1); - s.q___96672 = (r0); + r0 = (s.q___165135 + 1); + s.q___165135 = (r0); { step = 18; continue; } case 15: - s.tmp_0 = helpers_stringSlice__P86600_mk(s); + s.tmp_0 = helpers_stringSlice__P151599_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___96643; - s.tmp_0.arg2 = s.q___96672; - s.callLocIdx = 13; s.pc = 24; return s.tmp_0; + s.tmp_0.arg1 = s.p___165106; + s.tmp_0.arg2 = s.q___165135; + s.callLocIdx = 14; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.T___96671 = (r0); - r0 = pxsim_Array__push(s.A___96622, s.T___96671); - r0 = pxsim_Array__length(s.A___96622); + s.T___165134 = (r0); + r0 = pxsim_Array__push(s.A___165085, s.T___165134); + r0 = pxsim_Array__length(s.A___165085); s.tmp_1 = r0; - r0 = (s.tmp_1 == s.lim___96624); + r0 = (s.tmp_1 == s.lim___165087); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 16; continue; } - r0 = s.A___96622; + r0 = s.A___165085; { step = 21; continue; } case 16: case 17: - s.p___96643 = (s.e___96678); - s.q___96672 = (s.p___96643); + s.p___165106 = (s.e___165141); + s.q___165135 = (s.p___165106); case 18: case 19: { step = 13; continue; } case 20: - s.tmp_0 = helpers_stringSlice__P86600_mk(s); + s.tmp_0 = helpers_stringSlice__P151599_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___96643; - s.tmp_0.arg2 = s.q___96672; - s.callLocIdx = 14; s.pc = 25; return s.tmp_0; + s.tmp_0.arg1 = s.p___165106; + s.tmp_0.arg2 = s.q___165135; + s.callLocIdx = 15; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.T___96671 = (r0); - r0 = pxsim_Array__push(s.A___96622, s.T___96671); - r0 = s.A___96622; + s.T___165134 = (r0); + r0 = pxsim_Array__push(s.A___165085, s.T___165134); + r0 = s.A___165085; case 21: return leave(s, r0) default: oops() } } } -helpers_stringSplit__P86602.info = {"start":11930,"length":1319,"line":407,"column":4,"endLine":451,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSplit","argumentNames":["S","separator","limit"]} +helpers_stringSplit__P151601.info = {"start":11930,"length":1319,"line":407,"column":4,"endLine":451,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSplit","argumentNames":["S","separator","limit"]} -function helpers_stringSplit__P86602_mk(s) { +function helpers_stringSplit__P151601_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSplit__P86602, depth: s.depth + 1, + parent: s, fn: helpers_stringSplit__P151601, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - A___96622: undefined, - lim___96624: undefined, - s___96640: undefined, - p___96643: undefined, - R___96644: undefined, - z___96658: undefined, - T___96671: undefined, - q___96672: undefined, - e___96678: undefined, + A___165085: undefined, + lim___165087: undefined, + s___165103: undefined, + p___165106: undefined, + R___165107: undefined, + z___165121: undefined, + T___165134: undefined, + q___165135: undefined, + e___165141: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -18518,7 +21703,7 @@ function helpers_stringSplit__P86602_mk(s) { -function helpers_splitMatch__P90139(s) { +function helpers_splitMatch__P155303(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18528,9 +21713,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___96754 = undefined; - s.s___96757 = undefined; - s.i___96767 = undefined; + s.r___165217 = undefined; + s.s___165220 = undefined; + s.i___165230 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -18538,12 +21723,12 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_String_.length(s.arg2); - s.r___96754 = (r0); + s.r___165217 = (r0); r0 = pxsim_String_.length(s.arg0); - s.s___96757 = (r0); - r0 = (s.arg1 + s.r___96754); + s.s___165220 = (r0); + r0 = (s.arg1 + s.r___165217); s.tmp_1 = r0; - r0 = (s.tmp_1 > s.s___96757); + r0 = (s.tmp_1 > s.s___165220); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -18551,18 +21736,18 @@ switch (step) { { step = 7; continue; } case 1: case 2: - s.i___96767 = (0); + s.i___165230 = (0); case 3: - r0 = (s.i___96767 < s.r___96754); + r0 = (s.i___165230 < s.r___165217); 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___96767); + r0 = (s.arg1 + s.i___165230); 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___96767); + r0 = pxsim_String_.charAt(s.arg2, s.i___165230); s.tmp_5 = r0; r0 = (s.tmp_2 != s.tmp_5); s.tmp_1 = r0; @@ -18572,21 +21757,21 @@ switch (step) { { step = 7; continue; } case 4: case 5: - r0 = (s.i___96767 + 1); - s.i___96767 = (r0); + r0 = (s.i___165230 + 1); + s.i___165230 = (r0); { step = 3; continue; } case 6: - r0 = (s.arg1 + s.r___96754); + r0 = (s.arg1 + s.r___165217); case 7: return leave(s, r0) default: oops() } } } -helpers_splitMatch__P90139.info = {"start":13255,"length":289,"line":453,"column":4,"endLine":462,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"splitMatch","argumentNames":["S","q","R"]} +helpers_splitMatch__P155303.info = {"start":13255,"length":289,"line":453,"column":4,"endLine":462,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"splitMatch","argumentNames":["S","q","R"]} -function helpers_splitMatch__P90139_mk(s) { +function helpers_splitMatch__P155303_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_splitMatch__P90139, depth: s.depth + 1, + parent: s, fn: helpers_splitMatch__P155303, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18594,9 +21779,9 @@ function helpers_splitMatch__P90139_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - r___96754: undefined, - s___96757: undefined, - i___96767: undefined, + r___165217: undefined, + s___165220: undefined, + i___165230: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -18606,7 +21791,7 @@ function helpers_splitMatch__P90139_mk(s) { -function helpers_stringSlice__P86600(s) { +function helpers_stringSlice__P151599(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18616,7 +21801,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___96723 = undefined; + s.len___165186 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -18624,16 +21809,16 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_String_.length(s.arg0); - s.len___96723 = (r0); + s.len___165186 = (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__P86610_mk(s); - r0 = (s.len___96723 + s.arg1); + s.tmp_1 = Math_max__P151609_mk(s); + r0 = (s.len___165186 + s.arg1); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 0; - s.callLocIdx = 10; s.pc = 7; return s.tmp_1; + s.callLocIdx = 11; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; s.arg1 = (r0); @@ -18643,14 +21828,14 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.arg2 = (s.len___96723); + s.arg2 = (s.len___165186); case 3: case 4: r0 = (s.arg2 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = (s.len___96723 + s.arg2); + r0 = (s.len___165186 + s.arg2); s.arg2 = (r0); case 5: case 6: @@ -18662,17 +21847,17 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_stringSlice__P86600.info = {"start":11047,"length":365,"line":373,"column":4,"endLine":389,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSlice","argumentNames":["s","start","end"]} +helpers_stringSlice__P151599.info = {"start":11047,"length":365,"line":373,"column":4,"endLine":389,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSlice","argumentNames":["s","start","end"]} -function helpers_stringSlice__P86600_mk(s) { +function helpers_stringSlice__P151599_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSlice__P86600, depth: s.depth + 1, + parent: s, fn: helpers_stringSlice__P151599, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - len___96723: undefined, + len___165186: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -18682,7 +21867,7 @@ function helpers_stringSlice__P86600_mk(s) { -function scene_Scene_render__P88931(s) { +function scene_Scene_render__P153930(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18692,15 +21877,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___96851 = undefined; - s.unnamed396___U1 = undefined; - s.unnamed397___U2 = undefined; + s.s___165314 = undefined; + s.unnamed1498___U1 = undefined; + s.unnamed1499___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C88904_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C153903_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -18731,18 +21916,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__P88931_mk(s); + s.tmp_3 = scene_Scene_render__P153930_mk(s); r0 = s.arg0.fields["previousScene"]; s.tmp_3.arg0 = r0; - s.callLocIdx = 845; s.pc = 12; return s.tmp_3; + s.callLocIdx = 984; s.pc = 12; return s.tmp_3; case 12: r0 = s.retval; { step = 6; continue; } case 5: - s.tmp_0 = scene_Background_draw__P88759_mk(s); + s.tmp_0 = scene_Background_draw__P153758_mk(s); r0 = s.arg0.fields["background"]; s.tmp_0.arg0 = r0; - s.callLocIdx = 846; s.pc = 13; return s.tmp_0; + s.callLocIdx = 985; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; case 6: @@ -18752,11 +21937,11 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_2 = helpers_arraySort__P86588_mk(s); + s.tmp_2 = helpers_arraySort__P151587_mk(s); r0 = s.arg0.fields["allSprites"]; s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = inline__P96828; - s.callLocIdx = 851; s.pc = 14; return s.tmp_2; + s.tmp_2.arg1 = inline__P165291; + s.callLocIdx = 990; s.pc = 14; return s.tmp_2; case 14: r0 = s.retval; s.tmp_0 = r0 = s.arg0; @@ -18767,38 +21952,38 @@ switch (step) { r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); case 7: case 8: - s.s___96851 = (undefined); + s.s___165314 = (undefined); r0 = s.arg0.fields["allSprites"]; - s.unnamed396___U1 = (r0); - s.unnamed397___U2 = (0); + s.unnamed1498___U1 = (r0); + s.unnamed1499___U2 = (0); case 9: - s.tmp_0 = r0 = s.unnamed397___U2; - r0 = pxsim_Array__length(s.unnamed396___U1); + s.tmp_0 = r0 = s.unnamed1499___U2; + r0 = pxsim_Array__length(s.unnamed1498___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 10; continue; } - r0 = pxsim_Array__getAt(s.unnamed396___U1, s.unnamed397___U2); - s.s___96851 = (r0); + r0 = pxsim_Array__getAt(s.unnamed1498___U1, s.unnamed1499___U2); + s.s___165314 = (r0); s.tmp_2 = if___draw_2_mk(s); - s.tmp_2.arg0 = s.s___96851; + s.tmp_2.arg0 = s.s___165314; 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 = 852; s.pc = 15; return s.tmp_2; + s.callLocIdx = 991; 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 = 852; s.pc = 15; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 852; s.pc = 15; return s.tmp_2;; } - else { s.callLocIdx = 852; 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 = 991; s.pc = 15; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 991; s.pc = 15; return s.tmp_2;; } + else { s.callLocIdx = 991; s.pc = 15; return s.tmp_2; } } case 15: r0 = s.retval; - r0 = (s.unnamed397___U2 + 1); - s.unnamed397___U2 = (r0); + r0 = (s.unnamed1499___U2 + 1); + s.unnamed1499___U2 = (r0); { step = 9; continue; } case 10: - s.unnamed396___U1 = (undefined); + s.unnamed1498___U1 = (undefined); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["flags"]; s.tmp_2 = r0; @@ -18810,21 +21995,21 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Scene_render__P88931.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__P153930.info = {"start":7844,"length":917,"line":221,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]} -function scene_Scene_render__P88931_mk(s) { +function scene_Scene_render__P153930_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_render__P88931, depth: s.depth + 1, + parent: s, fn: scene_Scene_render__P153930, depth: s.depth + 1, pc: 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___96851: undefined, - unnamed396___U1: undefined, - unnamed397___U2: undefined, + s___165314: undefined, + unnamed1498___U1: undefined, + unnamed1499___U2: undefined, arg0: undefined, } } @@ -18832,7 +22017,7 @@ function scene_Scene_render__P88931_mk(s) { -function inline__P96828(s) { +function inline__P165291(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18855,7 +22040,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 = 847; s.pc = 3; return s.tmp_2; } + else { s.callLocIdx = 986; s.pc = 3; return s.tmp_2; } } case 3: r0 = s.retval; @@ -18868,7 +22053,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 = 848; s.pc = 4; return s.tmp_4; } + else { s.callLocIdx = 987; s.pc = 4; return s.tmp_4; } } case 4: r0 = s.retval; @@ -18888,7 +22073,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 = 849; s.pc = 5; return s.tmp_6; } + else { s.callLocIdx = 988; s.pc = 5; return s.tmp_6; } } case 5: r0 = s.retval; @@ -18901,7 +22086,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 = 850; s.pc = 6; return s.tmp_8; } + else { s.callLocIdx = 989; s.pc = 6; return s.tmp_8; } } case 6: r0 = s.retval; @@ -18914,12 +22099,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P96828.info = {"start":8422,"length":52,"line":235,"column":37,"endLine":235,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]} +inline__P165291.info = {"start":8422,"length":52,"line":235,"column":37,"endLine":235,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]} -function inline__P96828_mk(s) { +function inline__P165291_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P96828, depth: s.depth + 1, + parent: s, fn: inline__P165291, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18939,7 +22124,7 @@ function inline__P96828_mk(s) { -function scene_Background_draw__P88759(s) { +function scene_Background_draw__P153758(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18954,31 +22139,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C88750_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Background__C153749_VT)) failedCast(r0); r0 = s.arg0.fields["color"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.fill(globals.screen___88287, s.tmp_0); + r0 = pxsim_ImageMethods.fill(globals.screen___153286, 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___88287, s.tmp_1, 0, 0); + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___153286, 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__P96883); + r0 = pxsim_pxtcore_mkAction(1, inline__P165346); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P86592_mk(s); + s.tmp_2 = helpers_arrayForEach__P151591_mk(s); r0 = s.arg0.fields["_layers"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 689; s.pc = 5; return s.tmp_2; + s.callLocIdx = 820; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; case 3: @@ -18987,12 +22172,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Background_draw__P88759.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__P153758.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__P88759_mk(s) { +function scene_Background_draw__P153758_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_draw__P88759, depth: s.depth + 1, + parent: s, fn: scene_Background_draw__P153758, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19004,7 +22189,7 @@ function scene_Background_draw__P88759_mk(s) { -function inline__P96883(s) { +function inline__P165346(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19014,8 +22199,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___96885 = undefined; - s.oy___96896 = undefined; + s.ox___165348 = undefined; + s.oy___165359 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -19030,7 +22215,7 @@ switch (step) { r0 = (s.tmp_1 / s.tmp_2); s.tmp_0 = r0; r0 = pxsim.Math_.round(s.tmp_0); - s.ox___96885 = (r0); + s.ox___165348 = (r0); r0 = s.caps[0].fields["camera"]; r0 = r0.fields["drawOffsetY"]; s.tmp_1 = r0; @@ -19041,31 +22226,31 @@ switch (step) { r0 = (s.tmp_1 / s.tmp_2); s.tmp_0 = r0; r0 = pxsim.Math_.round(s.tmp_0); - s.oy___96896 = (r0); - s.tmp_0 = scene_BackgroundLayer_draw__P88768_mk(s); + s.oy___165359 = (r0); + s.tmp_0 = scene_BackgroundLayer_draw__P153767_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ox___96885; - s.tmp_0.arg2 = s.oy___96896; - s.callLocIdx = 688; s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = s.ox___165348; + s.tmp_0.arg2 = s.oy___165359; + s.callLocIdx = 819; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P96883.info = {"start":1373,"length":312,"line":53,"column":37,"endLine":58,"endColumn":17,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["layer"]} +inline__P165346.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__P96883_mk(s) { +function inline__P165346_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P96883, depth: s.depth + 1, + parent: s, fn: inline__P165346, depth: s.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___96885: undefined, - oy___96896: undefined, + ox___165348: undefined, + oy___165359: undefined, arg0: undefined, } } @@ -19073,7 +22258,7 @@ function inline__P96883_mk(s) { -function scene_BackgroundLayer_draw__P88768(s) { +function scene_BackgroundLayer_draw__P153767(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19083,19 +22268,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___96914 = undefined; - s.h___96917 = undefined; - s.pw___96920 = undefined; - s.ph___96924 = undefined; - s.rx___96933 = undefined; - s.ry___96936 = undefined; - s.y___97005 = undefined; - s.py___97006 = undefined; - s.dh___97015 = undefined; - s.x___97023 = undefined; - s.rxl___97024 = undefined; - s.px___97030 = undefined; - s.dw___97034 = undefined; + s.w___165377 = undefined; + s.h___165380 = undefined; + s.pw___165383 = undefined; + s.ph___165387 = undefined; + s.rx___165396 = undefined; + s.ry___165399 = undefined; + s.y___165468 = undefined; + s.py___165469 = undefined; + s.dh___165478 = undefined; + s.x___165486 = undefined; + s.rxl___165487 = undefined; + s.px___165493 = undefined; + s.dw___165497 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -19103,20 +22288,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_BackgroundLayer__C88760_VT)) failedCast(r0); - r0 = pxsim_ImageMethods.width(globals.screen___88287); - s.w___96914 = (r0); - r0 = pxsim_ImageMethods.height(globals.screen___88287); - s.h___96917 = (r0); + if (!checkSubtype(r0, scene_BackgroundLayer__C153759_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.width(globals.screen___153286); + s.w___165377 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___153286); + s.h___165380 = (r0); r0 = s.arg0.fields["img"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.width(s.tmp_0); - s.pw___96920 = (r0); + s.pw___165383 = (r0); r0 = s.arg0.fields["img"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.height(s.tmp_0); - s.ph___96924 = (r0); - r0 = pxsim_numops_toBoolDecr(s.pw___96920); + s.ph___165387 = (r0); + r0 = pxsim_numops_toBoolDecr(s.pw___165383); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -19125,7 +22310,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_numops_toBoolDecr(s.ph___96924); + r0 = pxsim_numops_toBoolDecr(s.ph___165387); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); case 2: @@ -19137,9 +22322,9 @@ switch (step) { case 3: case 4: r0 = (0 - s.arg1); - s.rx___96933 = (r0); + s.rx___165396 = (r0); r0 = (0 - s.arg2); - s.ry___96936 = (r0); + s.ry___165399 = (r0); r0 = s.arg0.fields["alignX"]; s.tmp_0 = r0; r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); @@ -19149,20 +22334,20 @@ switch (step) { r0 = s.tmp_0; { step = 7; continue; } case 5: - s.tmp_1 = r0 = s.rx___96933; - r0 = (s.w___96914 + s.pw___96920); + s.tmp_1 = r0 = s.rx___165396; + r0 = (s.w___165377 + s.pw___165383); s.tmp_2 = r0; r0 = (s.tmp_1 - s.tmp_2); - s.rx___96933 = (r0); + s.rx___165396 = (r0); { step = 7; continue; } case 6: - s.tmp_0 = r0 = s.rx___96933; - r0 = (s.w___96914 + s.pw___96920); + s.tmp_0 = r0 = s.rx___165396; + r0 = (s.w___165377 + s.pw___165383); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.rx___96933 = (r0); + s.rx___165396 = (r0); case 7: r0 = s.arg0.fields["alignY"]; s.tmp_0 = r0; @@ -19173,120 +22358,120 @@ switch (step) { r0 = s.tmp_0; { step = 10; continue; } case 8: - s.tmp_1 = r0 = s.ry___96936; - r0 = (s.h___96917 + s.ph___96924); + s.tmp_1 = r0 = s.ry___165399; + r0 = (s.h___165380 + s.ph___165387); s.tmp_2 = r0; r0 = (s.tmp_1 - s.tmp_2); - s.ry___96936 = (r0); + s.ry___165399 = (r0); { step = 10; continue; } case 9: - s.tmp_0 = r0 = s.ry___96936; - r0 = (s.h___96917 + s.ph___96924); + s.tmp_0 = r0 = s.ry___165399; + r0 = (s.h___165380 + s.ph___165387); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.ry___96936 = (r0); + s.ry___165399 = (r0); case 10: - r0 = (s.rx___96933 % s.w___96914); - s.rx___96933 = (r0); - r0 = (s.rx___96933 < 0); + r0 = (s.rx___165396 % s.w___165377); + s.rx___165396 = (r0); + r0 = (s.rx___165396 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - r0 = (s.rx___96933 + s.w___96914); - s.rx___96933 = (r0); + r0 = (s.rx___165396 + s.w___165377); + s.rx___165396 = (r0); case 11: case 12: - r0 = (s.ry___96936 % s.h___96917); - s.ry___96936 = (r0); - r0 = (s.ry___96936 < 0); + r0 = (s.ry___165399 % s.h___165380); + s.ry___165399 = (r0); + r0 = (s.ry___165399 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - r0 = (s.ry___96936 + s.h___96917); - s.ry___96936 = (r0); + r0 = (s.ry___165399 + s.h___165380); + s.ry___165399 = (r0); case 13: case 14: - r0 = pxsim.Math_.floor(s.rx___96933); - s.rx___96933 = (r0); - r0 = pxsim.Math_.floor(s.ry___96936); - s.ry___96936 = (r0); - s.y___97005 = (0); - s.py___97006 = (0); + r0 = pxsim.Math_.floor(s.rx___165396); + s.rx___165396 = (r0); + r0 = pxsim.Math_.floor(s.ry___165399); + s.ry___165399 = (r0); + s.y___165468 = (0); + s.py___165469 = (0); case 15: - r0 = (s.y___97005 < s.h___96917); + r0 = (s.y___165468 < s.h___165380); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 22; continue; } - r0 = (s.y___97005 % s.ph___96924); - s.py___97006 = (r0); - s.tmp_0 = Math_min__P86611_mk(s); - r0 = (s.ph___96924 - s.py___97006); + r0 = (s.y___165468 % s.ph___165387); + s.py___165469 = (r0); + s.tmp_0 = Math_min__P151610_mk(s); + r0 = (s.ph___165387 - s.py___165469); s.tmp_0.arg0 = r0; - r0 = (s.h___96917 - s.ry___96936); + r0 = (s.h___165380 - s.ry___165399); s.tmp_0.arg1 = r0; - s.callLocIdx = 691; s.pc = 24; return s.tmp_0; + s.callLocIdx = 822; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.dh___97015 = (r0); - s.x___97023 = (0); - s.rxl___97024 = (s.rx___96933); + s.dh___165478 = (r0); + s.x___165486 = (0); + s.rxl___165487 = (s.rx___165396); case 16: - r0 = (s.x___97023 < s.w___96914); + r0 = (s.x___165486 < s.w___165377); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 19; continue; } - r0 = (s.x___97023 % s.pw___96920); - s.px___97030 = (r0); - s.tmp_0 = Math_min__P86611_mk(s); - r0 = (s.pw___96920 - s.px___97030); + r0 = (s.x___165486 % s.pw___165383); + s.px___165493 = (r0); + s.tmp_0 = Math_min__P151610_mk(s); + r0 = (s.pw___165383 - s.px___165493); s.tmp_0.arg0 = r0; - r0 = (s.w___96914 - s.rxl___97024); + r0 = (s.w___165377 - s.rxl___165487); s.tmp_0.arg1 = r0; - s.callLocIdx = 692; s.pc = 25; return s.tmp_0; + s.callLocIdx = 823; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.dw___97034 = (r0); + s.dw___165497 = (r0); r0 = s.arg0.fields["img"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.drawImage(globals.screen___88287, s.tmp_0, s.rxl___97024, s.ry___96936); - r0 = (s.rxl___97024 + s.dw___97034); + r0 = pxsim_ImageMethods.drawImage(globals.screen___153286, s.tmp_0, s.rxl___165487, s.ry___165399); + r0 = (s.rxl___165487 + s.dw___165497); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.w___96914); - s.rxl___97024 = (r0); + r0 = (s.tmp_0 % s.w___165377); + s.rxl___165487 = (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___97034; + r0 = s.dw___165497; { step = 18; continue; } case 17: - r0 = s.w___96914; + r0 = s.w___165377; case 18: // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.x___97023 + s.tmp_1); - s.x___97023 = (r0); + r0 = (s.x___165486 + s.tmp_1); + s.x___165486 = (r0); { step = 16; continue; } case 19: - r0 = (s.ry___96936 + s.dh___97015); + r0 = (s.ry___165399 + s.dh___165478); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.h___96917); - s.ry___96936 = (r0); + r0 = (s.tmp_0 % s.h___165380); + s.ry___165399 = (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___97015; + r0 = s.dh___165478; { step = 21; continue; } case 20: - r0 = s.h___96917; + r0 = s.h___165380; case 21: // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.y___97005 + s.tmp_1); - s.y___97005 = (r0); + r0 = (s.y___165468 + s.tmp_1); + s.y___165468 = (r0); { step = 15; continue; } case 22: case 23: @@ -19294,30 +22479,30 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_BackgroundLayer_draw__P88768.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__P153767.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__P88768_mk(s) { +function scene_BackgroundLayer_draw__P153767_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_BackgroundLayer_draw__P88768, depth: s.depth + 1, + parent: s, fn: scene_BackgroundLayer_draw__P153767, depth: s.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___96914: undefined, - h___96917: undefined, - pw___96920: undefined, - ph___96924: undefined, - rx___96933: undefined, - ry___96936: undefined, - y___97005: undefined, - py___97006: undefined, - dh___97015: undefined, - x___97023: undefined, - rxl___97024: undefined, - px___97030: undefined, - dw___97034: undefined, + w___165377: undefined, + h___165380: undefined, + pw___165383: undefined, + ph___165387: undefined, + rx___165396: undefined, + ry___165399: undefined, + y___165468: undefined, + py___165469: undefined, + dh___165478: undefined, + x___165486: undefined, + rxl___165487: undefined, + px___165493: undefined, + dw___165497: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -19327,7 +22512,7 @@ function scene_BackgroundLayer_draw__P88768_mk(s) { -function scene_Camera_update__P88861(s) { +function scene_Camera_update__P153860(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19337,78 +22522,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.elapsed___97115 = undefined; - s.percentComplete___97129 = undefined; - s.damp___97136 = undefined; - s.f___97145 = undefined; - s.x___97151 = undefined; - s.y___97158 = undefined; + s.elapsed___165578 = undefined; + s.percentComplete___165592 = undefined; + s.damp___165599 = undefined; + s.f___165608 = undefined; + s.x___165614 = undefined; + s.y___165621 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C88845_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C153844_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__P88851_mk(s); + s.tmp_1 = scene_Camera_offsetX__P153850_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_3 = Sprite_x__P88510_mk(s); + s.tmp_3 = Sprite_x__P153509_mk(s); r0 = s.arg0.fields["sprite"]; s.tmp_3.arg0 = r0; - s.callLocIdx = 806; s.pc = 10; return s.tmp_3; + s.callLocIdx = 945; s.pc = 10; return s.tmp_3; case 10: r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___88287); + r0 = pxsim_ImageMethods.width(globals.screen___153286); 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 = 807; s.pc = 9; return s.tmp_1; + s.callLocIdx = 946; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - s.tmp_0 = scene_Camera_offsetY__P88853_mk(s); + s.tmp_0 = scene_Camera_offsetY__P153852_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_y__P88512_mk(s); + s.tmp_2 = Sprite_y__P153511_mk(s); r0 = s.arg0.fields["sprite"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 808; s.pc = 12; return s.tmp_2; + s.callLocIdx = 947; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___88287); + r0 = pxsim_ImageMethods.height(globals.screen___153286); 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 = 809; s.pc = 11; return s.tmp_0; + s.callLocIdx = 948; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; case 1: case 2: - s.tmp_0 = scene_Camera_offsetX__P88851_mk(s); + s.tmp_0 = scene_Camera_offsetX__P153850_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 = 811; s.pc = 13; return s.tmp_0; + s.callLocIdx = 950; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - s.tmp_0 = scene_Camera_offsetY__P88853_mk(s); + s.tmp_0 = scene_Camera_offsetY__P153852_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 = 813; s.pc = 14; return s.tmp_0; + s.callLocIdx = 952; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; s.tmp_0 = r0 = s.arg0; @@ -19430,10 +22615,10 @@ switch (step) { r0 = s.arg0.fields["shakeStartTime"]; s.tmp_3 = r0; r0 = (s.tmp_2 - s.tmp_3); - s.elapsed___97115 = (r0); + s.elapsed___165578 = (r0); r0 = s.arg0.fields["shakeDuration"]; s.tmp_1 = r0; - r0 = (s.elapsed___97115 >= s.tmp_1); + r0 = (s.elapsed___165578 >= s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } @@ -19442,49 +22627,49 @@ switch (step) { case 3: r0 = s.arg0.fields["shakeDuration"]; s.tmp_0 = r0; - r0 = (s.elapsed___97115 / s.tmp_0); - s.percentComplete___97129 = (r0); - s.damp___97136 = (1); - r0 = (s.percentComplete___97129 >= 0.75); + r0 = (s.elapsed___165578 / s.tmp_0); + s.percentComplete___165592 = (r0); + s.damp___165599 = (1); + r0 = (s.percentComplete___165592 >= 0.75); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_1 = Math_max__P86610_mk(s); + s.tmp_1 = Math_max__P151609_mk(s); s.tmp_1.arg0 = 0; - r0 = (1 - s.percentComplete___97129); + r0 = (1 - s.percentComplete___165592); s.tmp_1.arg1 = r0; - s.callLocIdx = 816; s.pc = 15; return s.tmp_1; + s.callLocIdx = 955; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; - s.damp___97136 = (r0); + s.damp___165599 = (r0); case 4: case 5: r0 = s.arg0.fields["shakeAmplitude"]; s.tmp_0 = r0; - r0 = (s.tmp_0 * s.damp___97136); - s.f___97145 = (r0); + r0 = (s.tmp_0 * s.damp___165599); + s.f___165608 = (r0); r0 = pxsim.Math_.random(); s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___97145); + r0 = (s.tmp_1 * s.f___165608); s.tmp_0 = r0; r0 = (s.tmp_0 >> 0); - s.x___97151 = (r0); + s.x___165614 = (r0); r0 = pxsim.Math_.random(); s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___97145); + r0 = (s.tmp_1 * s.f___165608); s.tmp_0 = r0; r0 = (s.tmp_0 >> 0); - s.y___97158 = (r0); + s.y___165621 = (r0); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["drawOffsetX"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.x___97151); + r0 = (s.tmp_2 + s.x___165614); 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___97158); + r0 = (s.tmp_2 + s.y___165621); s.tmp_1 = r0; r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); case 6: @@ -19494,12 +22679,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Camera_update__P88861.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__P153860.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__P88861_mk(s) { +function scene_Camera_update__P153860_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_update__P88861, depth: s.depth + 1, + parent: s, fn: scene_Camera_update__P153860, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19507,12 +22692,12 @@ function scene_Camera_update__P88861_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - elapsed___97115: undefined, - percentComplete___97129: undefined, - damp___97136: undefined, - f___97145: undefined, - x___97151: undefined, - y___97158: undefined, + elapsed___165578: undefined, + percentComplete___165592: undefined, + damp___165599: undefined, + f___165608: undefined, + x___165614: undefined, + y___165621: undefined, arg0: undefined, } } @@ -19520,7 +22705,7 @@ function scene_Camera_update__P88861_mk(s) { -function scene_Camera_offsetY__P88853(s) { +function scene_Camera_offsetY__P153852(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19530,27 +22715,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___97177 = undefined; + s.scene___165640 = 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__C88845_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 803; s.pc = 5; return s.tmp_0; + if (!checkSubtype(r0, scene_Camera__C153844_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 942; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.scene___97177 = (r0); - r0 = s.scene___97177.fields["tileMap"]; + s.scene___165640 = (r0); + r0 = s.scene___165640.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___97177.fields["tileMap"]; + r0 = s.scene___165640.fields["tileMap"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_map"]; s.tmp_5 = r0; @@ -19567,11 +22752,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__P88807_mk(s); - r0 = s.scene___97177.fields["tileMap"]; + s.tmp_9 = tiles_TileMap_offsetY__P153806_mk(s); + r0 = s.scene___165640.fields["tileMap"]; s.tmp_9.arg0 = r0; s.tmp_9.arg1 = s.arg1; - s.callLocIdx = 805; s.pc = 6; return s.tmp_9; + s.callLocIdx = 944; s.pc = 6; return s.tmp_9; case 6: r0 = s.retval; s.tmp_8 = r0; @@ -19584,12 +22769,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Camera_offsetY__P88853.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__P153852.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__P88853_mk(s) { +function scene_Camera_offsetY__P153852_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetY__P88853, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetY__P153852, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19601,7 +22786,7 @@ function scene_Camera_offsetY__P88853_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - scene___97177: undefined, + scene___165640: undefined, arg0: undefined, arg1: undefined, } } @@ -19610,7 +22795,7 @@ function scene_Camera_offsetY__P88853_mk(s) { -function tiles_TileMap_offsetY__P88807(s) { +function tiles_TileMap_offsetY__P153806(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19626,38 +22811,38 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P86607_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P151606_mk(s); s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P86610_mk(s); - s.tmp_3 = tiles_TileMap_areaHeight__P88809_mk(s); + s.tmp_1 = Math_max__P151609_mk(s); + s.tmp_3 = tiles_TileMap_areaHeight__P153808_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 711; s.pc = 3; return s.tmp_3; + s.callLocIdx = 845; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___88287); + r0 = pxsim_ImageMethods.height(globals.screen___153286); s.tmp_4 = r0; r0 = (s.tmp_2 - s.tmp_4); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 0; - s.callLocIdx = 712; s.pc = 2; return s.tmp_1; + s.callLocIdx = 846; 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 = 713; s.pc = 1; return s.tmp_0; + s.callLocIdx = 847; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -tiles_TileMap_offsetY__P88807.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__P153806.info = {"start":6560,"length":123,"line":239,"column":8,"endLine":241,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetY","argumentNames":["this","value"]} -function tiles_TileMap_offsetY__P88807_mk(s) { +function tiles_TileMap_offsetY__P153806_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetY__P88807, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_offsetY__P153806, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19672,7 +22857,7 @@ function tiles_TileMap_offsetY__P88807_mk(s) { -function scene_Camera_offsetY__P88852(s) { +function scene_Camera_offsetY__P153851(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19687,18 +22872,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C88845_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C153844_VT)) failedCast(r0); r0 = s.arg0.fields["_offsetY"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_offsetY__P88852.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__P88852.isGetter = true; +scene_Camera_offsetY__P153851.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__P153851.isGetter = true; -function scene_Camera_offsetY__P88852_mk(s) { +function scene_Camera_offsetY__P153851_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetY__P88852, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetY__P153851, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -19707,7 +22892,7 @@ function scene_Camera_offsetY__P88852_mk(s) { -function scene_Camera_offsetX__P88851(s) { +function scene_Camera_offsetX__P153850(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19717,27 +22902,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___97211 = undefined; + s.scene___165674 = 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__C88845_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 800; s.pc = 5; return s.tmp_0; + if (!checkSubtype(r0, scene_Camera__C153844_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 939; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.scene___97211 = (r0); - r0 = s.scene___97211.fields["tileMap"]; + s.scene___165674 = (r0); + r0 = s.scene___165674.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___97211.fields["tileMap"]; + r0 = s.scene___165674.fields["tileMap"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_map"]; s.tmp_5 = r0; @@ -19754,11 +22939,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__P88806_mk(s); - r0 = s.scene___97211.fields["tileMap"]; + s.tmp_9 = tiles_TileMap_offsetX__P153805_mk(s); + r0 = s.scene___165674.fields["tileMap"]; s.tmp_9.arg0 = r0; s.tmp_9.arg1 = s.arg1; - s.callLocIdx = 802; s.pc = 6; return s.tmp_9; + s.callLocIdx = 941; s.pc = 6; return s.tmp_9; case 6: r0 = s.retval; s.tmp_8 = r0; @@ -19771,12 +22956,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Camera_offsetX__P88851.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__P153850.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__P88851_mk(s) { +function scene_Camera_offsetX__P153850_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetX__P88851, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetX__P153850, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19788,7 +22973,7 @@ function scene_Camera_offsetX__P88851_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - scene___97211: undefined, + scene___165674: undefined, arg0: undefined, arg1: undefined, } } @@ -19797,7 +22982,7 @@ function scene_Camera_offsetX__P88851_mk(s) { -function tiles_TileMap_offsetX__P88806(s) { +function tiles_TileMap_offsetX__P153805(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19813,38 +22998,38 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P86607_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P151606_mk(s); s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P86610_mk(s); - s.tmp_3 = tiles_TileMap_areaWidth__P88808_mk(s); + s.tmp_1 = Math_max__P151609_mk(s); + s.tmp_3 = tiles_TileMap_areaWidth__P153807_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 708; s.pc = 3; return s.tmp_3; + s.callLocIdx = 842; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___88287); + r0 = pxsim_ImageMethods.width(globals.screen___153286); s.tmp_4 = r0; r0 = (s.tmp_2 - s.tmp_4); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 0; - s.callLocIdx = 709; s.pc = 2; return s.tmp_1; + s.callLocIdx = 843; 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 = 710; s.pc = 1; return s.tmp_0; + s.callLocIdx = 844; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -tiles_TileMap_offsetX__P88806.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__P153805.info = {"start":6429,"length":121,"line":235,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetX","argumentNames":["this","value"]} -function tiles_TileMap_offsetX__P88806_mk(s) { +function tiles_TileMap_offsetX__P153805_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetX__P88806, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_offsetX__P153805, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19859,7 +23044,7 @@ function tiles_TileMap_offsetX__P88806_mk(s) { -function scene_Camera_offsetX__P88850(s) { +function scene_Camera_offsetX__P153849(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19874,18 +23059,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C88845_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C153844_VT)) failedCast(r0); r0 = s.arg0.fields["_offsetX"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_offsetX__P88850.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__P88850.isGetter = true; +scene_Camera_offsetX__P153849.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__P153849.isGetter = true; -function scene_Camera_offsetX__P88850_mk(s) { +function scene_Camera_offsetX__P153849_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetX__P88850, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetX__P153849, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -19894,7 +23079,7 @@ function scene_Camera_offsetX__P88850_mk(s) { -function PhysicsEngine_move__P88650(s) { +function PhysicsEngine_move__P153649(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19910,17 +23095,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C88644_VT)) failedCast(r0); + if (!checkSubtype(r0, PhysicsEngine__C153643_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_move__P88650.info = {"start":351,"length":20,"line":18,"column":4,"endLine":18,"endColumn":24,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} +PhysicsEngine_move__P153649.info = {"start":351,"length":20,"line":18,"column":4,"endLine":18,"endColumn":24,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} -function PhysicsEngine_move__P88650_mk(s) { +function PhysicsEngine_move__P153649_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_move__P88650, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_move__P153649, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -19930,7 +23115,7 @@ function PhysicsEngine_move__P88650_mk(s) { -function PhysicsEngine_draw__P88649(s) { +function PhysicsEngine_draw__P153648(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19945,17 +23130,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C88644_VT)) failedCast(r0); + if (!checkSubtype(r0, PhysicsEngine__C153643_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_draw__P88649.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} +PhysicsEngine_draw__P153648.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__P88649_mk(s) { +function PhysicsEngine_draw__P153648_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_draw__P88649, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_draw__P153648, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -19964,7 +23149,7 @@ function PhysicsEngine_draw__P88649_mk(s) { -function controller___update__P88435(s) { +function controller___update__P153434(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19974,7 +23159,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dtms___97448 = undefined; + s.dtms___165911 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -19982,35 +23167,35 @@ switch (step) { r0 = (s.arg0 * 1000); s.tmp_0 = r0; r0 = (s.tmp_0 | 0); - s.dtms___97448 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P97455); + s.dtms___165911 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P165918); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___97448); - s.tmp_1 = helpers_arrayForEach__P86592_mk(s); - s.tmp_2 = controller_players__P88403_mk(s); - s.callLocIdx = 199; s.pc = 2; return s.tmp_2; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___165911); + s.tmp_1 = helpers_arrayForEach__P151591_mk(s); + s.tmp_2 = controller_players__P153402_mk(s); + s.callLocIdx = 240; 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 = 201; s.pc = 1; return s.tmp_1; + s.callLocIdx = 242; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller___update__P88435.info = {"start":17961,"length":137,"line":550,"column":4,"endLine":553,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]} +controller___update__P153434.info = {"start":17961,"length":137,"line":550,"column":4,"endLine":553,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]} -function controller___update__P88435_mk(s) { +function controller___update__P153434_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller___update__P88435, depth: s.depth + 1, + parent: s, fn: controller___update__P153434, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - dtms___97448: undefined, + dtms___165911: undefined, arg0: undefined, } } @@ -20018,7 +23203,7 @@ function controller___update__P88435_mk(s) { -function inline__P97455(s) { +function inline__P165918(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20032,22 +23217,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = controller_Controller___update__P88433_mk(s); + s.tmp_0 = controller_Controller___update__P153432_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.caps[0]; - s.callLocIdx = 200; s.pc = 1; return s.tmp_0; + s.callLocIdx = 241; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P97455.info = {"start":18063,"length":27,"line":552,"column":26,"endLine":552,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +inline__P165918.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__P97455_mk(s) { +function inline__P165918_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P97455, depth: s.depth + 1, + parent: s, fn: inline__P165918, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -20057,7 +23242,7 @@ function inline__P97455_mk(s) { -function controller_Controller___update__P88433(s) { +function controller_Controller___update__P153432(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20073,7 +23258,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C88408_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C153407_VT)) failedCast(r0); r0 = pxsim_pxtrt.mklocRef(); s.tmp_0 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1); @@ -20084,26 +23269,26 @@ switch (step) { r0 = (s.tmp_3 | 0); s.tmp_2 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2); - r0 = pxsim_pxtcore_mkAction(1, inline__P97468); + r0 = pxsim_pxtcore_mkAction(1, inline__P165931); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayForEach__P86592_mk(s); + s.tmp_1 = helpers_arrayForEach__P151591_mk(s); r0 = s.arg0.fields["buttons"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 198; s.pc = 1; return s.tmp_1; + s.callLocIdx = 239; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller___update__P88433.info = {"start":17439,"length":124,"line":532,"column":8,"endLine":535,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} +controller_Controller___update__P153432.info = {"start":17439,"length":124,"line":532,"column":8,"endLine":535,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} -function controller_Controller___update__P88433_mk(s) { +function controller_Controller___update__P153432_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___update__P88433, depth: s.depth + 1, + parent: s, fn: controller_Controller___update__P153432, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20117,7 +23302,7 @@ function controller_Controller___update__P88433_mk(s) { -function inline__P97468(s) { +function inline__P165931(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20131,23 +23316,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = controller_Button___update__P88400_mk(s); + s.tmp_0 = controller_Button___update__P153399_mk(s); s.tmp_0.arg0 = s.arg0; r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); s.tmp_0.arg1 = r0; - s.callLocIdx = 197; s.pc = 1; return s.tmp_0; + s.callLocIdx = 238; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P97468.info = {"start":17526,"length":25,"line":534,"column":33,"endLine":534,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} +inline__P165931.info = {"start":17526,"length":25,"line":534,"column":33,"endLine":534,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} -function inline__P97468_mk(s) { +function inline__P165931_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P97468, depth: s.depth + 1, + parent: s, fn: inline__P165931, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -20157,7 +23342,7 @@ function inline__P97468_mk(s) { -function controller_Button___update__P88400(s) { +function controller_Button___update__P153399(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20167,16 +23352,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.delay___97484 = undefined; - s.interval___97493 = undefined; - s.count___97506 = undefined; + s.delay___165947 = undefined; + s.interval___165956 = undefined; + s.count___165969 = 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__C88388_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C153387_VT)) failedCast(r0); r0 = s.arg0.fields["_pressed"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -20200,31 +23385,31 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = globals.defaultRepeatDelay___90359; + r0 = globals.defaultRepeatDelay___155523; { step = 4; continue; } case 3: r0 = s.arg0.fields["repeatDelay"]; case 4: // jmp value (already in r0) s.tmp_2 = r0; - s.delay___97484 = (s.tmp_2); + s.delay___165947 = (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___90361; + r0 = globals.defaultRepeatInterval___155525; { step = 6; continue; } case 5: r0 = s.arg0.fields["repeatInterval"]; case 6: // jmp value (already in r0) s.tmp_2 = r0; - s.interval___97493 = (s.tmp_2); + s.interval___165956 = (s.tmp_2); r0 = s.arg0.fields["_pressedElasped"]; s.tmp_1 = r0; - r0 = (s.tmp_1 < s.delay___97484); + r0 = (s.tmp_1 < s.delay___165947); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } @@ -20233,26 +23418,26 @@ switch (step) { case 8: r0 = s.arg0.fields["_pressedElasped"]; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.delay___97484); + r0 = (s.tmp_5 - s.delay___165947); s.tmp_4 = r0; - r0 = (s.tmp_4 - s.interval___97493); + r0 = (s.tmp_4 - s.interval___165956); s.tmp_3 = r0; - r0 = (s.tmp_3 / s.interval___97493); + r0 = (s.tmp_3 / s.interval___165956); s.tmp_2 = r0; r0 = pxsim.Math_.floor(s.tmp_2); - s.count___97506 = (r0); + s.count___165969 = (r0); r0 = s.arg0.fields["_repeatCount"]; s.tmp_1 = r0; - r0 = (s.count___97506 != s.tmp_1); + r0 = (s.count___165969 != 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__P90366_mk(s); + s.tmp_2 = controller_Button_raiseButtonRepeat__P155530_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 147; s.pc = 12; return s.tmp_2; + s.callLocIdx = 188; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; - r0 = (s.arg0).fields["_repeatCount"] = (s.count___97506); + r0 = (s.arg0).fields["_repeatCount"] = (s.count___165969); case 9: case 10: case 11: @@ -20260,12 +23445,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button___update__P88400.info = {"start":5117,"length":704,"line":164,"column":8,"endLine":181,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} +controller_Button___update__P153399.info = {"start":5117,"length":704,"line":164,"column":8,"endLine":181,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} -function controller_Button___update__P88400_mk(s) { +function controller_Button___update__P153399_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button___update__P88400, depth: s.depth + 1, + parent: s, fn: controller_Button___update__P153399, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20273,9 +23458,9 @@ function controller_Button___update__P88400_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - delay___97484: undefined, - interval___97493: undefined, - count___97506: undefined, + delay___165947: undefined, + interval___165956: undefined, + count___165969: undefined, arg0: undefined, arg1: undefined, } } @@ -20284,7 +23469,7 @@ function controller_Button___update__P88400_mk(s) { -function controller_Button_raiseButtonRepeat__P90366(s) { +function controller_Button_raiseButtonRepeat__P155530(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20299,8 +23484,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C88388_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___90357); + if (!checkSubtype(r0, controller_Button__C153387_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___155521); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["id"]; s.tmp_0 = r0; @@ -20315,12 +23500,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonRepeat__P90366.info = {"start":2887,"length":211,"line":99,"column":8,"endLine":104,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]} +controller_Button_raiseButtonRepeat__P155530.info = {"start":2887,"length":211,"line":99,"column":8,"endLine":104,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]} -function controller_Button_raiseButtonRepeat__P90366_mk(s) { +function controller_Button_raiseButtonRepeat__P155530_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonRepeat__P90366, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonRepeat__P155530, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -20330,7 +23515,7 @@ function controller_Button_raiseButtonRepeat__P90366_mk(s) { -function controller_players__P88403(s) { +function controller_players__P153402(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20340,25 +23525,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller__player1__P88402_mk(s); - s.callLocIdx = 150; s.pc = 1; return s.tmp_0; + s.tmp_0 = controller__player1__P153401_mk(s); + s.callLocIdx = 191; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = helpers_arrayFilter__P86593_mk(s); - s.tmp_0.arg0 = globals._players___90370; - s.tmp_0.arg1 = inline__P97438; - s.callLocIdx = 151; s.pc = 2; return s.tmp_0; + s.tmp_0 = helpers_arrayFilter__P151592_mk(s); + s.tmp_0.arg0 = globals._players___155534; + s.tmp_0.arg1 = inline__P165901; + s.callLocIdx = 192; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; return leave(s, r0) default: oops() } } } -controller_players__P88403.info = {"start":7040,"length":144,"line":220,"column":4,"endLine":223,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} +controller_players__P153402.info = {"start":7040,"length":144,"line":220,"column":4,"endLine":223,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} -function controller_players__P88403_mk(s) { +function controller_players__P153402_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_players__P88403, depth: s.depth + 1, + parent: s, fn: controller_players__P153402, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -20367,7 +23552,7 @@ function controller_players__P88403_mk(s) { -function inline__P97438(s) { +function inline__P165901(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20391,12 +23576,260 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P97438.info = {"start":7162,"length":14,"line":222,"column":31,"endLine":222,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +inline__P165901.info = {"start":7162,"length":14,"line":222,"column":31,"endLine":222,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} + +function inline__P165901_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P165901, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, +} } + + + + + +function controller__player1__P153401(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + r0 = pxsim_numops_toBoolDecr(globals._players___155534); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_Array__getAt(globals._players___155534, 0); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C153407_VT); + s.tmp_5 = r0; + r0 = pxsim_Array__mk(); + s.tmp_6 = r0; + r0 = pxsim_Array__push(s.tmp_6, globals.left___153363); + r0 = pxsim_Array__push(s.tmp_6, globals.up___153364); + r0 = pxsim_Array__push(s.tmp_6, globals.right___153365); + r0 = pxsim_Array__push(s.tmp_6, globals.down___153366); + r0 = pxsim_Array__push(s.tmp_6, globals.A___153361); + r0 = pxsim_Array__push(s.tmp_6, globals.B___153362); + r0 = pxsim_Array__push(s.tmp_6, globals.menu___153367); + s.tmp_7 = controller_Controller_constructor__P153411_mk(s); + s.tmp_7.arg0 = s.tmp_5; + s.tmp_7.arg1 = 1; + s.tmp_7.arg2 = s.tmp_6; + s.callLocIdx = 190; s.pc = 5; return s.tmp_7; + case 5: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_Array__getAt(globals._players___155534, 0); + return leave(s, r0) + default: oops() +} } } +controller__player1__P153401.info = {"start":6776,"length":258,"line":214,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} + +function controller__player1__P153401_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller__player1__P153401, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, +} } + + + + + +function controller_Controller_constructor__P153411(s) { +let r0 = s.r0, 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.leftId___158156 = undefined; + s.i___158164 = undefined; + s.i___158182 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C153407_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.control.allocateNotifyEvent(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_id"] = (s.tmp_1); + r0 = (s.arg0).fields["_connected"] = (false); + r0 = (s.arg0).fields["playerIndex"] = (s.arg1); + r0 = (s.arg0).fields["analog"] = (false); + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 1; continue; } + r0 = (s.arg0).fields["buttons"] = (s.arg2); + { step = 4; continue; } + case 1: + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["buttons"] = (s.tmp_1); + r0 = s.arg0.fields["playerIndex"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = (s.tmp_1 * 7); + s.tmp_0 = r0; + r0 = (1 + s.tmp_0); + s.leftId___158156 = (r0); + s.i___158164 = (0); + case 2: + r0 = (s.i___158164 < 7); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C153387_VT); + s.tmp_1 = r0; + s.tmp_2 = controller_Button_constructor__P153393_mk(s); + s.tmp_2.arg0 = s.tmp_1; + r0 = (s.leftId___158156 + s.i___158164); + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = -1; + s.callLocIdx = 196; 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___158164 + 1); + s.i___158164 = (r0); + { step = 2; continue; } + case 3: + case 4: + s.i___158182 = (0); + case 5: + s.tmp_1 = r0 = s.i___158182; + r0 = s.arg0.fields["buttons"]; + s.tmp_3 = r0; + r0 = pxsim_Array__length(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + r0 = s.arg0.fields["buttons"]; + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(s.tmp_5, s.i___158182); + s.tmp_4 = r0; + r0 = (s.tmp_4).fields["_owner"] = (s.arg0); + r0 = (s.i___158182 + 1); + s.i___158182 = (r0); + { step = 5; continue; } + case 6: + s.tmp_0 = controller_addController__P155535_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 197; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_Controller_constructor__P153411.info = {"start":7849,"length":696,"line":249,"column":8,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","playerIndex","buttons"]} + +function controller_Controller_constructor__P153411_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Controller_constructor__P153411, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + leftId___158156: undefined, + i___158164: undefined, + i___158182: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function controller_addController__P155535(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_numops_toBoolDecr(globals._players___155534); + 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___155534 = (r0); + case 1: + case 2: + s.tmp_0 = r0 = globals._players___155534; + r0 = s.arg0.fields["playerIndex"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.arg0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_addController__P155535.info = {"start":6613,"length":157,"line":207,"column":4,"endLine":212,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} -function inline__P97438_mk(s) { +function controller_addController__P155535_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P97438, depth: s.depth + 1, + parent: s, fn: controller_addController__P155535, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20408,7 +23841,7 @@ function inline__P97438_mk(s) { -function controller__moveSprites__P88407(s) { +function controller__moveSprites__P153406(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20418,26 +23851,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = helpers_arrayForEach__P86592_mk(s); - s.tmp_1 = controller_players__P88403_mk(s); - s.callLocIdx = 152; s.pc = 2; return s.tmp_1; + s.tmp_0 = helpers_arrayForEach__P151591_mk(s); + s.tmp_1 = controller_players__P153402_mk(s); + s.callLocIdx = 193; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P97249; - s.callLocIdx = 154; s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = inline__P165712; + s.callLocIdx = 195; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller__moveSprites__P88407.info = {"start":7400,"length":182,"line":234,"column":4,"endLine":238,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]} +controller__moveSprites__P153406.info = {"start":7400,"length":182,"line":234,"column":4,"endLine":238,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]} -function controller__moveSprites__P88407_mk(s) { +function controller__moveSprites__P153406_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__moveSprites__P88407, depth: s.depth + 1, + parent: s, fn: controller__moveSprites__P153406, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20447,7 +23880,7 @@ function controller__moveSprites__P88407_mk(s) { -function inline__P97249(s) { +function inline__P165712(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20461,21 +23894,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = controller_Controller___preUpdate__P88432_mk(s); + s.tmp_0 = controller_Controller___preUpdate__P153431_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 153; s.pc = 1; return s.tmp_0; + s.callLocIdx = 194; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P97249.info = {"start":7548,"length":26,"line":237,"column":26,"endLine":237,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +inline__P165712.info = {"start":7548,"length":26,"line":237,"column":26,"endLine":237,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function inline__P97249_mk(s) { +function inline__P165712_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P97249, depth: s.depth + 1, + parent: s, fn: inline__P165712, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -20485,7 +23918,7 @@ function inline__P97249_mk(s) { -function controller_Controller___preUpdate__P88432(s) { +function controller_Controller___preUpdate__P153431(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20495,22 +23928,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.deadSprites___97256 = undefined; - s.svx___97257 = undefined; - s.svy___97258 = undefined; - s.svxInCricle___97293 = undefined; - s.svyInCircle___97295 = undefined; - s.sq___97297 = undefined; - s.scale___97312 = undefined; + s.deadSprites___165719 = undefined; + s.svx___165720 = undefined; + s.svy___165721 = undefined; + s.svxInCricle___165756 = undefined; + s.svyInCircle___165758 = undefined; + s.sq___165760 = undefined; + s.scale___165775 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C88408_VT)) failedCast(r0); - s.tmp_3 = controller_Controller__controlledSprites__P88413_mk(s); + if (!checkSubtype(r0, controller_Controller__C153407_VT)) failedCast(r0); + s.tmp_3 = controller_Controller__controlledSprites__P153412_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 172; s.pc = 18; return s.tmp_3; + s.callLocIdx = 213; s.pc = 18; return s.tmp_3; case 18: r0 = s.retval; s.tmp_2 = r0; @@ -20524,38 +23957,38 @@ switch (step) { case 1: case 2: r0 = pxsim_pxtrt.mklocRef(); - s.deadSprites___97256 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.deadSprites___97256, false); + s.deadSprites___165719 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.deadSprites___165719, false); r0 = pxsim_pxtrt.mklocRef(); - s.svx___97257 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svx___97257, 0); + s.svx___165720 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svx___165720, 0); r0 = pxsim_pxtrt.mklocRef(); - s.svy___97258 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svy___97258, 0); + s.svy___165721 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svy___165721, 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___97257; - s.tmp_5 = controller_Button_pressureLevel__P88398_mk(s); - s.tmp_6 = controller_Controller_right__P88418_mk(s); + s.tmp_1 = r0 = s.svx___165720; + s.tmp_5 = controller_Button_pressureLevel__P153397_mk(s); + s.tmp_6 = controller_Controller_right__P153417_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 173; s.pc = 20; return s.tmp_6; + s.callLocIdx = 214; s.pc = 20; return s.tmp_6; case 20: r0 = s.retval; s.tmp_5.arg0 = r0; - s.callLocIdx = 174; s.pc = 19; return s.tmp_5; + s.callLocIdx = 215; s.pc = 19; return s.tmp_5; case 19: r0 = s.retval; s.tmp_4 = r0; - s.tmp_8 = controller_Button_pressureLevel__P88398_mk(s); - s.tmp_9 = controller_Controller_left__P88417_mk(s); + s.tmp_8 = controller_Button_pressureLevel__P153397_mk(s); + s.tmp_9 = controller_Controller_left__P153416_mk(s); s.tmp_9.arg0 = s.arg0; - s.callLocIdx = 175; s.pc = 22; return s.tmp_9; + s.callLocIdx = 216; s.pc = 22; return s.tmp_9; case 22: r0 = s.retval; s.tmp_8.arg0 = r0; - s.callLocIdx = 176; s.pc = 21; return s.tmp_8; + s.callLocIdx = 217; s.pc = 21; return s.tmp_8; case 21: r0 = s.retval; s.tmp_7 = r0; @@ -20564,26 +23997,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___97258; - s.tmp_4 = controller_Button_pressureLevel__P88398_mk(s); - s.tmp_5 = controller_Controller_down__P88420_mk(s); + s.tmp_0 = r0 = s.svy___165721; + s.tmp_4 = controller_Button_pressureLevel__P153397_mk(s); + s.tmp_5 = controller_Controller_down__P153419_mk(s); s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 177; s.pc = 24; return s.tmp_5; + s.callLocIdx = 218; s.pc = 24; return s.tmp_5; case 24: r0 = s.retval; s.tmp_4.arg0 = r0; - s.callLocIdx = 178; s.pc = 23; return s.tmp_4; + s.callLocIdx = 219; s.pc = 23; return s.tmp_4; case 23: r0 = s.retval; s.tmp_3 = r0; - s.tmp_7 = controller_Button_pressureLevel__P88398_mk(s); - s.tmp_8 = controller_Controller_up__P88419_mk(s); + s.tmp_7 = controller_Button_pressureLevel__P153397_mk(s); + s.tmp_8 = controller_Controller_up__P153418_mk(s); s.tmp_8.arg0 = s.arg0; - s.callLocIdx = 179; s.pc = 26; return s.tmp_8; + s.callLocIdx = 220; s.pc = 26; return s.tmp_8; case 26: r0 = s.retval; s.tmp_7.arg0 = r0; - s.callLocIdx = 180; s.pc = 25; return s.tmp_7; + s.callLocIdx = 221; s.pc = 25; return s.tmp_7; case 25: r0 = s.retval; s.tmp_6 = r0; @@ -20594,14 +24027,14 @@ switch (step) { r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); { step = 12; continue; } case 3: - s.tmp_1 = controller_Button__C88388_v0_1_mk(s); - s.tmp_2 = controller_Controller_right__P88418_mk(s); + s.tmp_1 = controller_Button__C153387_v0_1_mk(s); + s.tmp_2 = controller_Controller_right__P153417_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 181; s.pc = 28; return s.tmp_2; + s.callLocIdx = 222; 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__C88388_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, controller_Button__C153387_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: @@ -20616,14 +24049,14 @@ switch (step) { case 5: // jmp value (already in r0) s.tmp_3 = r0; - s.tmp_5 = controller_Button__C88388_v0_1_mk(s); - s.tmp_6 = controller_Controller_left__P88417_mk(s); + s.tmp_5 = controller_Button__C153387_v0_1_mk(s); + s.tmp_6 = controller_Controller_left__P153416_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 182; s.pc = 30; return s.tmp_6; + s.callLocIdx = 223; 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__C88388_VT)) failedCast(s.tmp_5.arg0); + if (!checkSubtype(s.tmp_5.arg0, controller_Button__C153387_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: @@ -20638,18 +24071,18 @@ switch (step) { case 7: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.svx___97257; + s.tmp_8 = r0 = s.svx___165720; 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__C88388_v0_1_mk(s); - s.tmp_2 = controller_Controller_down__P88420_mk(s); + s.tmp_1 = controller_Button__C153387_v0_1_mk(s); + s.tmp_2 = controller_Controller_down__P153419_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 183; s.pc = 32; return s.tmp_2; + s.callLocIdx = 224; 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__C88388_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, controller_Button__C153387_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: @@ -20664,14 +24097,14 @@ switch (step) { case 9: // jmp value (already in r0) s.tmp_3 = r0; - s.tmp_5 = controller_Button__C88388_v0_1_mk(s); - s.tmp_6 = controller_Controller_up__P88419_mk(s); + s.tmp_5 = controller_Button__C153387_v0_1_mk(s); + s.tmp_6 = controller_Controller_up__P153418_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 184; s.pc = 34; return s.tmp_6; + s.callLocIdx = 225; 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__C88388_VT)) failedCast(s.tmp_5.arg0); + if (!checkSubtype(s.tmp_5.arg0, controller_Button__C153387_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: @@ -20686,57 +24119,57 @@ switch (step) { case 11: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.svy___97258; + s.tmp_8 = r0 = s.svy___165721; 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___97293 = (r0); - s.tmp_0 = r0 = s.svxInCricle___97293; - r0 = pxsim_pxtrt_ldlocRef(s.svx___97257); + s.svxInCricle___165756 = (r0); + s.tmp_0 = r0 = s.svxInCricle___165756; + r0 = pxsim_pxtrt_ldlocRef(s.svx___165720); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); r0 = pxsim_pxtrt.mklocRef(); - s.svyInCircle___97295 = (r0); - s.tmp_0 = r0 = s.svyInCircle___97295; - r0 = pxsim_pxtrt_ldlocRef(s.svy___97258); + s.svyInCircle___165758 = (r0); + s.tmp_0 = r0 = s.svyInCircle___165758; + r0 = pxsim_pxtrt_ldlocRef(s.svy___165721); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_ldlocRef(s.svx___97257); + r0 = pxsim_pxtrt_ldlocRef(s.svx___165720); s.tmp_1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svx___97257); + r0 = pxsim_pxtrt_ldlocRef(s.svx___165720); s.tmp_2 = r0; r0 = (s.tmp_1 * s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___97258); + r0 = pxsim_pxtrt_ldlocRef(s.svy___165721); s.tmp_4 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___97258); + r0 = pxsim_pxtrt_ldlocRef(s.svy___165721); s.tmp_5 = r0; r0 = (s.tmp_4 * s.tmp_5); s.tmp_3 = r0; r0 = (s.tmp_0 + s.tmp_3); - s.sq___97297 = (r0); - r0 = (s.sq___97297 > 65536); + s.sq___165760 = (r0); + r0 = (s.sq___165760 > 65536); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - r0 = (65536 / s.sq___97297); + r0 = (65536 / s.sq___165760); s.tmp_1 = r0; r0 = pxsim.Math_.sqrt(s.tmp_1); - s.scale___97312 = (r0); - s.tmp_0 = r0 = s.svxInCricle___97293; - s.tmp_3 = r0 = s.scale___97312; - r0 = pxsim_pxtrt_ldlocRef(s.svx___97257); + s.scale___165775 = (r0); + s.tmp_0 = r0 = s.svxInCricle___165756; + s.tmp_3 = r0 = s.scale___165775; + r0 = pxsim_pxtrt_ldlocRef(s.svx___165720); 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___97295; - s.tmp_3 = r0 = s.scale___97312; - r0 = pxsim_pxtrt_ldlocRef(s.svy___97258); + s.tmp_0 = r0 = s.svyInCircle___165758; + s.tmp_3 = r0 = s.scale___165775; + r0 = pxsim_pxtrt_ldlocRef(s.svy___165721); s.tmp_4 = r0; r0 = (s.tmp_3 * s.tmp_4); s.tmp_2 = r0; @@ -20745,43 +24178,43 @@ switch (step) { r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); case 13: case 14: - r0 = pxsim_pxtcore_mkAction(5, inline__P97330); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___97256); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___97257); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___97258); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___97293); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___97295); - s.tmp_1 = helpers_arrayForEach__P86592_mk(s); - s.tmp_2 = controller_Controller__controlledSprites__P88413_mk(s); + r0 = pxsim_pxtcore_mkAction(5, inline__P165793); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___165719); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___165720); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___165721); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___165756); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___165758); + s.tmp_1 = helpers_arrayForEach__P151591_mk(s); + s.tmp_2 = controller_Controller__controlledSprites__P153412_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 185; s.pc = 36; return s.tmp_2; + s.callLocIdx = 226; 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 = 193; s.pc = 35; return s.tmp_1; + s.callLocIdx = 234; s.pc = 35; return s.tmp_1; case 35: r0 = s.retval; - r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___97256); + r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___165719); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 15; continue; } - s.tmp_1 = controller_Controller__controlledSprites__P88414_mk(s); + s.tmp_1 = controller_Controller__controlledSprites__P153413_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = helpers_arrayFilter__P86593_mk(s); - s.tmp_3 = controller_Controller__controlledSprites__P88413_mk(s); + s.tmp_2 = helpers_arrayFilter__P151592_mk(s); + s.tmp_3 = controller_Controller__controlledSprites__P153412_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 194; s.pc = 39; return s.tmp_3; + s.callLocIdx = 235; s.pc = 39; return s.tmp_3; case 39: r0 = s.retval; s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = inline__P97387; - s.callLocIdx = 195; s.pc = 38; return s.tmp_2; + s.tmp_2.arg1 = inline__P165850; + s.callLocIdx = 236; s.pc = 38; return s.tmp_2; case 38: r0 = s.retval; s.tmp_1.arg1 = r0; - s.callLocIdx = 196; s.pc = 37; return s.tmp_1; + s.callLocIdx = 237; s.pc = 37; return s.tmp_1; case 37: r0 = s.retval; case 15: @@ -20791,12 +24224,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Controller___preUpdate__P88432.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__P153431.info = {"start":14894,"length":2535,"line":466,"column":8,"endLine":530,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]} -function controller_Controller___preUpdate__P88432_mk(s) { +function controller_Controller___preUpdate__P153431_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___preUpdate__P88432, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate__P153431, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20808,13 +24241,13 @@ function controller_Controller___preUpdate__P88432_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - deadSprites___97256: undefined, - svx___97257: undefined, - svy___97258: undefined, - svxInCricle___97293: undefined, - svyInCircle___97295: undefined, - sq___97297: undefined, - scale___97312: undefined, + deadSprites___165719: undefined, + svx___165720: undefined, + svy___165721: undefined, + svxInCricle___165756: undefined, + svyInCircle___165758: undefined, + sq___165760: undefined, + scale___165775: undefined, arg0: undefined, } } @@ -20822,7 +24255,7 @@ function controller_Controller___preUpdate__P88432_mk(s) { -function inline__P97330(s) { +function inline__P165793(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20832,9 +24265,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___97333 = undefined; - s.vx___97334 = undefined; - s.vy___97335 = undefined; + s.s___165796 = undefined; + s.vx___165797 = undefined; + s.vy___165798 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -20848,11 +24281,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 = 186; s.pc = 22; return s.tmp_0; } + else { s.callLocIdx = 227; s.pc = 22; return s.tmp_0; } } case 22: r0 = s.retval; - s.s___97333 = (r0); + s.s___165796 = (r0); s.tmp_2 = if_vx_1_mk(s); s.tmp_2.arg0 = s.tmp_1; if (!s.tmp_2.arg0.vtable.iface) { @@ -20861,11 +24294,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 = 187; s.pc = 23; return s.tmp_2; } + else { s.callLocIdx = 228; s.pc = 23; return s.tmp_2; } } case 23: r0 = s.retval; - s.vx___97334 = (r0); + s.vx___165797 = (r0); s.tmp_3 = if_vy_1_mk(s); s.tmp_3.arg0 = s.tmp_1; if (!s.tmp_3.arg0.vtable.iface) { @@ -20874,12 +24307,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 = 188; s.pc = 24; return s.tmp_3; } + else { s.callLocIdx = 229; s.pc = 24; return s.tmp_3; } } case 24: r0 = s.retval; - s.vy___97335 = (r0); - r0 = s.s___97333.fields["flags"]; + s.vy___165798 = (r0); + r0 = s.s___165796.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 2); s.tmp_0 = r0; @@ -20893,14 +24326,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___97334); + r0 = pxsim_numops_toBoolDecr(s.vx___165797); if (!r0) { step = 3; continue; } - r0 = (s.s___97333).fields["_vx"] = (0); + r0 = (s.s___165796).fields["_vx"] = (0); case 3: case 4: - r0 = pxsim_numops_toBoolDecr(s.vy___97335); + r0 = pxsim_numops_toBoolDecr(s.vy___165798); if (!r0) { step = 5; continue; } - r0 = (s.s___97333).fields["_vy"] = (0); + r0 = (s.s___165796).fields["_vy"] = (0); case 5: case 6: case 7: @@ -20918,48 +24351,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___97334; + s.tmp_2 = r0 = s.vx___165797; r0 = pxsim_numops_toBool(s.tmp_2); if (r0) { step = 11; continue; } r0 = s.tmp_2; { step = 12; continue; } case 11: - r0 = s.vy___97335; + r0 = s.vy___165798; 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___97333; + s.tmp_4 = r0 = s.s___165796; r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); s.tmp_6 = r0; - r0 = pxsim.Math_.imul(s.tmp_6, s.vx___97334); + r0 = pxsim.Math_.imul(s.tmp_6, s.vx___165797); s.tmp_5 = r0; r0 = (s.tmp_4).fields["_vx"] = (s.tmp_5); - s.tmp_0 = r0 = s.s___97333; + s.tmp_0 = r0 = s.s___165796; r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___97335); + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___165798); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); { step = 18; continue; } case 13: - r0 = pxsim_numops_toBoolDecr(s.vx___97334); + r0 = pxsim_numops_toBoolDecr(s.vx___165797); if (!r0) { step = 14; continue; } - s.tmp_0 = r0 = s.s___97333; + s.tmp_0 = r0 = s.s___165796; r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vx___97334); + r0 = pxsim.Math_.imul(s.tmp_2, s.vx___165797); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); { step = 17; continue; } case 14: - r0 = pxsim_numops_toBoolDecr(s.vy___97335); + r0 = pxsim_numops_toBoolDecr(s.vy___165798); if (!r0) { step = 15; continue; } - s.tmp_0 = r0 = s.s___97333; + s.tmp_0 = r0 = s.s___165796; r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___97335); + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___165798); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); case 15: @@ -20976,12 +24409,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P97330.info = {"start":16077,"length":1171,"line":497,"column":44,"endLine":525,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} +inline__P165793.info = {"start":16077,"length":1171,"line":497,"column":44,"endLine":525,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} -function inline__P97330_mk(s) { +function inline__P165793_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P97330, depth: s.depth + 1, + parent: s, fn: inline__P165793, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20990,9 +24423,9 @@ function inline__P97330_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - s___97333: undefined, - vx___97334: undefined, - vy___97335: undefined, + s___165796: undefined, + vx___165797: undefined, + vy___165798: undefined, arg0: undefined, } } @@ -21000,7 +24433,7 @@ function inline__P97330_mk(s) { -function inline__P97387(s) { +function inline__P165850(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21025,12 +24458,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P97387.info = {"start":17375,"length":42,"line":529,"column":28,"endLine":529,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]} +inline__P165850.info = {"start":17375,"length":42,"line":529,"column":28,"endLine":529,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]} -function inline__P97387_mk(s) { +function inline__P165850_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P97387, depth: s.depth + 1, + parent: s, fn: inline__P165850, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21042,7 +24475,7 @@ function inline__P97387_mk(s) { -function controller_Controller_down__P88420(s) { +function controller_Controller_down__P153419(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21057,7 +24490,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C88408_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C153407_VT)) failedCast(r0); r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; r0 = (4 - 1); @@ -21066,13 +24499,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_down__P88420.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__P88420.isGetter = true; +controller_Controller_down__P153419.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__P153419.isGetter = true; -function controller_Controller_down__P88420_mk(s) { +function controller_Controller_down__P153419_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_down__P88420, depth: s.depth + 1, + parent: s, fn: controller_Controller_down__P153419, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21083,7 +24516,7 @@ function controller_Controller_down__P88420_mk(s) { -function controller_Controller_button__P90372(s) { +function controller_Controller_button__P155536(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21099,7 +24532,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C88408_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C153407_VT)) failedCast(r0); r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; r0 = (s.arg1 - 1); @@ -21108,12 +24541,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Controller_button__P90372.info = {"start":11484,"length":105,"line":373,"column":8,"endLine":375,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"button","argumentNames":["this","button"]} +controller_Controller_button__P155536.info = {"start":11484,"length":105,"line":373,"column":8,"endLine":375,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"button","argumentNames":["this","button"]} -function controller_Controller_button__P90372_mk(s) { +function controller_Controller_button__P155536_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_button__P90372, depth: s.depth + 1, + parent: s, fn: controller_Controller_button__P155536, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21125,7 +24558,7 @@ function controller_Controller_button__P90372_mk(s) { -function controller_Controller_up__P88419(s) { +function controller_Controller_up__P153418(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21140,7 +24573,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C88408_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C153407_VT)) failedCast(r0); r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; r0 = (2 - 1); @@ -21149,13 +24582,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_up__P88419.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__P88419.isGetter = true; +controller_Controller_up__P153418.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__P153418.isGetter = true; -function controller_Controller_up__P88419_mk(s) { +function controller_Controller_up__P153418_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_up__P88419, depth: s.depth + 1, + parent: s, fn: controller_Controller_up__P153418, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21166,7 +24599,7 @@ function controller_Controller_up__P88419_mk(s) { -function controller_Controller_right__P88418(s) { +function controller_Controller_right__P153417(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21181,7 +24614,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C88408_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C153407_VT)) failedCast(r0); r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; r0 = (3 - 1); @@ -21190,13 +24623,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_right__P88418.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__P88418.isGetter = true; +controller_Controller_right__P153417.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__P153417.isGetter = true; -function controller_Controller_right__P88418_mk(s) { +function controller_Controller_right__P153417_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_right__P88418, depth: s.depth + 1, + parent: s, fn: controller_Controller_right__P153417, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21207,7 +24640,7 @@ function controller_Controller_right__P88418_mk(s) { -function controller_Controller_left__P88417(s) { +function controller_Controller_left__P153416(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21222,7 +24655,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C88408_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C153407_VT)) failedCast(r0); r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; r0 = (1 - 1); @@ -21231,13 +24664,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_left__P88417.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__P88417.isGetter = true; +controller_Controller_left__P153416.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__P153416.isGetter = true; -function controller_Controller_left__P88417_mk(s) { +function controller_Controller_left__P153416_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_left__P88417, depth: s.depth + 1, + parent: s, fn: controller_Controller_left__P153416, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21248,7 +24681,101 @@ function controller_Controller_left__P88417_mk(s) { -function controller_Button_pressureLevel__P88398(s) { +function controller_Controller__controlledSprites__P153413(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C153407_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P154016_mk(s); + s.callLocIdx = 199; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = r0.fields["controlledSprites"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["playerIndex"]; + s.tmp_2 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_2, s.arg1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_Controller__controlledSprites__P153413.info = {"start":8697,"length":134,"line":272,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this","cps"]} + +function controller_Controller__controlledSprites__P153413_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Controller__controlledSprites__P153413, 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__P153412(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C153407_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P154016_mk(s); + s.callLocIdx = 198; 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_Controller__controlledSprites__P153412.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__P153412.isGetter = true; + +function controller_Controller__controlledSprites__P153412_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Controller__controlledSprites__P153412, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, +} } + + + + + +function controller_Button_pressureLevel__P153397(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21263,16 +24790,16 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C88388_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C153387_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__C88388_v0_1_mk(s); + s.tmp_3 = controller_Button__C153387_v0_1_mk(s); s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C88388_VT)) failedCast(s.tmp_3.arg0); + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C153387_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: @@ -21301,12 +24828,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_pressureLevel__P88398.info = {"start":4279,"length":311,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"pressureLevel","argumentNames":["this"]} +controller_Button_pressureLevel__P153397.info = {"start":4279,"length":311,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"pressureLevel","argumentNames":["this"]} -function controller_Button_pressureLevel__P88398_mk(s) { +function controller_Button_pressureLevel__P153397_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_pressureLevel__P88398, depth: s.depth + 1, + parent: s, fn: controller_Button_pressureLevel__P153397, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21321,41 +24848,7 @@ function controller_Button_pressureLevel__P88398_mk(s) { -function controller_Button_isPressed__P88397(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C88388_VT)) failedCast(r0); - r0 = s.arg0.fields["_pressed"]; - return leave(s, r0) - default: oops() -} } } -controller_Button_isPressed__P88397.info = {"start":4129,"length":57,"line":132,"column":8,"endLine":134,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} - -function controller_Button_isPressed__P88397_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Button_isPressed__P88397, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function Fx_imul__P86641(s) { +function Fx_imul__P151640(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21374,12 +24867,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_imul__P86641.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__P151640.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__P86641_mk(s) { +function Fx_imul__P151640_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_imul__P86641, depth: s.depth + 1, + parent: s, fn: Fx_imul__P151640, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -21389,7 +24882,7 @@ function Fx_imul__P86641_mk(s) { -function power_checkDeepSleep__P88191(s) { +function power_checkDeepSleep__P153190(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21399,13 +24892,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___96155 = undefined; - s.to___96158 = undefined; - s.tmp_0 = power_init__P90271_mk(s); - s.callLocIdx = 75; s.pc = 11; return s.tmp_0; + s.p___164951 = undefined; + s.to___164954 = undefined; + s.tmp_0 = power_init__P155435_mk(s); + s.callLocIdx = 117; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; - s.tmp_0 = r0 = globals._poked___90269; + s.tmp_0 = r0 = globals._poked___155433; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; @@ -21415,8 +24908,8 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_1 = r0; - s.p___96155 = (s.tmp_1); - s.tmp_0 = r0 = globals._timeout___90270; + s.p___164951 = (s.tmp_1); + s.tmp_0 = r0 = globals._timeout___155434; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 3; continue; } r0 = s.tmp_0; @@ -21426,8 +24919,8 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_1 = r0; - s.to___96158 = (s.tmp_1); - r0 = (s.to___96158 > 0); + s.to___164954 = (s.tmp_1); + r0 = (s.to___164954 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 5; continue; } @@ -21436,9 +24929,9 @@ switch (step) { case 5: r0 = pxsim.control.millis(); s.tmp_2 = r0; - r0 = (s.tmp_2 - s.p___96155); + r0 = (s.tmp_2 - s.p___164951); s.tmp_1 = r0; - r0 = (s.tmp_1 > s.to___96158); + r0 = (s.tmp_1 > s.to___164954); case 6: // jmp value (already in r0) s.tmp_3 = r0; @@ -21464,12 +24957,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -power_checkDeepSleep__P88191.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]} +power_checkDeepSleep__P153190.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__P88191_mk(s) { +function power_checkDeepSleep__P153190_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_checkDeepSleep__P88191, depth: s.depth + 1, + parent: s, fn: power_checkDeepSleep__P153190, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21478,15 +24971,15 @@ function power_checkDeepSleep__P88191_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - p___96155: undefined, - to___96158: undefined, + p___164951: undefined, + to___164954: undefined, } } -function power_init__P90271(s) { +function power_init__P155435(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21496,7 +24989,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals._timeout___90270 !== undefined); + r0 = (globals._timeout___155434 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -21506,21 +24999,21 @@ switch (step) { r0 = pxsim_pxtcore.getConfig(212, -1); s.tmp_1 = r0; r0 = (s.tmp_1 * 1000); - globals._timeout___90270 = (r0); - r0 = (globals._timeout___90270 > 0); + globals._timeout___155434 = (r0); + r0 = (globals._timeout___155434 > 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___90270 < 300000); + r0 = (globals._timeout___155434 < 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___90270 = (300000); + globals._timeout___155434 = (300000); case 5: case 6: case 7: @@ -21528,12 +25021,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -power_init__P90271.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]} +power_init__P155435.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__P90271_mk(s) { +function power_init__P155435_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_init__P90271, depth: s.depth + 1, + parent: s, fn: power_init__P155435, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21543,7 +25036,7 @@ function power_init__P90271_mk(s) { -function power_poke__P88190(s) { +function power_poke__P153189(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21553,22 +25046,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = power_init__P90271_mk(s); - s.callLocIdx = 74; s.pc = 1; return s.tmp_0; + s.tmp_0 = power_init__P155435_mk(s); + s.callLocIdx = 116; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = pxsim.control.millis(); - globals._poked___90269 = (r0); + globals._poked___155433 = (r0); r0 = undefined; return leave(s, r0) default: oops() } } } -power_poke__P88190.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]} +power_poke__P153189.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__P88190_mk(s) { +function power_poke__P153189_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_poke__P88190, depth: s.depth + 1, + parent: s, fn: power_poke__P153189, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -21577,7 +25070,7 @@ function power_poke__P88190_mk(s) { -function control_EventContext_deltaTime__P86874(s) { +function control_EventContext_deltaTime__P151873(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21592,20 +25085,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C86869_VT)) failedCast(r0); + if (!checkSubtype(r0, control_EventContext__C151868_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__P86874.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__P86874.isGetter = true; +control_EventContext_deltaTime__P151873.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__P151873.isGetter = true; -function control_EventContext_deltaTime__P86874_mk(s) { +function control_EventContext_deltaTime__P151873_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_deltaTime__P86874, depth: s.depth + 1, + parent: s, fn: control_EventContext_deltaTime__P151873, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -21615,7 +25108,7 @@ function control_EventContext_deltaTime__P86874_mk(s) { -function scene_Scene_constructor__P88925(s) { +function scene_Scene_constructor__P153924(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21632,36 +25125,36 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C88904_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C153903_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__C88658_VT); + r0 = pxsim_pxtcore_mkClassInstance(ArcadePhysicsEngine__C153657_VT); s.tmp_0 = r0; - s.tmp_1 = ArcadePhysicsEngine_constructor__P88659_mk(s); + s.tmp_1 = ArcadePhysicsEngine_constructor__P153658_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 = 821; s.pc = 1; return s.tmp_1; + s.callLocIdx = 960; 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__C88845_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_Camera__C153844_VT); s.tmp_0 = r0; - s.tmp_1 = scene_Camera_constructor__P88849_mk(s); + s.tmp_1 = scene_Camera_constructor__P153848_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 822; s.pc = 2; return s.tmp_1; + s.callLocIdx = 961; 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__C88750_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_Background__C153749_VT); s.tmp_0 = r0; - s.tmp_1 = scene_Background_constructor__P88754_mk(s); + s.tmp_1 = scene_Background_constructor__P153753_mk(s); s.tmp_1.arg0 = s.tmp_0; r0 = s.arg0.fields["camera"]; s.tmp_1.arg1 = r0; - s.callLocIdx = 823; s.pc = 3; return s.tmp_1; + s.callLocIdx = 962; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; r0 = (s.arg0).fields["background"] = (s.tmp_0); @@ -21714,12 +25207,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Scene_constructor__P88925.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__P153924.info = {"start":3365,"length":793,"line":102,"column":8,"endLine":120,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","eventContext","previousScene"]} -function scene_Scene_constructor__P88925_mk(s) { +function scene_Scene_constructor__P153924_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_constructor__P88925, depth: s.depth + 1, + parent: s, fn: scene_Scene_constructor__P153924, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21732,7 +25225,7 @@ function scene_Scene_constructor__P88925_mk(s) { -function scene_Camera_constructor__P88849(s) { +function scene_Camera_constructor__P153848(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21747,7 +25240,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C88845_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C153844_VT)) failedCast(r0); r0 = (s.arg0).fields["_offsetX"] = (0); r0 = (s.arg0).fields["_offsetY"] = (0); r0 = (s.arg0).fields["drawOffsetX"] = (0); @@ -21756,12 +25249,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Camera_constructor__P88849.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__P153848.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__P88849_mk(s) { +function scene_Camera_constructor__P153848_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_constructor__P88849, depth: s.depth + 1, + parent: s, fn: scene_Camera_constructor__P153848, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -21770,7 +25263,7 @@ function scene_Camera_constructor__P88849_mk(s) { -function scene_Background_constructor__P88754(s) { +function scene_Background_constructor__P153753(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21786,7 +25279,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C88750_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Background__C153749_VT)) failedCast(r0); r0 = (s.arg0).fields["color"] = (0); r0 = (s.arg0).fields["camera"] = (s.arg1); s.tmp_0 = r0 = s.arg0; @@ -21797,12 +25290,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Background_constructor__P88754.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__P153753.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__P88754_mk(s) { +function scene_Background_constructor__P153753_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_constructor__P88754, depth: s.depth + 1, + parent: s, fn: scene_Background_constructor__P153753, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21814,7 +25307,7 @@ function scene_Background_constructor__P88754_mk(s) { -function ArcadePhysicsEngine_constructor__P88659(s) { +function ArcadePhysicsEngine_constructor__P153658(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21832,48 +25325,48 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C88658_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C153657_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__C88579_VT); + r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteMap__C153578_VT); s.tmp_0 = r0; - s.tmp_1 = sprites_SpriteMap_constructor__P88580_mk(s); + s.tmp_1 = sprites_SpriteMap_constructor__P153579_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 447; s.pc = 1; return s.tmp_1; + s.callLocIdx = 495; 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__P88661_mk(s); + s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P153660_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 448; s.pc = 2; return s.tmp_0; + s.callLocIdx = 496; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_maxStep__P88665_mk(s); + s.tmp_0 = ArcadePhysicsEngine_maxStep__P153664_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg3; - s.callLocIdx = 449; s.pc = 3; return s.tmp_0; + s.callLocIdx = 497; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_minStep__P88663_mk(s); + s.tmp_0 = ArcadePhysicsEngine_minStep__P153662_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 450; s.pc = 4; return s.tmp_0; + s.callLocIdx = 498; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_constructor__P88659.info = {"start":1330,"length":277,"line":55,"column":4,"endLine":62,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","maxVelocity","minSingleStep","maxSingleStep"]} +ArcadePhysicsEngine_constructor__P153658.info = {"start":1330,"length":277,"line":55,"column":4,"endLine":62,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","maxVelocity","minSingleStep","maxSingleStep"]} -function ArcadePhysicsEngine_constructor__P88659_mk(s) { +function ArcadePhysicsEngine_constructor__P153658_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_constructor__P88659, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_constructor__P153658, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21887,7 +25380,7 @@ function ArcadePhysicsEngine_constructor__P88659_mk(s) { -function ArcadePhysicsEngine_maxStep__P88665(s) { +function ArcadePhysicsEngine_maxStep__P153664(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21903,7 +25396,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C88658_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C153657_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -21914,12 +25407,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxStep__P88665.info = {"start":2058,"length":67,"line":85,"column":4,"endLine":87,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this","v"]} +ArcadePhysicsEngine_maxStep__P153664.info = {"start":2058,"length":67,"line":85,"column":4,"endLine":87,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this","v"]} -function ArcadePhysicsEngine_maxStep__P88665_mk(s) { +function ArcadePhysicsEngine_maxStep__P153664_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P88665, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxStep__P153664, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21932,7 +25425,7 @@ function ArcadePhysicsEngine_maxStep__P88665_mk(s) { -function ArcadePhysicsEngine_maxStep__P88664(s) { +function ArcadePhysicsEngine_maxStep__P153663(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21947,7 +25440,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C88658_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C153657_VT)) failedCast(r0); r0 = s.arg0.fields["maxSingleStep"]; s.tmp_0 = r0; r0 = (s.tmp_0 + 128); @@ -21956,13 +25449,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxStep__P88664.info = {"start":1978,"length":74,"line":81,"column":4,"endLine":83,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this"]} -ArcadePhysicsEngine_maxStep__P88664.isGetter = true; +ArcadePhysicsEngine_maxStep__P153663.info = {"start":1978,"length":74,"line":81,"column":4,"endLine":83,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this"]} +ArcadePhysicsEngine_maxStep__P153663.isGetter = true; -function ArcadePhysicsEngine_maxStep__P88664_mk(s) { +function ArcadePhysicsEngine_maxStep__P153663_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P88664, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxStep__P153663, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21973,7 +25466,7 @@ function ArcadePhysicsEngine_maxStep__P88664_mk(s) { -function Fx_toInt__P86650(s) { +function Fx_toInt__P151649(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21993,12 +25486,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_toInt__P86650.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__P151649.info = {"start":2144,"length":86,"line":68,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]} -function Fx_toInt__P86650_mk(s) { +function Fx_toInt__P151649_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toInt__P86650, depth: s.depth + 1, + parent: s, fn: Fx_toInt__P151649, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -22008,7 +25501,7 @@ function Fx_toInt__P86650_mk(s) { -function ArcadePhysicsEngine_minStep__P88663(s) { +function ArcadePhysicsEngine_minStep__P153662(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22024,7 +25517,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C88658_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C153657_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -22035,12 +25528,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_minStep__P88663.info = {"start":1905,"length":67,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this","v"]} +ArcadePhysicsEngine_minStep__P153662.info = {"start":1905,"length":67,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this","v"]} -function ArcadePhysicsEngine_minStep__P88663_mk(s) { +function ArcadePhysicsEngine_minStep__P153662_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P88663, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_minStep__P153662, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22053,7 +25546,7 @@ function ArcadePhysicsEngine_minStep__P88663_mk(s) { -function ArcadePhysicsEngine_minStep__P88662(s) { +function ArcadePhysicsEngine_minStep__P153661(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22068,7 +25561,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C88658_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C153657_VT)) failedCast(r0); r0 = s.arg0.fields["minSingleStep"]; s.tmp_0 = r0; r0 = (s.tmp_0 + 128); @@ -22077,13 +25570,511 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -ArcadePhysicsEngine_minStep__P88662.info = {"start":1825,"length":74,"line":73,"column":4,"endLine":75,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this"]} -ArcadePhysicsEngine_minStep__P88662.isGetter = true; +ArcadePhysicsEngine_minStep__P153661.info = {"start":1825,"length":74,"line":73,"column":4,"endLine":75,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this"]} +ArcadePhysicsEngine_minStep__P153661.isGetter = true; + +function ArcadePhysicsEngine_minStep__P153661_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: ArcadePhysicsEngine_minStep__P153661, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function ArcadePhysicsEngine_maxSpeed__P153660(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C153657_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["maxVelocity"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["maxVelocity"]; + s.tmp_2 = r0; + r0 = (0 - s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["maxNegativeVelocity"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +ArcadePhysicsEngine_maxSpeed__P153660.info = {"start":1692,"length":127,"line":68,"column":4,"endLine":71,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this","v"]} + +function ArcadePhysicsEngine_maxSpeed__P153660_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P153660, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Fx_neg__P151634(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = (0 - s.arg0); + return leave(s, r0) + default: oops() +} } } +Fx_neg__P151634.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__P151634_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_neg__P151634, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function ArcadePhysicsEngine_maxSpeed__P153659(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C153657_VT)) failedCast(r0); + r0 = s.arg0.fields["maxVelocity"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 128); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) + default: oops() +} } } +ArcadePhysicsEngine_maxSpeed__P153659.info = {"start":1613,"length":73,"line":64,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this"]} +ArcadePhysicsEngine_maxSpeed__P153659.isGetter = true; + +function ArcadePhysicsEngine_maxSpeed__P153659_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P153659, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function PhysicsEngine_constructor__P153644(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C153643_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +PhysicsEngine_constructor__P153644.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__P153644_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: PhysicsEngine_constructor__P153644, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function sprites_SpriteMap_constructor__P153579(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_SpriteMap__C153578_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["buckets"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +sprites_SpriteMap_constructor__P153579.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__P153579_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_SpriteMap_constructor__P153579, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function music_Melody_constructor__P153085(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, music_Melody__C153082_VT)) failedCast(r0); + r0 = (s.arg0).fields["_text"] = (s.arg1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +music_Melody_constructor__P153085.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__P153085_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: music_Melody_constructor__P153085, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, +} } + + + + + +function control_pushEventContext__P151882(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.ctx___166010 = undefined; + s.n___166016 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___155376); + 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___155376 = (r0); + case 1: + case 2: + s.tmp_0 = control_eventContext__P151881_mk(s); + s.callLocIdx = 62; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.ctx___166010 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___166010); + if (!r0) { step = 3; continue; } + s.tmp_0 = control_EventContext_unregister__P151875_mk(s); + s.tmp_0.arg0 = s.ctx___166010; + s.callLocIdx = 63; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C151868_VT); + s.tmp_0 = r0; + s.tmp_1 = control_EventContext_constructor__P151872_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 64; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + s.n___166016 = (s.tmp_0); + r0 = pxsim_Array__push(globals.eventContexts___155376, s.n___166016); + r0 = s.n___166016; + return leave(s, r0) + default: oops() +} } } +control_pushEventContext__P151882.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__P151882_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_pushEventContext__P151882, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + ctx___166010: undefined, + n___166016: undefined, +} } + + + + + +function control_EventContext_unregister__P151875(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.h___162514 = undefined; + s.unnamed1474___U1 = undefined; + s.unnamed1475___U2 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C151868_VT)) failedCast(r0); + s.h___162514 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed1474___U1 = (r0); + s.unnamed1475___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed1475___U2; + r0 = pxsim_Array__length(s.unnamed1474___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed1474___U1, s.unnamed1475___U2); + s.h___162514 = (r0); + s.tmp_2 = control_EventHandler_unregister__P155370_mk(s); + s.tmp_2.arg0 = s.h___162514; + s.callLocIdx = 58; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + r0 = (s.unnamed1475___U2 + 1); + s.unnamed1475___U2 = (r0); + { step = 1; continue; } + case 2: + s.unnamed1474___U1 = (undefined); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["frameWorker"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["frameWorker"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control_EventContext_unregister__P151875.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__P151875_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_EventContext_unregister__P151875, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + h___162514: undefined, + unnamed1474___U1: undefined, + unnamed1475___U2: undefined, + arg0: undefined, +} } + + + + + +function control_EventHandler_unregister__P155370(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, control_EventHandler__C155368_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__P155372, s.tmp_2); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control_EventHandler_unregister__P155370.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__P155370_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_EventHandler_unregister__P155370, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, +} } + + + + + +function control_doNothing__P155372(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control_doNothing__P155372.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__P155372_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_doNothing__P155372, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, +} } + + + + + +function control_EventContext_constructor__P151872(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C151868_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["handlers"] = (s.tmp_1); + r0 = (s.arg0).fields["framesInSample"] = (0); + r0 = (s.arg0).fields["timeInSample"] = (0); + r0 = (s.arg0).fields["deltaTimeMillis"] = (0); + r0 = (s.arg0).fields["frameWorker"] = (0); + r0 = (s.arg0).fields["idleCallbacks"] = (undefined); + r0 = pxsim_numops_toBoolDecr(globals.control_EventContext_lastStats___151870); + 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___151870 = (r0); + case 1: + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control_EventContext_constructor__P151872.info = {"start":1740,"length":347,"line":58,"column":8,"endLine":68,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} -function ArcadePhysicsEngine_minStep__P88662_mk(s) { +function control_EventContext_constructor__P151872_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P88662, depth: s.depth + 1, + parent: s, fn: control_EventContext_constructor__P151872, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22094,7 +26085,7 @@ function ArcadePhysicsEngine_minStep__P88662_mk(s) { -function ArcadePhysicsEngine_maxSpeed__P88661(s) { +function control_EventContext_registerFrameHandler__P151876(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22104,48 +26095,105 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.fn___164445 = undefined; + s.i___164454 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C88658_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + if (!checkSubtype(r0, control_EventContext__C151868_VT)) failedCast(r0); + r0 = s.arg0.fields["frameCallbacks"]; s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxVelocity"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["maxVelocity"]; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_3 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["frameCallbacks"] = (s.tmp_4); + s.tmp_0 = control_EventContext_registerFrameCallbacks__P155374_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 59; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + case 1: + case 2: + r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C151865_VT); + s.fn___164445 = (r0); + r0 = (s.fn___164445).fields["order"] = (s.arg1); + r0 = (s.fn___164445).fields["handler"] = (s.arg2); + s.i___164454 = (0); + case 3: + s.tmp_1 = r0 = s.i___164454; + r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_3 = r0; + r0 = pxsim_Array__length(s.tmp_3); s.tmp_2 = r0; - r0 = (0 - s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxNegativeVelocity"] = (s.tmp_1); - r0 = undefined; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_6 = r0; + r0 = pxsim_Array__getAt(s.tmp_6, s.i___164454); + r0 = r0.fields["order"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 > s.arg1); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 4; continue; } + r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_7 = r0; + r0 = pxsim_Array_.insertAt(s.tmp_7, s.i___164454, s.fn___164445); + r0 = s.fn___164445; + { step = 7; continue; } + case 4: + case 5: + r0 = (s.i___164454 + 1); + s.i___164454 = (r0); + { step = 3; continue; } + case 6: + r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.fn___164445); + r0 = s.fn___164445; + case 7: return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxSpeed__P88661.info = {"start":1692,"length":127,"line":68,"column":4,"endLine":71,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this","v"]} +control_EventContext_registerFrameHandler__P151876.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 ArcadePhysicsEngine_maxSpeed__P88661_mk(s) { +function control_EventContext_registerFrameHandler__P151876_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P88661, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameHandler__P151876, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + fn___164445: undefined, + i___164454: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function Fx_neg__P86635(s) { +function control_EventContext_registerFrameCallbacks__P155374(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22155,21 +26203,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.worker___162143 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (0 - s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C151868_VT)) failedCast(r0); + r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 3; continue; } + case 1: + case 2: + r0 = s.arg0.fields["frameWorker"]; + s.worker___162143 = (r0); + r0 = pxsim_pxtcore_mkAction(2, inline__P162149); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___162143); + r0 = pxsim.control.runInParallel(s.tmp_0); + case 3: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_neg__P86635.info = {"start":311,"length":88,"line":14,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"neg","argumentNames":["a"]} +control_EventContext_registerFrameCallbacks__P155374.info = {"start":3481,"length":895,"line":105,"column":8,"endLine":129,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} -function Fx_neg__P86635_mk(s) { +function control_EventContext_registerFrameCallbacks__P155374_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_neg__P86635, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks__P155374, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + worker___162143: undefined, arg0: undefined, } } @@ -22177,7 +26251,7 @@ function Fx_neg__P86635_mk(s) { -function ArcadePhysicsEngine_maxSpeed__P88660(s) { +function inline__P162149(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22187,38 +26261,73 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C88658_VT)) failedCast(r0); - r0 = s.arg0.fields["maxVelocity"]; + s.delay___162179 = undefined; + r0 = s.caps[0].fields["runningCallbacks"]; s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_pxtcore_mkAction(1, inline__P162155); s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - return leaveAccessor(s, r0) + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.caps[0]); + s.tmp_2 = pauseUntil__P151840_mk(s); + s.tmp_2.arg0 = s.tmp_1; + s.tmp_2.arg1 = undefined; + s.callLocIdx = 53; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; + case 1: + case 2: + r0 = (s.caps[0]).fields["runningCallbacks"] = (true); + r0 = (s.caps[0]).fields["framesInSample"] = (0); + r0 = (s.caps[0]).fields["timeInSample"] = (0); + r0 = (s.caps[0]).fields["deltaTimeMillis"] = (0); + s.tmp_0 = r0 = s.caps[0]; + r0 = pxsim.control.millis(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["prevTimeMillis"] = (s.tmp_1); + case 3: + r0 = s.caps[0].fields["frameWorker"]; + s.tmp_1 = r0; + r0 = (s.caps[1] == s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_2 = control_EventContext_runCallbacks__P155373_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.callLocIdx = 54; s.pc = 6; return s.tmp_2; + case 6: + r0 = s.retval; + s.delay___162179 = (r0); + s.tmp_0 = pause__P151886_mk(s); + s.tmp_0.arg0 = s.delay___162179; + s.callLocIdx = 55; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + { step = 3; continue; } + case 4: + r0 = (s.caps[0]).fields["runningCallbacks"] = (false); + r0 = undefined; + return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxSpeed__P88660.info = {"start":1613,"length":73,"line":64,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this"]} -ArcadePhysicsEngine_maxSpeed__P88660.isGetter = true; +inline__P162149.info = {"start":3642,"length":723,"line":109,"column":34,"endLine":128,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function ArcadePhysicsEngine_maxSpeed__P88660_mk(s) { +function inline__P162149_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P88660, depth: s.depth + 1, + parent: s, fn: inline__P162149, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, + tmp_2: undefined, + delay___162179: undefined, } } -function PhysicsEngine_constructor__P88645(s) { +function inline__P162155(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22228,31 +26337,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C88644_VT)) failedCast(r0); - r0 = undefined; + r0 = s.caps[0].fields["runningCallbacks"]; + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -PhysicsEngine_constructor__P88645.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]} +inline__P162155.info = {"start":3873,"length":28,"line":113,"column":31,"endLine":113,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function PhysicsEngine_constructor__P88645_mk(s) { +function inline__P162155_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_constructor__P88645, depth: s.depth + 1, + parent: s, fn: inline__P162155, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, + tmp_1: undefined, } } -function sprites_SpriteMap_constructor__P88580(s) { +function control_EventContext_runCallbacks__P155373(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22262,29 +26370,256 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.loopStart___162188 = undefined; + s.f___162201 = undefined; + s.unnamed1470___U2 = undefined; + s.unnamed1471___U3 = undefined; + s.runtime___162206 = undefined; + s.fps___162226 = undefined; + s.delay___162288 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C88579_VT)) failedCast(r0); + if (!checkSubtype(r0, control_EventContext__C151868_VT)) failedCast(r0); + r0 = pxsim.control.millis(); + s.loopStart___162188 = (r0); s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + r0 = s.arg0.fields["prevTimeMillis"]; + s.tmp_2 = r0; + r0 = (s.loopStart___162188 - s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["buckets"] = (s.tmp_1); - r0 = undefined; + r0 = (s.tmp_0).fields["deltaTimeMillis"] = (s.tmp_1); + r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___162188); + s.f___162201 = (undefined); + r0 = s.arg0.fields["frameCallbacks"]; + s.unnamed1470___U2 = (r0); + s.unnamed1471___U3 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed1471___U3; + r0 = pxsim_Array__length(s.unnamed1470___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed1470___U2, s.unnamed1471___U3); + s.f___162201 = (r0); + s.tmp_2 = if_handler_1_mk(s); + s.tmp_2.arg0 = s.f___162201; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 1); + s.callLocIdx = 50; s.pc = 13; return s.tmp_2; + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["handler"]; + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["handler"], 1); s.callLocIdx = 50; s.pc = 13; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 50; s.pc = 13; return s.tmp_2;; } + else { s.callLocIdx = 50; s.pc = 13; return s.tmp_2; } + } + case 13: + r0 = s.retval; + r0 = (s.unnamed1471___U3 + 1); + s.unnamed1471___U3 = (r0); + { step = 1; continue; } + case 2: + s.unnamed1470___U2 = (undefined); + r0 = pxsim.control.millis(); + s.tmp_0 = r0; + r0 = (s.tmp_0 - s.loopStart___162188); + s.runtime___162206 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["timeInSample"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.runtime___162206); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["timeInSample"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["framesInSample"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["framesInSample"] = (s.tmp_1); + r0 = s.arg0.fields["timeInSample"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 1000); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + r0 = s.arg0.fields["framesInSample"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 > 30); + case 4: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 11; continue; } + r0 = s.arg0.fields["framesInSample"]; + s.tmp_4 = r0; + r0 = s.arg0.fields["timeInSample"]; + s.tmp_6 = r0; + r0 = (s.tmp_6 / 1000); + s.tmp_5 = r0; + r0 = (s.tmp_4 / s.tmp_5); + s.fps___162226 = (r0); + r0 = pxsim.Math_.round(s.fps___162226); + s.tmp_1 = r0; + if ((s.tmp_1) && (s.tmp_1).vtable) { + setupResume(s, 14); + pxsim_String__stringConv(s.tmp_1); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_1) + ""; } + case 14: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_String__concat("fps:", s.tmp_0); + globals.control_EventContext_lastStats___151870 = (r0); + r0 = (s.fps___162226 < 99); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + if ((globals.control_EventContext_lastStats___151870) && (globals.control_EventContext_lastStats___151870).vtable) { + setupResume(s, 15); + pxsim_String__stringConv(globals.control_EventContext_lastStats___151870); + checkResumeConsumed(); + return; + } else { s.retval = (globals.control_EventContext_lastStats___151870) + ""; } + case 15: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.fps___162226 * 10); + s.tmp_7 = r0; + r0 = pxsim.Math_.round(s.tmp_7); + s.tmp_6 = r0; + r0 = (s.tmp_6 % 10); + s.tmp_5 = r0; + if ((s.tmp_5) && (s.tmp_5).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.tmp_5); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_5) + ""; } + case 16: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(".", s.tmp_4); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 17); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 17: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); + globals.control_EventContext_lastStats___151870 = (r0); + case 5: + case 6: + s.tmp_2 = control_ramSize__P151819_mk(s); + s.callLocIdx = 51; s.pc = 18; return s.tmp_2; + case 18: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 2000000); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } + case 7: + r0 = pxsim.control.profilingEnabled(); + case 8: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 9; continue; } + r0 = pxsim_String_.mkEmpty(); + s.tmp_8 = r0; + r0 = (s.fps___162226 * 100); + s.tmp_11 = r0; + r0 = (s.tmp_11 | 0); + s.tmp_10 = r0; + if ((s.tmp_10) && (s.tmp_10).vtable) { + setupResume(s, 19); + pxsim_String__stringConv(s.tmp_10); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_10) + ""; } + case 19: + r0 = s.retval; + s.tmp_9 = r0; + r0 = pxsim_String__concat(s.tmp_8, s.tmp_9); + s.tmp_7 = r0; + r0 = pxsim_String__concat(s.tmp_7, "/100 fps - "); + s.tmp_6 = r0; + r0 = s.arg0.fields["framesInSample"]; + s.tmp_13 = r0; + if ((s.tmp_13) && (s.tmp_13).vtable) { + setupResume(s, 20); + pxsim_String__stringConv(s.tmp_13); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_13) + ""; } + case 20: + r0 = s.retval; + s.tmp_12 = r0; + r0 = pxsim_String__concat(s.tmp_6, s.tmp_12); + s.tmp_5 = r0; + r0 = pxsim_String__concat(s.tmp_5, " frames"); + s.tmp_4 = r0; + r0 = pxsim.control.dmesg(s.tmp_4); + r0 = pxsim.control.gc(); + r0 = pxsim_pxtcore.dumpPerfCounters(); + case 9: + case 10: + r0 = (s.arg0).fields["timeInSample"] = (0); + r0 = (s.arg0).fields["framesInSample"] = (0); + case 11: + case 12: + s.tmp_0 = Math_max__P151609_mk(s); + s.tmp_0.arg0 = 1; + r0 = (20 - s.runtime___162206); + s.tmp_0.arg1 = r0; + s.callLocIdx = 52; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + s.delay___162288 = (r0); + r0 = s.delay___162288; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_constructor__P88580.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]} +control_EventContext_runCallbacks__P155373.info = {"start":2182,"length":1246,"line":74,"column":8,"endLine":102,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]} -function sprites_SpriteMap_constructor__P88580_mk(s) { +function control_EventContext_runCallbacks__P155373_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_constructor__P88580, depth: s.depth + 1, + parent: s, fn: control_EventContext_runCallbacks__P155373, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + loopStart___162188: undefined, + f___162201: undefined, + unnamed1470___U2: undefined, + unnamed1471___U3: undefined, + runtime___162206: undefined, + fps___162226: undefined, + delay___162288: undefined, arg0: undefined, } } @@ -22292,7 +26627,7 @@ function sprites_SpriteMap_constructor__P88580_mk(s) { -function music_Melody_constructor__P88086(s) { +function game_onUpdate__P154027(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22304,98 +26639,57 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C88083_VT)) failedCast(r0); - r0 = (s.arg0).fields["_text"] = (s.arg1); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -music_Melody_constructor__P88086.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__P88086_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: music_Melody_constructor__P88086, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, -} } - - - - - -function control_pushEventContext__P86883(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.ctx___97547 = undefined; - s.n___97553 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___90212); + s.tmp_0 = game_init__P155700_mk(s); + s.tmp_0.arg0 = undefined; + s.callLocIdx = 1075; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - globals.eventContexts___90212 = (r0); + { step = 3; continue; } case 1: case 2: - s.tmp_0 = control_eventContext__P86882_mk(s); - s.callLocIdx = 55; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.ctx___97547 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___97547); - if (!r0) { step = 3; continue; } - s.tmp_0 = control_EventContext_unregister__P86876_mk(s); - s.tmp_0.arg0 = s.ctx___97547; - s.callLocIdx = 56; s.pc = 6; return s.tmp_0; + s.tmp_2 = control_EventContext_registerFrameHandler__P151876_mk(s); + s.tmp_3 = game_eventContext__P154019_mk(s); + s.callLocIdx = 1076; s.pc = 6; return s.tmp_3; case 6: r0 = s.retval; - case 3: - case 4: - r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C86869_VT); - s.tmp_0 = r0; - s.tmp_1 = control_EventContext_constructor__P86873_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 57; s.pc = 7; return s.tmp_1; - case 7: + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 20; + s.tmp_2.arg2 = s.arg0; + s.callLocIdx = 1077; s.pc = 5; return s.tmp_2; + case 5: r0 = s.retval; - s.n___97553 = (s.tmp_0); - r0 = pxsim_Array__push(globals.eventContexts___90212, s.n___97553); - r0 = s.n___97553; + case 3: + r0 = undefined; return leave(s, r0) default: oops() } } } -control_pushEventContext__P86883.info = {"start":7123,"length":340,"line":216,"column":4,"endLine":227,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]} +game_onUpdate__P154027.info = {"start":7427,"length":169,"line":242,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdate","argumentNames":["a"]} -function control_pushEventContext__P86883_mk(s) { +function game_onUpdate__P154027_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_pushEventContext__P86883, depth: s.depth + 1, + parent: s, fn: game_onUpdate__P154027, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - ctx___97547: undefined, - n___97553: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, } } -function control_EventContext_unregister__P86876(s) { +function particles_ParticleSource_setFactory__P154181(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22405,68 +26699,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___97582 = undefined; - s.unnamed372___U1 = undefined; - s.unnamed373___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C86869_VT)) failedCast(r0); - s.h___97582 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed372___U1 = (r0); - s.unnamed373___U2 = (0); + if (!checkSubtype(r0, particles_ParticleSource__C154162_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 1; continue; } + r0 = (s.arg0).fields["_factory"] = (s.arg1); case 1: - s.tmp_0 = r0 = s.unnamed373___U2; - r0 = pxsim_Array__length(s.unnamed372___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed372___U1, s.unnamed373___U2); - s.h___97582 = (r0); - s.tmp_2 = control_EventHandler_unregister__P90206_mk(s); - s.tmp_2.arg0 = s.h___97582; - s.callLocIdx = 51; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - r0 = (s.unnamed373___U2 + 1); - s.unnamed373___U2 = (r0); - { step = 1; continue; } case 2: - s.unnamed372___U1 = (undefined); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["frameWorker"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["frameWorker"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_unregister__P86876.info = {"start":4534,"length":131,"line":137,"column":8,"endLine":141,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +particles_ParticleSource_setFactory__P154181.info = {"start":8107,"length":114,"line":271,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setFactory","argumentNames":["this","factory"]} -function control_EventContext_unregister__P86876_mk(s) { +function particles_ParticleSource_setFactory__P154181_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_unregister__P86876, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setFactory__P154181, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - h___97582: undefined, - unnamed372___U1: undefined, - unnamed373___U2: undefined, arg0: undefined, + arg1: undefined, } } -function control_EventHandler_unregister__P90206(s) { +function particles_ParticleSource_setRate__P154179(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22478,39 +26742,41 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C90204_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"]; + if (!checkSubtype(r0, particles_ParticleSource__C154162_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (1000 / s.arg1); s.tmp_2 = r0; - r0 = pxsim.control.internalOnEvent(s.tmp_0, s.tmp_1, control_doNothing__P90208, s.tmp_2); + r0 = pxsim.Math_.ceil(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["period"] = (s.tmp_1); + r0 = (s.arg0).fields["timer"] = (0); r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventHandler_unregister__P90206.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +particles_ParticleSource_setRate__P154179.info = {"start":7785,"length":139,"line":258,"column":8,"endLine":261,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRate","argumentNames":["this","particlesPerSecond"]} -function control_EventHandler_unregister__P90206_mk(s) { +function particles_ParticleSource_setRate__P154179_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_unregister__P90206, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRate__P154179, 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 control_doNothing__P90208(s) { +function particles_ParticleSource_setAnchor__P154178(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22520,24 +26786,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C154162_VT)) failedCast(r0); + r0 = (s.arg0).fields["anchor"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -control_doNothing__P90208.info = {"start":1254,"length":24,"line":41,"column":4,"endLine":41,"endColumn":28,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"doNothing","argumentNames":[]} +particles_ParticleSource_setAnchor__P154178.info = {"start":7577,"length":79,"line":250,"column":8,"endLine":252,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAnchor","argumentNames":["this","anchor"]} -function control_doNothing__P90208_mk(s) { +function particles_ParticleSource_setAnchor__P154178_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_doNothing__P90208, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAnchor__P154178, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, } } -function control_EventContext_constructor__P86873(s) { +function particles_ParticleSource_clear__P154177(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22552,39 +26828,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C86869_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["handlers"] = (s.tmp_1); - r0 = (s.arg0).fields["framesInSample"] = (0); - r0 = (s.arg0).fields["timeInSample"] = (0); - r0 = (s.arg0).fields["deltaTimeMillis"] = (0); - r0 = (s.arg0).fields["frameWorker"] = (0); - r0 = (s.arg0).fields["idleCallbacks"] = (undefined); - r0 = pxsim_numops_toBoolDecr(globals.control_EventContext_lastStats___86871); - 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___86871 = (r0); - case 1: - case 2: + if (!checkSubtype(r0, particles_ParticleSource__C154162_VT)) failedCast(r0); + r0 = (s.arg0).fields["head"] = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_constructor__P86873.info = {"start":1740,"length":347,"line":58,"column":8,"endLine":68,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} +particles_ParticleSource_clear__P154177.info = {"start":7407,"length":54,"line":242,"column":8,"endLine":244,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"clear","argumentNames":["this"]} -function control_EventContext_constructor__P86873_mk(s) { +function particles_ParticleSource_clear__P154177_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_constructor__P86873, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_clear__P154177, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -22592,7 +26848,7 @@ function control_EventContext_constructor__P86873_mk(s) { -function game_popScene__P89022(s) { +function particles_ParticleSource_destroy__P154176(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22602,84 +26858,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.oldScene___98394 = undefined; - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 871; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.oldScene___98394 = (r0); - s.tmp_0 = r0 = globals._sceneStack___90529; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C154162_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleSource_enabled__P154175_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = false; + s.callLocIdx = 1280; s.pc = 1; return s.tmp_0; case 1: - r0 = pxsim_Array__length(globals._sceneStack___90529); - 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___90529); - globals._scene___90528 = (r0); - s.tmp_0 = control_popEventContext__P86884_mk(s); - s.callLocIdx = 872; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - { step = 6; continue; } - case 3: - r0 = pxsim_numops_toBoolDecr(globals._scene___90528); - if (!r0) { step = 4; continue; } - s.tmp_0 = control_popEventContext__P86884_mk(s); - s.callLocIdx = 873; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - globals._scene___90528 = (undefined); - case 4: - case 5: - case 6: - r0 = pxsim_numops_toBoolDecr(globals._scene___90528); - if (!r0) { step = 7; continue; } - s.tmp_0 = particles_enableAll__P89195_mk(s); - s.callLocIdx = 874; s.pc = 14; return s.tmp_0; - case 14: r0 = s.retval; - case 7: - case 8: - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___90531); - if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P98415); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___98394); - s.tmp_1 = helpers_arrayForEach__P86592_mk(s); - s.tmp_1.arg0 = globals._scenePopHandlers___90531; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 876; s.pc = 15; return s.tmp_1; - case 15: + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["pFlags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | 2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); + s.tmp_0 = particles_ParticleSource__prune__P154170_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1281; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; - case 9: - case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -game_popScene__P89022.info = {"start":2033,"length":548,"line":75,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]} +particles_ParticleSource_destroy__P154176.info = {"start":7077,"length":240,"line":232,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]} -function game_popScene__P89022_mk(s) { +function particles_ParticleSource_destroy__P154176_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_popScene__P89022, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_destroy__P154176, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - oldScene___98394: undefined, + tmp_2: undefined, + arg0: undefined, } } -function inline__P98415(s) { +function particles_ParticleSource_enabled__P154175(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22691,35 +26914,66 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = lambda_2_mk(s); - s.tmp_0.argL = s.arg0; - s.tmp_0.arg0 = s.caps[0]; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 875; s.pc = 1; return s.tmp_0; - case 1: + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C154162_VT)) failedCast(r0); + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = particles_ParticleSource_enabled__P154174_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1279; s.pc = 5; return s.tmp_3; + case 5: r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 !== s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["pFlags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 | 1); + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["pFlags"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 ^ 1); + case 2: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = (s.arg0).fields["pFlags"] = (s.tmp_6); + r0 = (s.arg0).fields["timer"] = (0); + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P98415.info = {"start":2545,"length":18,"line":91,"column":38,"endLine":91,"endColumn":56,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} +particles_ParticleSource_enabled__P154175.info = {"start":6799,"length":214,"line":222,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this","v"]} -function inline__P98415_mk(s) { +function particles_ParticleSource_enabled__P154175_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98415, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_enabled__P154175, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, arg0: undefined, + arg1: undefined, } } -function particles_enableAll__P89195(s) { +function particles_ParticleSource_enabled__P154174(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22729,46 +26983,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___98419 = undefined; - s.tmp_0 = particles_particleSources__P90892_mk(s); - s.callLocIdx = 1121; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.sources___98419 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___98419); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P86592_mk(s); - s.tmp_0.arg0 = s.sources___98419; - s.tmp_0.arg1 = inline__P98425; - s.callLocIdx = 1123; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P90888_mk(s); - s.callLocIdx = 1124; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - case 1: - case 2: - r0 = undefined; - return leave(s, r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C154162_VT)) failedCast(r0); + r0 = s.arg0.fields["pFlags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 1); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + return leaveAccessor(s, r0) default: oops() } } } -particles_enableAll__P89195.info = {"start":12632,"length":193,"line":412,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]} +particles_ParticleSource_enabled__P154174.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__P154174.isGetter = true; -function particles_enableAll__P89195_mk(s) { +function particles_ParticleSource_enabled__P154174_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_enableAll__P89195, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_enabled__P154174, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___98419: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, } } -function inline__P98425(s) { +function helpers_arrayShift__P151584(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22782,24 +27037,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_enabled__P89176_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = true; - s.callLocIdx = 1122; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = true; + r0 = pxsim_Array_.removeAt(s.arg0, 0); return leave(s, r0) default: oops() } } } -inline__P98425.info = {"start":12756,"length":21,"line":415,"column":28,"endLine":415,"endColumn":49,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +helpers_arrayShift__P151584.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 inline__P98425_mk(s) { +function helpers_arrayShift__P151584_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98425, depth: s.depth + 1, + parent: s, fn: helpers_arrayShift__P151584, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -22807,7 +27055,7 @@ function inline__P98425_mk(s) { -function control_popEventContext__P86884(s) { +function particles_AshFactory_constructor__P154243(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22817,75 +27065,282 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___98432 = undefined; - s.context___98440 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___90212); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + s.counts___213483 = undefined; + s.i___213485 = undefined; + s.result___213494 = undefined; + s.x___213499 = undefined; + s.y___213505 = undefined; + s.c___213511 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_AshFactory__C154242_VT)) failedCast(r0); + s.tmp_1 = if_width_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, "width"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["width"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["width"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 35; s.pc = 20; return s.tmp_1; } + } + case 20: + r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 7; continue; } + s.tmp_2 = if_width_1_mk(s); + s.tmp_2.arg0 = s.arg1; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "width"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["width"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["width"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 36; s.pc = 21; return s.tmp_2; } + } + case 21: + r0 = s.retval; + { step = 2; continue; } case 1: + r0 = 8; case 2: - r0 = pxsim_Array_.pop(globals.eventContexts___90212); - s.ctx___98432 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___98432); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + // jmp value (already in r0) + s.tmp_3 = r0; + s.tmp_5 = if_height_1_mk(s); + s.tmp_5.arg0 = s.arg1; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "height"); + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["height"]; + if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["height"]; } + else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } + else { s.callLocIdx = 37; s.pc = 22; return s.tmp_5; } + } + case 22: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 3; continue; } - { step = 7; continue; } + s.tmp_7 = if_height_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, "height"); + } else { + s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["height"]; + if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["height"]; } + else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } + else { s.callLocIdx = 38; s.pc = 23; return s.tmp_7; } + } + case 23: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_6 >> 1); + { step = 4; continue; } case 3: + r0 = 8; case 4: - s.tmp_2 = control_EventContext_unregister__P86876_mk(s); - s.tmp_2.arg0 = s.ctx___98432; - s.callLocIdx = 58; s.pc = 8; return s.tmp_2; - case 8: + // jmp value (already in r0) + s.tmp_8 = r0; + s.tmp_9 = particles_AreaFactory_constructor__P154213_mk(s); + s.tmp_9.arg0 = s.arg0; + s.tmp_9.arg1 = s.tmp_3; + s.tmp_9.arg2 = s.tmp_8; + s.tmp_9.arg3 = 300; + s.tmp_9.arg4 = 700; + s.callLocIdx = 39; s.pc = 24; return s.tmp_9; + case 24: + r0 = s.retval; + s.tmp_3 = if_image_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, "image"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["image"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["image"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 40; s.pc = 25; return s.tmp_3; } + } + case 25: r0 = s.retval; - s.tmp_0 = r0 = globals.eventContexts___90212; - r0 = pxsim_Array__length(globals.eventContexts___90212); s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - s.context___98440 = (r0); - r0 = pxsim_numops_toBoolDecr(s.context___98440); + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_0 = control_EventContext_register__P86875_mk(s); - s.tmp_0.arg0 = s.context___98440; - s.callLocIdx = 59; s.pc = 9; return s.tmp_0; - case 9: + r0 = pxsim_pxtcore_mkClassInstance(particles_ColorCount__C156084_VT); + s.tmp_4 = r0; + s.tmp_5 = particles_ColorCount_constructor__P156085_mk(s); + s.tmp_5.arg0 = s.tmp_4; + s.tmp_5.arg1 = 1; + s.tmp_5.arg2 = 20; + s.callLocIdx = 41; s.pc = 26; return s.tmp_5; + case 26: r0 = s.retval; - { step = 6; continue; } + r0 = pxsim_Array__mk(); + s.tmp_6 = r0; + r0 = pxsim_Array__push(s.tmp_6, s.tmp_4); + r0 = (s.arg0).fields["colors"] = (s.tmp_6); + r0 = undefined; + { step = 19; continue; } case 5: - globals.eventContexts___90212 = (undefined); case 6: + r0 = pxsim_Array__mk(); + s.counts___213483 = (r0); + s.i___213485 = (0); case 7: + r0 = (s.i___213485 <= 15); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + r0 = pxsim_Array_.setAt(s.counts___213483, s.i___213485, 0); + r0 = (s.i___213485 + 1); + s.i___213485 = (r0); + { step = 7; continue; } + case 8: + s.tmp_1 = if_image_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, "image"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["image"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["image"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 42; s.pc = 27; return s.tmp_1; } + } + case 27: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.clone(s.tmp_0); + s.result___213494 = (r0); + s.x___213499 = (0); + case 9: + s.tmp_1 = r0 = s.x___213499; + r0 = pxsim_ImageMethods.width(s.result___213494); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + s.y___213505 = (0); + case 10: + s.tmp_1 = r0 = s.y___213505; + r0 = pxsim_ImageMethods.height(s.result___213494); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + r0 = pxsim_ImageMethods.getPixel(s.result___213494, s.x___213499, s.y___213505); + s.c___213511 = (r0); + s.tmp_0 = r0 = s.c___213511; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 11; continue; } + r0 = s.tmp_0; + { step = 12; continue; } + case 11: + s.tmp_1 = Math_FastRandom_percentChance__P154077_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.arg3; + s.callLocIdx = 43; s.pc = 28; return s.tmp_1; + case 28: + r0 = s.retval; + case 12: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 13; continue; } + s.tmp_3 = r0 = s.counts___213483; + s.tmp_4 = r0 = s.c___213511; + r0 = pxsim_Array__getAt(s.tmp_3, s.c___213511); + s.tmp_6 = r0; + r0 = (s.tmp_6 + 1); + s.tmp_5 = r0; + r0 = pxsim_Array_.setAt(s.tmp_3, s.tmp_4, s.tmp_5); + r0 = pxsim_ImageMethods.setPixel(s.result___213494, s.x___213499, s.y___213505, 0); + case 13: + case 14: + r0 = (s.y___213505 + 1); + s.y___213505 = (r0); + { step = 10; continue; } + case 15: + r0 = (s.x___213499 + 1); + s.x___213499 = (r0); + { step = 9; continue; } + case 16: + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 17; continue; } + s.tmp_0 = Sprite_setImage__P153540_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.result___213494; + s.callLocIdx = 44; s.pc = 29; return s.tmp_0; + case 29: + r0 = s.retval; + case 17: + case 18: + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = helpers_arrayFilter__P151592_mk(s); + s.tmp_3 = helpers_arrayMap__P151588_mk(s); + s.tmp_3.arg0 = s.counts___213483; + s.tmp_3.arg1 = inline__P213545; + s.callLocIdx = 46; s.pc = 31; return s.tmp_3; + case 31: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = inline__P213552; + s.callLocIdx = 47; s.pc = 30; return s.tmp_2; + case 30: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["colors"] = (s.tmp_1); r0 = undefined; + case 19: return leave(s, r0) default: oops() } } } -control_popEventContext__P86884.info = {"start":7568,"length":413,"line":232,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]} +particles_AshFactory_constructor__P154243.info = {"start":11775,"length":1466,"line":385,"column":8,"endLine":423,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","anchor","updateImage","percentKept"]} -function control_popEventContext__P86884_mk(s) { +function particles_AshFactory_constructor__P154243_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_popEventContext__P86884, depth: s.depth + 1, + parent: s, fn: particles_AshFactory_constructor__P154243, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - ctx___98432: undefined, - context___98440: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + counts___213483: undefined, + i___213485: undefined, + result___213494: undefined, + x___213499: undefined, + y___213505: undefined, + c___213511: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function control_EventContext_register__P86875(s) { +function inline__P213545(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22895,67 +27350,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___98453 = undefined; - s.unnamed370___U1 = undefined; - s.unnamed371___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C86869_VT)) failedCast(r0); - s.h___98453 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed370___U1 = (r0); - s.unnamed371___U2 = (0); + r0 = pxsim_pxtcore_mkClassInstance(particles_ColorCount__C156084_VT); + s.tmp_0 = r0; + s.tmp_1 = particles_ColorCount_constructor__P156085_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = s.arg0; + s.callLocIdx = 45; s.pc = 1; return s.tmp_1; case 1: - s.tmp_0 = r0 = s.unnamed371___U2; - r0 = pxsim_Array__length(s.unnamed370___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed370___U1, s.unnamed371___U2); - s.h___98453 = (r0); - s.tmp_2 = control_EventHandler_register__P90205_mk(s); - s.tmp_2.arg0 = s.h___98453; - s.callLocIdx = 49; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - r0 = (s.unnamed371___U2 + 1); - s.unnamed371___U2 = (r0); - { step = 1; continue; } - case 2: - s.unnamed370___U1 = (undefined); - s.tmp_0 = control_EventContext_registerFrameCallbacks__P90210_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 50; s.pc = 4; return s.tmp_0; - case 4: r0 = s.retval; - r0 = undefined; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -control_EventContext_register__P86875.info = {"start":4386,"length":138,"line":131,"column":8,"endLine":135,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} +inline__P213545.info = {"start":13124,"length":62,"line":421,"column":21,"endLine":421,"endColumn":83,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["value","index"]} -function control_EventContext_register__P86875_mk(s) { +function inline__P213545_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_register__P86875, depth: s.depth + 1, + parent: s, fn: inline__P213545, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - h___98453: undefined, - unnamed370___U1: undefined, - unnamed371___U2: undefined, arg0: undefined, + arg1: undefined, } } -function game_pushScene__P89021(s) { +function inline__P213552(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22965,70 +27395,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.oldScene___99754 = undefined; - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 865; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.oldScene___99754 = (r0); - s.tmp_0 = particles_clearAll__P89193_mk(s); - s.callLocIdx = 866; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = particles_disableAll__P89194_mk(s); - s.callLocIdx = 867; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._sceneStack___90529); - 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___90529 = (r0); - case 1: - case 2: - r0 = pxsim_Array__push(globals._sceneStack___90529, globals._scene___90528); - s.tmp_0 = game_init__P90536_mk(s); - s.tmp_0.arg0 = true; - s.callLocIdx = 868; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___90530); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P99771); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0.fields["count"]; s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___99754); - s.tmp_1 = helpers_arrayForEach__P86592_mk(s); - s.tmp_1.arg0 = globals._scenePushHandlers___90530; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 870; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - case 3: - case 4: - r0 = undefined; + r0 = (s.tmp_0 != 0); return leave(s, r0) default: oops() } } } -game_pushScene__P89021.info = {"start":1660,"length":367,"line":62,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"pushScene","argumentNames":[]} +inline__P213552.info = {"start":13212,"length":17,"line":422,"column":24,"endLine":422,"endColumn":41,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["v"]} -function game_pushScene__P89021_mk(s) { +function inline__P213552_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_pushScene__P89021, depth: s.depth + 1, + parent: s, fn: inline__P213552, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - oldScene___99754: undefined, + arg0: undefined, } } -function inline__P99771(s) { +function particles_ColorCount_constructor__P156085(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23040,84 +27432,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = lambda_2_mk(s); - s.tmp_0.argL = s.arg0; - s.tmp_0.arg0 = s.caps[0]; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 869; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, particles_ColorCount__C156084_VT)) failedCast(r0); + r0 = (s.arg0).fields["color"] = (s.arg1); + r0 = (s.arg0).fields["count"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P99771.info = {"start":1991,"length":18,"line":71,"column":39,"endLine":71,"endColumn":57,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} +particles_ColorCount_constructor__P156085.info = {"start":11603,"length":59,"line":379,"column":8,"endLine":379,"endColumn":67,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","color","count"]} -function inline__P99771_mk(s) { +function particles_ColorCount_constructor__P156085_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P99771, depth: s.depth + 1, + parent: s, fn: particles_ColorCount_constructor__P156085, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function particles_disableAll__P89194(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.sources___99775 = undefined; - s.tmp_0 = particles_particleSources__P90892_mk(s); - s.callLocIdx = 1117; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.sources___99775 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___99775); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P86592_mk(s); - s.tmp_0.arg0 = s.sources___99775; - s.tmp_0.arg1 = inline__P99781; - s.callLocIdx = 1119; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P90888_mk(s); - s.callLocIdx = 1120; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - case 1: - case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_disableAll__P89194.info = {"start":12353,"length":195,"line":401,"column":4,"endLine":407,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"disableAll","argumentNames":[]} - -function particles_disableAll__P89194_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_disableAll__P89194, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - sources___99775: undefined, -} } - - - - - -function inline__P99781(s) { +function Math_FastRandom_percentChance__P154077(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23129,34 +27472,41 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_enabled__P89176_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = false; - s.callLocIdx = 1118; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, Math_FastRandom__C154070_VT)) failedCast(r0); + s.tmp_1 = Math_FastRandom_randomRange__P154074_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = 0; + s.tmp_1.arg2 = 100; + s.callLocIdx = 25; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - r0 = false; + s.tmp_0 = r0; + r0 = (s.tmp_0 < s.arg1); return leave(s, r0) default: oops() } } } -inline__P99781.info = {"start":12478,"length":22,"line":404,"column":28,"endLine":404,"endColumn":50,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +Math_FastRandom_percentChance__P154077.info = {"start":2925,"length":106,"line":88,"column":8,"endLine":90,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"percentChance","argumentNames":["this","percent"]} -function inline__P99781_mk(s) { +function Math_FastRandom_percentChance__P154077_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P99781, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_percentChance__P154077, 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 particles_clearAll__P89193(s) { +function helpers_arrayMap__P151588(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23166,46 +27516,67 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___99786 = undefined; - s.tmp_0 = particles_particleSources__P90892_mk(s); - s.callLocIdx = 1113; s.pc = 3; return s.tmp_0; + s.res___170632 = undefined; + s.len___170634 = undefined; + s.i___170637 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim_Array__mk(); + s.res___170632 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___170634 = (r0); + s.i___170637 = (0); + case 1: + r0 = (s.i___170637 < s.len___170634); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = r0 = s.res___170632; + s.tmp_3 = lambda_3_mk(s); + s.tmp_3.argL = s.arg1; + r0 = pxsim_Array__getAt(s.arg0, s.i___170637); + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.i___170637; + setupLambda(s.tmp_3, s.tmp_3.argL); + s.callLocIdx = 4; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; - s.sources___99786 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___99786); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P86592_mk(s); - s.tmp_0.arg0 = s.sources___99786; - s.tmp_0.arg1 = inline__P99792; - s.callLocIdx = 1115; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P90888_mk(s); - s.callLocIdx = 1116; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - case 1: + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___170637 + 1); + s.i___170637 = (r0); + { step = 1; continue; } case 2: - r0 = undefined; + r0 = s.res___170632; return leave(s, r0) default: oops() } } } -particles_clearAll__P89193.info = {"start":12081,"length":185,"line":390,"column":4,"endLine":396,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"clearAll","argumentNames":[]} +helpers_arrayMap__P151588.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 particles_clearAll__P89193_mk(s) { +function helpers_arrayMap__P151588_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_clearAll__P89193, depth: s.depth + 1, + parent: s, fn: helpers_arrayMap__P151588, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___99786: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + res___170632: undefined, + len___170634: undefined, + i___170637: undefined, + arg0: undefined, + arg1: undefined, } } -function inline__P99792(s) { +function effects_ParticleEffect_constructor__P154274(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23217,33 +27588,38 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_clear__P89178_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1114; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, effects_ParticleEffect__C154273_VT)) failedCast(r0); + r0 = (s.arg0).fields["sourceFactory"] = (s.arg3); + r0 = (s.arg0).fields["defaultRate"] = (s.arg1); + r0 = (s.arg0).fields["defaultLifespan"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P99792.info = {"start":12204,"length":14,"line":393,"column":28,"endLine":393,"endColumn":42,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +effects_ParticleEffect_constructor__P154274.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 inline__P99792_mk(s) { +function effects_ParticleEffect_constructor__P154274_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P99792, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_constructor__P154274, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function game_waitAnyButton__P89019(s) { +function Sprite_destroy__P153571(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23253,41 +27629,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.__waitAnyButton___90532); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + r0 = s.arg0.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.__waitAnyButton___90532; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 189; s.pc = 3; return s.tmp_0; + { step = 5; continue; } + case 1: + case 2: + s.tmp_2 = r0 = s.arg0; + r0 = s.tmp_2.fields["flags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 | 2); + s.tmp_3 = r0; + 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__P154276_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 = 425; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + { step = 4; continue; } case 3: + s.tmp_0 = Sprite__destroyCore__P153572_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 426; s.pc = 7; return s.tmp_0; + case 7: r0 = s.retval; - { step = 2; continue; } - case 1: - s.tmp_0 = pause__P86887_mk(s); - s.tmp_0.arg0 = 3000; - s.callLocIdx = 190; s.pc = 4; return s.tmp_0; case 4: - r0 = s.retval; - case 2: + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -game_waitAnyButton__P89019.info = {"start":967,"length":111,"line":35,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"waitAnyButton","argumentNames":[]} +Sprite_destroy__P153571.info = {"start":28412,"length":293,"line":858,"column":4,"endLine":867,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]} -function game_waitAnyButton__P89019_mk(s) { +function Sprite_destroy__P153571_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_waitAnyButton__P89019, depth: s.depth + 1, + parent: s, fn: Sprite_destroy__P153571, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function game_GameOverDialog_update__P89004(s) { +function effects_ParticleEffect_destroy__P154276(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23299,54 +27708,86 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C89001_VT)) failedCast(r0); - s.tmp_0 = game_BaseDialog_clearInterior__P90503_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 183; s.pc = 3; return s.tmp_0; + if (!checkSubtype(r0, effects_ParticleEffect__C154273_VT)) failedCast(r0); + s.tmp_0 = Sprite_setFlag__P153563_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 1; + s.tmp_0.arg2 = true; + s.callLocIdx = 1369; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = game_GameOverDialog__C89001_v1_1_mk(s); + s.tmp_0 = effects_ParticleEffect_start__P154275_mk(s); s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, game_GameOverDialog__C89001_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.drawTextCore; - s.pc = 4; return s.tmp_0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg3; + s.tmp_0.arg3 = null; + r0 = s.arg1.fields["flags"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 & 512); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0.arg4 = r0; + s.callLocIdx = 1370; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - r0 = s.arg0.fields["cursorOn"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 1; continue; } - s.tmp_1 = game_BaseDialog_drawCursorRow__P88978_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 184; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; + r0 = s.arg2; + { step = 2; continue; } case 1: + r0 = s.arg0.fields["defaultLifespan"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 2); case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.arg1).fields["lifespan"] = (s.tmp_1); + s.tmp_0 = effects_ImageEffect_applyTo__P154302_mk(s); + s.tmp_0.arg0 = globals.dissolve___154305; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1371; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -game_GameOverDialog_update__P89004.info = {"start":11365,"length":173,"line":349,"column":8,"endLine":356,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"update","argumentNames":["this"]} +effects_ParticleEffect_destroy__P154276.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 game_GameOverDialog_update__P89004_mk(s) { +function effects_ParticleEffect_destroy__P154276_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_update__P89004, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_destroy__P154276, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function game_BaseDialog_clearInterior__P90503(s) { +function inline__P159627(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23356,104 +27797,105 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.d___189539 = undefined; - s.s___189546 = undefined; + s.i___159630 = undefined; + s.x___159641 = undefined; + s.y___159647 = undefined; + s.w___159653 = undefined; + s.h___159657 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C88962_VT)) failedCast(r0); - r0 = s.arg0.fields["unit"]; + r0 = pxsim_ImageMethods.width(s.arg0); s.tmp_1 = r0; - r0 = (s.tmp_1 == 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = game_BaseDialog_fastFill__P90502_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = 4; - s.tmp_2.arg2 = 1; - s.tmp_2.arg3 = 1; - r0 = s.arg0.fields["columns"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 - 2); - s.tmp_2.arg4 = r0; - r0 = s.arg0.fields["rows"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 - 2); - s.tmp_2.arg5 = r0; - s.callLocIdx = 179; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - { step = 7; continue; } - case 1: - case 2: - s.d___189539 = (1); - case 3: - s.tmp_1 = r0 = s.d___189539; - r0 = s.arg0.fields["columns"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 - 1); + r0 = pxsim_ImageMethods.height(s.arg0); s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = (s.tmp_1 * s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.s___189546 = (1); - case 4: - s.tmp_1 = r0 = s.s___189546; - r0 = s.arg0.fields["rows"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 - 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = (s.tmp_0 >> 5); + s.i___159630 = (r0); + case 1: + r0 = (s.i___159630 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_4 = game_BaseDialog_drawPartial__P90504_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = 4; - s.tmp_4.arg2 = s.d___189539; - s.tmp_4.arg3 = s.s___189546; - s.callLocIdx = 180; s.pc = 9; return s.tmp_4; - case 9: + if (!r0) { step = 2; continue; } + s.tmp_1 = Math_FastRandom_randomRange__P154074_mk(s); + s.tmp_1.arg0 = s.arg1; + s.tmp_1.arg1 = 0; + r0 = pxsim_ImageMethods.width(s.arg0); + s.tmp_1.arg2 = r0; + s.callLocIdx = 44; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - r0 = (s.s___189546 + 1); - s.s___189546 = (r0); - { step = 4; continue; } + s.x___159641 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P154074_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 0; + r0 = pxsim_ImageMethods.height(s.arg0); + s.tmp_0.arg2 = r0; + s.callLocIdx = 45; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.y___159647 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P154074_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 1; + s.tmp_0.arg2 = 3; + s.callLocIdx = 46; s.pc = 5; return s.tmp_0; case 5: - r0 = (s.d___189539 + 1); - s.d___189539 = (r0); - { step = 3; continue; } + r0 = s.retval; + s.w___159653 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P154074_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 1; + s.tmp_0.arg2 = 3; + s.callLocIdx = 47; s.pc = 6; return s.tmp_0; case 6: + r0 = s.retval; + s.h___159657 = (r0); + s.tmp_0 = helpers_imageDrawRect__P153215_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.x___159641; + s.tmp_0.arg2 = s.y___159647; + s.tmp_0.arg3 = s.w___159653; + s.tmp_0.arg4 = s.h___159657; + s.tmp_0.arg5 = 0; + s.callLocIdx = 48; s.pc = 7; return s.tmp_0; case 7: + r0 = s.retval; + r0 = (s.i___159630 - 1); + s.i___159630 = (r0); + { step = 1; continue; } + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_clearInterior__P90503.info = {"start":3911,"length":342,"line":132,"column":8,"endLine":141,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"clearInterior","argumentNames":["this"]} +inline__P159627.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 game_BaseDialog_clearInterior__P90503_mk(s) { +function inline__P159627_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_clearInterior__P90503, depth: s.depth + 1, + parent: s, fn: inline__P159627, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - d___189539: undefined, - s___189546: undefined, + i___159630: undefined, + x___159641: undefined, + y___159647: undefined, + w___159653: undefined, + h___159657: undefined, arg0: undefined, + arg1: undefined, } } -function game_BaseDialog_drawPartial__P90504(s) { +function effects_ImageEffect_applyTo__P154302(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23463,98 +27905,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x0___189564 = undefined; - s.y0___189572 = undefined; - s.xf___189580 = undefined; - s.yf___189587 = undefined; - s.e___189594 = undefined; - s.t___189600 = undefined; + s.clonedImage___159732 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C88962_VT)) failedCast(r0); - r0 = s.arg0.fields["innerLeft"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["unit"]; - s.tmp_2 = r0; - r0 = (s.arg2 * s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.x0___189564 = (r0); - r0 = s.arg0.fields["innerTop"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["unit"]; - s.tmp_2 = r0; - r0 = (s.arg3 * s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.y0___189572 = (r0); - r0 = (s.arg1 % 3); - s.tmp_0 = r0; - r0 = s.arg0.fields["unit"]; + if (!checkSubtype(r0, effects_ImageEffect__C154300_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; - r0 = (s.tmp_0 * s.tmp_1); - s.xf___189580 = (r0); - r0 = pxsim.Math_.idiv(s.arg1, 3); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = s.arg0.fields["unit"]; - s.tmp_1 = r0; - r0 = (s.tmp_0 * s.tmp_1); - s.yf___189587 = (r0); - s.e___189594 = (0); + 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["unit"]; - s.tmp_1 = r0; - r0 = (s.e___189594 < s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.t___189600 = (0); - case 2: - r0 = s.arg0.fields["unit"]; - s.tmp_1 = r0; - r0 = (s.t___189600 < s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.arg0.fields["image"]; - s.tmp_2 = r0; - r0 = (s.x0___189564 + s.e___189594); + r0 = s.arg1.fields["_image"]; s.tmp_3 = r0; - r0 = (s.y0___189572 + s.t___189600); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) s.tmp_4 = r0; - r0 = s.arg0.fields["frame"]; - s.tmp_6 = r0; - r0 = (s.xf___189580 + s.e___189594); - s.tmp_7 = r0; - r0 = (s.yf___189587 + s.t___189600); - s.tmp_8 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_6, s.tmp_7, s.tmp_8); - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_2, s.tmp_3, s.tmp_4, s.tmp_5); - r0 = (s.t___189600 + 1); - s.t___189600 = (r0); - { step = 2; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + { step = 5; continue; } case 3: - r0 = (s.e___189594 + 1); - s.e___189594 = (r0); - { step = 1; continue; } case 4: + r0 = s.arg1.fields["_image"]; + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.clone(s.tmp_5); + s.clonedImage___159732 = (r0); + s.tmp_0 = effects_ImageEffect_change__P154303_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.clonedImage___159732; + s.callLocIdx = 1390; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = Sprite_setImage__P153540_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.clonedImage___159732; + s.callLocIdx = 1391; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_drawPartial__P90504.info = {"start":4263,"length":604,"line":143,"column":8,"endLine":158,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawPartial","argumentNames":["this","index","colTo","rowTo"]} +effects_ImageEffect_applyTo__P154302.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 game_BaseDialog_drawPartial__P90504_mk(s) { +function effects_ImageEffect_applyTo__P154302_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_drawPartial__P90504, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_applyTo__P154302, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23562,26 +27969,16 @@ function game_BaseDialog_drawPartial__P90504_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - x0___189564: undefined, - y0___189572: undefined, - xf___189580: undefined, - yf___189587: undefined, - e___189594: undefined, - t___189600: undefined, + clonedImage___159732: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function game_BaseDialog_fastFill__P90502(s) { +function effects_ImageEffect_change__P154303(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23591,71 +27988,50 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.color___189636 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C88962_VT)) failedCast(r0); - r0 = s.arg0.fields["frame"]; - s.tmp_0 = r0; - r0 = (s.arg1 % 3); - s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.arg1, 3); - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_2); - s.color___189636 = (r0); - s.tmp_0 = helpers_imageFillRect__P88213_mk(s); - r0 = s.arg0.fields["image"]; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["innerLeft"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 + s.arg2); - s.tmp_0.arg1 = r0; - r0 = s.arg0.fields["innerTop"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.arg3); + if (!checkSubtype(r0, effects_ImageEffect__C154300_VT)) failedCast(r0); + s.tmp_0 = if_effect_3_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + r0 = s.arg0.fields["fastRandom"]; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.arg4; - s.tmp_0.arg4 = s.arg5; - s.tmp_0.arg5 = s.color___189636; - s.callLocIdx = 178; s.pc = 1; return s.tmp_0; + if (!s.tmp_0.arg0.vtable.iface) { + setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "effect"), 3); + s.callLocIdx = 1392; 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 = 1392; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1392; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 1392; s.pc = 1; return s.tmp_0; } + } case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_fastFill__P90502.info = {"start":3652,"length":249,"line":127,"column":8,"endLine":130,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"fastFill","argumentNames":["this","index","x","y","w","h"]} +effects_ImageEffect_change__P154303.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 game_BaseDialog_fastFill__P90502_mk(s) { +function effects_ImageEffect_change__P154303_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_fastFill__P90502, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_change__P154303, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - color___189636: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function game_GameOverDialog_drawTextCore__P89005(s) { +function effects_ParticleEffect_start__P154275(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23665,151 +28041,112 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scoreColor___189490 = undefined; + s.src___159979 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C89001_VT)) failedCast(r0); - r0 = s.arg0.fields["win"]; + if (!checkSubtype(r0, effects_ParticleEffect__C154273_VT)) failedCast(r0); + r0 = s.arg0.fields["sourceFactory"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = "YOU WIN!"; - { step = 2; continue; } + { step = 9; continue; } case 1: - r0 = "GAME OVER!"; case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.isMono(globals.screen___88287); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.arg3); if (!r0) { step = 3; continue; } - r0 = 1; + r0 = s.arg3; { step = 4; continue; } case 3: - r0 = 5; + r0 = s.arg0.fields["defaultRate"]; case 4: // jmp value (already in r0) s.tmp_3 = r0; - s.tmp_4 = helpers_imagePrintCenter__P88244_mk(s); - r0 = s.arg0.fields["image"]; - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.tmp_1; - s.tmp_4.arg2 = 8; - s.tmp_4.arg3 = s.tmp_3; - s.tmp_4.arg4 = globals.font8___88230; - s.callLocIdx = 185; s.pc = 11; return s.tmp_4; - case 11: + s.tmp_4 = if_sourceFactory_3_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = s.arg1; + 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 = 1367; 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 = 1367; s.pc = 10; return s.tmp_4; } + else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1367; s.pc = 10; return s.tmp_4;; } + else { s.callLocIdx = 1367; s.pc = 10; return s.tmp_4; } + } + case 10: r0 = s.retval; - r0 = s.arg0.fields["score"]; + s.src___159979 = (r0); + s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P154173_mk(s); + s.tmp_0.arg0 = s.src___159979; + r0 = pxsim_numops_toBoolDecr(s.arg4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1368; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 7; continue; } + r0 = (s.arg2 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = pxsim_ImageMethods.isMono(globals.screen___88287); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 5; continue; } - r0 = 1; + r0 = s.arg2; { step = 6; continue; } case 5: - r0 = 2; + r0 = s.arg0.fields["defaultLifespan"]; case 6: // jmp value (already in r0) - s.tmp_3 = r0; - s.scoreColor___189490 = (s.tmp_3); - s.tmp_0 = helpers_imagePrintCenter__P88244_mk(s); - r0 = s.arg0.fields["image"]; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["score"]; - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 13); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 13: - r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_String__concat("Score:", s.tmp_1); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 23; - s.tmp_0.arg3 = s.scoreColor___189490; - s.tmp_0.arg4 = globals.font8___88230; - s.callLocIdx = 186; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - r0 = s.arg0.fields["isNewHighScore"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_1 = helpers_imagePrintCenter__P88244_mk(s); - r0 = s.arg0.fields["image"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = "New High Score!"; - s.tmp_1.arg2 = 34; - s.tmp_1.arg3 = s.scoreColor___189490; - s.tmp_1.arg4 = globals.font5___88235; - s.callLocIdx = 187; s.pc = 14; return s.tmp_1; - case 14: - r0 = s.retval; - { step = 8; continue; } + r0 = (s.src___159979).fields["lifespan"] = (s.tmp_1); case 7: - s.tmp_0 = helpers_imagePrintCenter__P88244_mk(s); - r0 = s.arg0.fields["image"]; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["highScore"]; - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 16: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat("HI", s.tmp_1); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 34; - s.tmp_0.arg3 = s.scoreColor___189490; - s.tmp_0.arg4 = globals.font8___88230; - s.callLocIdx = 188; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; case 8: case 9: - case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -game_GameOverDialog_drawTextCore__P89005.info = {"start":11548,"length":1200,"line":358,"column":8,"endLine":395,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawTextCore","argumentNames":["this"]} +effects_ParticleEffect_start__P154275.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 game_GameOverDialog_drawTextCore__P89005_mk(s) { +function effects_ParticleEffect_start__P154275_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_drawTextCore__P89005, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_start__P154275, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - scoreColor___189490: undefined, + src___159979: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function helpers_imagePrintCenter__P88244(s) { +function particles_ParticleSource_setRelativeToCamera__P154173(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23819,92 +28156,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___98153 = undefined; - s.x___98159 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg4); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C154162_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } - s.tmp_2 = image_getFontForText__P88232_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 94; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - s.arg4 = (r0); - case 1: - case 2: - r0 = pxsim_String_.length(s.arg1); - s.tmp_0 = r0; - s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.arg4; - 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 = 95; s.pc = 4; return s.tmp_2; } - } - case 4: - r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["pFlags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | 4); s.tmp_1 = r0; - r0 = (s.tmp_0 * s.tmp_1); - s.w___98153 = (r0); - r0 = pxsim_ImageMethods.width(s.arg0); + r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); + { step = 2; continue; } + case 1: + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["pFlags"]; + s.tmp_4 = r0; + r0 = (~ s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 | 4); + s.tmp_2 = r0; + r0 = (~ s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 - s.w___98153); - s.tmp_0 = r0; - r0 = (s.tmp_0 / 2); - s.x___98159 = (r0); - s.tmp_0 = helpers_imagePrint__P88245_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.x___98159; - s.tmp_0.arg3 = s.arg2; - s.tmp_0.arg4 = s.arg3; - s.tmp_0.arg5 = s.arg4; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 96; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; + r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_imagePrintCenter__P88244.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"]} +particles_ParticleSource_setRelativeToCamera__P154173.info = {"start":6422,"length":173,"line":210,"column":8,"endLine":213,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRelativeToCamera","argumentNames":["this","on"]} -function helpers_imagePrintCenter__P88244_mk(s) { +function particles_ParticleSource_setRelativeToCamera__P154173_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrintCenter__P88244, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRelativeToCamera__P154173, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - w___98153: undefined, - x___98159: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function game_BaseDialog_drawCursorRow__P88978(s) { +function Sprite_setFlag__P153563(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23914,125 +28218,84 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.offset___189391 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C88962_VT)) failedCast(r0); - s.offset___189391 = (0); - r0 = s.arg0.fields["cursorCount"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 20); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 1; continue; } - s.offset___189391 = (1); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + { step = 2; continue; } case 1: - case 2: s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["cursorCount"]; + r0 = s.arg0.fields["flags"]; + s.tmp_4 = r0; + r0 = (~ s.tmp_4); s.tmp_3 = r0; - r0 = (s.tmp_3 + 1); + r0 = (s.tmp_3 | s.arg1); s.tmp_2 = r0; - r0 = (s.tmp_2 % 40); + r0 = (~ s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["cursorCount"] = (s.tmp_1); - r0 = s.arg0.fields["image"]; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + case 2: + r0 = (s.arg1 === 512); s.tmp_0 = r0; - r0 = s.arg0.fields["cursor"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["innerLeft"]; - s.tmp_6 = r0; - s.tmp_8 = game_BaseDialog_textAreaWidth__P90507_mk(s); - s.tmp_8.arg0 = s.arg0; - s.callLocIdx = 159; s.pc = 3; return s.tmp_8; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } case 3: - r0 = s.retval; - s.tmp_7 = r0; - r0 = (s.tmp_6 + s.tmp_7); - s.tmp_5 = r0; - r0 = s.arg0.fields["unit"]; - s.tmp_9 = r0; - r0 = (s.tmp_5 + s.tmp_9); - s.tmp_4 = r0; - r0 = (s.tmp_4 + s.offset___189391); - s.tmp_3 = r0; - r0 = s.arg0.fields["cursor"]; - s.tmp_11 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_11); - s.tmp_10 = r0; - r0 = (s.tmp_3 - s.tmp_10); - s.tmp_2 = r0; - r0 = s.arg0.fields["innerTop"]; - s.tmp_16 = r0; - r0 = s.arg0.fields["unit"]; - s.tmp_17 = r0; - r0 = (s.tmp_16 + s.tmp_17); - s.tmp_15 = r0; - s.tmp_19 = game_BaseDialog_textAreaHeight__P90508_mk(s); - s.tmp_19.arg0 = s.arg0; - s.callLocIdx = 160; s.pc = 4; return s.tmp_19; + 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__P153563_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 = 403; s.pc = 7; return s.tmp_2; + case 7: r0 = s.retval; - s.tmp_18 = r0; - r0 = (s.tmp_15 + s.tmp_18); - s.tmp_14 = r0; - r0 = (s.tmp_14 + 1); - s.tmp_13 = r0; - r0 = s.arg0.fields["cursor"]; - s.tmp_22 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_22); - s.tmp_21 = r0; - r0 = (s.tmp_21 + 1); - s.tmp_20 = r0; - r0 = (s.tmp_13 - s.tmp_20); - s.tmp_12 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_12); + case 5: + case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_drawCursorRow__P88978.info = {"start":1832,"length":479,"line":74,"column":8,"endLine":87,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawCursorRow","argumentNames":["this"]} +Sprite_setFlag__P153563.info = {"start":23896,"length":292,"line":731,"column":4,"endLine":738,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setFlag","argumentNames":["this","flag","on"]} -function game_BaseDialog_drawCursorRow__P88978_mk(s) { +function Sprite_setFlag__P153563_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_drawCursorRow__P88978, depth: s.depth + 1, + parent: s, fn: Sprite_setFlag__P153563, depth: s.depth + 1, pc: 0, retval: undefined, 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, - offset___189391: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function game_BaseDialog_textAreaHeight__P90508(s) { +function Sprite__destroyCore__P153572(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24042,36 +28305,130 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___159465 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C88962_VT)) failedCast(r0); - r0 = s.arg0.fields["image"]; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["flags"]; s.tmp_2 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_2); + r0 = (s.tmp_2 | 2); s.tmp_1 = r0; - r0 = s.arg0.fields["innerTop"]; - s.tmp_5 = r0; - r0 = s.arg0.fields["unit"]; - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_4 << 1); + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 427; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.scene___159465 = (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__P153571_mk(s); + r0 = s.arg0.fields["sayBubbleSprite"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = undefined; + s.tmp_1.arg2 = undefined; + s.callLocIdx = 428; s.pc = 10; return s.tmp_1; + case 10: + r0 = s.retval; + case 1: + case 2: + r0 = s.scene___159465.fields["allSprites"]; + s.tmp_0 = r0; + r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); + r0 = s.arg0.fields["_kind"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + r0 = s.scene___159465.fields["spritesByKind"]; + s.tmp_2 = r0; + r0 = s.arg0.fields["_kind"]; s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); + r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_2, s.tmp_3); + case 4: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 5; continue; } + s.tmp_5 = sprites_SpriteSet_remove__P153602_mk(s); + r0 = s.scene___159465.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 = 432; s.pc = 11; return s.tmp_5; + case 11: + r0 = s.retval; + case 5: + case 6: + s.tmp_0 = PhysicsEngine__C153643_v1_2_mk(s); + r0 = s.scene___159465.fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C153643_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: + r0 = s.retval; + r0 = s.arg0.fields["destroyHandler"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; 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 = 433; s.pc = 13; return s.tmp_1; + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["destroyHandler"]; + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["destroyHandler"], 1); s.callLocIdx = 433; s.pc = 13; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 433; s.pc = 13; return s.tmp_1;; } + else { s.callLocIdx = 433; s.pc = 13; return s.tmp_1; } + } + case 13: + r0 = s.retval; + case 7: + case 8: + r0 = pxsim_pxtcore_mkAction(1, inline__P159502); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtcore_mkAction(1, inline__P159509); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); + s.tmp_2 = helpers_arrayForEach__P151591_mk(s); + s.tmp_3 = helpers_arrayFilter__P151592_mk(s); + r0 = s.scene___159465.fields["destroyedHandlers"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.tmp_0; + s.callLocIdx = 435; s.pc = 15; return s.tmp_3; + case 15: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 437; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_textAreaHeight__P90508.info = {"start":5183,"length":117,"line":172,"column":8,"endLine":174,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"textAreaHeight","argumentNames":["this"]} +Sprite__destroyCore__P153572.info = {"start":28711,"length":693,"line":869,"column":4,"endLine":885,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]} -function game_BaseDialog_textAreaHeight__P90508_mk(s) { +function Sprite__destroyCore__P153572_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_textAreaHeight__P90508, depth: s.depth + 1, + parent: s, fn: Sprite__destroyCore__P153572, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -24080,6 +28437,8 @@ function game_BaseDialog_textAreaHeight__P90508_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, + tmp_7: undefined, + scene___159465: undefined, arg0: undefined, } } @@ -24087,7 +28446,7 @@ function game_BaseDialog_textAreaHeight__P90508_mk(s) { -function game_BaseDialog_textAreaWidth__P90507(s) { +function inline__P159502(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24101,40 +28460,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C88962_VT)) failedCast(r0); - r0 = s.arg0.fields["image"]; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_2); - s.tmp_1 = r0; - r0 = s.arg0.fields["innerLeft"]; - s.tmp_5 = r0; - r0 = s.arg0.fields["unit"]; - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_4 << 1); - s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); + r0 = s.arg0.fields["kind"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - 2); + r0 = s.caps[0].fields["_kind"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 == s.tmp_1); return leave(s, r0) default: oops() } } } -game_BaseDialog_textAreaWidth__P90507.info = {"start":5057,"length":116,"line":168,"column":8,"endLine":170,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"textAreaWidth","argumentNames":["this"]} +inline__P159502.info = {"start":29327,"length":26,"line":883,"column":20,"endLine":883,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function game_BaseDialog_textAreaWidth__P90507_mk(s) { +function inline__P159502_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_textAreaWidth__P90507, depth: s.depth + 1, + parent: s, fn: inline__P159502, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, arg0: undefined, } } @@ -24142,7 +28484,7 @@ function game_BaseDialog_textAreaWidth__P90507_mk(s) { -function game_BaseDialog_cursorRowHeight__P90505(s) { +function inline__P159509(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24156,25 +28498,32 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C88962_VT)) failedCast(r0); - r0 = s.arg0.fields["cursor"]; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_1); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); + s.tmp_0 = if_handler_2_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + if (!s.tmp_0.arg0.vtable.iface) { + setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); + s.callLocIdx = 436; 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 = 436; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 436; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 436; s.pc = 1; return s.tmp_0; } + } + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_cursorRowHeight__P90505.info = {"start":4877,"length":82,"line":160,"column":8,"endLine":162,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"cursorRowHeight","argumentNames":["this"]} +inline__P159509.info = {"start":29376,"length":20,"line":884,"column":21,"endLine":884,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function game_BaseDialog_cursorRowHeight__P90505_mk(s) { +function inline__P159509_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_cursorRowHeight__P90505, depth: s.depth + 1, + parent: s, fn: inline__P159509, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -24182,7 +28531,7 @@ function game_BaseDialog_cursorRowHeight__P90505_mk(s) { -function game_GameOverDialog_displayCursor__P89003(s) { +function PhysicsEngine_removeSprite__P153646(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24194,30 +28543,31 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C89001_VT)) failedCast(r0); - r0 = (s.arg0).fields["cursorOn"] = (true); + if (!checkSubtype(r0, PhysicsEngine__C153643_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -game_GameOverDialog_displayCursor__P89003.info = {"start":11294,"length":61,"line":345,"column":8,"endLine":347,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"displayCursor","argumentNames":["this"]} +PhysicsEngine_removeSprite__P153646.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 game_GameOverDialog_displayCursor__P89003_mk(s) { +function PhysicsEngine_removeSprite__P153646_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_displayCursor__P89003, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_removeSprite__P153646, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, + arg1: undefined, } } -function game_GameOverDialog_constructor__P89002(s) { +function Sprite_kind__P153554(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24229,66 +28579,29 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C89001_VT)) failedCast(r0); - r0 = (s.arg0).fields["win"] = (s.arg1); - r0 = (s.arg0).fields["score"] = (s.arg2); - r0 = (s.arg0).fields["highScore"] = (s.arg3); - s.tmp_0 = game_BaseDialog_constructor__P88974_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___88287); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 46; - s.tmp_1 = game_defaultSplashFrame__P90515_mk(s); - s.callLocIdx = 181; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = undefined; - s.tmp_0.arg5 = undefined; - s.callLocIdx = 182; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = (s.arg0).fields["cursorOn"] = (false); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["score"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["highScore"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 > s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["isNewHighScore"] = (s.tmp_1); - r0 = undefined; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + r0 = s.arg0.fields["_kind"]; return leave(s, r0) default: oops() } } } -game_GameOverDialog_constructor__P89002.info = {"start":10978,"length":306,"line":335,"column":8,"endLine":343,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["this","win","score","highScore"]} +Sprite_kind__P153554.info = {"start":10604,"length":41,"line":387,"column":4,"endLine":389,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"kind","argumentNames":["this"]} -function game_GameOverDialog_constructor__P89002_mk(s) { +function Sprite_kind__P153554_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_constructor__P89002, depth: s.depth + 1, + parent: s, fn: Sprite_kind__P153554, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function game_defaultSplashFrame__P90515(s) { +function controller_moveSprite__P153436(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24298,39 +28611,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_ImageMethods.isMono(globals.screen___88287); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.image.ofBuffer(_hex189679); - { step = 2; continue; } - case 1: - r0 = pxsim.image.ofBuffer(_hex189681); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + s.tmp_0 = controller_Controller_moveSprite__P153423_mk(s); + s.tmp_1 = controller__player1__P153401_mk(s); + s.callLocIdx = 243; s.pc = 2; return s.tmp_1; case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.tmp_1; + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.arg1; + s.tmp_0.arg3 = s.arg2; + s.callLocIdx = 244; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -game_defaultSplashFrame__P90515.info = {"start":16870,"length":220,"line":528,"column":4,"endLine":541,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultSplashFrame","argumentNames":[]} +controller_moveSprite__P153436.info = {"start":18919,"length":133,"line":574,"column":4,"endLine":576,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"moveSprite","argumentNames":["sprite","vx","vy"]} -function game_defaultSplashFrame__P90515_mk(s) { +function controller_moveSprite__P153436_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_defaultSplashFrame__P90515, depth: s.depth + 1, + parent: s, fn: controller_moveSprite__P153436, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -const _hex189679 = pxsim.BufferMethods.createBufferFromHex("8704030003000000010100000101000001010000") -const _hex189681 = pxsim.BufferMethods.createBufferFromHex("8704030003000000f1010000f1010000f1010000") -function game_BaseDialog_constructor__P88974(s) { +function controller_Controller_moveSprite__P153423(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24340,170 +28661,144 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.cp___158219 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C88962_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.image.create(s.arg1, s.arg2); + if (!checkSubtype(r0, controller_Controller__C153407_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["image"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg3; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + { step = 15; continue; } case 1: - r0 = globals.dialogFrame___90498; 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 = game_defaultFrame__P90514_mk(s); - s.callLocIdx = 153; s.pc = 13; return s.tmp_3; - case 13: + s.tmp_5 = controller_Controller__controlledSprites__P153412_mk(s); + s.tmp_5.arg0 = s.arg0; + s.callLocIdx = 204; s.pc = 16; return s.tmp_5; + case 16: r0 = s.retval; + 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; - globals.dialogFrame___90498 = (r0); - r0 = s.tmp_2; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + s.tmp_6 = controller_Controller__controlledSprites__P153413_mk(s); + s.tmp_6.arg0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_6.arg1 = r0; + s.callLocIdx = 205; s.pc = 17; return s.tmp_6; + case 17: + r0 = s.retval; + case 3: case 4: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = (s.arg0).fields["frame"] = (s.tmp_4); - s.tmp_0 = r0 = s.arg4; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_pxtcore_mkAction(1, inline__P158222); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + s.tmp_1 = helpers_arrayFind__P151593_mk(s); + s.tmp_2 = controller_Controller__controlledSprites__P153412_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 206; s.pc = 19; return s.tmp_2; + case 19: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 207; s.pc = 18; return s.tmp_1; + case 18: + r0 = s.retval; + s.cp___158219 = (r0); + r0 = pxsim_numops_toBoolDecr(s.cp___158219); + 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 = s.tmp_0; - { step = 6; continue; } + r0 = pxsim_pxtcore_mkClassInstance(controller_ControlledSprite__C153403_VT); + s.tmp_2 = r0; + s.tmp_3 = controller_ControlledSprite_constructor__P153405_mk(s); + s.tmp_3.arg0 = s.tmp_2; + s.tmp_3.arg1 = s.arg1; + s.tmp_3.arg2 = s.arg2; + s.tmp_3.arg3 = s.arg3; + s.callLocIdx = 208; s.pc = 20; return s.tmp_3; + case 20: + r0 = s.retval; + s.cp___158219 = (s.tmp_2); + s.tmp_1 = controller_Controller__controlledSprites__P153412_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 209; s.pc = 21; return s.tmp_1; + case 21: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.cp___158219); case 5: - r0 = globals.font8___88230; case 6: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.arg0).fields["font"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg5; + r0 = s.cp___158219.fields["vx"]; + s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 7; continue; } + if (r0) { step = 7; continue; } r0 = s.tmp_0; { step = 8; continue; } case 7: - r0 = globals.dialogCursor___90499; + r0 = (s.arg2 == 0); case 8: // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 9; continue; } - r0 = s.tmp_1; - { step = 10; continue; } - case 9: - s.tmp_3 = game_defaultCursorImage__P90516_mk(s); - s.callLocIdx = 154; s.pc = 14; return s.tmp_3; - case 14: + s.tmp_2 = Sprite_vx__P153514_mk(s); + r0 = s.cp___158219.fields["s"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 0; + s.callLocIdx = 210; s.pc = 22; return s.tmp_2; + case 22: r0 = s.retval; - s.tmp_2 = r0; - globals.dialogCursor___90499 = (r0); - r0 = s.tmp_2; + case 9: case 10: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = (s.arg0).fields["cursor"] = (s.tmp_4); - r0 = (globals.dialogTextColor___90500 == undefined); + r0 = s.cp___158219.fields["vy"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - globals.dialogTextColor___90500 = (15); - r0 = 15; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 11; continue; } + r0 = s.tmp_0; { step = 12; continue; } case 11: - r0 = globals.dialogTextColor___90500; + r0 = (s.arg3 == 0); case 12: // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.arg0).fields["textColor"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["frame"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 / 3); - s.tmp_2 = r0; - r0 = pxsim.Math_.floor(s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["unit"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["unit"]; - s.tmp_3 = r0; - r0 = (s.arg1 / s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim.Math_.floor(s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["columns"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["unit"]; - s.tmp_3 = r0; - r0 = (s.arg2 / s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim.Math_.floor(s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["rows"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = r0 = s.arg1; - r0 = s.arg0.fields["columns"]; - s.tmp_5 = r0; - r0 = s.arg0.fields["unit"]; - s.tmp_6 = r0; - r0 = (s.tmp_5 * s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_3 - s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["innerLeft"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = r0 = s.arg2; - r0 = s.arg0.fields["rows"]; - s.tmp_5 = r0; - r0 = s.arg0.fields["unit"]; - s.tmp_6 = r0; - r0 = (s.tmp_5 * s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_3 - s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["innerTop"] = (s.tmp_1); - r0 = (s.arg0).fields["cursorCount"] = (0); - s.tmp_0 = game_BaseDialog_drawBorder__P90501_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 155; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_clearInterior__P90503_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 156; s.pc = 16; return s.tmp_0; - case 16: + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 13; continue; } + s.tmp_2 = Sprite_vy__P153516_mk(s); + r0 = s.cp___158219.fields["s"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 0; + s.callLocIdx = 211; s.pc = 23; return s.tmp_2; + case 23: r0 = s.retval; + case 13: + case 14: + r0 = (s.cp___158219).fields["vx"] = (s.arg2); + r0 = (s.cp___158219).fields["vy"] = (s.arg3); + case 15: r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_constructor__P88974.info = {"start":634,"length":895,"line":36,"column":8,"endLine":58,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["this","width","height","frame","font","cursor"]} +controller_Controller_moveSprite__P153423.info = {"start":10866,"length":608,"line":355,"column":8,"endLine":371,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"moveSprite","argumentNames":["this","sprite","vx","vy"]} -function game_BaseDialog_constructor__P88974_mk(s) { +function controller_Controller_moveSprite__P153423_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_constructor__P88974, depth: s.depth + 1, + parent: s, fn: controller_Controller_moveSprite__P153423, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -24512,61 +28807,18 @@ function game_BaseDialog_constructor__P88974_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, + cp___158219: undefined, arg0: undefined, arg1: undefined, arg2: undefined, arg3: undefined, - arg4: undefined, - arg5: undefined, -} } - - - - - -function game_defaultCursorImage__P90516(s) { -let r0 = s.r0, 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_ImageMethods.isMono(globals.screen___88287); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.image.ofBuffer(_hex189865); - { step = 2; continue; } - case 1: - r0 = pxsim.image.ofBuffer(_hex189867); - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.tmp_1; - return leave(s, r0) - default: oops() -} } } -game_defaultCursorImage__P90516.info = {"start":17096,"length":690,"line":543,"column":4,"endLine":569,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultCursorImage","argumentNames":[]} - -function game_defaultCursorImage__P90516_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_defaultCursorImage__P90516, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, } } -const _hex189865 = pxsim.BufferMethods.createBufferFromHex("87040a000800000011111101010000010111010111100001011101010100000101000001100010000001010000100000") -const _hex189867 = pxsim.BufferMethods.createBufferFromHex("87040b000b00000000606686080000006076776686000000607777676608000076171111670800007671177766080000767117776608000076711777660800007617111167080000607777676608000060767766860000000060668608000000") -function game_defaultFrame__P90514(s) { +function inline__P158222(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24576,39 +28828,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_ImageMethods.isMono(globals.screen___88287); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0.fields["s"]; + r0 = r0.fields["id"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.image.ofBuffer(_hex189871); - { step = 2; continue; } - case 1: - r0 = pxsim.image.ofBuffer(_hex189873); - case 2: - // jmp value (already in r0) + r0 = s.caps[0].fields["id"]; s.tmp_1 = r0; - r0 = s.tmp_1; + r0 = (s.tmp_0 == s.tmp_1); return leave(s, r0) default: oops() } } } -game_defaultFrame__P90514.info = {"start":16308,"length":556,"line":504,"column":4,"endLine":526,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultFrame","argumentNames":[]} +inline__P158222.info = {"start":11086,"length":26,"line":358,"column":50,"endLine":358,"endColumn":76,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["cp"]} -function game_defaultFrame__P90514_mk(s) { +function inline__P158222_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_defaultFrame__P90514, depth: s.depth + 1, + parent: s, fn: inline__P158222, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + arg0: undefined, } } -const _hex189871 = pxsim.BufferMethods.createBufferFromHex("8704030003000000110100000101000011010000") -const _hex189873 = pxsim.BufferMethods.createBufferFromHex("87040c000c0000000000000000000000b0bbbbbbbb0b0000b0bbbbbbbbcb0000b0db1111bdcb0000b01b1111b1cb0000b01b1111b1cb0000b01b1111b1cb0000b01b1111b1cb0000b0db1111bdcb0000b0bbbbbbbbcb0000b0bbbbbbbbcb000000cccccccccc0000") -function game_BaseDialog_drawBorder__P90501(s) { +function controller_ControlledSprite_constructor__P153405(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24618,279 +28867,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.y___189796 = undefined; - s.c___189812 = undefined; - s.r___189846 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C88962_VT)) failedCast(r0); - r0 = s.arg0.fields["unit"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = game_BaseDialog_fastFill__P90502_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = 0; - s.tmp_2.arg2 = 0; - s.tmp_2.arg3 = 0; - s.tmp_2.arg4 = 1; - s.tmp_2.arg5 = 1; - s.callLocIdx = 162; s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P90502_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = 1; - s.tmp_0.arg3 = 0; - r0 = s.arg0.fields["columns"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 2); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = 1; - s.callLocIdx = 163; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P90502_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 2; - r0 = s.arg0.fields["columns"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = 0; - s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = 1; - s.callLocIdx = 164; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P90502_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 3; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = 1; - s.tmp_0.arg4 = 1; - r0 = s.arg0.fields["rows"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 2); - s.tmp_0.arg5 = r0; - s.callLocIdx = 165; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P90502_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 5; - r0 = s.arg0.fields["columns"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = 1; - s.tmp_0.arg4 = 1; - r0 = s.arg0.fields["rows"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 2); - s.tmp_0.arg5 = r0; - s.callLocIdx = 166; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - r0 = s.arg0.fields["rows"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); - s.y___189796 = (r0); - s.tmp_0 = game_BaseDialog_fastFill__P90502_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 6; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = s.y___189796; - s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = 1; - s.callLocIdx = 167; s.pc = 17; return s.tmp_0; - case 17: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P90502_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 7; - s.tmp_0.arg2 = 1; - s.tmp_0.arg3 = s.y___189796; - r0 = s.arg0.fields["columns"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 2); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = 1; - s.callLocIdx = 168; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P90502_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 8; - r0 = s.arg0.fields["columns"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.y___189796; - s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = 1; - s.callLocIdx = 169; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - { step = 11; continue; } - case 1: - case 2: - s.c___189812 = (0); - case 3: - r0 = s.arg0.fields["columns"]; - s.tmp_1 = r0; - r0 = (s.c___189812 < s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - r0 = (s.c___189812 == 0); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 4; continue; } - s.tmp_3 = game_BaseDialog_drawPartial__P90504_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = 0; - s.tmp_3.arg2 = 0; - s.tmp_3.arg3 = 0; - s.callLocIdx = 170; s.pc = 20; return s.tmp_3; - case 20: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_drawPartial__P90504_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 6; - s.tmp_0.arg2 = 0; - r0 = s.arg0.fields["rows"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg3 = r0; - s.callLocIdx = 171; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - { step = 7; continue; } - case 4: - s.tmp_1 = r0 = s.c___189812; - r0 = s.arg0.fields["columns"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 - 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 === s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_4 = game_BaseDialog_drawPartial__P90504_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = 2; - s.tmp_4.arg2 = s.c___189812; - s.tmp_4.arg3 = 0; - s.callLocIdx = 172; s.pc = 22; return s.tmp_4; - case 22: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_drawPartial__P90504_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 8; - s.tmp_0.arg2 = s.c___189812; - r0 = s.arg0.fields["rows"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg3 = r0; - s.callLocIdx = 173; s.pc = 23; return s.tmp_0; - case 23: - r0 = s.retval; - { step = 6; continue; } - case 5: - s.tmp_0 = game_BaseDialog_drawPartial__P90504_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = s.c___189812; - s.tmp_0.arg3 = 0; - s.callLocIdx = 174; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_drawPartial__P90504_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 7; - s.tmp_0.arg2 = s.c___189812; - r0 = s.arg0.fields["rows"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg3 = r0; - s.callLocIdx = 175; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - case 6: - case 7: - r0 = (s.c___189812 + 1); - s.c___189812 = (r0); - { step = 3; continue; } - case 8: - s.r___189846 = (1); - case 9: - s.tmp_1 = r0 = s.r___189846; - r0 = s.arg0.fields["rows"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 - 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - s.tmp_4 = game_BaseDialog_drawPartial__P90504_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = 3; - s.tmp_4.arg2 = 0; - s.tmp_4.arg3 = s.r___189846; - s.callLocIdx = 176; s.pc = 26; return s.tmp_4; - case 26: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_drawPartial__P90504_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 5; - r0 = s.arg0.fields["columns"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.r___189846; - s.callLocIdx = 177; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - r0 = (s.r___189846 + 1); - s.r___189846 = (r0); - { step = 9; continue; } - case 10: - case 11: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_ControlledSprite__C153403_VT)) failedCast(r0); + r0 = (s.arg0).fields["s"] = (s.arg1); + r0 = (s.arg0).fields["vx"] = (s.arg2); + r0 = (s.arg0).fields["vy"] = (s.arg3); r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_drawBorder__P90501.info = {"start":2321,"length":1321,"line":89,"column":8,"endLine":125,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawBorder","argumentNames":["this"]} +controller_ControlledSprite_constructor__P153405.info = {"start":7271,"length":117,"line":227,"column":8,"endLine":231,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","s","vx","vy"]} -function game_BaseDialog_drawBorder__P90501_mk(s) { +function controller_ControlledSprite_constructor__P153405_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_drawBorder__P90501, depth: s.depth + 1, + parent: s, fn: controller_ControlledSprite_constructor__P153405, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - y___189796: undefined, - c___189812: undefined, - r___189846: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function scene_setBackgroundImage__P88944(s) { +function helpers_arrayFind__P151593(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24900,44 +28910,69 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___190551 = undefined; + s.len___158294 = undefined; + s.i___158297 = undefined; + s.v___158302 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 149; s.pc = 1; return s.tmp_0; + r0 = pxsim_Array__length(s.arg0); + s.len___158294 = (r0); + s.i___158297 = (0); case 1: + r0 = (s.i___158297 < s.len___158294); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.arg0, s.i___158297); + s.v___158302 = (r0); + s.tmp_1 = lambda_3_mk(s); + s.tmp_1.argL = s.arg1; + s.tmp_1.arg0 = s.v___158302; + s.tmp_1.arg1 = s.i___158297; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 8; s.pc = 6; return s.tmp_1; + case 6: r0 = s.retval; - s.scene___190551 = (r0); - s.tmp_0 = scene_Background_image__P88757_mk(s); - r0 = s.scene___190551.fields["background"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 150; s.pc = 2; return s.tmp_0; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + r0 = s.v___158302; + { step = 5; continue; } case 2: - r0 = s.retval; + case 3: + r0 = (s.i___158297 + 1); + s.i___158297 = (r0); + { step = 1; continue; } + case 4: r0 = undefined; + case 5: return leave(s, r0) default: oops() } } } -scene_setBackgroundImage__P88944.info = {"start":1938,"length":135,"line":78,"column":4,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setBackgroundImage","argumentNames":["img"]} +helpers_arrayFind__P151593.info = {"start":8018,"length":292,"line":271,"column":4,"endLine":278,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayFind","argumentNames":["arr","callbackfn"]} -function scene_setBackgroundImage__P88944_mk(s) { +function helpers_arrayFind__P151593_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_setBackgroundImage__P88944, depth: s.depth + 1, + parent: s, fn: helpers_arrayFind__P151593, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - scene___190551: undefined, + tmp_1: undefined, + len___158294: undefined, + i___158297: undefined, + v___158302: undefined, arg0: undefined, + arg1: undefined, } } -function scene_Background_image__P88757(s) { +function info_onCountdownEnd__P153699(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24949,32 +28984,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C88750_VT)) failedCast(r0); - r0 = (s.arg0).fields["_image"] = (s.arg1); + s.tmp_0 = info_initHUD__P155620_mk(s); + s.callLocIdx = 24; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = (globals.infoState___155574).fields["countdownEndHandler"] = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Background_image__P88757.info = {"start":1003,"length":68,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"image","argumentNames":["this","image"]} +info_onCountdownEnd__P153699.info = {"start":10271,"length":127,"line":351,"column":4,"endLine":354,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"onCountdownEnd","argumentNames":["handler"]} -function scene_Background_image__P88757_mk(s) { +function info_onCountdownEnd__P153699_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_image__P88757, depth: s.depth + 1, + parent: s, fn: info_onCountdownEnd__P153699, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function scene_Background_image__P88756(s) { +function game_over__P154026(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24984,57 +29020,216 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scoreInfo___160490 = undefined; + s.highScore___160494 = undefined; + s.overDialog___160523 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C88750_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_0 = game_init__P155700_mk(s); + s.tmp_0.arg0 = undefined; + s.callLocIdx = 1057; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals.__isOver___155699); + if (!r0) { step = 1; continue; } + { step = 17; continue; } + case 1: + case 2: + globals.__isOver___155699 = (true); + r0 = pxsim_numops_toBoolDecr(globals.__gameOverHandler___155697); + if (!r0) { step = 3; continue; } + s.tmp_0 = lambda_2_mk(s); + s.tmp_0.argL = globals.__gameOverHandler___155697; + s.tmp_0.arg0 = s.arg0; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1058; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + { step = 16; continue; } + case 3: + 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; } - s.tmp_3 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___88287); - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___88287); - s.tmp_6 = r0; - r0 = pxsim.image.create(s.tmp_5, s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["_image"] = (s.tmp_4); - case 1: - case 2: - r0 = s.arg0.fields["_image"]; - return leaveAccessor(s, r0) + if (!r0) { step = 6; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg0); + if (!r0) { step = 4; continue; } + r0 = globals.winEffect___154014; + { step = 5; continue; } + case 4: + r0 = globals.loseEffect___154015; + case 5: + // jmp value (already in r0) + s.tmp_2 = r0; + s.arg1 = (s.tmp_2); + case 6: + case 7: + s.tmp_0 = info_PlayerInfo_getState__P153723_mk(s); + s.tmp_0.arg0 = globals.player1___153741; + s.callLocIdx = 1059; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + s.scoreInfo___160490 = (r0); + s.tmp_0 = info_highScore__P153689_mk(s); + s.callLocIdx = 1060; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + s.highScore___160494 = (r0); + r0 = s.scoreInfo___160490.fields["score"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > s.highScore___160494); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.tmp_2 = info_saveHighScore__P153686_mk(s); + s.callLocIdx = 1061; s.pc = 22; return s.tmp_2; + case 22: + r0 = s.retval; + case 8: + case 9: + case 10: + s.tmp_0 = r0 = globals._sceneStack___155693; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 11; continue; } + r0 = s.tmp_0; + { step = 12; continue; } + case 11: + r0 = pxsim_Array__length(globals._sceneStack___155693); + case 12: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 13; continue; } + s.tmp_2 = scene_Scene_destroy__P153929_mk(s); + s.tmp_2.arg0 = globals._scene___155692; + s.callLocIdx = 1062; s.pc = 23; return s.tmp_2; + case 23: + r0 = s.retval; + s.tmp_0 = game_popScene__P154021_mk(s); + s.callLocIdx = 1063; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + { step = 10; continue; } + case 13: + s.tmp_0 = game_pushScene__P154020_mk(s); + s.callLocIdx = 1064; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.tmp_0 = scene_setBackgroundImage__P153943_mk(s); + r0 = pxsim_ImageMethods.clone(globals.screen___153286); + s.tmp_0.arg0 = r0; + s.callLocIdx = 1065; s.pc = 26; return s.tmp_0; + case 26: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg0); + if (!r0) { step = 14; continue; } + s.tmp_0 = music_Melody_play__P153089_mk(s); + s.tmp_0.arg0 = globals.winSound___155691; + s.tmp_0.arg1 = 255; + s.callLocIdx = 1066; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + { step = 15; continue; } + case 14: + s.tmp_0 = music_Melody_play__P153089_mk(s); + s.tmp_0.arg0 = globals.loseSound___155689; + s.tmp_0.arg1 = 255; + s.callLocIdx = 1067; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; + case 15: + s.tmp_0 = if_startScreenEffect_1_mk(s); + s.tmp_0.arg0 = s.arg1; + if (!s.tmp_0.arg0.vtable.iface) { + setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "startScreenEffect"), 1); + s.callLocIdx = 1068; s.pc = 29; return s.tmp_0; + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["startScreenEffect"]; + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["startScreenEffect"], 1); s.callLocIdx = 1068; s.pc = 29; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1068; s.pc = 29; return s.tmp_0;; } + else { s.callLocIdx = 1068; s.pc = 29; return s.tmp_0; } + } + case 29: + r0 = s.retval; + s.tmp_0 = pause__P151886_mk(s); + s.tmp_0.arg0 = 400; + s.callLocIdx = 1069; s.pc = 30; return s.tmp_0; + case 30: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(game_GameOverDialog__C154000_VT); + s.tmp_0 = r0; + s.tmp_1 = game_GameOverDialog_constructor__P154001_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + r0 = s.scoreInfo___160490.fields["score"]; + s.tmp_1.arg2 = r0; + s.tmp_1.arg3 = s.highScore___160494; + s.callLocIdx = 1070; s.pc = 31; return s.tmp_1; + case 31: + r0 = s.retval; + s.overDialog___160523 = (s.tmp_0); + r0 = pxsim_pxtcore_mkAction(1, inline__P160533); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.overDialog___160523); + s.tmp_1 = scene_createRenderable__P153867_mk(s); + s.tmp_1.arg0 = 100; + s.tmp_1.arg1 = s.tmp_0; + s.tmp_1.arg2 = undefined; + s.callLocIdx = 1071; s.pc = 32; return s.tmp_1; + case 32: + r0 = s.retval; + s.tmp_0 = pause__P151886_mk(s); + s.tmp_0.arg0 = 500; + s.callLocIdx = 1072; s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + s.tmp_0 = game_GameOverDialog_displayCursor__P154002_mk(s); + s.tmp_0.arg0 = s.overDialog___160523; + s.callLocIdx = 1073; s.pc = 34; return s.tmp_0; + case 34: + r0 = s.retval; + s.tmp_0 = game_waitAnyButton__P154018_mk(s); + s.callLocIdx = 1074; s.pc = 35; return s.tmp_0; + case 35: + r0 = s.retval; + setupResume(s, 36); + pxsim.control.reset(); + checkResumeConsumed(); + return; + case 36: + r0 = s.retval; + case 16: + case 17: + r0 = undefined; + return leave(s, r0) default: oops() } } } -scene_Background_image__P88756.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__P88756.isGetter = true; +game_over__P154026.info = {"start":5382,"length":1774,"line":181,"column":4,"endLine":232,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"over","argumentNames":["win","effect"]} -function scene_Background_image__P88756_mk(s) { +function game_over__P154026_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_image__P88756, depth: s.depth + 1, + parent: s, fn: game_over__P154026, depth: s.depth + 1, pc: 0, retval: undefined, 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, + scoreInfo___160490: undefined, + highScore___160494: undefined, + overDialog___160523: undefined, arg0: undefined, + arg1: undefined, } } -function scene_Scene_destroy__P88930(s) { +function inline__P160533(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25048,36 +29243,45 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C88904_VT)) failedCast(r0); - r0 = (s.arg0).fields["eventContext"] = (undefined); - r0 = (s.arg0).fields["background"] = (undefined); - r0 = (s.arg0).fields["tileMap"] = (undefined); - r0 = (s.arg0).fields["allSprites"] = (undefined); - r0 = (s.arg0).fields["spriteNextId"] = (undefined); - r0 = (s.arg0).fields["spritesByKind"] = (undefined); - r0 = (s.arg0).fields["physicsEngine"] = (undefined); - r0 = (s.arg0).fields["camera"] = (undefined); - r0 = (s.arg0).fields["flags"] = (undefined); - r0 = (s.arg0).fields["destroyedHandlers"] = (undefined); - r0 = (s.arg0).fields["createdHandlers"] = (undefined); - r0 = (s.arg0).fields["overlapHandlers"] = (undefined); - r0 = (s.arg0).fields["tileOverlapHandlers"] = (undefined); - r0 = (s.arg0).fields["collisionHandlers"] = (undefined); - r0 = (s.arg0).fields["wallCollisionHandlers"] = (undefined); - r0 = (s.arg0).fields["gameForeverHandlers"] = (undefined); - r0 = (s.arg0).fields["_data"] = (undefined); + s.tmp_0 = game_GameOverDialog__C154000_v0_1_mk(s); + s.tmp_0.arg0 = s.caps[0]; + if (!checkSubtype(s.tmp_0.arg0, game_GameOverDialog__C154000_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; + s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = s.caps[0].fields["image"]; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___153286); + s.tmp_4 = r0; + r0 = s.caps[0].fields["image"]; + s.tmp_6 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_6); + s.tmp_5 = r0; + r0 = (s.tmp_4 - s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, 0, s.tmp_2); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_destroy__P88930.info = {"start":6997,"length":764,"line":198,"column":8,"endLine":216,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"destroy","argumentNames":["this"]} +inline__P160533.info = {"start":6721,"length":254,"line":218,"column":48,"endLine":225,"endColumn":13,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["target"]} -function scene_Scene_destroy__P88930_mk(s) { +function inline__P160533_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_destroy__P88930, depth: s.depth + 1, + parent: s, fn: inline__P160533, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, arg0: undefined, } } @@ -25085,7 +29289,7 @@ function scene_Scene_destroy__P88930_mk(s) { -function info_PlayerInfo_constructor__P88723(s) { +function game_popScene__P154021(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25095,157 +29299,84 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C88711_VT)) failedCast(r0); - r0 = (s.arg0).fields["_player"] = (s.arg1); - r0 = (s.arg0).fields["border"] = (1); - r0 = (s.arg0).fields["fc"] = (1); - r0 = (s.arg0).fields["visilibity"] = (0); - r0 = (s.arg0).fields["showScore"] = (undefined); - r0 = (s.arg0).fields["showLife"] = (undefined); - r0 = (s.arg0).fields["showPlayer"] = (undefined); - r0 = (s.arg0).fields["left"] = (undefined); - r0 = (s.arg0).fields["up"] = (undefined); - r0 = s.arg0.fields["_player"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_ImageMethods.isMono(globals.screen___88287); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 1; continue; } - r0 = 0; + s.oldScene___162072 = undefined; + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 1051; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.oldScene___162072 = (r0); + s.tmp_0 = r0 = globals._sceneStack___155693; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = 2; + r0 = pxsim_Array__length(globals._sceneStack___155693); case 2: // jmp value (already in r0) - s.tmp_3 = r0; - r0 = (s.arg0).fields["bg"] = (s.tmp_3); - r0 = (s.arg0).fields["x"] = (0); - r0 = (s.arg0).fields["y"] = (0); - { step = 14; continue; } - case 3: - r0 = (s.arg1 === 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - r0 = pxsim_ImageMethods.isMono(globals.screen___88287); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + r0 = pxsim_Array_.pop(globals._sceneStack___155693); + globals._scene___155692 = (r0); + s.tmp_0 = control_popEventContext__P151883_mk(s); + s.callLocIdx = 1052; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + { step = 6; continue; } + case 3: + r0 = pxsim_numops_toBoolDecr(globals._scene___155692); if (!r0) { step = 4; continue; } - r0 = 0; - { step = 5; continue; } + s.tmp_0 = control_popEventContext__P151883_mk(s); + s.callLocIdx = 1053; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + globals._scene___155692 = (undefined); case 4: - r0 = 8; case 5: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = (s.arg0).fields["bg"] = (s.tmp_2); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___88287); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["x"] = (s.tmp_1); - r0 = (s.arg0).fields["y"] = (0); - r0 = (s.arg0).fields["left"] = (true); - { step = 13; continue; } case 6: - r0 = (s.arg1 === 3); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = pxsim_ImageMethods.isMono(globals.screen___88287); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = pxsim_numops_toBoolDecr(globals._scene___155692); if (!r0) { step = 7; continue; } - r0 = 0; - { step = 8; continue; } + s.tmp_0 = particles_enableAll__P154194_mk(s); + s.callLocIdx = 1054; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; case 7: - r0 = 4; case 8: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = (s.arg0).fields["bg"] = (s.tmp_2); - r0 = (s.arg0).fields["x"] = (0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.height(globals.screen___88287); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["y"] = (s.tmp_1); - r0 = (s.arg0).fields["up"] = (true); - { step = 12; continue; } - case 9: - r0 = pxsim_ImageMethods.isMono(globals.screen___88287); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - r0 = 0; - { step = 11; continue; } - case 10: - r0 = 7; - case 11: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.arg0).fields["bg"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___88287); - 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___88287); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["y"] = (s.tmp_1); - r0 = (s.arg0).fields["left"] = (true); - r0 = (s.arg0).fields["up"] = (true); - case 12: - case 13: - case 14: - r0 = pxsim_numops_toBoolDecr(globals.players___90411); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___155695); + if (!r0) { step = 9; continue; } + r0 = pxsim_pxtcore_mkAction(1, inline__P162093); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - r0 = pxsim_Array__mk(); - globals.players___90411 = (r0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___162072); + s.tmp_1 = helpers_arrayForEach__P151591_mk(s); + s.tmp_1.arg0 = globals._scenePopHandlers___155695; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1056; s.pc = 15; return s.tmp_1; case 15: - case 16: - s.tmp_0 = r0 = globals.players___90411; - r0 = s.arg0.fields["_player"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.arg0); + r0 = s.retval; + case 9: + case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfo_constructor__P88723.info = {"start":15446,"length":1370,"line":515,"column":8,"endLine":552,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this","player"]} +game_popScene__P154021.info = {"start":2033,"length":548,"line":75,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]} -function info_PlayerInfo_constructor__P88723_mk(s) { +function game_popScene__P154021_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_constructor__P88723, depth: s.depth + 1, + parent: s, fn: game_popScene__P154021, depth: s.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, + oldScene___162072: undefined, } } -function info_PlayerInfo_getState__P88724(s) { +function inline__P162093(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25259,33 +29390,25 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C88711_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfo_init__P90462_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 109; s.pc = 1; return s.tmp_0; + s.tmp_0 = lambda_2_mk(s); + s.tmp_0.argL = s.arg0; + s.tmp_0.arg0 = s.caps[0]; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1055; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals.infoState___90410.fields["playerStates"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["_player"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfo_getState__P88724.info = {"start":17088,"length":121,"line":562,"column":8,"endLine":565,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"getState","argumentNames":["this"]} +inline__P162093.info = {"start":2545,"length":18,"line":91,"column":38,"endLine":91,"endColumn":56,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} -function info_PlayerInfo_getState__P88724_mk(s) { +function inline__P162093_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_getState__P88724, depth: s.depth + 1, + parent: s, fn: inline__P162093, 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, } } @@ -25293,7 +29416,56 @@ function info_PlayerInfo_getState__P88724_mk(s) { -function info_PlayerInfo_init__P90462(s) { +function particles_enableAll__P154194(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.sources___162097 = undefined; + s.tmp_0 = particles_particleSources__P156056_mk(s); + s.callLocIdx = 1313; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.sources___162097 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___162097); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayForEach__P151591_mk(s); + s.tmp_0.arg0 = s.sources___162097; + s.tmp_0.arg1 = inline__P162103; + s.callLocIdx = 1315; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = particles_pruneParticles__P156052_mk(s); + s.callLocIdx = 1316; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +particles_enableAll__P154194.info = {"start":12632,"length":193,"line":412,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]} + +function particles_enableAll__P154194_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_enableAll__P154194, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + sources___162097: undefined, +} } + + + + + +function inline__P162103(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25307,71 +29479,172 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C88711_VT)) failedCast(r0); - s.tmp_0 = info_initHUD__P90456_mk(s); - s.callLocIdx = 106; s.pc = 5; return s.tmp_0; - case 5: + s.tmp_0 = particles_ParticleSource_enabled__P154175_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = true; + s.callLocIdx = 1314; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - r0 = s.arg0.fields["_player"]; + r0 = true; + return leave(s, r0) + default: oops() +} } } +inline__P162103.info = {"start":12756,"length":21,"line":415,"column":28,"endLine":415,"endColumn":49,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} + +function inline__P162103_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P162103, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function control_popEventContext__P151883(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.ctx___162110 = undefined; + s.context___162118 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___155376); s.tmp_1 = r0; - r0 = (s.tmp_1 > 1); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = info_initMultiHUD__P90457_mk(s); - s.callLocIdx = 107; s.pc = 6; return s.tmp_2; - case 6: - r0 = s.retval; + { step = 7; continue; } case 1: case 2: - r0 = globals.infoState___90410.fields["playerStates"]; - s.tmp_3 = r0; - r0 = s.arg0.fields["_player"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 - 1); - s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = pxsim_Array_.pop(globals.eventContexts___155376); + s.ctx___162110 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___162110); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(info_PlayerState__C88682_VT); - s.tmp_6 = r0; - r0 = undefined; - r0 = globals.infoState___90410.fields["playerStates"]; - s.tmp_7 = r0; - r0 = s.arg0.fields["_player"]; - s.tmp_9 = r0; - r0 = (s.tmp_9 - 1); - s.tmp_8 = r0; - r0 = pxsim_Array_.setAt(s.tmp_7, s.tmp_8, s.tmp_6); + { step = 7; continue; } case 3: case 4: + s.tmp_2 = control_EventContext_unregister__P151875_mk(s); + s.tmp_2.arg0 = s.ctx___162110; + s.callLocIdx = 65; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + s.tmp_0 = r0 = globals.eventContexts___155376; + r0 = pxsim_Array__length(globals.eventContexts___155376); + 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___162118 = (r0); + r0 = pxsim_numops_toBoolDecr(s.context___162118); + if (!r0) { step = 5; continue; } + s.tmp_0 = control_EventContext_register__P151874_mk(s); + s.tmp_0.arg0 = s.context___162118; + s.callLocIdx = 66; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + { step = 6; continue; } + case 5: + globals.eventContexts___155376 = (undefined); + case 6: + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfo_init__P90462.info = {"start":16826,"length":252,"line":554,"column":8,"endLine":560,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"init","argumentNames":["this"]} +control_popEventContext__P151883.info = {"start":7568,"length":413,"line":232,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]} -function info_PlayerInfo_init__P90462_mk(s) { +function control_popEventContext__P151883_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_init__P90462, depth: s.depth + 1, + parent: s, fn: control_popEventContext__P151883, depth: s.depth + 1, pc: 0, retval: undefined, 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, + ctx___162110: undefined, + context___162118: undefined, +} } + + + + + +function control_EventContext_register__P151874(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.h___162131 = undefined; + s.unnamed1472___U1 = undefined; + s.unnamed1473___U2 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C151868_VT)) failedCast(r0); + s.h___162131 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed1472___U1 = (r0); + s.unnamed1473___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed1473___U2; + r0 = pxsim_Array__length(s.unnamed1472___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed1472___U1, s.unnamed1473___U2); + s.h___162131 = (r0); + s.tmp_2 = control_EventHandler_register__P155369_mk(s); + s.tmp_2.arg0 = s.h___162131; + s.callLocIdx = 56; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + r0 = (s.unnamed1473___U2 + 1); + s.unnamed1473___U2 = (r0); + { step = 1; continue; } + case 2: + s.unnamed1472___U1 = (undefined); + s.tmp_0 = control_EventContext_registerFrameCallbacks__P155374_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 57; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control_EventContext_register__P151874.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__P151874_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_EventContext_register__P151874, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + h___162131: undefined, + unnamed1472___U1: undefined, + unnamed1473___U2: undefined, arg0: undefined, } } @@ -25379,7 +29652,7 @@ function info_PlayerInfo_init__P90462_mk(s) { -function info_initMultiHUD__P90457(s) { +function game_pushScene__P154020(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25389,71 +29662,70 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.infoState___90410.fields["visibilityFlag"]; + s.oldScene___161858 = undefined; + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 1045; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.oldScene___161858 = (r0); + s.tmp_0 = particles_clearAll__P154192_mk(s); + s.callLocIdx = 1046; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = particles_disableAll__P154193_mk(s); + s.callLocIdx = 1047; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals._sceneStack___155693); s.tmp_1 = r0; - r0 = (s.tmp_1 & 16); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 5; continue; } + r0 = pxsim_Array__mk(); + globals._sceneStack___155693 = (r0); case 1: case 2: - s.tmp_2 = r0 = globals.infoState___90410; - r0 = s.tmp_2.fields["visibilityFlag"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 | 16); - s.tmp_3 = r0; - r0 = (s.tmp_2).fields["visibilityFlag"] = (s.tmp_3); - r0 = globals.infoState___90410.fields["visibilityFlag"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 & 32); - 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_Array__push(globals._sceneStack___155693, globals._scene___155692); + s.tmp_0 = game_init__P155700_mk(s); + s.tmp_0.arg0 = true; + s.callLocIdx = 1048; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___155694); if (!r0) { step = 3; continue; } - s.tmp_4 = r0 = globals.infoState___90410; - s.tmp_6 = info_defaultMultiplayerHeartImage__P90459_mk(s); - s.callLocIdx = 84; s.pc = 6; return s.tmp_6; - case 6: + r0 = pxsim_pxtcore_mkAction(1, inline__P161875); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___161858); + s.tmp_1 = helpers_arrayForEach__P151591_mk(s); + s.tmp_1.arg0 = globals._scenePushHandlers___155694; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1050; s.pc = 9; return s.tmp_1; + case 9: r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_4).fields["heartImage"] = (s.tmp_5); case 3: case 4: - s.tmp_0 = r0 = globals.infoState___90410; - r0 = pxsim.image.ofBuffer(_hex190824); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["multiplierImage"] = (s.tmp_1); - case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -info_initMultiHUD__P90457.info = {"start":4681,"length":393,"line":149,"column":4,"endLine":160,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"initMultiHUD","argumentNames":[]} +game_pushScene__P154020.info = {"start":1660,"length":367,"line":62,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"pushScene","argumentNames":[]} -function info_initMultiHUD__P90457_mk(s) { +function game_pushScene__P154020_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_initMultiHUD__P90457, depth: s.depth + 1, + parent: s, fn: game_pushScene__P154020, depth: s.depth + 1, pc: 0, retval: undefined, 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, + oldScene___161858: undefined, } } -const _hex190824 = pxsim.BufferMethods.createBufferFromHex("8704030003000000010100001000000001010000") -function info_defaultMultiplayerHeartImage__P90459(s) { +function inline__P161875(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25463,39 +29735,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_ImageMethods.isMono(globals.screen___88287); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.image.ofBuffer(_hex190828); - { step = 2; continue; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = lambda_2_mk(s); + s.tmp_0.argL = s.arg0; + s.tmp_0.arg0 = s.caps[0]; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1049; s.pc = 1; return s.tmp_0; case 1: - r0 = pxsim.image.ofBuffer(_hex190830); - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.tmp_1; + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -info_defaultMultiplayerHeartImage__P90459.info = {"start":5678,"length":503,"line":185,"column":4,"endLine":202,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"defaultMultiplayerHeartImage","argumentNames":[]} +inline__P161875.info = {"start":1991,"length":18,"line":71,"column":39,"endLine":71,"endColumn":57,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} -function info_defaultMultiplayerHeartImage__P90459_mk(s) { +function inline__P161875_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_defaultMultiplayerHeartImage__P90459, depth: s.depth + 1, + parent: s, fn: inline__P161875, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, + arg0: undefined, } } -const _hex190828 = pxsim.BufferMethods.createBufferFromHex("870407000500000000000000100100000110000010000100011000001001000000000000") -const _hex190830 = pxsim.BufferMethods.createBufferFromHex("870407000500000000000000100100002112000010240100411200001001000000000000") -function info_initHUD__P90456(s) { +function particles_disableAll__P154193(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25505,47 +29775,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.infoState___90410); + s.sources___161879 = undefined; + s.tmp_0 = particles_particleSources__P156056_mk(s); + s.callLocIdx = 1309; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.sources___161879 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___161879); if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: - case 2: - r0 = pxsim_pxtcore_mkClassInstance(info_InfoState__C90407_VT); - s.tmp_0 = r0; - s.tmp_1 = info_InfoState_constructor__P90408_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 67; s.pc = 4; return s.tmp_1; + s.tmp_0 = helpers_arrayForEach__P151591_mk(s); + s.tmp_0.arg0 = s.sources___161879; + s.tmp_0.arg1 = inline__P161885; + s.callLocIdx = 1311; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - globals.infoState___90410 = (s.tmp_0); - s.tmp_0 = scene_createRenderable__P88868_mk(s); - s.tmp_0.arg0 = 100; - s.tmp_0.arg1 = inline__P190838; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 83; s.pc = 5; return s.tmp_0; + s.tmp_0 = particles_pruneParticles__P156052_mk(s); + s.callLocIdx = 1312; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - case 3: + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -info_initHUD__P90456.info = {"start":2595,"length":2080,"line":97,"column":4,"endLine":147,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"initHUD","argumentNames":[]} +particles_disableAll__P154193.info = {"start":12353,"length":195,"line":401,"column":4,"endLine":407,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"disableAll","argumentNames":[]} -function info_initHUD__P90456_mk(s) { +function particles_disableAll__P154193_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_initHUD__P90456, depth: s.depth + 1, + parent: s, fn: particles_disableAll__P154193, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, + sources___161879: undefined, } } -function inline__P190838(s) { +function inline__P161885(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25555,218 +29824,85 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ps___190847 = undefined; - s.p___190868 = undefined; - s.scene___190902 = undefined; - s.elapsed___190905 = undefined; - s.t___190913 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.infoState___90410); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 23; continue; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = particles_ParticleSource_enabled__P154175_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = false; + s.callLocIdx = 1310; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = globals.infoState___90410.fields["visibilityFlag"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 16); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_2 = helpers_arrayFilter__P86593_mk(s); - s.tmp_2.arg0 = globals.players___90411; - s.tmp_2.arg1 = inline__P190849; - s.callLocIdx = 68; s.pc = 24; return s.tmp_2; - case 24: - r0 = s.retval; - s.ps___190847 = (r0); - s.tmp_0 = helpers_arrayForEach__P86592_mk(s); - s.tmp_0.arg0 = s.ps___190847; - s.tmp_0.arg1 = inline__P190858; - s.callLocIdx = 70; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.tmp_0 = helpers_arrayForEach__P86592_mk(s); - s.tmp_0.arg0 = s.ps___190847; - s.tmp_0.arg1 = inline__P190864; - s.callLocIdx = 72; s.pc = 26; return s.tmp_0; - case 26: r0 = s.retval; - { step = 12; continue; } + r0 = false; + return leave(s, r0) + default: oops() +} } } +inline__P161885.info = {"start":12478,"length":22,"line":404,"column":28,"endLine":404,"endColumn":50,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} + +function inline__P161885_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P161885, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function particles_clearAll__P154192(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.sources___162057 = undefined; + s.tmp_0 = particles_particleSources__P156056_mk(s); + s.callLocIdx = 1305; s.pc = 3; return s.tmp_0; case 3: - s.p___190868 = (globals.player1___88742); - s.tmp_1 = info_PlayerInfo_hasScore__P88729_mk(s); - s.tmp_1.arg0 = s.p___190868; - s.callLocIdx = 73; s.pc = 27; return s.tmp_1; - case 27: r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 4; continue; } - r0 = s.tmp_0; - { step = 5; continue; } + s.sources___162057 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___162057); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayForEach__P151591_mk(s); + s.tmp_0.arg0 = s.sources___162057; + s.tmp_0.arg1 = inline__P162063; + s.callLocIdx = 1307; s.pc = 4; return s.tmp_0; case 4: - r0 = globals.infoState___90410.fields["visibilityFlag"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 & 2); - case 5: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 6; continue; } - s.tmp_4 = info_PlayerInfo_drawScore__P88737_mk(s); - s.tmp_4.arg0 = s.p___190868; - s.callLocIdx = 74; s.pc = 28; return s.tmp_4; - case 28: - r0 = s.retval; - case 6: - case 7: - s.tmp_1 = info_PlayerInfo_hasLife__P88733_mk(s); - s.tmp_1.arg0 = s.p___190868; - s.callLocIdx = 75; s.pc = 29; return s.tmp_1; - case 29: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 8; continue; } - r0 = s.tmp_0; - { step = 9; continue; } - case 8: - r0 = globals.infoState___90410.fields["visibilityFlag"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 & 4); - case 9: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 10; continue; } - s.tmp_4 = info_PlayerInfo_drawLives__P88738_mk(s); - s.tmp_4.arg0 = s.p___190868; - s.callLocIdx = 76; s.pc = 30; return s.tmp_4; - case 30: - r0 = s.retval; - case 10: - case 11: - s.tmp_0 = info_PlayerInfo_raiseLifeZero__P88735_mk(s); - s.tmp_0.arg0 = s.p___190868; - s.tmp_0.arg1 = true; - s.callLocIdx = 77; s.pc = 31; return s.tmp_0; - case 31: - r0 = s.retval; - case 12: - r0 = globals.infoState___90410.fields["gameEnd"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 13; continue; } - r0 = s.tmp_0; - { step = 14; continue; } - case 13: - r0 = globals.infoState___90410.fields["visibilityFlag"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 & 1); - case 14: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 21; continue; } - s.tmp_4 = game_currentScene__P89017_mk(s); - s.callLocIdx = 78; s.pc = 32; return s.tmp_4; - case 32: - r0 = s.retval; - s.scene___190902 = (r0); - r0 = globals.infoState___90410.fields["gameEnd"]; - s.tmp_0 = r0; - r0 = s.scene___190902.fields["_millis"]; - s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.elapsed___190905 = (r0); - s.tmp_0 = info_drawTimer__P90461_mk(s); - s.tmp_0.arg0 = s.elapsed___190905; - s.callLocIdx = 80; s.pc = 33; return s.tmp_0; - case 33: - r0 = s.retval; - r0 = (s.elapsed___190905 / 1000); - s.t___190913 = (r0); - r0 = (s.t___190913 <= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 19; continue; } - s.t___190913 = (0); - r0 = globals.infoState___90410.fields["countdownExpired"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 17; continue; } - r0 = (globals.infoState___90410).fields["countdownExpired"] = (true); - r0 = (globals.infoState___90410).fields["gameEnd"] = (undefined); - r0 = globals.infoState___90410.fields["countdownEndHandler"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - s.tmp_1 = if_countdownEndHandler_1_mk(s); - s.tmp_1.arg0 = globals.infoState___90410; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "countdownEndHandler"), 1); - s.callLocIdx = 81; s.pc = 34; return s.tmp_1; - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["countdownEndHandler"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["countdownEndHandler"], 1); s.callLocIdx = 81; s.pc = 34; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 81; s.pc = 34; return s.tmp_1;; } - else { s.callLocIdx = 81; s.pc = 34; return s.tmp_1; } - } - case 34: r0 = s.retval; - { step = 16; continue; } - case 15: - s.tmp_0 = game_over__P89027_mk(s); - s.tmp_0.arg0 = false; - s.tmp_0.arg1 = undefined; - s.callLocIdx = 82; s.pc = 35; return s.tmp_0; - case 35: + s.tmp_0 = particles_pruneParticles__P156052_mk(s); + s.callLocIdx = 1308; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P190838.info = {"start":2755,"length":1903,"line":104,"column":12,"endLine":145,"endColumn":13,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} +particles_clearAll__P154192.info = {"start":12081,"length":185,"line":390,"column":4,"endLine":396,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"clearAll","argumentNames":[]} -function inline__P190838_mk(s) { +function particles_clearAll__P154192_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P190838, depth: s.depth + 1, + parent: s, fn: particles_clearAll__P154192, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - ps___190847: undefined, - p___190868: undefined, - scene___190902: undefined, - elapsed___190905: undefined, - t___190913: undefined, + sources___162057: undefined, } } -function inline__P190849(s) { +function inline__P162063(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25780,26 +29916,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + s.tmp_0 = particles_ParticleSource_clear__P154177_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1306; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P190849.info = {"start":3003,"length":8,"line":109,"column":46,"endLine":109,"endColumn":54,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} +inline__P162063.info = {"start":12204,"length":14,"line":393,"column":28,"endLine":393,"endColumn":42,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function inline__P190849_mk(s) { +function inline__P162063_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P190849, depth: s.depth + 1, + parent: s, fn: inline__P162063, 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, } } @@ -25807,7 +29940,7 @@ function inline__P190849_mk(s) { -function inline__P190858(s) { +function game_waitAnyButton__P154018(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25817,35 +29950,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = info_PlayerInfo_drawPlayer__P88736_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 69; s.pc = 1; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(globals.__waitAnyButton___155696); + if (!r0) { step = 1; continue; } + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = globals.__waitAnyButton___155696; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1039; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + { step = 2; continue; } case 1: + s.tmp_0 = pause__P151886_mk(s); + s.tmp_0.arg0 = 3000; + s.callLocIdx = 1040; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P190858.info = {"start":3087,"length":19,"line":111,"column":31,"endLine":111,"endColumn":50,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} +game_waitAnyButton__P154018.info = {"start":967,"length":111,"line":35,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"waitAnyButton","argumentNames":[]} -function inline__P190858_mk(s) { +function game_waitAnyButton__P154018_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P190858, depth: s.depth + 1, + parent: s, fn: game_waitAnyButton__P154018, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, } } -function inline__P190864(s) { +function game_GameOverDialog_update__P154003(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25859,24 +29998,44 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = info_PlayerInfo_raiseLifeZero__P88735_mk(s); + r0 = s.arg0; + if (!checkSubtype(r0, game_GameOverDialog__C154000_VT)) failedCast(r0); + s.tmp_0 = game_BaseDialog_clearInterior__P155667_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = false; - s.callLocIdx = 71; s.pc = 1; return s.tmp_0; - case 1: + s.callLocIdx = 1032; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = game_GameOverDialog__C154000_v1_1_mk(s); + s.tmp_0.arg0 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, game_GameOverDialog__C154000_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.drawTextCore; + s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; + r0 = s.arg0.fields["cursorOn"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = game_BaseDialog_drawCursorRow__P153977_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1033; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P190864.info = {"start":3189,"length":27,"line":113,"column":31,"endLine":113,"endColumn":58,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} +game_GameOverDialog_update__P154003.info = {"start":11365,"length":173,"line":349,"column":8,"endLine":356,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"update","argumentNames":["this"]} -function inline__P190864_mk(s) { +function game_GameOverDialog_update__P154003_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P190864, depth: s.depth + 1, + parent: s, fn: game_GameOverDialog_update__P154003, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -25884,7 +30043,7 @@ function inline__P190864_mk(s) { -function info_drawTimer__P90461(s) { +function game_BaseDialog_clearInterior__P155667(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25894,289 +30053,205 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.font___190942 = undefined; - s.smallFont___190944 = undefined; - s.seconds___190946 = undefined; - s.width___190950 = undefined; - s.left___190955 = undefined; - s.color1___190965 = undefined; - s.color2___190969 = undefined; - s.temp___190982 = undefined; - s.remainder___191018 = undefined; - s.decimalLeft___191037 = undefined; - s.minutes___191055 = undefined; - s.remainder___191059 = undefined; + s.d___160718 = undefined; + s.s___160725 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (s.arg0 < 0); + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C153961_VT)) failedCast(r0); + r0 = s.arg0.fields["unit"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.arg0 = (0); + s.tmp_2 = game_BaseDialog_fastFill__P155666_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = 4; + s.tmp_2.arg2 = 1; + s.tmp_2.arg3 = 1; + r0 = s.arg0.fields["columns"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 - 2); + s.tmp_2.arg4 = r0; + r0 = s.arg0.fields["rows"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 - 2); + s.tmp_2.arg5 = r0; + s.callLocIdx = 1028; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + { step = 7; continue; } case 1: case 2: - r0 = (s.arg0 | 0); - s.arg0 = (r0); - s.font___190942 = (globals.font8___88230); - s.smallFont___190944 = (globals.font5___88235); - r0 = pxsim.Math_.idiv(s.arg0, 1000); - s.seconds___190946 = (r0); - s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.font___190942; - 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 = 93; s.pc = 11; return s.tmp_2; } - } - case 11: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 * 5); - s.tmp_0 = r0; - r0 = (s.tmp_0 - 2); - s.width___190950 = (r0); - r0 = pxsim_ImageMethods.width(globals.screen___88287); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.width___190950 >> 1); + s.d___160718 = (1); + case 3: + s.tmp_1 = r0 = s.d___160718; + r0 = s.arg0.fields["columns"]; s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - s.left___190955 = (r0); - r0 = globals.infoState___90410.fields["fontColor"]; - s.color1___190965 = (r0); - r0 = globals.infoState___90410.fields["bgColor"]; - s.color2___190969 = (r0); - r0 = (s.seconds___190946 < 10); + r0 = (s.tmp_3 - 1); + 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 = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = (s.seconds___190946 & 1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.s___160725 = (1); case 4: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (r0) { step = 5; continue; } - r0 = s.tmp_1; - { step = 6; continue; } - case 5: - r0 = pxsim_ImageMethods.isMono(globals.screen___88287); + s.tmp_1 = r0 = s.s___160725; + r0 = s.arg0.fields["rows"]; s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = (s.tmp_3 - 1); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_4 = game_BaseDialog_drawPartial__P155668_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = 4; + s.tmp_4.arg2 = s.d___160718; + s.tmp_4.arg3 = s.s___160725; + s.callLocIdx = 1029; s.pc = 9; return s.tmp_4; + case 9: + r0 = s.retval; + r0 = (s.s___160725 + 1); + s.s___160725 = (r0); + { step = 4; continue; } + case 5: + r0 = (s.d___160718 + 1); + s.d___160718 = (r0); + { step = 3; continue; } case 6: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 7; continue; } - s.temp___190982 = (s.color1___190965); - s.color1___190965 = (s.color2___190969); - s.color2___190969 = (s.temp___190982); case 7: - case 8: - s.tmp_0 = helpers_imageFillRect__P88213_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - r0 = (s.left___190955 - 3); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 0; - r0 = (s.width___190950 + 6); - s.tmp_0.arg3 = r0; - s.tmp_2 = if_charHeight_1_mk(s); - s.tmp_2.arg0 = s.font___190942; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charHeight"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charHeight"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 94; s.pc = 13; return s.tmp_2; } - } - case 13: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 + 3); - s.tmp_0.arg4 = r0; - r0 = globals.infoState___90410.fields["borderColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 95; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P88213_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - r0 = (s.left___190955 - 2); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 0; - r0 = (s.width___190950 + 4); - s.tmp_0.arg3 = r0; - s.tmp_2 = if_charHeight_1_mk(s); - s.tmp_2.arg0 = s.font___190942; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charHeight"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charHeight"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 96; s.pc = 15; return s.tmp_2; } + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_BaseDialog_clearInterior__P155667.info = {"start":3911,"length":342,"line":132,"column":8,"endLine":141,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"clearInterior","argumentNames":["this"]} + +function game_BaseDialog_clearInterior__P155667_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_BaseDialog_clearInterior__P155667, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + d___160718: undefined, + s___160725: undefined, + arg0: undefined, +} } + + + + + +function game_BaseDialog_drawPartial__P155668(s) { +let r0 = s.r0, 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.x0___160743 = undefined; + s.y0___160751 = undefined; + s.xf___160759 = undefined; + s.yf___160766 = undefined; + s.e___160773 = undefined; + s.t___160779 = 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; } - case 15: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 + 2); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.color2___190969; - s.callLocIdx = 97; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - r0 = (s.seconds___190946 < 60); + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C153961_VT)) failedCast(r0); + r0 = s.arg0.fields["innerLeft"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = (s.arg0 % 1000); - s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.tmp_1, 10); - s.remainder___191018 = (r0); - s.tmp_0 = helpers_imagePrint__P88245_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - s.tmp_3 = info_formatDecimal__P90463_mk(s); - s.tmp_3.arg0 = s.seconds___190946; - s.callLocIdx = 98; s.pc = 17; return s.tmp_3; - case 17: - r0 = s.retval; + r0 = s.arg0.fields["unit"]; s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 18); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 18: - r0 = s.retval; + r0 = (s.arg2 * s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "."); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.left___190955; - s.tmp_0.arg3 = 1; - s.tmp_0.arg4 = s.color1___190965; - s.tmp_0.arg5 = s.font___190942; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 99; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - s.tmp_0 = r0 = s.left___190955; - s.tmp_3 = if_charWidth_1_mk(s); - s.tmp_3.arg0 = s.font___190942; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charWidth"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charWidth"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charWidth"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 100; s.pc = 19; return s.tmp_3; } - } - case 19: - r0 = s.retval; + r0 = (s.tmp_0 + s.tmp_1); + s.x0___160743 = (r0); + r0 = s.arg0.fields["innerTop"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["unit"]; s.tmp_2 = r0; - r0 = (3 * s.tmp_2); + r0 = (s.arg3 * s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); - s.decimalLeft___191037 = (r0); - s.tmp_0 = helpers_imagePrint__P88245_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - s.tmp_1 = info_formatDecimal__P90463_mk(s); - s.tmp_1.arg0 = s.remainder___191018; - s.callLocIdx = 101; s.pc = 21; return s.tmp_1; - case 21: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.decimalLeft___191037; - s.tmp_0.arg3 = 3; - s.tmp_0.arg4 = s.color1___190965; - s.tmp_0.arg5 = s.smallFont___190944; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 102; s.pc = 20; return s.tmp_0; - case 20: - r0 = s.retval; - { step = 10; continue; } - case 9: - r0 = pxsim.Math_.idiv(s.seconds___190946, 60); - s.minutes___191055 = (r0); - r0 = (s.seconds___190946 % 60); - s.remainder___191059 = (r0); - s.tmp_0 = helpers_imagePrint__P88245_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - s.tmp_5 = info_formatDecimal__P90463_mk(s); - s.tmp_5.arg0 = s.minutes___191055; - s.callLocIdx = 103; s.pc = 23; return s.tmp_5; - case 23: - r0 = s.retval; - s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 24); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 24: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_String__concat(s.tmp_3, ":"); - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 25); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 25: - r0 = s.retval; + s.y0___160751 = (r0); + r0 = (s.arg1 % 3); + s.tmp_0 = r0; + r0 = s.arg0.fields["unit"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 * s.tmp_1); + s.xf___160759 = (r0); + r0 = pxsim.Math_.idiv(s.arg1, 3); + s.tmp_0 = r0; + r0 = s.arg0.fields["unit"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 * s.tmp_1); + s.yf___160766 = (r0); + s.e___160773 = (0); + case 1: + r0 = s.arg0.fields["unit"]; s.tmp_1 = r0; - s.tmp_8 = info_formatDecimal__P90463_mk(s); - s.tmp_8.arg0 = s.remainder___191059; - s.callLocIdx = 104; s.pc = 26; return s.tmp_8; - case 26: - r0 = s.retval; - s.tmp_7 = r0; - if ((s.tmp_7) && (s.tmp_7).vtable) { - setupResume(s, 27); - pxsim_String__stringConv(s.tmp_7); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_7) + ""; } - case 27: - r0 = s.retval; + r0 = (s.e___160773 < s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.t___160779 = (0); + case 2: + r0 = s.arg0.fields["unit"]; + s.tmp_1 = r0; + r0 = (s.t___160779 < s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.arg0.fields["image"]; + s.tmp_2 = r0; + r0 = (s.x0___160743 + s.e___160773); + s.tmp_3 = r0; + r0 = (s.y0___160751 + s.t___160779); + s.tmp_4 = r0; + r0 = s.arg0.fields["frame"]; s.tmp_6 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_6); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.left___190955; - s.tmp_0.arg3 = 1; - s.tmp_0.arg4 = s.color1___190965; - s.tmp_0.arg5 = s.font___190942; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 105; s.pc = 22; return s.tmp_0; - case 22: - r0 = s.retval; - case 10: + r0 = (s.xf___160759 + s.e___160773); + s.tmp_7 = r0; + r0 = (s.yf___160766 + s.t___160779); + s.tmp_8 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_6, s.tmp_7, s.tmp_8); + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_2, s.tmp_3, s.tmp_4, s.tmp_5); + r0 = (s.t___160779 + 1); + s.t___160779 = (r0); + { step = 2; continue; } + case 3: + r0 = (s.e___160773 + 1); + s.e___160773 = (r0); + { step = 1; continue; } + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -info_drawTimer__P90461.info = {"start":13488,"length":1328,"line":462,"column":4,"endLine":497,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"drawTimer","argumentNames":["millis"]} +game_BaseDialog_drawPartial__P155668.info = {"start":4263,"length":604,"line":143,"column":8,"endLine":158,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawPartial","argumentNames":["this","index","colTo","rowTo"]} -function info_drawTimer__P90461_mk(s) { +function game_BaseDialog_drawPartial__P155668_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_drawTimer__P90461, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_drawPartial__P155668, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26187,26 +30262,23 @@ function info_drawTimer__P90461_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - font___190942: undefined, - smallFont___190944: undefined, - seconds___190946: undefined, - width___190950: undefined, - left___190955: undefined, - color1___190965: undefined, - color2___190969: undefined, - temp___190982: undefined, - remainder___191018: undefined, - decimalLeft___191037: undefined, - minutes___191055: undefined, - remainder___191059: undefined, + x0___160743: undefined, + y0___160751: undefined, + xf___160759: undefined, + yf___160766: undefined, + e___160773: undefined, + t___160779: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function info_formatDecimal__P90463(s) { +function game_BaseDialog_fastFill__P155666(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26216,51 +30288,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.color___160815 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = (s.arg0 | 0); - s.arg0 = (r0); - r0 = (s.arg0 < 10); + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C153961_VT)) failedCast(r0); + r0 = s.arg0.fields["frame"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 4); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 4: - r0 = s.retval; + r0 = (s.arg1 % 3); s.tmp_1 = r0; - r0 = pxsim_String__concat("0", s.tmp_1); - { step = 3; continue; } + r0 = pxsim.Math_.idiv(s.arg1, 3); + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_2); + s.color___160815 = (r0); + s.tmp_0 = helpers_imageFillRect__P153212_mk(s); + r0 = s.arg0.fields["image"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["innerLeft"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 + s.arg2); + s.tmp_0.arg1 = r0; + r0 = s.arg0.fields["innerTop"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.arg3); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.arg4; + s.tmp_0.arg4 = s.arg5; + s.tmp_0.arg5 = s.color___160815; + s.callLocIdx = 1027; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = pxsim_numops.toString(s.arg0); - case 3: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -info_formatDecimal__P90463.info = {"start":28426,"length":156,"line":916,"column":4,"endLine":922,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"formatDecimal","argumentNames":["val"]} +game_BaseDialog_fastFill__P155666.info = {"start":3652,"length":249,"line":127,"column":8,"endLine":130,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"fastFill","argumentNames":["this","index","x","y","w","h"]} -function info_formatDecimal__P90463_mk(s) { +function game_BaseDialog_fastFill__P155666_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_formatDecimal__P90463, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_fastFill__P155666, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + color___160815: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function info_InfoState_constructor__P90408(s) { +function game_GameOverDialog_drawTextCore__P154004(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26270,94 +30362,151 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scoreColor___160669 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_InfoState__C90407_VT)) failedCast(r0); - r0 = (s.arg0).fields["visibilityFlag"] = (8); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["playerStates"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = info_defaultHeartImage__P90458_mk(s); - s.callLocIdx = 61; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["heartImage"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.image.ofBuffer(_hex191704); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["multiplierImage"] = (s.tmp_1); - r0 = pxsim_ImageMethods.isMono(globals.screen___88287); + if (!checkSubtype(r0, game_GameOverDialog__C154000_VT)) failedCast(r0); + r0 = s.arg0.fields["win"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = 0; + r0 = "YOU WIN!"; { step = 2; continue; } case 1: - r0 = 1; + r0 = "GAME OVER!"; case 2: // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.arg0).fields["bgColor"] = (s.tmp_1); - r0 = pxsim_ImageMethods.isMono(globals.screen___88287); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_ImageMethods.isMono(globals.screen___153286); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 3; continue; } r0 = 1; { step = 4; continue; } case 3: - r0 = 3; + r0 = 5; case 4: // jmp value (already in r0) + s.tmp_3 = r0; + s.tmp_4 = helpers_imagePrintCenter__P153243_mk(s); + r0 = s.arg0.fields["image"]; + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = s.tmp_1; + s.tmp_4.arg2 = 8; + s.tmp_4.arg3 = s.tmp_3; + s.tmp_4.arg4 = globals.font8___153229; + s.callLocIdx = 1034; s.pc = 11; return s.tmp_4; + case 11: + r0 = s.retval; + r0 = s.arg0.fields["score"]; s.tmp_1 = r0; - r0 = (s.arg0).fields["borderColor"] = (s.tmp_1); - r0 = pxsim_ImageMethods.isMono(globals.screen___88287); + r0 = (s.tmp_1 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = pxsim_ImageMethods.isMono(globals.screen___153286); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 5; continue; } r0 = 1; { step = 6; continue; } case 5: - r0 = 3; + r0 = 2; case 6: // jmp value (already in r0) + s.tmp_3 = r0; + s.scoreColor___160669 = (s.tmp_3); + s.tmp_0 = helpers_imagePrintCenter__P153243_mk(s); + r0 = s.arg0.fields["image"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["score"]; + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 13); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 13: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.arg0).fields["fontColor"] = (s.tmp_1); - r0 = (s.arg0).fields["countdownExpired"] = (undefined); - r0 = (s.arg0).fields["countdownEndHandler"] = (undefined); - r0 = (s.arg0).fields["gameEnd"] = (undefined); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + r0 = pxsim_String__concat("Score:", s.tmp_1); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 23; + s.tmp_0.arg3 = s.scoreColor___160669; + s.tmp_0.arg4 = globals.font8___153229; + s.callLocIdx = 1035; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + r0 = s.arg0.fields["isNewHighScore"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_1 = helpers_imagePrintCenter__P153243_mk(s); + r0 = s.arg0.fields["image"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = "New High Score!"; + s.tmp_1.arg2 = 34; + s.tmp_1.arg3 = s.scoreColor___160669; + s.tmp_1.arg4 = globals.font5___153234; + s.callLocIdx = 1036; s.pc = 14; return s.tmp_1; + case 14: + r0 = s.retval; + { step = 8; continue; } + case 7: + s.tmp_0 = helpers_imagePrintCenter__P153243_mk(s); + r0 = s.arg0.fields["image"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["highScore"]; + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 16: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["playerStates"] = (s.tmp_1); + r0 = pxsim_String__concat("HI", s.tmp_1); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 34; + s.tmp_0.arg3 = s.scoreColor___160669; + s.tmp_0.arg4 = globals.font8___153229; + s.callLocIdx = 1037; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + case 8: + case 9: + case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -info_InfoState_constructor__P90408.info = {"start":1045,"length":674,"line":43,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this"]} +game_GameOverDialog_drawTextCore__P154004.info = {"start":11548,"length":1200,"line":358,"column":8,"endLine":395,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawTextCore","argumentNames":["this"]} -function info_InfoState_constructor__P90408_mk(s) { +function game_GameOverDialog_drawTextCore__P154004_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_InfoState_constructor__P90408, depth: s.depth + 1, + parent: s, fn: game_GameOverDialog_drawTextCore__P154004, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + scoreColor___160669: undefined, arg0: undefined, } } -const _hex191704 = pxsim.BufferMethods.createBufferFromHex("87040500050000000100010010100000000100001010000001000100") -function info_defaultHeartImage__P90458(s) { +function game_BaseDialog_drawCursorRow__P153977(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26367,39 +30516,125 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_ImageMethods.isMono(globals.screen___88287); + s.offset___160570 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C153961_VT)) failedCast(r0); + s.offset___160570 = (0); + r0 = s.arg0.fields["cursorCount"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 20); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim.image.ofBuffer(_hex191732); - { step = 2; continue; } + s.offset___160570 = (1); case 1: - r0 = pxsim.image.ofBuffer(_hex191734); case 2: - // jmp value (already in r0) + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["cursorCount"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 + 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 % 40); s.tmp_1 = r0; - r0 = s.tmp_1; + r0 = (s.tmp_0).fields["cursorCount"] = (s.tmp_1); + r0 = s.arg0.fields["image"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["cursor"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["innerLeft"]; + s.tmp_6 = r0; + s.tmp_8 = game_BaseDialog_textAreaWidth__P155671_mk(s); + s.tmp_8.arg0 = s.arg0; + s.callLocIdx = 1008; s.pc = 3; return s.tmp_8; + case 3: + r0 = s.retval; + s.tmp_7 = r0; + r0 = (s.tmp_6 + s.tmp_7); + s.tmp_5 = r0; + r0 = s.arg0.fields["unit"]; + s.tmp_9 = r0; + r0 = (s.tmp_5 + s.tmp_9); + s.tmp_4 = r0; + r0 = (s.tmp_4 + s.offset___160570); + s.tmp_3 = r0; + r0 = s.arg0.fields["cursor"]; + s.tmp_11 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_11); + s.tmp_10 = r0; + r0 = (s.tmp_3 - s.tmp_10); + s.tmp_2 = r0; + r0 = s.arg0.fields["innerTop"]; + s.tmp_16 = r0; + r0 = s.arg0.fields["unit"]; + s.tmp_17 = r0; + r0 = (s.tmp_16 + s.tmp_17); + s.tmp_15 = r0; + s.tmp_19 = game_BaseDialog_textAreaHeight__P155672_mk(s); + s.tmp_19.arg0 = s.arg0; + s.callLocIdx = 1009; s.pc = 4; return s.tmp_19; + case 4: + r0 = s.retval; + s.tmp_18 = r0; + r0 = (s.tmp_15 + s.tmp_18); + s.tmp_14 = r0; + r0 = (s.tmp_14 + 1); + s.tmp_13 = r0; + r0 = s.arg0.fields["cursor"]; + s.tmp_22 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_22); + s.tmp_21 = r0; + r0 = (s.tmp_21 + 1); + s.tmp_20 = r0; + r0 = (s.tmp_13 - s.tmp_20); + s.tmp_12 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_12); + r0 = undefined; return leave(s, r0) default: oops() } } } -info_defaultHeartImage__P90458.info = {"start":5080,"length":592,"line":162,"column":4,"endLine":183,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"defaultHeartImage","argumentNames":[]} +game_BaseDialog_drawCursorRow__P153977.info = {"start":1832,"length":479,"line":74,"column":8,"endLine":87,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawCursorRow","argumentNames":["this"]} -function info_defaultHeartImage__P90458_mk(s) { +function game_BaseDialog_drawCursorRow__P153977_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_defaultHeartImage__P90458, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_drawCursorRow__P153977, depth: s.depth + 1, pc: 0, retval: undefined, 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, + offset___160570: undefined, + arg0: undefined, } } -const _hex191732 = pxsim.BufferMethods.createBufferFromHex("87040800070000001011000001000100010010001000000101001000010001001011000000000000") -const _hex191734 = pxsim.BufferMethods.createBufferFromHex("8704080007000000c0cc00002c220c002222c2002222220c20222202222422004222020020220000") -function info_PlayerInfo_drawLives__P88738(s) { +function game_BaseDialog_textAreaHeight__P155672(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26409,290 +30644,91 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___191096 = undefined; - s.font___191102 = undefined; - s.i___191145 = undefined; - s.num___191167 = undefined; - s.textWidth___191174 = undefined; - s.mult___191226 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C88711_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfo_getState__P88724_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 140; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.state___191096 = (r0); - r0 = s.state___191096.fields["life"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 7; continue; } - case 1: - case 2: - s.font___191102 = (globals.font8___88230); - r0 = s.state___191096.fields["life"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 <= 4); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_2 = helpers_imageFillRect__P88213_mk(s); - s.tmp_2.arg0 = globals.screen___88287; - s.tmp_2.arg1 = 0; - s.tmp_2.arg2 = 0; - r0 = s.state___191096.fields["life"]; - s.tmp_4 = r0; - r0 = globals.infoState___90410.fields["heartImage"]; - s.tmp_7 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_7); - s.tmp_6 = r0; - r0 = (s.tmp_6 + 1); - s.tmp_5 = r0; - r0 = (s.tmp_4 * s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_3 + 3); - s.tmp_2.arg3 = r0; - r0 = globals.infoState___90410.fields["heartImage"]; - s.tmp_9 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_9); - s.tmp_8 = r0; - r0 = (s.tmp_8 + 4); - s.tmp_2.arg4 = r0; - r0 = globals.infoState___90410.fields["borderColor"]; - s.tmp_2.arg5 = r0; - s.callLocIdx = 141; s.pc = 9; return s.tmp_2; - case 9: - r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P88213_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 0; - r0 = s.state___191096.fields["life"]; + if (!checkSubtype(r0, game_BaseDialog__C153961_VT)) failedCast(r0); + r0 = s.arg0.fields["image"]; s.tmp_2 = r0; - r0 = globals.infoState___90410.fields["heartImage"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_4 + 1); - s.tmp_3 = r0; - r0 = (s.tmp_2 * s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_1 + 2); - s.tmp_0.arg3 = r0; - r0 = globals.infoState___90410.fields["heartImage"]; - s.tmp_7 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_7); - s.tmp_6 = r0; - r0 = (s.tmp_6 + 3); - s.tmp_0.arg4 = r0; - r0 = globals.infoState___90410.fields["bgColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 142; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - s.i___191145 = (0); - case 3: - r0 = s.state___191096.fields["life"]; + r0 = pxsim_ImageMethods.height(s.tmp_2); s.tmp_1 = r0; - r0 = (s.i___191145 < s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_2 = r0 = globals.screen___88287; - r0 = globals.infoState___90410.fields["heartImage"]; - s.tmp_3 = r0; - s.tmp_6 = r0 = s.i___191145; - r0 = globals.infoState___90410.fields["heartImage"]; - s.tmp_9 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_9); - s.tmp_8 = r0; - r0 = (s.tmp_8 + 1); - s.tmp_7 = r0; - r0 = (s.tmp_6 * s.tmp_7); + r0 = s.arg0.fields["innerTop"]; s.tmp_5 = r0; - r0 = (1 + s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_2, s.tmp_3, s.tmp_4, 1); - r0 = (s.i___191145 + 1); - s.i___191145 = (r0); - { step = 3; continue; } - case 4: - { step = 6; continue; } - case 5: - r0 = s.state___191096.fields["life"]; - s.tmp_1 = r0; - if ((s.tmp_1) && (s.tmp_1).vtable) { - setupResume(s, 11); - pxsim_String__stringConv(s.tmp_1); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_1) + ""; } - case 11: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_2); - s.num___191167 = (r0); - r0 = pxsim_String_.length(s.num___191167); - s.tmp_1 = r0; - s.tmp_3 = if_charWidth_1_mk(s); - s.tmp_3.arg0 = s.font___191102; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charWidth"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charWidth"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charWidth"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 143; s.pc = 12; return s.tmp_3; } - } - case 12: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 * s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); - s.textWidth___191174 = (r0); - s.tmp_0 = helpers_imageFillRect__P88213_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 0; - r0 = globals.infoState___90410.fields["heartImage"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_4); - s.tmp_3 = r0; - r0 = globals.infoState___90410.fields["multiplierImage"]; + r0 = s.arg0.fields["unit"]; s.tmp_6 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_6); - s.tmp_5 = r0; - r0 = (s.tmp_3 + s.tmp_5); - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.textWidth___191174); - s.tmp_1 = r0; - r0 = (s.tmp_1 + 5); - s.tmp_0.arg3 = r0; - r0 = globals.infoState___90410.fields["heartImage"]; - s.tmp_8 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_8); - s.tmp_7 = r0; - r0 = (s.tmp_7 + 4); - s.tmp_0.arg4 = r0; - r0 = globals.infoState___90410.fields["borderColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 144; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P88213_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 0; - r0 = globals.infoState___90410.fields["heartImage"]; + r0 = (s.tmp_5 + s.tmp_6); s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_4); + r0 = (s.tmp_4 << 1); s.tmp_3 = r0; - r0 = globals.infoState___90410.fields["multiplierImage"]; - s.tmp_6 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_6); - s.tmp_5 = r0; - r0 = (s.tmp_3 + s.tmp_5); - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.textWidth___191174); - s.tmp_1 = r0; - r0 = (s.tmp_1 + 4); - s.tmp_0.arg3 = r0; - r0 = globals.infoState___90410.fields["heartImage"]; - s.tmp_8 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_8); - s.tmp_7 = r0; - r0 = (s.tmp_7 + 3); - s.tmp_0.arg4 = r0; - r0 = globals.infoState___90410.fields["bgColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 145; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - r0 = globals.infoState___90410.fields["heartImage"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___88287, s.tmp_0, 1, 1); - r0 = globals.infoState___90410.fields["multiplierImage"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.clone(s.tmp_0); - s.mult___191226 = (r0); - r0 = globals.infoState___90410.fields["fontColor"]; + r0 = (s.tmp_1 - s.tmp_3); s.tmp_0 = r0; - r0 = pxsim_ImageMethods.replace(s.mult___191226, 1, s.tmp_0); - s.tmp_0 = r0 = globals.screen___88287; - s.tmp_1 = r0 = s.mult___191226; - r0 = globals.infoState___90410.fields["heartImage"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 + 2); - s.tmp_2 = r0; - s.tmp_8 = if_charHeight_1_mk(s); - s.tmp_8.arg0 = s.font___191102; - if (!s.tmp_8.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_8.arg0, "charHeight"); - } else { - s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["charHeight"]; - if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["charHeight"]; } - else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } - else { s.callLocIdx = 146; s.pc = 15; return s.tmp_8; } + r0 = (s.tmp_0 - 1); + return leave(s, r0) + default: oops() +} } } +game_BaseDialog_textAreaHeight__P155672.info = {"start":5183,"length":117,"line":172,"column":8,"endLine":174,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"textAreaHeight","argumentNames":["this"]} + +function game_BaseDialog_textAreaHeight__P155672_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_BaseDialog_textAreaHeight__P155672, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + arg0: undefined, +} } + + + + + +function game_BaseDialog_textAreaWidth__P155671(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; } - case 15: - r0 = s.retval; - s.tmp_7 = r0; - r0 = globals.infoState___90410.fields["multiplierImage"]; - s.tmp_10 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_10); - s.tmp_9 = r0; - r0 = (s.tmp_7 - s.tmp_9); - s.tmp_6 = r0; - r0 = (s.tmp_6 - 1); - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_5); - s.tmp_0 = helpers_imagePrint__P88245_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - s.tmp_0.arg1 = s.num___191167; - r0 = globals.infoState___90410.fields["heartImage"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_3); + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C153961_VT)) failedCast(r0); + r0 = s.arg0.fields["image"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + 3); + r0 = pxsim_ImageMethods.width(s.tmp_2); s.tmp_1 = r0; - r0 = globals.infoState___90410.fields["multiplierImage"]; + r0 = s.arg0.fields["innerLeft"]; s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); + r0 = s.arg0.fields["unit"]; + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); s.tmp_4 = r0; - r0 = (s.tmp_1 + s.tmp_4); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = 1; - r0 = globals.infoState___90410.fields["fontColor"]; - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.font___191102; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 147; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - case 6: - case 7: - r0 = undefined; + r0 = (s.tmp_4 << 1); + s.tmp_3 = r0; + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 2); return leave(s, r0) default: oops() } } } -info_PlayerInfo_drawLives__P88738.info = {"start":25956,"length":2458,"line":847,"column":8,"endLine":913,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"drawLives","argumentNames":["this"]} +game_BaseDialog_textAreaWidth__P155671.info = {"start":5057,"length":116,"line":168,"column":8,"endLine":170,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"textAreaWidth","argumentNames":["this"]} -function info_PlayerInfo_drawLives__P88738_mk(s) { +function game_BaseDialog_textAreaWidth__P155671_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_drawLives__P88738, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_textAreaWidth__P155671, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26701,16 +30737,6 @@ function info_PlayerInfo_drawLives__P88738_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - state___191096: undefined, - font___191102: undefined, - i___191145: undefined, - num___191167: undefined, - textWidth___191174: undefined, - mult___191226: undefined, arg0: undefined, } } @@ -26718,7 +30744,7 @@ function info_PlayerInfo_drawLives__P88738_mk(s) { -function info_PlayerInfo_drawScore__P88737(s) { +function game_BaseDialog_cursorRowHeight__P155669(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26728,161 +30754,143 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___191282 = undefined; - s.font___191286 = undefined; - s.offsetY___191287 = undefined; - s.num___191296 = undefined; - s.width___191300 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C88711_VT)) failedCast(r0); - s.tmp_1 = info_PlayerInfo_score__P88726_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 133; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 | 0); - s.s___191282 = (r0); - r0 = (s.s___191282 >= 1000000); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.offsetY___191287 = (2); - s.font___191286 = (globals.font5___88235); - { step = 2; continue; } - case 1: - s.offsetY___191287 = (1); - s.font___191286 = (globals.font8___88230); - case 2: - r0 = pxsim_numops.toString(s.s___191282); - s.num___191296 = (r0); - r0 = pxsim_String_.length(s.num___191296); + if (!checkSubtype(r0, game_BaseDialog__C153961_VT)) failedCast(r0); + r0 = s.arg0.fields["cursor"]; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_1); s.tmp_0 = r0; - s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.font___191286; - 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 = 134; s.pc = 4; return s.tmp_2; } + r0 = (s.tmp_0 + 1); + return leave(s, r0) + default: oops() +} } } +game_BaseDialog_cursorRowHeight__P155669.info = {"start":4877,"length":82,"line":160,"column":8,"endLine":162,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"cursorRowHeight","argumentNames":["this"]} + +function game_BaseDialog_cursorRowHeight__P155669_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_BaseDialog_cursorRowHeight__P155669, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function game_GameOverDialog_displayCursor__P154002(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; } - case 4: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0 * s.tmp_1); - s.width___191300 = (r0); - s.tmp_0 = helpers_imageFillRect__P88213_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - r0 = pxsim_ImageMethods.width(globals.screen___88287); - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.width___191300); - s.tmp_1 = r0; - r0 = (s.tmp_1 - 2); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 0; - r0 = pxsim_ImageMethods.width(globals.screen___88287); - s.tmp_0.arg3 = r0; - s.tmp_4 = if_charHeight_1_mk(s); - s.tmp_4.arg0 = globals.font8___88230; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charHeight"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charHeight"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charHeight"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 135; s.pc = 6; return s.tmp_4; } + r0 = s.arg0; + if (!checkSubtype(r0, game_GameOverDialog__C154000_VT)) failedCast(r0); + r0 = (s.arg0).fields["cursorOn"] = (true); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_GameOverDialog_displayCursor__P154002.info = {"start":11294,"length":61,"line":345,"column":8,"endLine":347,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"displayCursor","argumentNames":["this"]} + +function game_GameOverDialog_displayCursor__P154002_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_GameOverDialog_displayCursor__P154002, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function game_GameOverDialog_constructor__P154001(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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; } - case 6: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 + 3); - s.tmp_0.arg4 = r0; - r0 = globals.infoState___90410.fields["borderColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 136; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P88213_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - r0 = pxsim_ImageMethods.width(globals.screen___88287); - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.width___191300); - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); + r0 = s.arg0; + if (!checkSubtype(r0, game_GameOverDialog__C154000_VT)) failedCast(r0); + r0 = (s.arg0).fields["win"] = (s.arg1); + r0 = (s.arg0).fields["score"] = (s.arg2); + r0 = (s.arg0).fields["highScore"] = (s.arg3); + s.tmp_0 = game_BaseDialog_constructor__P153973_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___153286); s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 0; - r0 = pxsim_ImageMethods.width(globals.screen___88287); + s.tmp_0.arg2 = 46; + s.tmp_1 = game_defaultSplashFrame__P155679_mk(s); + s.callLocIdx = 1030; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; s.tmp_0.arg3 = r0; - s.tmp_4 = if_charHeight_1_mk(s); - s.tmp_4.arg0 = globals.font8___88230; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charHeight"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charHeight"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charHeight"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 137; s.pc = 8; return s.tmp_4; } - } - case 8: + s.tmp_0.arg4 = undefined; + s.tmp_0.arg5 = undefined; + s.callLocIdx = 1031; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; + r0 = (s.arg0).fields["cursorOn"] = (false); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["score"]; + s.tmp_2 = r0; + r0 = s.arg0.fields["highScore"]; s.tmp_3 = r0; - r0 = (s.tmp_3 + 2); - s.tmp_0.arg4 = r0; - r0 = globals.infoState___90410.fields["bgColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 138; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P88245_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - s.tmp_0.arg1 = s.num___191296; - r0 = pxsim_ImageMethods.width(globals.screen___88287); + r0 = (s.tmp_2 > s.tmp_3); s.tmp_1 = r0; - r0 = (s.tmp_1 - s.width___191300); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.offsetY___191287; - r0 = globals.infoState___90410.fields["fontColor"]; - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.font___191286; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 139; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; + r0 = (s.tmp_0).fields["isNewHighScore"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfo_drawScore__P88737.info = {"start":24898,"length":1048,"line":807,"column":8,"endLine":845,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"drawScore","argumentNames":["this"]} +game_GameOverDialog_constructor__P154001.info = {"start":10978,"length":306,"line":335,"column":8,"endLine":343,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["this","win","score","highScore"]} -function info_PlayerInfo_drawScore__P88737_mk(s) { +function game_GameOverDialog_constructor__P154001_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_drawScore__P88737, depth: s.depth + 1, + parent: s, fn: game_GameOverDialog_constructor__P154001, depth: s.depth + 1, pc: 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___191282: undefined, - font___191286: undefined, - offsetY___191287: undefined, - num___191296: undefined, - width___191300: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function info_PlayerInfo_score__P88726(s) { +function game_defaultSplashFrame__P155679(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26892,68 +30900,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___190654 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C88711_VT)) failedCast(r0); - r0 = s.arg0.fields["showScore"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); + r0 = pxsim_ImageMethods.isMono(globals.screen___153286); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["showScore"] = (true); + r0 = pxsim.image.ofBuffer(_hex160858); + { step = 2; continue; } case 1: + r0 = pxsim.image.ofBuffer(_hex160860); case 2: - r0 = s.arg0.fields["showPlayer"]; - 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 = (s.arg0).fields["showPlayer"] = (true); - case 3: - case 4: - s.tmp_0 = info_PlayerInfo_getState__P88724_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 110; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.state___190654 = (r0); - r0 = s.state___190654.fields["score"]; + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_1 == null); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = (s.state___190654).fields["score"] = (0); - case 5: - case 6: - r0 = s.state___190654.fields["score"]; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -info_PlayerInfo_score__P88726.info = {"start":17492,"length":314,"line":578,"column":8,"endLine":587,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"score","argumentNames":["this"]} +game_defaultSplashFrame__P155679.info = {"start":16870,"length":220,"line":528,"column":4,"endLine":541,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultSplashFrame","argumentNames":[]} -function info_PlayerInfo_score__P88726_mk(s) { +function game_defaultSplashFrame__P155679_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_score__P88726, depth: s.depth + 1, + parent: s, fn: game_defaultSplashFrame__P155679, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - state___190654: undefined, - arg0: undefined, } } +const _hex160858 = pxsim.BufferMethods.createBufferFromHex("8704030003000000010100000101000001010000") +const _hex160860 = pxsim.BufferMethods.createBufferFromHex("8704030003000000f1010000f1010000f1010000") -function info_PlayerInfo_drawPlayer__P88736(s) { +function game_BaseDialog_constructor__P153973(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26963,641 +30942,549 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___191372 = undefined; - s.font___191375 = undefined; - s.score___191377 = undefined; - s.life___191378 = undefined; - s.height___191379 = undefined; - s.scoreWidth___191380 = undefined; - s.lifeWidth___191381 = undefined; - s.offsetY___191384 = undefined; - s.showScore___191385 = undefined; - s.showLife___191393 = undefined; - s.width___191461 = undefined; - s.x___191471 = undefined; - s.y___191478 = undefined; - s.bump___191511 = undefined; - s.xLoc___191536 = undefined; - s.mult___191547 = undefined; - s.pNum___191609 = undefined; - s.iconWidth___191616 = undefined; - s.iconHeight___191624 = undefined; - s.iconX___191632 = undefined; - s.iconY___191644 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C88711_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfo_getState__P88724_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 116; s.pc = 43; return s.tmp_0; - case 43: - r0 = s.retval; - s.state___191372 = (r0); - s.font___191375 = (globals.font5___88235); - s.height___191379 = (4); - s.scoreWidth___191380 = (0); - s.lifeWidth___191381 = (0); - s.offsetY___191384 = (2); - r0 = s.arg0.fields["showScore"]; - s.tmp_0 = r0; + if (!checkSubtype(r0, game_BaseDialog__C153961_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.image.create(s.arg1, s.arg2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["image"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg3; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } + if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.state___191372.fields["score"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); + r0 = globals.dialogFrame___155662; case 2: // jmp value (already in r0) - s.tmp_2 = r0; - s.showScore___191385 = (s.tmp_2); - r0 = s.arg0.fields["showLife"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 3; continue; } + r0 = s.tmp_1; { step = 4; continue; } case 3: - r0 = s.state___191372.fields["life"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); + s.tmp_3 = game_defaultFrame__P155678_mk(s); + s.callLocIdx = 1002; s.pc = 13; return s.tmp_3; + case 13: + r0 = s.retval; + s.tmp_2 = r0; + globals.dialogFrame___155662 = (r0); + r0 = s.tmp_2; case 4: // jmp value (already in r0) - s.tmp_2 = r0; - s.showLife___191393 = (s.tmp_2); - r0 = pxsim_numops_toBoolDecr(s.showScore___191385); + s.tmp_4 = r0; + r0 = (s.arg0).fields["frame"] = (s.tmp_4); + s.tmp_0 = r0 = s.arg4; + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = pxsim_String_.mkEmpty(); - s.tmp_0 = r0; - r0 = s.state___191372.fields["score"]; - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 44); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 44: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.score___191377 = (r0); - r0 = pxsim_String_.length(s.score___191377); - s.tmp_1 = r0; - s.tmp_3 = if_charWidth_1_mk(s); - s.tmp_3.arg0 = s.font___191375; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charWidth"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charWidth"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charWidth"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 117; s.pc = 45; return s.tmp_3; } - } - case 45: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 * s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 3); - s.scoreWidth___191380 = (r0); - s.tmp_0 = r0 = s.height___191379; - s.tmp_2 = if_charHeight_1_mk(s); - s.tmp_2.arg0 = s.font___191375; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charHeight"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charHeight"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 118; s.pc = 46; return s.tmp_2; } - } - case 46: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.height___191379 = (r0); - s.tmp_0 = r0 = s.offsetY___191384; - s.tmp_3 = if_charHeight_1_mk(s); - s.tmp_3.arg0 = s.font___191375; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charHeight"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charHeight"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charHeight"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 119; s.pc = 47; return s.tmp_3; } - } - case 47: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.offsetY___191384 = (r0); + r0 = s.tmp_0; + { step = 6; continue; } case 5: + r0 = globals.font8___153229; case 6: - r0 = pxsim_numops_toBoolDecr(s.showLife___191393); - if (!r0) { step = 9; continue; } - r0 = s.state___191372.fields["life"]; - s.tmp_0 = r0; + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.arg0).fields["font"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg5; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 7; continue; } r0 = s.tmp_0; { step = 8; continue; } case 7: - r0 = 0; + r0 = globals.dialogCursor___155663; case 8: // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_2 = r0; - if ((s.tmp_1) && (s.tmp_1).vtable) { - setupResume(s, 48); - pxsim_String__stringConv(s.tmp_1); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_1) + ""; } - case 48: + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 9; continue; } + r0 = s.tmp_1; + { step = 10; continue; } + case 9: + s.tmp_3 = game_defaultCursorImage__P155680_mk(s); + s.callLocIdx = 1003; s.pc = 14; return s.tmp_3; + case 14: r0 = s.retval; + s.tmp_2 = r0; + globals.dialogCursor___155663 = (r0); + r0 = s.tmp_2; + case 10: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = (s.arg0).fields["cursor"] = (s.tmp_4); + r0 = (globals.dialogTextColor___155664 == undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + globals.dialogTextColor___155664 = (15); + r0 = 15; + { step = 12; continue; } + case 11: + r0 = globals.dialogTextColor___155664; + case 12: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.arg0).fields["textColor"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["frame"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_4); s.tmp_3 = r0; - r0 = pxsim_String__concat(s.tmp_2, s.tmp_3); - s.life___191378 = (r0); - r0 = globals.infoState___90410.fields["heartImage"]; + r0 = (s.tmp_3 / 3); + s.tmp_2 = r0; + r0 = pxsim.Math_.floor(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["unit"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["unit"]; s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_3); + r0 = (s.arg1 / s.tmp_3); s.tmp_2 = r0; - r0 = globals.infoState___90410.fields["multiplierImage"]; + r0 = pxsim.Math_.floor(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["columns"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["unit"]; + s.tmp_3 = r0; + r0 = (s.arg2 / s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim.Math_.floor(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["rows"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = r0 = s.arg1; + r0 = s.arg0.fields["columns"]; s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); + r0 = s.arg0.fields["unit"]; + s.tmp_6 = r0; + r0 = (s.tmp_5 * s.tmp_6); s.tmp_4 = r0; - r0 = (s.tmp_2 + s.tmp_4); + r0 = (s.tmp_3 - s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; - r0 = pxsim_String_.length(s.life___191378); - s.tmp_7 = r0; - s.tmp_9 = if_charWidth_1_mk(s); - s.tmp_9.arg0 = s.font___191375; - if (!s.tmp_9.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "charWidth"); - } else { - s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["charWidth"]; - if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["charWidth"]; } - else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } - else { s.callLocIdx = 120; s.pc = 49; return s.tmp_9; } - } - case 49: - r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_7 * s.tmp_8); + r0 = (s.tmp_0).fields["innerLeft"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = r0 = s.arg2; + r0 = s.arg0.fields["rows"]; + s.tmp_5 = r0; + r0 = s.arg0.fields["unit"]; s.tmp_6 = r0; - r0 = (s.tmp_1 + s.tmp_6); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 3); - s.lifeWidth___191381 = (r0); - s.tmp_0 = r0 = s.height___191379; - r0 = globals.infoState___90410.fields["heartImage"]; + r0 = (s.tmp_5 * s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_3 - s.tmp_4); s.tmp_2 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_2); + r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.height___191379 = (r0); - case 9: - case 10: - s.tmp_0 = Math_max__P86610_mk(s); - s.tmp_0.arg0 = s.scoreWidth___191380; - s.tmp_0.arg1 = s.lifeWidth___191381; - s.callLocIdx = 121; s.pc = 50; return s.tmp_0; - case 50: + r0 = (s.tmp_0).fields["innerTop"] = (s.tmp_1); + r0 = (s.arg0).fields["cursorCount"] = (0); + s.tmp_0 = game_BaseDialog_drawBorder__P155665_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1004; s.pc = 15; return s.tmp_0; + case 15: r0 = s.retval; - s.width___191461 = (r0); - s.tmp_0 = r0 = s.showScore___191385; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 11; continue; } - r0 = s.tmp_0; - { step = 12; continue; } - case 11: - r0 = s.showLife___191393; + s.tmp_0 = game_BaseDialog_clearInterior__P155667_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1005; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_BaseDialog_constructor__P153973.info = {"start":634,"length":895,"line":36,"column":8,"endLine":58,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["this","width","height","frame","font","cursor"]} + +function game_BaseDialog_constructor__P153973_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_BaseDialog_constructor__P153973, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, +} } + + + + + +function game_defaultCursorImage__P155680(s) { +let r0 = s.r0, 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_ImageMethods.isMono(globals.screen___153286); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.image.ofBuffer(_hex161044); + { step = 2; continue; } + case 1: + r0 = pxsim.image.ofBuffer(_hex161046); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.tmp_1; + return leave(s, r0) + default: oops() +} } } +game_defaultCursorImage__P155680.info = {"start":17096,"length":690,"line":543,"column":4,"endLine":569,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultCursorImage","argumentNames":[]} + +function game_defaultCursorImage__P155680_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_defaultCursorImage__P155680, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, +} } + +const _hex161044 = pxsim.BufferMethods.createBufferFromHex("87040a000800000011111101010000010111010111100001011101010100000101000001100010000001010000100000") +const _hex161046 = pxsim.BufferMethods.createBufferFromHex("87040b000b00000000606686080000006076776686000000607777676608000076171111670800007671177766080000767117776608000076711777660800007617111167080000607777676608000060767766860000000060668608000000") + + + + +function game_defaultFrame__P155678(s) { +let r0 = s.r0, 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_ImageMethods.isMono(globals.screen___153286); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.image.ofBuffer(_hex161050); + { step = 2; continue; } + case 1: + r0 = pxsim.image.ofBuffer(_hex161052); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.tmp_1; + return leave(s, r0) + default: oops() +} } } +game_defaultFrame__P155678.info = {"start":16308,"length":556,"line":504,"column":4,"endLine":526,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultFrame","argumentNames":[]} + +function game_defaultFrame__P155678_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_defaultFrame__P155678, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, +} } + +const _hex161050 = pxsim.BufferMethods.createBufferFromHex("8704030003000000110100000101000011010000") +const _hex161052 = pxsim.BufferMethods.createBufferFromHex("87040c000c0000000000000000000000b0bbbbbbbb0b0000b0bbbbbbbbcb0000b0db1111bdcb0000b01b1111b1cb0000b01b1111b1cb0000b01b1111b1cb0000b01b1111b1cb0000b0db1111bdcb0000b0bbbbbbbbcb0000b0bbbbbbbbcb000000cccccccccc0000") + + + + +function game_BaseDialog_drawBorder__P155665(s) { +let r0 = s.r0, 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.y___160975 = undefined; + s.c___160991 = undefined; + s.r___161025 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C153961_VT)) failedCast(r0); + r0 = s.arg0.fields["unit"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = game_BaseDialog_fastFill__P155666_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = 0; + s.tmp_2.arg2 = 0; + s.tmp_2.arg3 = 0; + s.tmp_2.arg4 = 1; + s.tmp_2.arg5 = 1; + s.callLocIdx = 1011; s.pc = 12; return s.tmp_2; case 12: - // jmp value (already in r0) + r0 = s.retval; + s.tmp_0 = game_BaseDialog_fastFill__P155666_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 1; + s.tmp_0.arg2 = 1; + s.tmp_0.arg3 = 0; + r0 = s.arg0.fields["columns"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 13; continue; } - r0 = (s.height___191379 + 1); - s.height___191379 = (r0); + r0 = (s.tmp_1 - 2); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = 1; + s.callLocIdx = 1012; s.pc = 13; return s.tmp_0; case 13: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_fastFill__P155666_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 2; + r0 = s.arg0.fields["columns"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 1); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 0; + s.tmp_0.arg4 = 1; + s.tmp_0.arg5 = 1; + s.callLocIdx = 1013; s.pc = 14; return s.tmp_0; case 14: - r0 = s.arg0.fields["left"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - r0 = s.width___191461; - { step = 16; continue; } + r0 = s.retval; + s.tmp_0 = game_BaseDialog_fastFill__P155666_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 3; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = 1; + s.tmp_0.arg4 = 1; + r0 = s.arg0.fields["rows"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 2); + s.tmp_0.arg5 = r0; + s.callLocIdx = 1014; s.pc = 15; return s.tmp_0; case 15: - r0 = 0; - case 16: - // jmp value (already in r0) + r0 = s.retval; + s.tmp_0 = game_BaseDialog_fastFill__P155666_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 5; + r0 = s.arg0.fields["columns"]; s.tmp_1 = r0; - r0 = s.arg0.fields["x"]; + r0 = (s.tmp_1 - 1); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 1; + s.tmp_0.arg4 = 1; + r0 = s.arg0.fields["rows"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.tmp_1); - s.x___191471 = (r0); - r0 = s.arg0.fields["up"]; + r0 = (s.tmp_2 - 2); + s.tmp_0.arg5 = r0; + s.callLocIdx = 1015; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + r0 = s.arg0.fields["rows"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 17; continue; } - r0 = s.height___191379; - { step = 18; continue; } + r0 = (s.tmp_0 - 1); + s.y___160975 = (r0); + s.tmp_0 = game_BaseDialog_fastFill__P155666_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 6; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = s.y___160975; + s.tmp_0.arg4 = 1; + s.tmp_0.arg5 = 1; + s.callLocIdx = 1016; s.pc = 17; return s.tmp_0; case 17: - r0 = 0; - case 18: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.arg0.fields["y"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.tmp_1); - s.y___191478 = (r0); - s.tmp_0 = r0 = s.showScore___191385; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 19; continue; } - r0 = s.tmp_0; - { step = 20; continue; } - case 19: - r0 = s.showLife___191393; - case 20: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 21; continue; } - s.tmp_2 = helpers_imageFillRect__P88213_mk(s); - s.tmp_2.arg0 = globals.screen___88287; - s.tmp_2.arg1 = s.x___191471; - s.tmp_2.arg2 = s.y___191478; - s.tmp_2.arg3 = s.width___191461; - s.tmp_2.arg4 = s.height___191379; - r0 = s.arg0.fields["border"]; - s.tmp_2.arg5 = r0; - s.callLocIdx = 122; s.pc = 51; return s.tmp_2; - case 51: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P88213_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - r0 = (s.x___191471 + 1); - s.tmp_0.arg1 = r0; - r0 = (s.y___191478 + 1); - s.tmp_0.arg2 = r0; - r0 = (s.width___191461 - 2); - s.tmp_0.arg3 = r0; - r0 = (s.height___191379 - 2); + s.tmp_0 = game_BaseDialog_fastFill__P155666_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 7; + s.tmp_0.arg2 = 1; + s.tmp_0.arg3 = s.y___160975; + r0 = s.arg0.fields["columns"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 2); s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["bg"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 123; s.pc = 52; return s.tmp_0; - case 52: + s.tmp_0.arg5 = 1; + s.callLocIdx = 1017; s.pc = 18; return s.tmp_0; + case 18: r0 = s.retval; - case 21: - case 22: - r0 = pxsim_numops_toBoolDecr(s.showScore___191385); - if (!r0) { step = 25; continue; } - r0 = s.arg0.fields["left"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 23; continue; } - r0 = (s.width___191461 - s.scoreWidth___191380); - { step = 24; continue; } - case 23: - r0 = 0; - case 24: - // jmp value (already in r0) - s.tmp_1 = r0; - s.bump___191511 = (s.tmp_1); - s.tmp_0 = helpers_imagePrint__P88245_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - s.tmp_0.arg1 = s.score___191377; - r0 = (s.x___191471 + 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.bump___191511); + s.tmp_0 = game_BaseDialog_fastFill__P155666_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 8; + r0 = s.arg0.fields["columns"]; s.tmp_1 = r0; - r0 = (s.tmp_1 + 1); + r0 = (s.tmp_1 - 1); s.tmp_0.arg2 = r0; - r0 = (s.y___191478 + 2); - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["fc"]; - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.font___191375; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 124; s.pc = 53; return s.tmp_0; - case 53: + s.tmp_0.arg3 = s.y___160975; + s.tmp_0.arg4 = 1; + s.tmp_0.arg5 = 1; + s.callLocIdx = 1018; s.pc = 19; return s.tmp_0; + case 19: r0 = s.retval; - case 25: - case 26: - r0 = pxsim_numops_toBoolDecr(s.showLife___191393); - if (!r0) { step = 29; continue; } - r0 = s.arg0.fields["left"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 27; continue; } - r0 = (s.width___191461 - s.lifeWidth___191381); - { step = 28; continue; } - case 27: - r0 = 0; - case 28: - // jmp value (already in r0) + { step = 11; continue; } + case 1: + case 2: + s.c___160991 = (0); + case 3: + r0 = s.arg0.fields["columns"]; s.tmp_1 = r0; - r0 = (s.x___191471 + 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.tmp_1); - s.xLoc___191536 = (r0); - r0 = globals.infoState___90410.fields["multiplierImage"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.clone(s.tmp_0); - s.mult___191547 = (r0); - r0 = s.arg0.fields["fc"]; + r0 = (s.c___160991 < s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_ImageMethods.replace(s.mult___191547, 1, s.tmp_0); - s.tmp_0 = r0 = globals.screen___88287; - r0 = globals.infoState___90410.fields["heartImage"]; - s.tmp_1 = r0; - s.tmp_2 = r0 = s.xLoc___191536; - r0 = (s.y___191478 + s.offsetY___191384); - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_3); - s.tmp_0 = r0 = globals.screen___88287; - s.tmp_1 = r0 = s.mult___191547; - s.tmp_3 = r0 = s.xLoc___191536; - r0 = globals.infoState___90410.fields["heartImage"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + r0 = (s.c___160991 == 0); s.tmp_2 = r0; - r0 = (s.y___191478 + s.offsetY___191384); - s.tmp_9 = r0; - s.tmp_11 = if_charHeight_1_mk(s); - s.tmp_11.arg0 = s.font___191375; - if (!s.tmp_11.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "charHeight"); - } else { - s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["charHeight"]; - if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["charHeight"]; } - else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } - else { s.callLocIdx = 125; s.pc = 54; return s.tmp_11; } - } - case 54: + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 4; continue; } + s.tmp_3 = game_BaseDialog_drawPartial__P155668_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = 0; + s.tmp_3.arg2 = 0; + s.tmp_3.arg3 = 0; + s.callLocIdx = 1019; s.pc = 20; return s.tmp_3; + case 20: r0 = s.retval; - s.tmp_10 = r0; - r0 = (s.tmp_9 + s.tmp_10); - s.tmp_8 = r0; - r0 = globals.infoState___90410.fields["multiplierImage"]; - s.tmp_13 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_13); - s.tmp_12 = r0; - r0 = (s.tmp_8 - s.tmp_12); - s.tmp_7 = r0; - r0 = (s.tmp_7 - 1); - s.tmp_6 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_6); - s.tmp_0 = helpers_imagePrint__P88245_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - s.tmp_0.arg1 = s.life___191378; - s.tmp_3 = r0 = s.xLoc___191536; - r0 = globals.infoState___90410.fields["heartImage"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); - s.tmp_2 = r0; - r0 = globals.infoState___90410.fields["multiplierImage"]; - s.tmp_7 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_7); - s.tmp_6 = r0; - r0 = (s.tmp_2 + s.tmp_6); + s.tmp_0 = game_BaseDialog_drawPartial__P155668_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 6; + s.tmp_0.arg2 = 0; + r0 = s.arg0.fields["rows"]; s.tmp_1 = r0; - r0 = (s.tmp_1 + 1); - s.tmp_0.arg2 = r0; - r0 = (s.y___191478 + s.offsetY___191384); + r0 = (s.tmp_1 - 1); s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["fc"]; - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.font___191375; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 126; s.pc = 55; return s.tmp_0; - case 55: + s.callLocIdx = 1020; s.pc = 21; return s.tmp_0; + case 21: r0 = s.retval; - case 29: - case 30: - r0 = s.arg0.fields["showPlayer"]; + { step = 7; continue; } + case 4: + s.tmp_1 = r0 = s.c___160991; + r0 = s.arg0.fields["columns"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 - 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 === s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 41; continue; } - r0 = pxsim_String_.mkEmpty(); - s.tmp_1 = r0; - r0 = s.arg0.fields["_player"]; - s.tmp_3 = r0; - if ((s.tmp_3) && (s.tmp_3).vtable) { - setupResume(s, 56); - pxsim_String__stringConv(s.tmp_3); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_3) + ""; } - case 56: + if (!r0) { step = 5; continue; } + s.tmp_4 = game_BaseDialog_drawPartial__P155668_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = 2; + s.tmp_4.arg2 = s.c___160991; + s.tmp_4.arg3 = 0; + s.callLocIdx = 1021; s.pc = 22; return s.tmp_4; + case 22: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); - s.pNum___191609 = (r0); - r0 = pxsim_String_.length(s.pNum___191609); + s.tmp_0 = game_BaseDialog_drawPartial__P155668_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 8; + s.tmp_0.arg2 = s.c___160991; + r0 = s.arg0.fields["rows"]; s.tmp_1 = r0; - s.tmp_3 = if_charWidth_1_mk(s); - s.tmp_3.arg0 = s.font___191375; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charWidth"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charWidth"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charWidth"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 127; s.pc = 57; return s.tmp_3; } - } - case 57: + r0 = (s.tmp_1 - 1); + s.tmp_0.arg3 = r0; + s.callLocIdx = 1022; s.pc = 23; return s.tmp_0; + case 23: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 * s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - s.iconWidth___191616 = (r0); - s.tmp_0 = Math_max__P86610_mk(s); - s.tmp_0.arg0 = s.height___191379; - s.tmp_2 = if_charHeight_1_mk(s); - s.tmp_2.arg0 = s.font___191375; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charHeight"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charHeight"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 128; s.pc = 59; return s.tmp_2; } - } - case 59: + { step = 6; continue; } + case 5: + s.tmp_0 = game_BaseDialog_drawPartial__P155668_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 1; + s.tmp_0.arg2 = s.c___160991; + s.tmp_0.arg3 = 0; + s.callLocIdx = 1023; s.pc = 24; return s.tmp_0; + case 24: r0 = s.retval; + s.tmp_0 = game_BaseDialog_drawPartial__P155668_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 7; + s.tmp_0.arg2 = s.c___160991; + r0 = s.arg0.fields["rows"]; s.tmp_1 = r0; - r0 = (s.tmp_1 + 2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 129; s.pc = 58; return s.tmp_0; - case 58: + r0 = (s.tmp_1 - 1); + s.tmp_0.arg3 = r0; + s.callLocIdx = 1024; s.pc = 25; return s.tmp_0; + case 25: r0 = s.retval; - s.iconHeight___191624 = (r0); - r0 = s.arg0.fields["left"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 31; continue; } - r0 = (s.x___191471 - s.iconWidth___191616); - s.tmp_1 = r0; - r0 = (s.tmp_1 + 1); - { step = 32; continue; } - case 31: - r0 = (s.x___191471 + s.width___191461); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - case 32: - // jmp value (already in r0) + case 6: + case 7: + r0 = (s.c___160991 + 1); + s.c___160991 = (r0); + { step = 3; continue; } + case 8: + s.r___161025 = (1); + case 9: + s.tmp_1 = r0 = s.r___161025; + r0 = s.arg0.fields["rows"]; s.tmp_3 = r0; - s.iconX___191632 = (s.tmp_3); - s.iconY___191644 = (s.y___191478); - r0 = pxsim_numops_toBoolDecr(s.showScore___191385); - 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 = 33; continue; } - r0 = s.tmp_0; - { step = 34; continue; } - case 33: - r0 = pxsim_numops_toBoolDecr(s.showLife___191393); + r0 = (s.tmp_3 - 1); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 34: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 39; continue; } - r0 = s.arg0.fields["left"]; - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 35; continue; } - r0 = -1; - { step = 36; continue; } - case 35: - r0 = 1; - case 36: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = (s.iconX___191632 + s.tmp_5); - s.iconX___191632 = (r0); - r0 = s.arg0.fields["up"]; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 37; continue; } - r0 = (s.iconY___191644 - 3); - s.iconY___191644 = (r0); - case 37: - case 38: - case 39: - case 40: - s.tmp_0 = helpers_imageFillRect__P88213_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - s.tmp_0.arg1 = s.iconX___191632; - s.tmp_0.arg2 = s.iconY___191644; - s.tmp_0.arg3 = s.iconWidth___191616; - s.tmp_0.arg4 = s.iconHeight___191624; - r0 = s.arg0.fields["border"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 130; s.pc = 60; return s.tmp_0; - case 60: + if (!r0) { step = 10; continue; } + s.tmp_4 = game_BaseDialog_drawPartial__P155668_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = 3; + s.tmp_4.arg2 = 0; + s.tmp_4.arg3 = s.r___161025; + s.callLocIdx = 1025; s.pc = 26; return s.tmp_4; + case 26: r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P88245_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - s.tmp_0.arg1 = s.pNum___191609; - r0 = (s.iconX___191632 + 1); - s.tmp_0.arg2 = r0; - s.tmp_2 = r0 = s.iconY___191644; - r0 = (s.iconHeight___191624 >> 1); - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + s.tmp_0 = game_BaseDialog_drawPartial__P155668_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 5; + r0 = s.arg0.fields["columns"]; s.tmp_1 = r0; - s.tmp_6 = if_charHeight_1_mk(s); - s.tmp_6.arg0 = s.font___191375; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "charHeight"); - } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["charHeight"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["charHeight"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 131; s.pc = 62; return s.tmp_6; } - } - case 62: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 1); - s.tmp_4 = r0; - r0 = (s.tmp_1 - s.tmp_4); - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["bg"]; - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.font___191375; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 132; s.pc = 61; return s.tmp_0; - case 61: + r0 = (s.tmp_1 - 1); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.r___161025; + s.callLocIdx = 1026; s.pc = 27; return s.tmp_0; + case 27: r0 = s.retval; - case 41: - case 42: + r0 = (s.r___161025 + 1); + s.r___161025 = (r0); + { step = 9; continue; } + case 10: + case 11: r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfo_drawPlayer__P88736.info = {"start":21253,"length":3635,"line":702,"column":8,"endLine":805,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"drawPlayer","argumentNames":["this"]} +game_BaseDialog_drawBorder__P155665.info = {"start":2321,"length":1321,"line":89,"column":8,"endLine":125,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawBorder","argumentNames":["this"]} -function info_PlayerInfo_drawPlayer__P88736_mk(s) { +function game_BaseDialog_drawBorder__P155665_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_drawPlayer__P88736, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_drawBorder__P155665, depth: s.depth + 1, pc: 0, retval: undefined, 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, - state___191372: undefined, - font___191375: undefined, - score___191377: undefined, - life___191378: undefined, - height___191379: undefined, - scoreWidth___191380: undefined, - lifeWidth___191381: undefined, - offsetY___191384: undefined, - showScore___191385: undefined, - showLife___191393: undefined, - width___191461: undefined, - x___191471: undefined, - y___191478: undefined, - bump___191511: undefined, - xLoc___191536: undefined, - mult___191547: undefined, - pNum___191609: undefined, - iconWidth___191616: undefined, - iconHeight___191624: undefined, - iconX___191632: undefined, - iconY___191644: undefined, + y___160975: undefined, + c___160991: undefined, + r___161025: undefined, arg0: undefined, } } @@ -27605,7 +31492,7 @@ function info_PlayerInfo_drawPlayer__P88736_mk(s) { -function info_PlayerInfo_raiseLifeZero__P88735(s) { +function scene_setBackgroundImage__P153943(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27615,95 +31502,44 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___191350 = undefined; + s.scene___161832 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C88711_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfo_getState__P88724_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 113; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.state___191350 = (r0); - r0 = s.state___191350.fields["life"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== null); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 992; s.pc = 1; return s.tmp_0; case 1: - r0 = s.state___191350.fields["life"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 <= 0); - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 7; continue; } - r0 = (s.state___191350).fields["life"] = (null); - r0 = s.state___191350.fields["lifeZeroHandler"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_1 = if_lifeZeroHandler_1_mk(s); - s.tmp_1.arg0 = s.state___191350; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "lifeZeroHandler"), 1); - s.callLocIdx = 114; s.pc = 10; return s.tmp_1; - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["lifeZeroHandler"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["lifeZeroHandler"], 1); s.callLocIdx = 114; s.pc = 10; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 114; s.pc = 10; return s.tmp_1;; } - else { s.callLocIdx = 114; s.pc = 10; return s.tmp_1; } - } - case 10: r0 = s.retval; - { step = 6; continue; } - case 3: - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 4; continue; } - s.tmp_0 = game_over__P89027_mk(s); - s.tmp_0.arg0 = false; - s.tmp_0.arg1 = undefined; - s.callLocIdx = 115; s.pc = 11; return s.tmp_0; - case 11: + s.scene___161832 = (r0); + s.tmp_0 = scene_Background_image__P153756_mk(s); + r0 = s.scene___161832.fields["background"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 993; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; - case 4: - case 5: - case 6: - case 7: - case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfo_raiseLifeZero__P88735.info = {"start":20869,"length":374,"line":690,"column":8,"endLine":700,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"raiseLifeZero","argumentNames":["this","gameOver"]} +scene_setBackgroundImage__P153943.info = {"start":1938,"length":135,"line":78,"column":4,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setBackgroundImage","argumentNames":["img"]} -function info_PlayerInfo_raiseLifeZero__P88735_mk(s) { +function scene_setBackgroundImage__P153943_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_raiseLifeZero__P88735, depth: s.depth + 1, + parent: s, fn: scene_setBackgroundImage__P153943, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - state___191350: undefined, + scene___161832: undefined, arg0: undefined, - arg1: undefined, } } -function info_PlayerInfo_hasLife__P88733(s) { +function scene_Background_image__P153756(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27713,58 +31549,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___191269 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C88711_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfo_getState__P88724_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 112; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.state___191269 = (r0); - r0 = s.state___191269.fields["life"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.state___191269.fields["life"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 !== null); - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = s.tmp_3; + if (!checkSubtype(r0, scene_Background__C153749_VT)) failedCast(r0); + r0 = (s.arg0).fields["_image"] = (s.arg1); + r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfo_hasLife__P88733.info = {"start":20346,"length":141,"line":673,"column":8,"endLine":676,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"hasLife","argumentNames":["this"]} +scene_Background_image__P153756.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 info_PlayerInfo_hasLife__P88733_mk(s) { +function scene_Background_image__P153756_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_hasLife__P88733, depth: s.depth + 1, + parent: s, fn: scene_Background_image__P153756, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - state___191269: undefined, arg0: undefined, + arg1: undefined, } } -function info_PlayerInfo_hasScore__P88729(s) { +function scene_Background_image__P153755(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27774,34 +31586,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___190666 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C88711_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfo_getState__P88724_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 111; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.state___190666 = (r0); - r0 = s.state___190666.fields["score"]; + if (!checkSubtype(r0, scene_Background__C153749_VT)) failedCast(r0); + r0 = s.arg0.fields["_image"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = (s.tmp_0 !== undefined); - return leave(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_3 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___153286); + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___153286); + s.tmp_6 = r0; + r0 = pxsim.image.create(s.tmp_5, s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["_image"] = (s.tmp_4); + case 1: + case 2: + r0 = s.arg0.fields["_image"]; + return leaveAccessor(s, r0) default: oops() } } } -info_PlayerInfo_hasScore__P88729.info = {"start":18619,"length":111,"line":616,"column":8,"endLine":619,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"hasScore","argumentNames":["this"]} +scene_Background_image__P153755.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__P153755.isGetter = true; -function info_PlayerInfo_hasScore__P88729_mk(s) { +function scene_Background_image__P153755_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_hasScore__P88729, depth: s.depth + 1, + parent: s, fn: scene_Background_image__P153755, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - state___190666: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, arg0: undefined, } } @@ -27809,7 +31636,7 @@ function info_PlayerInfo_hasScore__P88729_mk(s) { -function info_PlayerState_constructor__P88686(s) { +function scene_Scene_destroy__P153929(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27824,17 +31651,34 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerState__C88682_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C153903_VT)) failedCast(r0); + r0 = (s.arg0).fields["eventContext"] = (undefined); + r0 = (s.arg0).fields["background"] = (undefined); + r0 = (s.arg0).fields["tileMap"] = (undefined); + r0 = (s.arg0).fields["allSprites"] = (undefined); + r0 = (s.arg0).fields["spriteNextId"] = (undefined); + r0 = (s.arg0).fields["spritesByKind"] = (undefined); + r0 = (s.arg0).fields["physicsEngine"] = (undefined); + r0 = (s.arg0).fields["camera"] = (undefined); + r0 = (s.arg0).fields["flags"] = (undefined); + r0 = (s.arg0).fields["destroyedHandlers"] = (undefined); + r0 = (s.arg0).fields["createdHandlers"] = (undefined); + r0 = (s.arg0).fields["overlapHandlers"] = (undefined); + r0 = (s.arg0).fields["tileOverlapHandlers"] = (undefined); + r0 = (s.arg0).fields["collisionHandlers"] = (undefined); + r0 = (s.arg0).fields["wallCollisionHandlers"] = (undefined); + r0 = (s.arg0).fields["gameForeverHandlers"] = (undefined); + r0 = (s.arg0).fields["_data"] = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerState_constructor__P88686.info = {"start":608,"length":17,"line":27,"column":8,"endLine":27,"endColumn":25,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this"]} +scene_Scene_destroy__P153929.info = {"start":6997,"length":764,"line":198,"column":8,"endLine":216,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"destroy","argumentNames":["this"]} -function info_PlayerState_constructor__P88686_mk(s) { +function scene_Scene_destroy__P153929_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerState_constructor__P88686, depth: s.depth + 1, + parent: s, fn: scene_Scene_destroy__P153929, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -27843,7 +31687,7 @@ function info_PlayerState_constructor__P88686_mk(s) { -function info_highScore__P88690(s) { +function info_highScore__P153689(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27853,9 +31697,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_1 = settings_readNumber__P88318_mk(s); + s.tmp_1 = settings_readNumber__P153317_mk(s); s.tmp_1.arg0 = "high-score"; - s.callLocIdx = 92; s.pc = 3; return s.tmp_1; + s.callLocIdx = 762; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0 = r0; @@ -27872,12 +31716,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -info_highScore__P88690.info = {"start":7086,"length":98,"line":240,"column":4,"endLine":242,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"highScore","argumentNames":[]} +info_highScore__P153689.info = {"start":7086,"length":98,"line":240,"column":4,"endLine":242,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"highScore","argumentNames":[]} -function info_highScore__P88690_mk(s) { +function info_highScore__P153689_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_highScore__P88690, depth: s.depth + 1, + parent: s, fn: info_highScore__P153689, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27888,7 +31732,7 @@ function info_highScore__P88690_mk(s) { -function settings_readNumber__P88318(s) { +function settings_readNumber__P153317(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27898,15 +31742,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___99817 = undefined; - s.nums___99824 = undefined; + s.buf___162764 = undefined; + s.nums___162771 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim.settings._get(s.arg0); - s.buf___99817 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___99817); + s.buf___162764 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___162764); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -27916,20 +31760,20 @@ switch (step) { { step = 7; continue; } { step = 6; continue; } case 1: - s.tmp_2 = msgpack_unpackNumberArray__P86661_mk(s); - s.tmp_2.arg0 = s.buf___99817; + s.tmp_2 = msgpack_unpackNumberArray__P151660_mk(s); + s.tmp_2.arg0 = s.buf___162764; s.tmp_2.arg1 = 0; - s.callLocIdx = 126; s.pc = 8; return s.tmp_2; + s.callLocIdx = 168; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; - s.nums___99824 = (r0); - s.tmp_0 = r0 = s.nums___99824; + s.nums___162771 = (r0); + s.tmp_0 = r0 = s.nums___162771; 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___99824); + r0 = pxsim_Array__length(s.nums___162771); s.tmp_1 = r0; r0 = (s.tmp_1 >= 1); case 3: @@ -27937,7 +31781,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.nums___99824, 0); + r0 = pxsim_Array__getAt(s.nums___162771, 0); { step = 7; continue; } case 4: case 5: @@ -27949,18 +31793,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_readNumber__P88318.info = {"start":2887,"length":313,"line":114,"column":4,"endLine":124,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readNumber","argumentNames":["key"]} +settings_readNumber__P153317.info = {"start":2887,"length":313,"line":114,"column":4,"endLine":124,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readNumber","argumentNames":["key"]} -function settings_readNumber__P88318_mk(s) { +function settings_readNumber__P153317_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readNumber__P88318, depth: s.depth + 1, + parent: s, fn: settings_readNumber__P153317, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - buf___99817: undefined, - nums___99824: undefined, + buf___162764: undefined, + nums___162771: undefined, arg0: undefined, } } @@ -27968,7 +31812,7 @@ function settings_readNumber__P88318_mk(s) { -function settings_readBuffer__P88316(s) { +function settings_readBuffer__P153315(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27986,12 +31830,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_readBuffer__P88316.info = {"start":2516,"length":72,"line":96,"column":4,"endLine":98,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readBuffer","argumentNames":["key"]} +settings_readBuffer__P153315.info = {"start":2516,"length":72,"line":96,"column":4,"endLine":98,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readBuffer","argumentNames":["key"]} -function settings_readBuffer__P88316_mk(s) { +function settings_readBuffer__P153315_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readBuffer__P88316, depth: s.depth + 1, + parent: s, fn: settings_readBuffer__P153315, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -28000,7 +31844,7 @@ function settings_readBuffer__P88316_mk(s) { -function msgpack_unpackNumberArray__P86661(s) { +function msgpack_unpackNumberArray__P151660(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28010,16 +31854,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___99837 = undefined; - s.fmt___99844 = undefined; - s.v___99853 = undefined; + s.res___162784 = undefined; + s.fmt___162791 = undefined; + s.v___162800 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.res___99837 = (r0); + s.res___162784 = (r0); case 1: s.tmp_1 = r0 = s.arg1; r0 = pxsim.BufferMethods.length(s.arg0); @@ -28031,14 +31875,14 @@ switch (step) { s.tmp_3 = r0 = s.arg1; r0 = (s.tmp_3 + 1); s.arg1 = (r0); - s.tmp_4 = msgpack_tagFormat__P90152_mk(s); + s.tmp_4 = msgpack_tagFormat__P155316_mk(s); r0 = pxsim.BufferMethods.getByte(s.arg0, s.tmp_3); s.tmp_4.arg0 = r0; - s.callLocIdx = 20; s.pc = 12; return s.tmp_4; + s.callLocIdx = 21; s.pc = 12; return s.tmp_4; case 12: r0 = s.retval; - s.fmt___99844 = (r0); - r0 = (s.fmt___99844 === null); + s.fmt___162791 = (r0); + r0 = (s.fmt___162791 === null); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } @@ -28046,21 +31890,21 @@ switch (step) { r0 = (s.arg1 - 1); s.tmp_2 = r0; r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 6, s.tmp_2); - s.v___99853 = (r0); - r0 = (-31 <= s.v___99853); + s.v___162800 = (r0); + r0 = (-31 <= s.v___162800); 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___99853 <= 127); + r0 = (s.v___162800 <= 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___99837, s.v___99853); + r0 = pxsim_Array__push(s.res___162784, s.v___162800); { step = 5; continue; } case 4: r0 = null; @@ -28068,14 +31912,14 @@ switch (step) { case 5: { step = 7; continue; } case 6: - s.tmp_0 = r0 = s.res___99837; - r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___99844, s.arg1); + s.tmp_0 = r0 = s.res___162784; + r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___162791, 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__P86653_mk(s); - s.tmp_2.arg0 = s.fmt___99844; - s.callLocIdx = 21; s.pc = 13; return s.tmp_2; + s.tmp_2 = pins_sizeOf__P151652_mk(s); + s.tmp_2.arg0 = s.fmt___162791; + s.callLocIdx = 22; s.pc = 13; return s.tmp_2; case 13: r0 = s.retval; s.tmp_1 = r0; @@ -28095,26 +31939,26 @@ switch (step) { case 9: { step = 1; continue; } case 10: - r0 = s.res___99837; + r0 = s.res___162784; case 11: return leave(s, r0) default: oops() } } } -msgpack_unpackNumberArray__P86661.info = {"start":2650,"length":669,"line":91,"column":4,"endLine":111,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"unpackNumberArray","argumentNames":["buf","offset"]} +msgpack_unpackNumberArray__P151660.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__P86661_mk(s) { +function msgpack_unpackNumberArray__P151660_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_unpackNumberArray__P86661, depth: s.depth + 1, + parent: s, fn: msgpack_unpackNumberArray__P151660, depth: s.depth + 1, pc: 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___99837: undefined, - fmt___99844: undefined, - v___99853: undefined, + res___162784: undefined, + fmt___162791: undefined, + v___162800: undefined, arg0: undefined, arg1: undefined, } } @@ -28123,7 +31967,7 @@ function msgpack_unpackNumberArray__P86661_mk(s) { -function msgpack_tagFormat__P90152(s) { +function msgpack_tagFormat__P155316(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28183,12 +32027,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -msgpack_tagFormat__P90152.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__P155316.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__P90152_mk(s) { +function msgpack_tagFormat__P155316_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_tagFormat__P90152, depth: s.depth + 1, + parent: s, fn: msgpack_tagFormat__P155316, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28198,7 +32042,7 @@ function msgpack_tagFormat__P90152_mk(s) { -function pins_sizeOf__P86653(s) { +function pins_sizeOf__P151652(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28212,20 +32056,20 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Buffer_sizeOfNumberFormat__P86689_mk(s); + s.tmp_0 = Buffer_sizeOfNumberFormat__P151688_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 17; s.pc = 1; return s.tmp_0; + s.callLocIdx = 18; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -pins_sizeOf__P86653.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__P151652.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__P86653_mk(s) { +function pins_sizeOf__P151652_mk(s) { checkStack(s.depth); return { - parent: s, fn: pins_sizeOf__P86653, depth: s.depth + 1, + parent: s, fn: pins_sizeOf__P151652, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28235,7 +32079,7 @@ function pins_sizeOf__P86653_mk(s) { -function Buffer_sizeOfNumberFormat__P86689(s) { +function Buffer_sizeOfNumberFormat__P151688(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28314,12 +32158,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Buffer_sizeOfNumberFormat__P86689.info = {"start":12467,"length":856,"line":427,"column":4,"endLine":451,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOfNumberFormat","argumentNames":["format"]} +Buffer_sizeOfNumberFormat__P151688.info = {"start":12467,"length":856,"line":427,"column":4,"endLine":451,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOfNumberFormat","argumentNames":["format"]} -function Buffer_sizeOfNumberFormat__P86689_mk(s) { +function Buffer_sizeOfNumberFormat__P151688_mk(s) { checkStack(s.depth); return { - parent: s, fn: Buffer_sizeOfNumberFormat__P86689, depth: s.depth + 1, + parent: s, fn: Buffer_sizeOfNumberFormat__P151688, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28329,7 +32173,7 @@ function Buffer_sizeOfNumberFormat__P86689_mk(s) { -function info_saveHighScore__P88687(s) { +function info_saveHighScore__P153686(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28339,54 +32183,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hs___190611 = undefined; - s.curr___190628 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.players___90411); + s.hs___162586 = undefined; + s.curr___162603 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.players___155575); if (!r0) { step = 5; continue; } r0 = pxsim_pxtrt.mklocRef(); - s.hs___190611 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.hs___190611, 0); - r0 = pxsim_pxtcore_mkAction(1, inline__P190621); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.hs___190611); - s.tmp_1 = helpers_arrayForEach__P86592_mk(s); - s.tmp_2 = helpers_arrayFilter__P86593_mk(s); - s.tmp_2.arg0 = globals.players___90411; - s.tmp_2.arg1 = inline__P190615; - s.callLocIdx = 86; s.pc = 8; return s.tmp_2; + s.hs___162586 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.hs___162586, 0); + r0 = pxsim_pxtcore_mkAction(1, inline__P162596); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.hs___162586); + s.tmp_1 = helpers_arrayForEach__P151591_mk(s); + s.tmp_2 = helpers_arrayFilter__P151592_mk(s); + s.tmp_2.arg0 = globals.players___155575; + s.tmp_2.arg1 = inline__P162590; + s.callLocIdx = 756; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 89; s.pc = 7; return s.tmp_1; + s.callLocIdx = 759; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; - s.tmp_0 = settings_readNumber__P88318_mk(s); + s.tmp_0 = settings_readNumber__P153317_mk(s); s.tmp_0.arg0 = "high-score"; - s.callLocIdx = 90; s.pc = 9; return s.tmp_0; + s.callLocIdx = 760; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.curr___190628 = (r0); - r0 = (s.curr___190628 == null); + s.curr___162603 = (r0); + r0 = (s.curr___162603 == null); 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_pxtrt_ldlocRef(s.hs___190611); + r0 = pxsim_pxtrt_ldlocRef(s.hs___162586); s.tmp_1 = r0; - r0 = (s.tmp_1 > s.curr___190628); + r0 = (s.tmp_1 > s.curr___162603); 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 = settings_writeNumber__P88314_mk(s); + s.tmp_3 = settings_writeNumber__P153313_mk(s); s.tmp_3.arg0 = "high-score"; - r0 = pxsim_pxtrt_ldlocRef(s.hs___190611); + r0 = pxsim_pxtrt_ldlocRef(s.hs___162586); s.tmp_3.arg1 = r0; - s.callLocIdx = 91; s.pc = 10; return s.tmp_3; + s.callLocIdx = 761; s.pc = 10; return s.tmp_3; case 10: r0 = s.retval; case 3: @@ -28397,26 +32241,26 @@ switch (step) { return leave(s, r0) default: oops() } } } -info_saveHighScore__P88687.info = {"start":6187,"length":383,"line":204,"column":4,"endLine":214,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"saveHighScore","argumentNames":[]} +info_saveHighScore__P153686.info = {"start":6187,"length":383,"line":204,"column":4,"endLine":214,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"saveHighScore","argumentNames":[]} -function info_saveHighScore__P88687_mk(s) { +function info_saveHighScore__P153686_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_saveHighScore__P88687, depth: s.depth + 1, + parent: s, fn: info_saveHighScore__P153686, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - hs___190611: undefined, - curr___190628: undefined, + hs___162586: undefined, + curr___162603: undefined, } } -function inline__P190615(s) { +function inline__P162590(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28436,9 +32280,9 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_1 = info_PlayerInfo_hasScore__P88729_mk(s); + s.tmp_1 = info_PlayerInfo_hasScore__P153728_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 85; s.pc = 3; return s.tmp_1; + s.callLocIdx = 755; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; case 2: @@ -28448,12 +32292,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P190615.info = {"start":6312,"length":22,"line":208,"column":24,"endLine":208,"endColumn":46,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} +inline__P162590.info = {"start":6312,"length":22,"line":208,"column":24,"endLine":208,"endColumn":46,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} -function inline__P190615_mk(s) { +function inline__P162590_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P190615, depth: s.depth + 1, + parent: s, fn: inline__P162590, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28465,7 +32309,7 @@ function inline__P190615_mk(s) { -function inline__P190621(s) { +function inline__P162596(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28480,16 +32324,16 @@ switch (step) { s.lambdaArgs = null; } s.tmp_0 = r0 = s.caps[0]; - s.tmp_2 = Math_max__P86610_mk(s); + s.tmp_2 = Math_max__P151609_mk(s); r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); s.tmp_2.arg0 = r0; - s.tmp_3 = info_PlayerInfo_score__P88726_mk(s); + s.tmp_3 = info_PlayerInfo_score__P153725_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 87; s.pc = 2; return s.tmp_3; + s.callLocIdx = 757; s.pc = 2; return s.tmp_3; case 2: r0 = s.retval; s.tmp_2.arg1 = r0; - s.callLocIdx = 88; s.pc = 1; return s.tmp_2; + s.callLocIdx = 758; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; @@ -28498,12 +32342,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P190621.info = {"start":6361,"length":33,"line":209,"column":25,"endLine":209,"endColumn":58,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} +inline__P162596.info = {"start":6361,"length":33,"line":209,"column":25,"endLine":209,"endColumn":58,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} -function inline__P190621_mk(s) { +function inline__P162596_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P190621, depth: s.depth + 1, + parent: s, fn: inline__P162596, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28516,7 +32360,7 @@ function inline__P190621_mk(s) { -function settings_writeNumber__P88314(s) { +function settings_writeNumber__P153313(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28534,27 +32378,27 @@ switch (step) { r0 = pxsim_Array__mk(); s.tmp_0 = r0; r0 = pxsim_Array__push(s.tmp_0, s.arg1); - s.tmp_1 = settings_writeBuffer__P88312_mk(s); + s.tmp_1 = settings_writeBuffer__P153311_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = msgpack_packNumberArray__P86662_mk(s); + s.tmp_2 = msgpack_packNumberArray__P151661_mk(s); s.tmp_2.arg0 = s.tmp_0; - s.callLocIdx = 122; s.pc = 2; return s.tmp_2; + s.callLocIdx = 164; s.pc = 2; return s.tmp_2; case 2: r0 = s.retval; s.tmp_1.arg1 = r0; - s.callLocIdx = 123; s.pc = 1; return s.tmp_1; + s.callLocIdx = 165; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -settings_writeNumber__P88314.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__P153313.info = {"start":2087,"length":122,"line":82,"column":4,"endLine":84,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeNumber","argumentNames":["key","value"]} -function settings_writeNumber__P88314_mk(s) { +function settings_writeNumber__P153313_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeNumber__P88314, depth: s.depth + 1, + parent: s, fn: settings_writeNumber__P153313, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28567,7 +32411,7 @@ function settings_writeNumber__P88314_mk(s) { -function settings_writeBuffer__P88312(s) { +function settings_writeBuffer__P153311(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28594,12 +32438,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_writeBuffer__P88312.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__P153311.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__P88312_mk(s) { +function settings_writeBuffer__P153311_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeBuffer__P88312, depth: s.depth + 1, + parent: s, fn: settings_writeBuffer__P153311, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28610,7 +32454,7 @@ function settings_writeBuffer__P88312_mk(s) { -function msgpack_packNumberArray__P86662(s) { +function msgpack_packNumberArray__P151661(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28620,100 +32464,100 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.off___99282 = undefined; - s.n___99284 = undefined; - s.unnamed364___U2 = undefined; - s.unnamed365___U3 = undefined; - s.buf___99294 = undefined; - s.n___99300 = undefined; - s.unnamed366___U6 = undefined; - s.unnamed367___U7 = undefined; + s.off___162624 = undefined; + s.n___162626 = undefined; + s.unnamed1466___U2 = undefined; + s.unnamed1467___U3 = undefined; + s.buf___162636 = undefined; + s.n___162642 = undefined; + s.unnamed1468___U6 = undefined; + s.unnamed1469___U7 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.off___99282 = (0); - s.n___99284 = (undefined); - s.unnamed364___U2 = (s.arg0); - s.unnamed365___U3 = (0); + s.off___162624 = (0); + s.n___162626 = (undefined); + s.unnamed1466___U2 = (s.arg0); + s.unnamed1467___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed365___U3; - r0 = pxsim_Array__length(s.unnamed364___U2); + s.tmp_0 = r0 = s.unnamed1467___U3; + r0 = pxsim_Array__length(s.unnamed1466___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed364___U2, s.unnamed365___U3); - s.n___99284 = (r0); - s.tmp_2 = r0 = s.off___99282; - s.tmp_4 = msgpack_packNumberCore__P90153_mk(s); + r0 = pxsim_Array__getAt(s.unnamed1466___U2, s.unnamed1467___U3); + s.n___162626 = (r0); + s.tmp_2 = r0 = s.off___162624; + s.tmp_4 = msgpack_packNumberCore__P155317_mk(s); s.tmp_4.arg0 = null; - s.tmp_4.arg1 = s.off___99282; - s.tmp_4.arg2 = s.n___99284; - s.callLocIdx = 22; s.pc = 5; return s.tmp_4; + s.tmp_4.arg1 = s.off___162624; + s.tmp_4.arg2 = s.n___162626; + s.callLocIdx = 23; s.pc = 5; return s.tmp_4; case 5: r0 = s.retval; s.tmp_3 = r0; r0 = (s.tmp_2 + s.tmp_3); - s.off___99282 = (r0); - r0 = (s.unnamed365___U3 + 1); - s.unnamed365___U3 = (r0); + s.off___162624 = (r0); + r0 = (s.unnamed1467___U3 + 1); + s.unnamed1467___U3 = (r0); { step = 1; continue; } case 2: - s.unnamed364___U2 = (undefined); - r0 = pxsim.control.createBuffer(s.off___99282); - s.buf___99294 = (r0); - s.off___99282 = (0); - s.n___99300 = (undefined); - s.unnamed366___U6 = (s.arg0); - s.unnamed367___U7 = (0); + s.unnamed1466___U2 = (undefined); + r0 = pxsim.control.createBuffer(s.off___162624); + s.buf___162636 = (r0); + s.off___162624 = (0); + s.n___162642 = (undefined); + s.unnamed1468___U6 = (s.arg0); + s.unnamed1469___U7 = (0); case 3: - s.tmp_0 = r0 = s.unnamed367___U7; - r0 = pxsim_Array__length(s.unnamed366___U6); + s.tmp_0 = r0 = s.unnamed1469___U7; + r0 = pxsim_Array__length(s.unnamed1468___U6); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed366___U6, s.unnamed367___U7); - s.n___99300 = (r0); - s.tmp_2 = r0 = s.off___99282; - s.tmp_4 = msgpack_packNumberCore__P90153_mk(s); - s.tmp_4.arg0 = s.buf___99294; - s.tmp_4.arg1 = s.off___99282; - s.tmp_4.arg2 = s.n___99300; - s.callLocIdx = 23; s.pc = 6; return s.tmp_4; + r0 = pxsim_Array__getAt(s.unnamed1468___U6, s.unnamed1469___U7); + s.n___162642 = (r0); + s.tmp_2 = r0 = s.off___162624; + s.tmp_4 = msgpack_packNumberCore__P155317_mk(s); + s.tmp_4.arg0 = s.buf___162636; + s.tmp_4.arg1 = s.off___162624; + s.tmp_4.arg2 = s.n___162642; + s.callLocIdx = 24; s.pc = 6; return s.tmp_4; case 6: r0 = s.retval; s.tmp_3 = r0; r0 = (s.tmp_2 + s.tmp_3); - s.off___99282 = (r0); - r0 = (s.unnamed367___U7 + 1); - s.unnamed367___U7 = (r0); + s.off___162624 = (r0); + r0 = (s.unnamed1469___U7 + 1); + s.unnamed1469___U7 = (r0); { step = 3; continue; } case 4: - s.unnamed366___U6 = (undefined); - r0 = s.buf___99294; + s.unnamed1468___U6 = (undefined); + r0 = s.buf___162636; return leave(s, r0) default: oops() } } } -msgpack_packNumberArray__P86662.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__P151661.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__P86662_mk(s) { +function msgpack_packNumberArray__P151661_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberArray__P86662, depth: s.depth + 1, + parent: s, fn: msgpack_packNumberArray__P151661, depth: s.depth + 1, pc: 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___99282: undefined, - n___99284: undefined, - unnamed364___U2: undefined, - unnamed365___U3: undefined, - buf___99294: undefined, - n___99300: undefined, - unnamed366___U6: undefined, - unnamed367___U7: undefined, + off___162624: undefined, + n___162626: undefined, + unnamed1466___U2: undefined, + unnamed1467___U3: undefined, + buf___162636: undefined, + n___162642: undefined, + unnamed1468___U6: undefined, + unnamed1469___U7: undefined, arg0: undefined, } } @@ -28721,7 +32565,7 @@ function msgpack_packNumberArray__P86662_mk(s) { -function msgpack_packNumberCore__P90153(s) { +function msgpack_packNumberCore__P155317(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28731,15 +32575,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tag___99314 = undefined; - s.fmt___99357 = undefined; + s.tag___162656 = undefined; + s.fmt___162699 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tag___99314 = (203); + s.tag___162656 = (203); s.tmp_1 = r0 = s.arg2; r0 = (s.arg2 << 0); s.tmp_2 = r0; @@ -28789,17 +32633,17 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 8; continue; } - s.tag___99314 = (204); + s.tag___162656 = (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___99314 = (205); + s.tag___162656 = (205); { step = 10; continue; } case 9: - s.tag___99314 = (206); + s.tag___162656 = (206); case 10: case 11: { step = 17; continue; } @@ -28808,42 +32652,42 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - s.tag___99314 = (208); + s.tag___162656 = (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___99314 = (209); + s.tag___162656 = (209); { step = 15; continue; } case 14: - s.tag___99314 = (210); + s.tag___162656 = (210); case 15: case 16: case 17: case 18: case 19: case 20: - s.tmp_0 = msgpack_tagFormat__P90152_mk(s); - s.tmp_0.arg0 = s.tag___99314; - s.callLocIdx = 18; s.pc = 24; return s.tmp_0; + s.tmp_0 = msgpack_tagFormat__P155316_mk(s); + s.tmp_0.arg0 = s.tag___162656; + s.callLocIdx = 19; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.fmt___99357 = (r0); + s.fmt___162699 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg0); if (!r0) { step = 21; continue; } - r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___99314); + r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___162656); s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.fmt___99357; + s.tmp_1 = r0 = s.fmt___162699; 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__P86653_mk(s); - s.tmp_1.arg0 = s.fmt___99357; - s.callLocIdx = 19; s.pc = 25; return s.tmp_1; + s.tmp_1 = pins_sizeOf__P151652_mk(s); + s.tmp_1.arg0 = s.fmt___162699; + s.callLocIdx = 20; s.pc = 25; return s.tmp_1; case 25: r0 = s.retval; s.tmp_0 = r0; @@ -28852,12 +32696,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -msgpack_packNumberCore__P90153.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__P155317.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__P90153_mk(s) { +function msgpack_packNumberCore__P155317_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberCore__P90153, depth: s.depth + 1, + parent: s, fn: msgpack_packNumberCore__P155317, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28867,8 +32711,8 @@ function msgpack_packNumberCore__P90153_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tag___99314: undefined, - fmt___99357: undefined, + tag___162656: undefined, + fmt___162699: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -28878,7 +32722,7 @@ function msgpack_packNumberCore__P90153_mk(s) { -function music_Melody_play__P88090(s) { +function music_Melody_play__P153089(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28894,24 +32738,24 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C88083_VT)) failedCast(r0); - s.tmp_0 = music_Melody_playCore__P90253_mk(s); + if (!checkSubtype(r0, music_Melody__C153082_VT)) failedCast(r0); + s.tmp_0 = music_Melody_playCore__P155417_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = false; - s.callLocIdx = 16; s.pc = 1; return s.tmp_0; + s.callLocIdx = 88; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_play__P88090.info = {"start":8858,"length":71,"line":278,"column":8,"endLine":280,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"play","argumentNames":["this","volume"]} +music_Melody_play__P153089.info = {"start":8858,"length":71,"line":278,"column":8,"endLine":280,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"play","argumentNames":["this","volume"]} -function music_Melody_play__P88090_mk(s) { +function music_Melody_play__P153089_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_play__P88090, depth: s.depth + 1, + parent: s, fn: music_Melody_play__P153089, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28922,7 +32766,7 @@ function music_Melody_play__P88090_mk(s) { -function music_Melody_playCore__P90253(s) { +function music_Melody_playCore__P155417(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28932,7 +32776,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___189882 = undefined; + s.p___161061 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -28940,31 +32784,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C88083_VT)) failedCast(r0); - s.tmp_0 = music_Melody_stop__P88088_mk(s); + if (!checkSubtype(r0, music_Melody__C153082_VT)) failedCast(r0); + s.tmp_0 = music_Melody_stop__P153087_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 11; s.pc = 1; return s.tmp_0; + s.callLocIdx = 83; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(music_MelodyPlayer__C88093_VT); + r0 = pxsim_pxtcore_mkClassInstance(music_MelodyPlayer__C153092_VT); s.tmp_0 = r0; - s.tmp_1 = music_MelodyPlayer_constructor__P88096_mk(s); + s.tmp_1 = music_MelodyPlayer_constructor__P153095_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; - s.callLocIdx = 12; s.pc = 2; return s.tmp_1; + s.callLocIdx = 84; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; r0 = (s.arg0).fields["_player"] = (s.tmp_0); - s.p___189882 = (s.tmp_0); - s.tmp_0 = music_Melody_registerMelody__P90251_mk(s); + s.p___161061 = (s.tmp_0); + s.tmp_0 = music_Melody_registerMelody__P155415_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 13; s.pc = 3; return s.tmp_0; + s.callLocIdx = 85; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(4, inline__P189891); + r0 = pxsim_pxtcore_mkAction(4, inline__P161071); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.p___189882); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.p___161061); r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg1); r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.arg2); r0 = pxsim.control.runInParallel(s.tmp_0); @@ -28972,16 +32816,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_Melody_playCore__P90253.info = {"start":7682,"length":434,"line":242,"column":8,"endLine":254,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playCore","argumentNames":["this","volume","loop"]} +music_Melody_playCore__P155417.info = {"start":7682,"length":434,"line":242,"column":8,"endLine":254,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playCore","argumentNames":["this","volume","loop"]} -function music_Melody_playCore__P90253_mk(s) { +function music_Melody_playCore__P155417_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_playCore__P90253, depth: s.depth + 1, + parent: s, fn: music_Melody_playCore__P155417, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - p___189882: undefined, + p___161061: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -28991,7 +32835,7 @@ function music_Melody_playCore__P90253_mk(s) { -function inline__P189891(s) { +function inline__P161071(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29008,10 +32852,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_2 = music_MelodyPlayer_play__P88098_mk(s); + s.tmp_2 = music_MelodyPlayer_play__P153097_mk(s); s.tmp_2.arg0 = s.caps[1]; s.tmp_2.arg1 = s.caps[2]; - s.callLocIdx = 14; s.pc = 5; return s.tmp_2; + s.callLocIdx = 86; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.caps[3]); @@ -29025,21 +32869,21 @@ switch (step) { case 3: { step = 1; continue; } case 4: - s.tmp_2 = music_Melody_unregisterMelody__P90252_mk(s); + s.tmp_2 = music_Melody_unregisterMelody__P155416_mk(s); s.tmp_2.arg0 = s.caps[0]; - s.callLocIdx = 15; s.pc = 6; return s.tmp_2; + s.callLocIdx = 87; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P189891.info = {"start":7885,"length":220,"line":246,"column":34,"endLine":253,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} +inline__P161071.info = {"start":7885,"length":220,"line":246,"column":34,"endLine":253,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} -function inline__P189891_mk(s) { +function inline__P161071_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P189891, depth: s.depth + 1, + parent: s, fn: inline__P161071, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29050,7 +32894,7 @@ function inline__P189891_mk(s) { -function music_Melody_unregisterMelody__P90252(s) { +function music_Melody_unregisterMelody__P155416(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29065,22 +32909,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C88083_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals.music_Melody_playingMelodies___90254); + if (!checkSubtype(r0, music_Melody__C153082_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals.music_Melody_playingMelodies___155418); if (!r0) { step = 1; continue; } - r0 = pxsim_Array_.removeElement(globals.music_Melody_playingMelodies___90254, s.arg0); + r0 = pxsim_Array_.removeElement(globals.music_Melody_playingMelodies___155418, s.arg0); case 1: case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_unregisterMelody__P90252.info = {"start":7471,"length":201,"line":235,"column":8,"endLine":240,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"unregisterMelody","argumentNames":["this"]} +music_Melody_unregisterMelody__P155416.info = {"start":7471,"length":201,"line":235,"column":8,"endLine":240,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"unregisterMelody","argumentNames":["this"]} -function music_Melody_unregisterMelody__P90252_mk(s) { +function music_Melody_unregisterMelody__P155416_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_unregisterMelody__P90252, depth: s.depth + 1, + parent: s, fn: music_Melody_unregisterMelody__P155416, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -29089,7 +32933,7 @@ function music_Melody_unregisterMelody__P90252_mk(s) { -function music_Melody_registerMelody__P90251(s) { +function music_Melody_registerMelody__P155415(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29104,48 +32948,48 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C88083_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals.music_Melody_playingMelodies___90254); + if (!checkSubtype(r0, music_Melody__C153082_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals.music_Melody_playingMelodies___155418); 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.music_Melody_playingMelodies___90254 = (r0); + globals.music_Melody_playingMelodies___155418 = (r0); case 1: case 2: - r0 = pxsim_Array__length(globals.music_Melody_playingMelodies___90254); + r0 = pxsim_Array__length(globals.music_Melody_playingMelodies___155418); s.tmp_1 = r0; r0 = (s.tmp_1 > 4); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_2 = music_Melody_stop__P88088_mk(s); - s.tmp_3 = r0 = globals.music_Melody_playingMelodies___90254; - r0 = pxsim_Array__length(globals.music_Melody_playingMelodies___90254); + s.tmp_2 = music_Melody_stop__P153087_mk(s); + s.tmp_3 = r0 = globals.music_Melody_playingMelodies___155418; + r0 = pxsim_Array__length(globals.music_Melody_playingMelodies___155418); s.tmp_5 = r0; r0 = (s.tmp_5 - 1); s.tmp_4 = r0; r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); s.tmp_2.arg0 = r0; - s.callLocIdx = 10; s.pc = 5; return s.tmp_2; + s.callLocIdx = 82; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; case 3: case 4: - r0 = pxsim_Array_.removeElement(globals.music_Melody_playingMelodies___90254, s.arg0); - r0 = pxsim_Array__push(globals.music_Melody_playingMelodies___90254, s.arg0); + r0 = pxsim_Array_.removeElement(globals.music_Melody_playingMelodies___155418, s.arg0); + r0 = pxsim_Array__push(globals.music_Melody_playingMelodies___155418, s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_registerMelody__P90251.info = {"start":6889,"length":573,"line":223,"column":8,"endLine":234,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"registerMelody","argumentNames":["this"]} +music_Melody_registerMelody__P155415.info = {"start":6889,"length":573,"line":223,"column":8,"endLine":234,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"registerMelody","argumentNames":["this"]} -function music_Melody_registerMelody__P90251_mk(s) { +function music_Melody_registerMelody__P155415_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_registerMelody__P90251, depth: s.depth + 1, + parent: s, fn: music_Melody_registerMelody__P155415, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29160,7 +33004,7 @@ function music_Melody_registerMelody__P90251_mk(s) { -function music_MelodyPlayer_play__P88098(s) { +function music_MelodyPlayer_play__P153097(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29170,46 +33014,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.notes___189920 = undefined; - s.pos___189924 = undefined; - s.duration___189925 = undefined; - s.octave___189926 = undefined; - s.tempo___189927 = undefined; - s.hz___189928 = undefined; - s.endHz___189929 = undefined; - s.ms___189932 = undefined; - s.timePos___189933 = undefined; - s.startTime___189934 = undefined; - s.now___189937 = undefined; - s.envA___189938 = undefined; - s.envD___189939 = undefined; - s.envS___189940 = undefined; - s.envR___189941 = undefined; - s.soundWave___189942 = undefined; - s.sndInstr___189943 = undefined; - s.sndInstrPtr___189949 = undefined; - s.addForm___189950 = undefined; - s.scanNextWord___190010 = undefined; - s.token___190067 = undefined; - s.tokenKind___190068 = undefined; - s.consumeToken___190071 = undefined; - s.currNote___190147 = undefined; - s.prevNote___190149 = undefined; - s.timeLeft___190152 = undefined; - s.note___190166 = undefined; - s.i___190170 = undefined; - s.noteChar___190176 = undefined; - s.keyNumber___190250 = undefined; - s.currMs___190267 = undefined; - s.beat___190271 = undefined; - s.timeLeft___190328 = undefined; + s.notes___161100 = undefined; + s.pos___161104 = undefined; + s.duration___161105 = undefined; + s.octave___161106 = undefined; + s.tempo___161107 = undefined; + s.hz___161108 = undefined; + s.endHz___161109 = undefined; + s.ms___161112 = undefined; + s.timePos___161113 = undefined; + s.startTime___161114 = undefined; + s.now___161117 = undefined; + s.envA___161118 = undefined; + s.envD___161119 = undefined; + s.envS___161120 = undefined; + s.envR___161121 = undefined; + s.soundWave___161122 = undefined; + s.sndInstr___161123 = undefined; + s.sndInstrPtr___161129 = undefined; + s.addForm___161130 = undefined; + s.scanNextWord___161190 = undefined; + s.token___161247 = undefined; + s.tokenKind___161248 = undefined; + s.consumeToken___161251 = undefined; + s.currNote___161327 = undefined; + s.prevNote___161329 = undefined; + s.timeLeft___161332 = undefined; + s.note___161346 = undefined; + s.i___161350 = undefined; + s.noteChar___161356 = undefined; + s.keyNumber___161430 = undefined; + s.currMs___161447 = undefined; + s.beat___161451 = undefined; + s.timeLeft___161508 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_MelodyPlayer__C88093_VT)) failedCast(r0); + if (!checkSubtype(r0, music_MelodyPlayer__C153092_VT)) failedCast(r0); r0 = pxsim_pxtrt.mklocRef(); s.tmp_0 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1); @@ -29226,13 +33070,13 @@ switch (step) { case 1: case 2: s.tmp_4 = r0 = s.arg1; - s.tmp_6 = Math_clamp__P86607_mk(s); + s.tmp_6 = Math_clamp__P151606_mk(s); s.tmp_6.arg0 = 0; s.tmp_6.arg1 = 255; r0 = pxsim_pxtrt_ldlocRef(s.arg1); s.tmp_8 = r0; - s.tmp_10 = music_volume__P88078_mk(s); - s.callLocIdx = 17; s.pc = 61; return s.tmp_10; + s.tmp_10 = music_volume__P153077_mk(s); + s.callLocIdx = 89; s.pc = 61; return s.tmp_10; case 61: r0 = s.retval; s.tmp_9 = r0; @@ -29240,129 +33084,129 @@ switch (step) { s.tmp_7 = r0; r0 = (s.tmp_7 >> 8); s.tmp_6.arg2 = r0; - s.callLocIdx = 18; s.pc = 60; return s.tmp_6; + s.callLocIdx = 90; s.pc = 60; return s.tmp_6; case 60: r0 = s.retval; s.tmp_5 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_4, s.tmp_5); r0 = s.arg0.fields["melody"]; r0 = r0.fields["_text"]; - s.notes___189920 = (r0); + s.notes___161100 = (r0); r0 = pxsim_pxtrt.mklocRef(); - s.pos___189924 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.pos___189924, 0); + s.pos___161104 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.pos___161104, 0); r0 = pxsim_pxtrt.mklocRef(); - s.duration___189925 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.duration___189925, 4); + s.duration___161105 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.duration___161105, 4); r0 = pxsim_pxtrt.mklocRef(); - s.octave___189926 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.octave___189926, 4); + s.octave___161106 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.octave___161106, 4); r0 = pxsim_pxtrt.mklocRef(); - s.tempo___189927 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.tempo___189927, 120); + s.tempo___161107 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.tempo___161107, 120); r0 = pxsim_pxtrt.mklocRef(); - s.hz___189928 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.hz___189928, 0); + s.hz___161108 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.hz___161108, 0); r0 = pxsim_pxtrt.mklocRef(); - s.endHz___189929 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.endHz___189929, -1); + s.endHz___161109 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.endHz___161109, -1); r0 = pxsim_pxtrt.mklocRef(); - s.ms___189932 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.ms___189932, 0); - s.timePos___189933 = (0); + s.ms___161112 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.ms___161112, 0); + s.timePos___161113 = (0); r0 = pxsim.control.millis(); - s.startTime___189934 = (r0); - s.now___189937 = (0); + s.startTime___161114 = (r0); + s.now___161117 = (0); r0 = pxsim_pxtrt.mklocRef(); - s.envA___189938 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.envA___189938, 0); + s.envA___161118 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.envA___161118, 0); r0 = pxsim_pxtrt.mklocRef(); - s.envD___189939 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.envD___189939, 0); + s.envD___161119 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.envD___161119, 0); r0 = pxsim_pxtrt.mklocRef(); - s.envS___189940 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.envS___189940, 255); + s.envS___161120 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.envS___161120, 255); r0 = pxsim_pxtrt.mklocRef(); - s.envR___189941 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.envR___189941, 0); + s.envR___161121 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.envR___161121, 0); r0 = pxsim_pxtrt.mklocRef(); - s.soundWave___189942 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.soundWave___189942, 1); + s.soundWave___161122 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.soundWave___161122, 1); r0 = pxsim.control.createBuffer(60); - s.sndInstr___189943 = (r0); + s.sndInstr___161123 = (r0); r0 = pxsim_pxtrt.mklocRef(); - s.sndInstrPtr___189949 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.sndInstrPtr___189949, 0); - r0 = pxsim_pxtcore_mkAction(10, inline__P189951); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.hz___189928); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.endHz___189929); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.ms___189932); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.duration___189925); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.tempo___189927); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.envR___189941); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.sndInstrPtr___189949); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.sndInstr___189943); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.soundWave___189942); + s.sndInstrPtr___161129 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.sndInstrPtr___161129, 0); + r0 = pxsim_pxtcore_mkAction(10, inline__P161131); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.hz___161108); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.endHz___161109); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.ms___161112); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.duration___161105); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.tempo___161107); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.envR___161121); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.sndInstrPtr___161129); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.sndInstr___161123); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.soundWave___161122); r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.arg1); - s.addForm___189950 = (s.tmp_0); - r0 = pxsim_pxtcore_mkAction(3, inline__P190011); + s.addForm___161130 = (s.tmp_0); + r0 = pxsim_pxtcore_mkAction(3, inline__P161191); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.pos___189924); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.notes___189920); - s.scanNextWord___190010 = (s.tmp_0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.pos___161104); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.notes___161100); + s.scanNextWord___161190 = (s.tmp_0); r0 = pxsim_pxtrt.mklocRef(); - s.token___190067 = (r0); - s.tmp_0 = r0 = s.token___190067; + s.token___161247 = (r0); + s.tmp_0 = r0 = s.token___161247; r0 = pxsim_String_.mkEmpty(); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); r0 = pxsim_pxtrt.mklocRef(); - s.tokenKind___190068 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___190068, 0); - r0 = pxsim_pxtcore_mkAction(13, inline__P190072); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.token___190067); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tokenKind___190068); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.octave___189926); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.duration___189925); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.ms___189932); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.tempo___189927); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.hz___189928); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.soundWave___189942); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.envA___189938); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.envD___189939); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 10, s.envS___189940); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 11, s.envR___189941); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 12, s.endHz___189929); - s.consumeToken___190071 = (s.tmp_0); + s.tokenKind___161248 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___161248, 0); + r0 = pxsim_pxtcore_mkAction(13, inline__P161252); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.token___161247); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tokenKind___161248); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.octave___161106); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.duration___161105); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.ms___161112); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.tempo___161107); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.hz___161108); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.soundWave___161122); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.envA___161118); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.envD___161119); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 10, s.envS___161120); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 11, s.envR___161121); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 12, s.endHz___161109); + s.consumeToken___161251 = (s.tmp_0); case 3: r0 = pxsim_numops_toBoolDecr(true); if (!r0) { step = 58; continue; } s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.scanNextWord___190010; + s.tmp_0.argL = s.scanNextWord___161190; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 26; s.pc = 62; return s.tmp_0; + s.callLocIdx = 98; s.pc = 62; return s.tmp_0; case 62: r0 = s.retval; - s.currNote___190147 = (r0); - s.prevNote___190149 = (false); - r0 = pxsim_numops_toBoolDecr(s.currNote___190147); + s.currNote___161327 = (r0); + s.prevNote___161329 = (false); + r0 = pxsim_numops_toBoolDecr(s.currNote___161327); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - r0 = (s.timePos___189933 - s.now___189937); - s.timeLeft___190152 = (r0); - r0 = (s.timeLeft___190152 > 0); + r0 = (s.timePos___161113 - s.now___161117); + s.timeLeft___161332 = (r0); + r0 = (s.timeLeft___161332 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_1 = pause__P86887_mk(s); - s.tmp_1.arg0 = s.timeLeft___190152; - s.callLocIdx = 27; s.pc = 63; return s.tmp_1; + s.tmp_1 = pause__P151886_mk(s); + s.tmp_1.arg0 = s.timeLeft___161332; + s.callLocIdx = 99; s.pc = 63; return s.tmp_1; case 63: r0 = s.retval; case 4: @@ -29375,12 +33219,12 @@ switch (step) { s.tmp_1.arg0 = s.arg0; if (!s.tmp_1.arg0.vtable.iface) { setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "onPlayFinished"), 1); - s.callLocIdx = 28; s.pc = 64; return s.tmp_1; + s.callLocIdx = 100; s.pc = 64; return s.tmp_1; } else { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["onPlayFinished"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["onPlayFinished"], 1); s.callLocIdx = 28; s.pc = 64; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 28; s.pc = 64; return s.tmp_1;; } - else { s.callLocIdx = 28; s.pc = 64; return s.tmp_1; } + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["onPlayFinished"], 1); s.callLocIdx = 100; s.pc = 64; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 100; s.pc = 64; return s.tmp_1;; } + else { s.callLocIdx = 100; s.pc = 64; return s.tmp_1; } } case 64: r0 = s.retval; @@ -29389,25 +33233,25 @@ switch (step) { { step = 59; continue; } case 8: case 9: - r0 = pxsim_pxtrt_stlocRef(s.hz___189928, -1); - s.note___190166 = (0); - s.tmp_0 = r0 = s.token___190067; + r0 = pxsim_pxtrt_stlocRef(s.hz___161108, -1); + s.note___161346 = (0); + s.tmp_0 = r0 = s.token___161247; r0 = pxsim_String_.mkEmpty(); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___190068, 0); - s.i___190170 = (0); + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___161248, 0); + s.i___161350 = (0); case 10: - s.tmp_1 = r0 = s.i___190170; - r0 = pxsim_String_.length(s.currNote___190147); + s.tmp_1 = r0 = s.i___161350; + r0 = pxsim_String_.length(s.currNote___161327); 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 = 41; continue; } - r0 = pxsim_String_.charAt(s.currNote___190147, s.i___190170); - s.noteChar___190176 = (r0); - s.tmp_0 = r0 = s.noteChar___190176; + r0 = pxsim_String_.charAt(s.currNote___161327, s.i___161350); + s.noteChar___161356 = (r0); + s.tmp_0 = r0 = s.noteChar___161356; r0 = pxsim_pxtcore.switch_eq("c", s.tmp_0); if (r0) { step = 11; continue; } r0 = pxsim_pxtcore.switch_eq("C", s.tmp_0); @@ -29460,133 +33304,133 @@ switch (step) { { step = 37; continue; } case 11: case 12: - s.note___190166 = (1); - s.prevNote___190149 = (true); + s.note___161346 = (1); + s.prevNote___161329 = (true); { step = 40; continue; } case 13: case 14: - s.note___190166 = (3); - s.prevNote___190149 = (true); + s.note___161346 = (3); + s.prevNote___161329 = (true); { step = 40; continue; } case 15: case 16: - s.note___190166 = (5); - s.prevNote___190149 = (true); + s.note___161346 = (5); + s.prevNote___161329 = (true); { step = 40; continue; } case 17: case 18: - s.note___190166 = (6); - s.prevNote___190149 = (true); + s.note___161346 = (6); + s.prevNote___161329 = (true); { step = 40; continue; } case 19: case 20: - s.note___190166 = (8); - s.prevNote___190149 = (true); + s.note___161346 = (8); + s.prevNote___161329 = (true); { step = 40; continue; } case 21: case 22: - s.note___190166 = (10); - s.prevNote___190149 = (true); + s.note___161346 = (10); + s.prevNote___161329 = (true); { step = 40; continue; } case 23: - s.note___190166 = (12); - s.prevNote___190149 = (true); + s.note___161346 = (12); + s.prevNote___161329 = (true); { step = 40; continue; } case 24: case 25: - r0 = pxsim_pxtrt_stlocRef(s.hz___189928, 0); - s.prevNote___190149 = (false); + r0 = pxsim_pxtrt_stlocRef(s.hz___161108, 0); + s.prevNote___161329 = (false); { step = 40; continue; } case 26: - r0 = (s.note___190166 + 1); - s.note___190166 = (r0); - s.prevNote___190149 = (false); + r0 = (s.note___161346 + 1); + s.note___161346 = (r0); + s.prevNote___161329 = (false); { step = 40; continue; } case 27: - r0 = pxsim_numops_toBoolDecr(s.prevNote___190149); + r0 = pxsim_numops_toBoolDecr(s.prevNote___161329); if (!r0) { step = 28; continue; } - r0 = (s.note___190166 - 1); - s.note___190166 = (r0); + r0 = (s.note___161346 - 1); + s.note___161346 = (r0); { step = 29; continue; } case 28: - s.note___190166 = (12); - s.prevNote___190149 = (true); + s.note___161346 = (12); + s.prevNote___161329 = (true); case 29: { step = 40; continue; } case 30: s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___190071; + s.tmp_0.argL = s.consumeToken___161251; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 29; s.pc = 65; return s.tmp_0; + s.callLocIdx = 101; s.pc = 65; return s.tmp_0; case 65: r0 = s.retval; - s.prevNote___190149 = (false); + s.prevNote___161329 = (false); { step = 40; continue; } case 31: - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___190068, 4); - s.prevNote___190149 = (false); + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___161248, 4); + s.prevNote___161329 = (false); { step = 40; continue; } case 32: s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___190071; + s.tmp_0.argL = s.consumeToken___161251; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 30; s.pc = 66; return s.tmp_0; + s.callLocIdx = 102; s.pc = 66; return s.tmp_0; case 66: r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___190068, 8); - s.prevNote___190149 = (false); + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___161248, 8); + s.prevNote___161329 = (false); { step = 40; continue; } case 33: s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___190071; + s.tmp_0.argL = s.consumeToken___161251; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 31; s.pc = 67; return s.tmp_0; + s.callLocIdx = 103; s.pc = 67; return s.tmp_0; case 67: r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___190068, 7); - s.prevNote___190149 = (false); + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___161248, 7); + s.prevNote___161329 = (false); { step = 40; continue; } case 34: s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___190071; + s.tmp_0.argL = s.consumeToken___161251; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 32; s.pc = 68; return s.tmp_0; + s.callLocIdx = 104; s.pc = 68; return s.tmp_0; case 68: r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___190068, 2); - s.prevNote___190149 = (false); + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___161248, 2); + s.prevNote___161329 = (false); { step = 40; continue; } case 35: s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___190071; + s.tmp_0.argL = s.consumeToken___161251; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 33; s.pc = 69; return s.tmp_0; + s.callLocIdx = 105; s.pc = 69; return s.tmp_0; case 69: r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___190068, 3); - s.prevNote___190149 = (false); + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___161248, 3); + s.prevNote___161329 = (false); { step = 40; continue; } case 36: s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___190071; + s.tmp_0.argL = s.consumeToken___161251; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 34; s.pc = 70; return s.tmp_0; + s.callLocIdx = 106; s.pc = 70; return s.tmp_0; case 70: r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___190068, 5); + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___161248, 5); { step = 40; continue; } case 37: - r0 = pxsim_pxtrt_ldlocRef(s.tokenKind___190068); + r0 = pxsim_pxtrt_ldlocRef(s.tokenKind___161248); s.tmp_1 = r0; r0 = (s.tmp_1 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 38; continue; } - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___190068, 1); + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___161248, 1); case 38: case 39: - s.tmp_0 = r0 = s.token___190067; - r0 = pxsim_pxtrt_ldlocRef(s.token___190067); + s.tmp_0 = r0 = s.token___161247; + r0 = pxsim_pxtrt_ldlocRef(s.token___161247); s.tmp_3 = r0; if ((s.tmp_3) && (s.tmp_3).vtable) { setupResume(s, 71); @@ -29597,37 +33441,37 @@ switch (step) { case 71: r0 = s.retval; s.tmp_2 = r0; - if ((s.noteChar___190176) && (s.noteChar___190176).vtable) { + if ((s.noteChar___161356) && (s.noteChar___161356).vtable) { setupResume(s, 72); - pxsim_String__stringConv(s.noteChar___190176); + pxsim_String__stringConv(s.noteChar___161356); checkResumeConsumed(); return; - } else { s.retval = (s.noteChar___190176) + ""; } + } else { s.retval = (s.noteChar___161356) + ""; } case 72: r0 = s.retval; s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_2, s.tmp_4); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - s.prevNote___190149 = (false); + s.prevNote___161329 = (false); case 40: - r0 = (s.i___190170 + 1); - s.i___190170 = (r0); + r0 = (s.i___161350 + 1); + s.i___161350 = (r0); { step = 10; continue; } case 41: s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___190071; + s.tmp_0.argL = s.consumeToken___161251; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 35; s.pc = 73; return s.tmp_0; + s.callLocIdx = 107; s.pc = 73; return s.tmp_0; case 73: r0 = s.retval; - s.tmp_0 = r0 = s.note___190166; + s.tmp_0 = r0 = s.note___161346; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 42; continue; } r0 = s.tmp_0; { step = 43; continue; } case 42: - r0 = pxsim_pxtrt_ldlocRef(s.hz___189928); + r0 = pxsim_pxtrt_ldlocRef(s.hz___161108); s.tmp_1 = r0; r0 = (s.tmp_1 < 0); case 43: @@ -29635,17 +33479,17 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 46; continue; } - s.tmp_3 = r0 = s.note___190166; - r0 = pxsim_pxtrt_ldlocRef(s.octave___189926); + s.tmp_3 = r0 = s.note___161346; + r0 = pxsim_pxtrt_ldlocRef(s.octave___161106); s.tmp_6 = r0; r0 = (s.tmp_6 - 1); s.tmp_5 = r0; r0 = (12 * s.tmp_5); s.tmp_4 = r0; r0 = (s.tmp_3 + s.tmp_4); - s.keyNumber___190250 = (r0); - s.tmp_1 = r0 = globals.freqs___90239; - r0 = (s.keyNumber___190250 * 2); + s.keyNumber___161430 = (r0); + s.tmp_1 = r0 = globals.freqs___155403; + r0 = (s.keyNumber___161430 * 2); s.tmp_2 = r0; r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 4, s.tmp_2); s.tmp_0 = r0; @@ -29658,26 +33502,26 @@ switch (step) { case 45: // jmp value (already in r0) s.tmp_3 = r0; - r0 = pxsim_pxtrt_stlocRef(s.hz___189928, s.tmp_3); + r0 = pxsim_pxtrt_stlocRef(s.hz___161108, s.tmp_3); case 46: case 47: - r0 = pxsim_pxtrt_ldlocRef(s.ms___189932); - s.currMs___190267 = (r0); - r0 = (s.currMs___190267 <= 0); + r0 = pxsim_pxtrt_ldlocRef(s.ms___161112); + s.currMs___161447 = (r0); + r0 = (s.currMs___161447 <= 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 48; continue; } - r0 = pxsim_pxtrt_ldlocRef(s.tempo___189927); + r0 = pxsim_pxtrt_ldlocRef(s.tempo___161107); s.tmp_1 = r0; r0 = pxsim.Math_.idiv(15000, s.tmp_1); - s.beat___190271 = (r0); - r0 = pxsim_pxtrt_ldlocRef(s.duration___189925); + s.beat___161451 = (r0); + r0 = pxsim_pxtrt_ldlocRef(s.duration___161105); s.tmp_0 = r0; - r0 = (s.tmp_0 * s.beat___190271); - s.currMs___190267 = (r0); + r0 = (s.tmp_0 * s.beat___161451); + s.currMs___161447 = (r0); case 48: case 49: - r0 = pxsim_pxtrt_ldlocRef(s.hz___189928); + r0 = pxsim_pxtrt_ldlocRef(s.hz___161108); s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -29685,123 +33529,123 @@ switch (step) { if (!r0) { step = 50; continue; } { step = 55; continue; } case 50: - r0 = pxsim_pxtrt_ldlocRef(s.hz___189928); + r0 = pxsim_pxtrt_ldlocRef(s.hz___161108); s.tmp_3 = r0; r0 = (s.tmp_3 == 0); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 51; continue; } - r0 = (s.timePos___189933 + s.currMs___190267); - s.timePos___189933 = (r0); + r0 = (s.timePos___161113 + s.currMs___161447); + s.timePos___161113 = (r0); { step = 54; continue; } case 51: - r0 = pxsim_pxtrt_ldlocRef(s.endHz___189929); + r0 = pxsim_pxtrt_ldlocRef(s.endHz___161109); s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 52; continue; } - s.tmp_2 = r0 = s.endHz___189929; - r0 = pxsim_pxtrt_ldlocRef(s.hz___189928); + s.tmp_2 = r0 = s.endHz___161109; + r0 = pxsim_pxtrt_ldlocRef(s.hz___161108); s.tmp_3 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_2, s.tmp_3); case 52: case 53: - r0 = pxsim_pxtrt_stlocRef(s.sndInstrPtr___189949, 0); + r0 = pxsim_pxtrt_stlocRef(s.sndInstrPtr___161129, 0); s.tmp_0 = lambda_5_mk(s); - s.tmp_0.argL = s.addForm___189950; - r0 = pxsim_pxtrt_ldlocRef(s.envA___189938); + s.tmp_0.argL = s.addForm___161130; + r0 = pxsim_pxtrt_ldlocRef(s.envA___161118); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 255; s.tmp_0.arg3 = 0; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 36; s.pc = 74; return s.tmp_0; + s.callLocIdx = 108; s.pc = 74; return s.tmp_0; case 74: r0 = s.retval; s.tmp_0 = lambda_5_mk(s); - s.tmp_0.argL = s.addForm___189950; - r0 = pxsim_pxtrt_ldlocRef(s.envD___189939); + s.tmp_0.argL = s.addForm___161130; + r0 = pxsim_pxtrt_ldlocRef(s.envD___161119); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 255; - r0 = pxsim_pxtrt_ldlocRef(s.envS___189940); + r0 = pxsim_pxtrt_ldlocRef(s.envS___161120); s.tmp_0.arg2 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envA___189938); + r0 = pxsim_pxtrt_ldlocRef(s.envA___161118); s.tmp_0.arg3 = r0; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 37; s.pc = 75; return s.tmp_0; + s.callLocIdx = 109; s.pc = 75; return s.tmp_0; case 75: r0 = s.retval; s.tmp_0 = lambda_5_mk(s); - s.tmp_0.argL = s.addForm___189950; - s.tmp_1 = r0 = s.currMs___190267; - r0 = pxsim_pxtrt_ldlocRef(s.envA___189938); + s.tmp_0.argL = s.addForm___161130; + s.tmp_1 = r0 = s.currMs___161447; + r0 = pxsim_pxtrt_ldlocRef(s.envA___161118); s.tmp_3 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envD___189939); + r0 = pxsim_pxtrt_ldlocRef(s.envD___161119); s.tmp_4 = r0; r0 = (s.tmp_3 + s.tmp_4); s.tmp_2 = r0; r0 = (s.tmp_1 - s.tmp_2); s.tmp_0.arg0 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envS___189940); + r0 = pxsim_pxtrt_ldlocRef(s.envS___161120); s.tmp_0.arg1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envS___189940); + r0 = pxsim_pxtrt_ldlocRef(s.envS___161120); s.tmp_0.arg2 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envD___189939); + r0 = pxsim_pxtrt_ldlocRef(s.envD___161119); s.tmp_5 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envA___189938); + r0 = pxsim_pxtrt_ldlocRef(s.envA___161118); s.tmp_6 = r0; r0 = (s.tmp_5 + s.tmp_6); s.tmp_0.arg3 = r0; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 38; s.pc = 76; return s.tmp_0; + s.callLocIdx = 110; s.pc = 76; return s.tmp_0; case 76: r0 = s.retval; s.tmp_0 = lambda_5_mk(s); - s.tmp_0.argL = s.addForm___189950; - r0 = pxsim_pxtrt_ldlocRef(s.envR___189941); + s.tmp_0.argL = s.addForm___161130; + r0 = pxsim_pxtrt_ldlocRef(s.envR___161121); s.tmp_0.arg0 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envS___189940); + r0 = pxsim_pxtrt_ldlocRef(s.envS___161120); s.tmp_0.arg1 = r0; s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = s.currMs___190267; + s.tmp_0.arg3 = s.currMs___161447; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 39; s.pc = 77; return s.tmp_0; + s.callLocIdx = 111; s.pc = 77; return s.tmp_0; case 77: r0 = s.retval; - s.tmp_0 = music_MelodyPlayer_queuePlayInstructions__P90256_mk(s); + s.tmp_0 = music_MelodyPlayer_queuePlayInstructions__P155420_mk(s); s.tmp_0.arg0 = s.arg0; - r0 = (s.timePos___189933 - s.now___189937); + r0 = (s.timePos___161113 - s.now___161117); s.tmp_0.arg1 = r0; - s.tmp_1 = r0 = s.sndInstr___189943; - r0 = pxsim_pxtrt_ldlocRef(s.sndInstrPtr___189949); + s.tmp_1 = r0 = s.sndInstr___161123; + r0 = pxsim_pxtrt_ldlocRef(s.sndInstrPtr___161129); s.tmp_2 = r0; r0 = pxsim.BufferMethods.slice(s.tmp_1, 0, s.tmp_2); s.tmp_0.arg2 = r0; - s.callLocIdx = 40; s.pc = 78; return s.tmp_0; + s.callLocIdx = 112; s.pc = 78; return s.tmp_0; case 78: r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.endHz___189929, -1); - r0 = (s.timePos___189933 + s.currMs___190267); - s.timePos___189933 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.endHz___161109, -1); + r0 = (s.timePos___161113 + s.currMs___161447); + s.timePos___161113 = (r0); case 54: case 55: - r0 = (s.timePos___189933 - s.now___189937); - s.timeLeft___190328 = (r0); - r0 = (s.timeLeft___190328 > 200); + r0 = (s.timePos___161113 - s.now___161117); + s.timeLeft___161508 = (r0); + r0 = (s.timeLeft___161508 > 200); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 56; continue; } - s.tmp_1 = pause__P86887_mk(s); - r0 = (s.timeLeft___190328 - 100); + s.tmp_1 = pause__P151886_mk(s); + r0 = (s.timeLeft___161508 - 100); s.tmp_1.arg0 = r0; - s.callLocIdx = 41; s.pc = 79; return s.tmp_1; + s.callLocIdx = 113; s.pc = 79; return s.tmp_1; case 79: r0 = s.retval; r0 = pxsim.control.millis(); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.startTime___189934); - s.now___189937 = (r0); + r0 = (s.tmp_0 - s.startTime___161114); + s.now___161117 = (r0); case 56: case 57: { step = 3; continue; } @@ -29811,12 +33655,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_MelodyPlayer_play__P88098.info = {"start":10980,"length":9006,"line":341,"column":8,"endLine":572,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"play","argumentNames":["this","volume"]} +music_MelodyPlayer_play__P153097.info = {"start":10980,"length":9006,"line":341,"column":8,"endLine":572,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"play","argumentNames":["this","volume"]} -function music_MelodyPlayer_play__P88098_mk(s) { +function music_MelodyPlayer_play__P153097_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_MelodyPlayer_play__P88098, depth: s.depth + 1, + parent: s, fn: music_MelodyPlayer_play__P153097, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29829,39 +33673,39 @@ function music_MelodyPlayer_play__P88098_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - notes___189920: undefined, - pos___189924: undefined, - duration___189925: undefined, - octave___189926: undefined, - tempo___189927: undefined, - hz___189928: undefined, - endHz___189929: undefined, - ms___189932: undefined, - timePos___189933: undefined, - startTime___189934: undefined, - now___189937: undefined, - envA___189938: undefined, - envD___189939: undefined, - envS___189940: undefined, - envR___189941: undefined, - soundWave___189942: undefined, - sndInstr___189943: undefined, - sndInstrPtr___189949: undefined, - addForm___189950: undefined, - scanNextWord___190010: undefined, - token___190067: undefined, - tokenKind___190068: undefined, - consumeToken___190071: undefined, - currNote___190147: undefined, - prevNote___190149: undefined, - timeLeft___190152: undefined, - note___190166: undefined, - i___190170: undefined, - noteChar___190176: undefined, - keyNumber___190250: undefined, - currMs___190267: undefined, - beat___190271: undefined, - timeLeft___190328: undefined, + notes___161100: undefined, + pos___161104: undefined, + duration___161105: undefined, + octave___161106: undefined, + tempo___161107: undefined, + hz___161108: undefined, + endHz___161109: undefined, + ms___161112: undefined, + timePos___161113: undefined, + startTime___161114: undefined, + now___161117: undefined, + envA___161118: undefined, + envD___161119: undefined, + envS___161120: undefined, + envR___161121: undefined, + soundWave___161122: undefined, + sndInstr___161123: undefined, + sndInstrPtr___161129: undefined, + addForm___161130: undefined, + scanNextWord___161190: undefined, + token___161247: undefined, + tokenKind___161248: undefined, + consumeToken___161251: undefined, + currNote___161327: undefined, + prevNote___161329: undefined, + timeLeft___161332: undefined, + note___161346: undefined, + i___161350: undefined, + noteChar___161356: undefined, + keyNumber___161430: undefined, + currMs___161447: undefined, + beat___161451: undefined, + timeLeft___161508: undefined, arg0: undefined, arg1: undefined, } } @@ -29870,7 +33714,7 @@ function music_MelodyPlayer_play__P88098_mk(s) { -function inline__P189951(s) { +function inline__P161131(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29880,10 +33724,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.freqStart___189956 = undefined; - s.freqEnd___189958 = undefined; - s.envelopeWidth___189960 = undefined; - s.slope___189978 = undefined; + s.freqStart___161136 = undefined; + s.freqEnd___161138 = undefined; + s.envelopeWidth___161140 = undefined; + s.slope___161158 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -29892,9 +33736,9 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.freqStart___189956 = (r0); + s.freqStart___161136 = (r0); r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.freqEnd___189958 = (r0); + s.freqEnd___161138 = (r0); r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); s.tmp_1 = r0; r0 = (s.tmp_1 > 0); @@ -29918,7 +33762,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_7 = r0; - s.envelopeWidth___189960 = (s.tmp_7); + s.envelopeWidth___161140 = (s.tmp_7); r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_1 = r0; r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); @@ -29930,35 +33774,35 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - r0 = (s.envelopeWidth___189960 != 0); + r0 = (s.envelopeWidth___161140 != 0); case 4: // jmp value (already in r0) s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 5; continue; } - r0 = (s.freqEnd___189958 - s.freqStart___189956); + r0 = (s.freqEnd___161138 - s.freqStart___161136); s.tmp_4 = r0; - r0 = (s.tmp_4 / s.envelopeWidth___189960); - s.slope___189978 = (r0); + r0 = (s.tmp_4 / s.envelopeWidth___161140); + s.slope___161158 = (r0); r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); s.tmp_0 = r0; - r0 = (s.slope___189978 * s.arg3); + r0 = (s.slope___161158 * s.arg3); s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); - s.freqStart___189956 = (r0); + s.freqStart___161136 = (r0); r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); s.tmp_0 = r0; - s.tmp_2 = r0 = s.slope___189978; + s.tmp_2 = r0 = s.slope___161158; r0 = (s.arg3 + s.arg0); s.tmp_3 = r0; r0 = (s.tmp_2 * s.tmp_3); s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); - s.freqEnd___189958 = (r0); + s.freqEnd___161138 = (r0); case 5: case 6: s.tmp_0 = r0 = s.caps[6]; - s.tmp_2 = music_addNote__P90255_mk(s); + s.tmp_2 = music_addNote__P155419_mk(s); s.tmp_2.arg0 = s.caps[7]; r0 = pxsim_pxtrt_ldlocRef(s.caps[6]); s.tmp_2.arg1 = r0; @@ -29967,11 +33811,11 @@ switch (step) { s.tmp_2.arg4 = s.arg2; r0 = pxsim_pxtrt_ldlocRef(s.caps[8]); s.tmp_2.arg5 = r0; - s.tmp_2.arg6 = s.freqStart___189956; + s.tmp_2.arg6 = s.freqStart___161136; r0 = pxsim_pxtrt_ldlocRef(s.caps[9]); s.tmp_2.arg7 = r0; - s.tmp_2.arg8 = s.freqEnd___189958; - s.callLocIdx = 19; s.pc = 7; return s.tmp_2; + s.tmp_2.arg8 = s.freqEnd___161138; + s.callLocIdx = 91; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; s.tmp_1 = r0; @@ -29980,12 +33824,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P189951.info = {"start":11788,"length":643,"line":367,"column":28,"endLine":378,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["formDuration","beg","end","msOff"]} +inline__P161131.info = {"start":11788,"length":643,"line":367,"column":28,"endLine":378,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["formDuration","beg","end","msOff"]} -function inline__P189951_mk(s) { +function inline__P161131_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P189951, depth: s.depth + 1, + parent: s, fn: inline__P161131, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29995,10 +33839,10 @@ function inline__P189951_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - freqStart___189956: undefined, - freqEnd___189958: undefined, - envelopeWidth___189960: undefined, - slope___189978: undefined, + freqStart___161136: undefined, + freqEnd___161138: undefined, + envelopeWidth___161140: undefined, + slope___161158: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -30009,7 +33853,7 @@ function inline__P189951_mk(s) { -function inline__P190011(s) { +function inline__P161191(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30019,9 +33863,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.c___190020 = undefined; - s.note___190037 = undefined; - s.c___190043 = undefined; + s.c___161200 = undefined; + s.note___161217 = undefined; + s.c___161223 = undefined; r0 = s.caps[0].fields["melody"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -30047,15 +33891,15 @@ switch (step) { r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_7 = r0; r0 = pxsim_String_.charAt(s.tmp_6, s.tmp_7); - s.c___190020 = (r0); - r0 = (s.c___190020 != " "); + s.c___161200 = (r0); + r0 = (s.c___161200 != " "); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 4; continue; } r0 = s.tmp_0; { step = 5; continue; } case 4: - r0 = (s.c___190020 != "\r"); + r0 = (s.c___161200 != "\r"); case 5: // jmp value (already in r0) s.tmp_1 = r0; @@ -30064,7 +33908,7 @@ switch (step) { r0 = s.tmp_1; { step = 7; continue; } case 6: - r0 = (s.c___190020 != "\n"); + r0 = (s.c___161200 != "\n"); case 7: // jmp value (already in r0) s.tmp_2 = r0; @@ -30073,7 +33917,7 @@ switch (step) { r0 = s.tmp_2; { step = 9; continue; } case 8: - r0 = (s.c___190020 != "\t"); + r0 = (s.c___161200 != "\t"); case 9: // jmp value (already in r0) s.tmp_3 = r0; @@ -30091,7 +33935,7 @@ switch (step) { { step = 3; continue; } case 12: r0 = pxsim_String_.mkEmpty(); - s.note___190037 = (r0); + s.note___161217 = (r0); case 13: r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_1 = r0; @@ -30105,15 +33949,15 @@ switch (step) { r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_4 = r0; r0 = pxsim_String_.charAt(s.tmp_3, s.tmp_4); - s.c___190043 = (r0); - r0 = (s.c___190043 == " "); + s.c___161223 = (r0); + r0 = (s.c___161223 == " "); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 14; continue; } r0 = s.tmp_0; { step = 15; continue; } case 14: - r0 = (s.c___190043 == "\r"); + r0 = (s.c___161223 == "\r"); case 15: // jmp value (already in r0) s.tmp_1 = r0; @@ -30122,7 +33966,7 @@ switch (step) { r0 = s.tmp_1; { step = 17; continue; } case 16: - r0 = (s.c___190043 == "\n"); + r0 = (s.c___161223 == "\n"); case 17: // jmp value (already in r0) s.tmp_2 = r0; @@ -30131,7 +33975,7 @@ switch (step) { r0 = s.tmp_2; { step = 19; continue; } case 18: - r0 = (s.c___190043 == "\t"); + r0 = (s.c___161223 == "\t"); case 19: // jmp value (already in r0) s.tmp_3 = r0; @@ -30140,26 +33984,26 @@ switch (step) { { step = 22; continue; } case 20: case 21: - if ((s.note___190037) && (s.note___190037).vtable) { + if ((s.note___161217) && (s.note___161217).vtable) { setupResume(s, 24); - pxsim_String__stringConv(s.note___190037); + pxsim_String__stringConv(s.note___161217); checkResumeConsumed(); return; - } else { s.retval = (s.note___190037) + ""; } + } else { s.retval = (s.note___161217) + ""; } case 24: r0 = s.retval; s.tmp_4 = r0; - if ((s.c___190043) && (s.c___190043).vtable) { + if ((s.c___161223) && (s.c___161223).vtable) { setupResume(s, 25); - pxsim_String__stringConv(s.c___190043); + pxsim_String__stringConv(s.c___161223); checkResumeConsumed(); return; - } else { s.retval = (s.c___190043) + ""; } + } else { s.retval = (s.c___161223) + ""; } case 25: r0 = s.retval; s.tmp_5 = r0; r0 = pxsim_String__concat(s.tmp_4, s.tmp_5); - s.note___190037 = (r0); + s.note___161217 = (r0); s.tmp_0 = r0 = s.caps[1]; r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_2 = r0; @@ -30168,17 +34012,17 @@ switch (step) { r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); { step = 13; continue; } case 22: - r0 = s.note___190037; + r0 = s.note___161217; case 23: return leave(s, r0) default: oops() } } } -inline__P190011.info = {"start":12466,"length":708,"line":380,"column":33,"endLine":402,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} +inline__P161191.info = {"start":12466,"length":708,"line":380,"column":33,"endLine":402,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} -function inline__P190011_mk(s) { +function inline__P161191_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P190011, depth: s.depth + 1, + parent: s, fn: inline__P161191, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30188,16 +34032,16 @@ function inline__P190011_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - c___190020: undefined, - note___190037: undefined, - c___190043: undefined, + c___161200: undefined, + note___161217: undefined, + c___161223: undefined, } } -function inline__P190072(s) { +function inline__P161252(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30207,7 +34051,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.d___190078 = undefined; + s.d___161258 = undefined; r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -30223,14 +34067,14 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 15; continue; } - s.tmp_3 = parseInt__P86580_mk(s); + s.tmp_3 = parseInt__P151579_mk(s); r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); s.tmp_3.arg0 = r0; s.tmp_3.arg1 = undefined; - s.callLocIdx = 20; s.pc = 17; return s.tmp_3; + s.callLocIdx = 92; s.pc = 17; return s.tmp_3; case 17: r0 = s.retval; - s.d___190078 = (r0); + s.d___161258 = (r0); r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_0 = r0; r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); @@ -30258,20 +34102,20 @@ switch (step) { r0 = s.tmp_0; { step = 14; continue; } case 3: - r0 = pxsim_pxtrt_stlocRef(s.caps[2], s.d___190078); + r0 = pxsim_pxtrt_stlocRef(s.caps[2], s.d___161258); { step = 14; continue; } case 4: s.tmp_0 = r0 = s.caps[3]; - s.tmp_2 = Math_max__P86610_mk(s); + s.tmp_2 = Math_max__P151609_mk(s); s.tmp_2.arg0 = 1; - s.tmp_3 = Math_min__P86611_mk(s); + s.tmp_3 = Math_min__P151610_mk(s); s.tmp_3.arg0 = 16; - s.tmp_3.arg1 = s.d___190078; - s.callLocIdx = 21; s.pc = 19; return s.tmp_3; + s.tmp_3.arg1 = s.d___161258; + s.callLocIdx = 93; s.pc = 19; return s.tmp_3; case 19: r0 = s.retval; s.tmp_2.arg1 = r0; - s.callLocIdx = 22; s.pc = 18; return s.tmp_2; + s.callLocIdx = 94; s.pc = 18; return s.tmp_2; case 18: r0 = s.retval; s.tmp_1 = r0; @@ -30280,49 +34124,49 @@ switch (step) { { step = 14; continue; } case 5: s.tmp_0 = r0 = s.caps[5]; - s.tmp_2 = Math_max__P86610_mk(s); + s.tmp_2 = Math_max__P151609_mk(s); s.tmp_2.arg0 = 1; - s.tmp_2.arg1 = s.d___190078; - s.callLocIdx = 23; s.pc = 20; return s.tmp_2; + s.tmp_2.arg1 = s.d___161258; + s.callLocIdx = 95; s.pc = 20; return s.tmp_2; case 20: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); { step = 14; continue; } case 6: - r0 = pxsim_pxtrt_stlocRef(s.caps[6], s.d___190078); + r0 = pxsim_pxtrt_stlocRef(s.caps[6], s.d___161258); r0 = pxsim_pxtrt_stlocRef(s.caps[1], 6); { step = 14; continue; } case 7: - r0 = pxsim_pxtrt_stlocRef(s.caps[4], s.d___190078); + r0 = pxsim_pxtrt_stlocRef(s.caps[4], s.d___161258); { step = 14; continue; } case 8: s.tmp_0 = r0 = s.caps[7]; - s.tmp_2 = Math_clamp__P86607_mk(s); + s.tmp_2 = Math_clamp__P151606_mk(s); s.tmp_2.arg0 = 1; s.tmp_2.arg1 = 15; - s.tmp_2.arg2 = s.d___190078; - s.callLocIdx = 24; s.pc = 21; return s.tmp_2; + s.tmp_2.arg2 = s.d___161258; + s.callLocIdx = 96; s.pc = 21; return s.tmp_2; case 21: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); { step = 14; continue; } case 9: - r0 = pxsim_pxtrt_stlocRef(s.caps[8], s.d___190078); + r0 = pxsim_pxtrt_stlocRef(s.caps[8], s.d___161258); r0 = pxsim_pxtrt_stlocRef(s.caps[1], 9); { step = 14; continue; } case 10: - r0 = pxsim_pxtrt_stlocRef(s.caps[9], s.d___190078); + r0 = pxsim_pxtrt_stlocRef(s.caps[9], s.d___161258); r0 = pxsim_pxtrt_stlocRef(s.caps[1], 10); { step = 14; continue; } case 11: s.tmp_0 = r0 = s.caps[10]; - s.tmp_2 = Math_clamp__P86607_mk(s); + s.tmp_2 = Math_clamp__P151606_mk(s); s.tmp_2.arg0 = 0; s.tmp_2.arg1 = 255; - s.tmp_2.arg2 = s.d___190078; - s.callLocIdx = 25; s.pc = 22; return s.tmp_2; + s.tmp_2.arg2 = s.d___161258; + s.callLocIdx = 97; s.pc = 22; return s.tmp_2; case 22: r0 = s.retval; s.tmp_1 = r0; @@ -30330,10 +34174,10 @@ switch (step) { r0 = pxsim_pxtrt_stlocRef(s.caps[1], 11); { step = 14; continue; } case 12: - r0 = pxsim_pxtrt_stlocRef(s.caps[11], s.d___190078); + r0 = pxsim_pxtrt_stlocRef(s.caps[11], s.d___161258); { step = 14; continue; } case 13: - r0 = pxsim_pxtrt_stlocRef(s.caps[12], s.d___190078); + r0 = pxsim_pxtrt_stlocRef(s.caps[12], s.d___161258); case 14: s.tmp_0 = r0 = s.caps[0]; r0 = pxsim_String_.mkEmpty(); @@ -30345,25 +34189,25 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P190072.info = {"start":14207,"length":1189,"line":438,"column":33,"endLine":459,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} +inline__P161252.info = {"start":14207,"length":1189,"line":438,"column":33,"endLine":459,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} -function inline__P190072_mk(s) { +function inline__P161252_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P190072, depth: s.depth + 1, + parent: s, fn: inline__P161252, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - d___190078: undefined, + d___161258: undefined, } } -function music_MelodyPlayer_queuePlayInstructions__P90256(s) { +function music_MelodyPlayer_queuePlayInstructions__P155420(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30380,18 +34224,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_MelodyPlayer__C88093_VT)) failedCast(r0); + if (!checkSubtype(r0, music_MelodyPlayer__C153092_VT)) failedCast(r0); r0 = pxsim.music.queuePlayInstructions(s.arg1, s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -music_MelodyPlayer_queuePlayInstructions__P90256.info = {"start":10845,"length":125,"line":337,"column":8,"endLine":339,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"queuePlayInstructions","argumentNames":["this","timeDelta","buf"]} +music_MelodyPlayer_queuePlayInstructions__P155420.info = {"start":10845,"length":125,"line":337,"column":8,"endLine":339,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"queuePlayInstructions","argumentNames":["this","timeDelta","buf"]} -function music_MelodyPlayer_queuePlayInstructions__P90256_mk(s) { +function music_MelodyPlayer_queuePlayInstructions__P155420_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_MelodyPlayer_queuePlayInstructions__P90256, depth: s.depth + 1, + parent: s, fn: music_MelodyPlayer_queuePlayInstructions__P155420, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -30402,7 +34246,7 @@ function music_MelodyPlayer_queuePlayInstructions__P90256_mk(s) { -function music_addNote__P90255(s) { +function music_addNote__P155419(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30470,12 +34314,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_addNote__P90255.info = {"start":9705,"length":904,"line":308,"column":4,"endLine":321,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"addNote","argumentNames":["sndInstr","sndInstrPtr","ms","beg","end","soundWave","hz","volume","endHz"]} +music_addNote__P155419.info = {"start":9705,"length":904,"line":308,"column":4,"endLine":321,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"addNote","argumentNames":["sndInstr","sndInstrPtr","ms","beg","end","soundWave","hz","volume","endHz"]} -function music_addNote__P90255_mk(s) { +function music_addNote__P155419_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_addNote__P90255, depth: s.depth + 1, + parent: s, fn: music_addNote__P155419, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30496,7 +34340,7 @@ function music_addNote__P90255_mk(s) { -function music_volume__P88078(s) { +function music_volume__P153077(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30506,20 +34350,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = music_initVolume__P90247_mk(s); - s.callLocIdx = 63; s.pc = 1; return s.tmp_0; + s.tmp_0 = music_initVolume__P155411_mk(s); + s.callLocIdx = 71; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals.globalVolume___90243; + r0 = globals.globalVolume___155407; return leave(s, r0) default: oops() } } } -music_volume__P88078.info = {"start":1781,"length":90,"line":61,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"volume","argumentNames":[]} +music_volume__P153077.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__P88078_mk(s) { +function music_volume__P153077_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_volume__P88078, depth: s.depth + 1, + parent: s, fn: music_volume__P153077, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -30528,7 +34372,7 @@ function music_volume__P88078_mk(s) { -function music_initVolume__P90247(s) { +function music_initVolume__P155411(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30538,15 +34382,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.globalVolume___90243 === null); + r0 = (globals.globalVolume___155407 === null); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.globalVolume___90243 = (0); - s.tmp_0 = music_setVolume__P88077_mk(s); + globals.globalVolume___155407 = (0); + s.tmp_0 = music_setVolume__P153076_mk(s); r0 = pxsim_pxtcore.getConfig(59, 128); s.tmp_0.arg0 = r0; - s.callLocIdx = 60; s.pc = 3; return s.tmp_0; + s.callLocIdx = 68; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; case 1: @@ -30555,12 +34399,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_initVolume__P90247.info = {"start":1014,"length":180,"line":33,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"initVolume","argumentNames":[]} +music_initVolume__P155411.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__P90247_mk(s) { +function music_initVolume__P155411_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_initVolume__P90247, depth: s.depth + 1, + parent: s, fn: music_initVolume__P155411, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -30569,7 +34413,7 @@ function music_initVolume__P90247_mk(s) { -function music_setVolume__P88077(s) { +function music_setVolume__P153076(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30583,16 +34427,16 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Math_clamp__P86607_mk(s); + s.tmp_0 = Math_clamp__P151606_mk(s); s.tmp_0.arg0 = 0; s.tmp_0.arg1 = 255; r0 = (s.arg0 | 0); s.tmp_0.arg2 = r0; - s.callLocIdx = 61; s.pc = 3; return s.tmp_0; + s.callLocIdx = 69; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.globalVolume___90243 = (r0); - r0 = (globals.globalVolume___90243 > 0); + globals.globalVolume___155407 = (r0); + r0 = (globals.globalVolume___155407 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -30608,12 +34452,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_setVolume__P88077.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__P153076.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__P88077_mk(s) { +function music_setVolume__P153076_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_setVolume__P88077, depth: s.depth + 1, + parent: s, fn: music_setVolume__P153076, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30624,7 +34468,7 @@ function music_setVolume__P88077_mk(s) { -function music_enableAmp__P90246(s) { +function music_enableAmp__P155410(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30642,12 +34486,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_enableAmp__P90246.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__P155410.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__P90246_mk(s) { +function music_enableAmp__P155410_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_enableAmp__P90246, depth: s.depth + 1, + parent: s, fn: music_enableAmp__P155410, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -30656,7 +34500,7 @@ function music_enableAmp__P90246_mk(s) { -function parseInt__P86580(s) { +function parseInt__P151579(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30666,13 +34510,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.start___190365 = undefined; - s.sign___190395 = undefined; - s.output___190440 = undefined; - s.hasDigit___190441 = undefined; - s.i___190442 = undefined; - s.code___190449 = undefined; - s.val___190456 = undefined; + s.start___161545 = undefined; + s.sign___161575 = undefined; + s.output___161620 = undefined; + s.hasDigit___161621 = undefined; + s.i___161622 = undefined; + s.code___161629 = undefined; + s.val___161636 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -30719,9 +34563,9 @@ switch (step) { { step = 46; continue; } case 7: case 8: - s.start___190365 = (0); + s.start___161545 = (0); case 9: - s.tmp_1 = r0 = s.start___190365; + s.tmp_1 = r0 = s.start___161545; r0 = pxsim_String_.length(s.arg0); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); @@ -30731,8 +34575,8 @@ switch (step) { r0 = s.tmp_0; { step = 11; continue; } case 10: - s.tmp_3 = helpers_isWhitespace__P86604_mk(s); - r0 = pxsim_String_.charCodeAt(s.arg0, s.start___190365); + s.tmp_3 = helpers_isWhitespace__P151603_mk(s); + r0 = pxsim_String_.charCodeAt(s.arg0, s.start___161545); s.tmp_3.arg0 = r0; s.callLocIdx = 0; s.pc = 47; return s.tmp_3; case 47: @@ -30742,11 +34586,11 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 12; continue; } - r0 = (s.start___190365 + 1); - s.start___190365 = (r0); + r0 = (s.start___161545 + 1); + s.start___161545 = (r0); { step = 9; continue; } case 12: - s.tmp_1 = r0 = s.start___190365; + s.tmp_1 = r0 = s.start___161545; r0 = pxsim_String_.length(s.arg0); s.tmp_2 = r0; r0 = (s.tmp_1 === s.tmp_2); @@ -30757,8 +34601,8 @@ switch (step) { { step = 46; continue; } case 13: case 14: - s.sign___190395 = (1); - r0 = pxsim_String_.charAt(s.arg0, s.start___190365); + s.sign___161575 = (1); + r0 = pxsim_String_.charAt(s.arg0, s.start___161545); s.tmp_0 = r0; r0 = pxsim_pxtcore.switch_eq("-", s.tmp_0); if (r0) { step = 15; continue; } @@ -30767,10 +34611,10 @@ switch (step) { r0 = s.tmp_0; { step = 17; continue; } case 15: - s.sign___190395 = (-1); + s.sign___161575 = (-1); case 16: - r0 = (s.start___190365 + 1); - s.start___190365 = (r0); + r0 = (s.start___161545 + 1); + s.start___161545 = (r0); case 17: r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; @@ -30790,7 +34634,7 @@ switch (step) { r0 = s.tmp_2; { step = 21; continue; } case 20: - r0 = pxsim_String_.charAt(s.arg0, s.start___190365); + r0 = pxsim_String_.charAt(s.arg0, s.start___161545); s.tmp_3 = r0; r0 = ("0" === s.tmp_3); case 21: @@ -30802,7 +34646,7 @@ switch (step) { { step = 25; continue; } case 22: s.tmp_7 = r0 = s.arg0; - r0 = (s.start___190365 + 1); + r0 = (s.start___161545 + 1); s.tmp_8 = r0; r0 = pxsim_String_.charAt(s.tmp_7, s.tmp_8); s.tmp_6 = r0; @@ -30814,7 +34658,7 @@ switch (step) { { step = 24; continue; } case 23: s.tmp_10 = r0 = s.arg0; - r0 = (s.start___190365 + 1); + r0 = (s.start___161545 + 1); s.tmp_11 = r0; r0 = pxsim_String_.charAt(s.tmp_10, s.tmp_11); s.tmp_9 = r0; @@ -30829,8 +34673,8 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_13); if (!r0) { step = 26; continue; } s.arg1 = (16); - r0 = (s.start___190365 + 2); - s.start___190365 = (r0); + r0 = (s.start___161545 + 2); + s.start___161545 = (r0); { step = 29; continue; } case 26: r0 = pxsim_numops_toBoolDecr(s.arg1); @@ -30843,73 +34687,73 @@ switch (step) { case 27: case 28: case 29: - s.output___190440 = (0); - s.hasDigit___190441 = (false); - s.i___190442 = (s.start___190365); + s.output___161620 = (0); + s.hasDigit___161621 = (false); + s.i___161622 = (s.start___161545); case 30: - s.tmp_1 = r0 = s.i___190442; + s.tmp_1 = r0 = s.i___161622; r0 = pxsim_String_.length(s.arg0); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 45; continue; } - r0 = pxsim_String_.charCodeAt(s.arg0, s.i___190442); + r0 = pxsim_String_.charCodeAt(s.arg0, s.i___161622); s.tmp_3 = r0; r0 = (s.tmp_3 | 32); - s.code___190449 = (r0); - s.val___190456 = (undefined); - r0 = (s.code___190449 >= 48); + s.code___161629 = (r0); + s.val___161636 = (undefined); + r0 = (s.code___161629 >= 48); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 31; continue; } r0 = s.tmp_0; { step = 32; continue; } case 31: - r0 = (s.code___190449 < 58); + r0 = (s.code___161629 < 58); case 32: // jmp value (already in r0) s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 33; continue; } - r0 = (s.code___190449 - 48); - s.val___190456 = (r0); + r0 = (s.code___161629 - 48); + s.val___161636 = (r0); { step = 38; continue; } case 33: - r0 = (s.code___190449 >= 97); + r0 = (s.code___161629 >= 97); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 34; continue; } r0 = s.tmp_0; { step = 35; continue; } case 34: - r0 = (s.code___190449 < 123); + r0 = (s.code___161629 < 123); case 35: // jmp value (already in r0) s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 36; continue; } - r0 = (10 + s.code___190449); + r0 = (10 + s.code___161629); s.tmp_2 = r0; r0 = (s.tmp_2 - 97); - s.val___190456 = (r0); + s.val___161636 = (r0); case 36: case 37: case 38: - r0 = (s.val___190456 == undefined); + r0 = (s.val___161636 == undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 39; continue; } r0 = s.tmp_0; { step = 40; continue; } case 39: - r0 = (s.val___190456 >= s.arg1); + r0 = (s.val___161636 >= s.arg1); case 40: // jmp value (already in r0) s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 43; continue; } - r0 = pxsim_numops_toBoolDecr(s.hasDigit___190441); + r0 = pxsim_numops_toBoolDecr(s.hasDigit___161621); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; @@ -30922,26 +34766,26 @@ switch (step) { { step = 45; continue; } case 43: case 44: - s.hasDigit___190441 = (true); - r0 = (s.output___190440 * s.arg1); + s.hasDigit___161621 = (true); + r0 = (s.output___161620 * s.arg1); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.val___190456); - s.output___190440 = (r0); - r0 = (s.i___190442 + 1); - s.i___190442 = (r0); + r0 = (s.tmp_0 + s.val___161636); + s.output___161620 = (r0); + r0 = (s.i___161622 + 1); + s.i___161622 = (r0); { step = 30; continue; } case 45: - r0 = (s.sign___190395 * s.output___190440); + r0 = (s.sign___161575 * s.output___161620); case 46: return leave(s, r0) default: oops() } } } -parseInt__P86580.info = {"start":1064,"length":1690,"line":44,"column":0,"endLine":103,"endColumn":1,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"parseInt","argumentNames":["text","radix"]} +parseInt__P151579.info = {"start":1064,"length":1690,"line":44,"column":0,"endLine":103,"endColumn":1,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"parseInt","argumentNames":["text","radix"]} -function parseInt__P86580_mk(s) { +function parseInt__P151579_mk(s) { checkStack(s.depth); return { - parent: s, fn: parseInt__P86580, depth: s.depth + 1, + parent: s, fn: parseInt__P151579, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30957,13 +34801,13 @@ function parseInt__P86580_mk(s) { tmp_11: undefined, tmp_12: undefined, tmp_13: undefined, - start___190365: undefined, - sign___190395: undefined, - output___190440: undefined, - hasDigit___190441: undefined, - i___190442: undefined, - code___190449: undefined, - val___190456: undefined, + start___161545: undefined, + sign___161575: undefined, + output___161620: undefined, + hasDigit___161621: undefined, + i___161622: undefined, + code___161629: undefined, + val___161636: undefined, arg0: undefined, arg1: undefined, } } @@ -30972,7 +34816,7 @@ function parseInt__P86580_mk(s) { -function helpers_isWhitespace__P86604(s) { +function helpers_isWhitespace__P151603(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31029,12 +34873,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_isWhitespace__P86604.info = {"start":13875,"length":674,"line":476,"column":4,"endLine":493,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"isWhitespace","argumentNames":["c"]} +helpers_isWhitespace__P151603.info = {"start":13875,"length":674,"line":476,"column":4,"endLine":493,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"isWhitespace","argumentNames":["c"]} -function helpers_isWhitespace__P86604_mk(s) { +function helpers_isWhitespace__P151603_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_isWhitespace__P86604, depth: s.depth + 1, + parent: s, fn: helpers_isWhitespace__P151603, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -31044,7 +34888,7 @@ function helpers_isWhitespace__P86604_mk(s) { -function music_MelodyPlayer_constructor__P88096(s) { +function music_MelodyPlayer_constructor__P153095(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31060,18 +34904,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_MelodyPlayer__C88093_VT)) failedCast(r0); + if (!checkSubtype(r0, music_MelodyPlayer__C153092_VT)) failedCast(r0); r0 = (s.arg0).fields["melody"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -music_MelodyPlayer_constructor__P88096.info = {"start":10714,"length":62,"line":329,"column":8,"endLine":331,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","m"]} +music_MelodyPlayer_constructor__P153095.info = {"start":10714,"length":62,"line":329,"column":8,"endLine":331,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","m"]} -function music_MelodyPlayer_constructor__P88096_mk(s) { +function music_MelodyPlayer_constructor__P153095_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_MelodyPlayer_constructor__P88096, depth: s.depth + 1, + parent: s, fn: music_MelodyPlayer_constructor__P153095, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -31081,7 +34925,7 @@ function music_MelodyPlayer_constructor__P88096_mk(s) { -function music_Melody_stop__P88088(s) { +function music_Melody_stop__P153087(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31096,35 +34940,35 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C88083_VT)) failedCast(r0); + if (!checkSubtype(r0, music_Melody__C153082_VT)) failedCast(r0); r0 = s.arg0.fields["_player"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = music_MelodyPlayer_stop__P88097_mk(s); + s.tmp_1 = music_MelodyPlayer_stop__P153096_mk(s); r0 = s.arg0.fields["_player"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 8; s.pc = 3; return s.tmp_1; + s.callLocIdx = 80; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; r0 = (s.arg0).fields["_player"] = (null); case 1: case 2: - s.tmp_0 = music_Melody_unregisterMelody__P90252_mk(s); + s.tmp_0 = music_Melody_unregisterMelody__P155416_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 9; s.pc = 4; return s.tmp_0; + s.callLocIdx = 81; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_stop__P88088.info = {"start":6706,"length":173,"line":215,"column":8,"endLine":221,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"stop","argumentNames":["this"]} +music_Melody_stop__P153087.info = {"start":6706,"length":173,"line":215,"column":8,"endLine":221,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"stop","argumentNames":["this"]} -function music_Melody_stop__P88088_mk(s) { +function music_Melody_stop__P153087_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_stop__P88088, depth: s.depth + 1, + parent: s, fn: music_Melody_stop__P153087, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31135,7 +34979,7 @@ function music_Melody_stop__P88088_mk(s) { -function music_MelodyPlayer_stop__P88097(s) { +function music_MelodyPlayer_stop__P153096(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31150,109 +34994,27 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_MelodyPlayer__C88093_VT)) failedCast(r0); + if (!checkSubtype(r0, music_MelodyPlayer__C153092_VT)) failedCast(r0); r0 = (s.arg0).fields["melody"] = (null); r0 = undefined; return leave(s, r0) default: oops() } } } -music_MelodyPlayer_stop__P88097.info = {"start":10786,"length":49,"line":333,"column":8,"endLine":335,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"stop","argumentNames":["this"]} - -function music_MelodyPlayer_stop__P88097_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: music_MelodyPlayer_stop__P88097, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function timer_after__P89938(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - s.tmp_0 = setTimeout__P86897_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 259; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -timer_after__P89938.info = {"start":317,"length":96,"line":11,"column":4,"endLine":13,"endColumn":5,"fileName":"pxt_modules/Timers/timers.ts","functionName":"after","argumentNames":["time","thenDo"]} - -function timer_after__P89938_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: timer_after__P89938, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function setTimeout__P86897(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - s.tmp_0 = control_setInterval__P86828_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = 1; - s.callLocIdx = 7; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - return leave(s, r0) - default: oops() -} } } -setTimeout__P86897.info = {"start":610,"length":139,"line":26,"column":0,"endLine":28,"endColumn":1,"fileName":"pxt_modules/base/scheduling.ts","functionName":"setTimeout","argumentNames":["func","delay"]} +music_MelodyPlayer_stop__P153096.info = {"start":10786,"length":49,"line":333,"column":8,"endLine":335,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"stop","argumentNames":["this"]} -function setTimeout__P86897_mk(s) { +function music_MelodyPlayer_stop__P153096_mk(s) { checkStack(s.depth); return { - parent: s, fn: setTimeout__P86897, depth: s.depth + 1, + parent: s, fn: music_MelodyPlayer_stop__P153096, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function control_setInterval__P86828(s) { +function tiles_placeOnTile__P153832(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31262,11 +35024,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.interval___191759 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = pxsim_numops_toBoolDecr(s.arg0); @@ -31278,65 +35038,70 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = (s.arg1 < 0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); case 2: // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); if (!r0) { step = 3; continue; } - r0 = 0; - { step = 7; continue; } + r0 = s.tmp_3; + { step = 4; continue; } case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(globals._intervals___90177); + s.tmp_6 = game_currentScene__P154016_mk(s); + s.callLocIdx = 934; s.pc = 8; return s.tmp_6; + case 8: + r0 = s.retval; + r0 = r0.fields["tileMap"]; + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); s.tmp_4 = r0; r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + 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_Array__mk(); - globals._intervals___90177 = (r0); + { step = 7; continue; } case 5: case 6: - r0 = pxsim_pxtcore_mkClassInstance(control_Interval__C90178_VT); - s.tmp_0 = r0; - s.tmp_1 = control_Interval_constructor__P90181_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.arg1; - s.tmp_1.arg3 = s.arg2; - s.callLocIdx = 6; s.pc = 8; return s.tmp_1; - case 8: + s.tmp_8 = tiles_Location_place__P153780_mk(s); + s.tmp_8.arg0 = s.arg1; + s.tmp_8.arg1 = s.arg0; + s.callLocIdx = 935; s.pc = 9; return s.tmp_8; + case 9: r0 = s.retval; - s.interval___191759 = (s.tmp_0); - r0 = s.interval___191759.fields["id"]; case 7: + r0 = undefined; return leave(s, r0) default: oops() } } } -control_setInterval__P86828.info = {"start":1554,"length":266,"line":54,"column":4,"endLine":59,"endColumn":5,"fileName":"pxt_modules/base/interval.ts","functionName":"setInterval","argumentNames":["func","delay","mode"]} +tiles_placeOnTile__P153832.info = {"start":18232,"length":168,"line":566,"column":4,"endLine":569,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"placeOnTile","argumentNames":["sprite","loc"]} -function control_setInterval__P86828_mk(s) { +function tiles_placeOnTile__P153832_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_setInterval__P86828, depth: s.depth + 1, + parent: s, fn: tiles_placeOnTile__P153832, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - interval___191759: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function control_Interval_constructor__P90181(s) { +function tiles_Location_place__P153780(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31349,71 +35114,62 @@ 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, control_Interval__C90178_VT)) failedCast(r0); - r0 = pxsim_Array__length(globals._intervals___90177); + if (!checkSubtype(r0, tiles_Location__C153773_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; - r0 = (s.tmp_1 == 0); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = 1; - { step = 2; continue; } + { step = 3; continue; } case 1: - s.tmp_3 = r0 = globals._intervals___90177; - r0 = pxsim_Array__length(globals._intervals___90177); - 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["id"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); case 2: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = (s.arg0).fields["id"] = (s.tmp_6); - r0 = (s.arg0).fields["func"] = (s.arg1); - r0 = (s.arg0).fields["delay"] = (s.arg2); - r0 = (s.arg0).fields["mode"] = (s.arg3); - r0 = pxsim_Array__push(globals._intervals___90177, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, inline__P191802); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim.control.runInParallel(s.tmp_0); + s.tmp_2 = Sprite_setPosition__P153556_mk(s); + s.tmp_2.arg0 = s.arg1; + s.tmp_3 = tiles_Location_x__P153777_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 827; s.pc = 5; return s.tmp_3; + case 5: + r0 = s.retval; + s.tmp_2.arg1 = r0; + s.tmp_4 = tiles_Location_y__P153778_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 828; s.pc = 6; return s.tmp_4; + case 6: + r0 = s.retval; + s.tmp_2.arg2 = r0; + s.callLocIdx = 829; s.pc = 4; return s.tmp_2; + case 4: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -control_Interval_constructor__P90181.info = {"start":283,"length":367,"line":15,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/base/interval.ts","functionName":"inline","argumentNames":["this","func","delay","mode"]} +tiles_Location_place__P153780.info = {"start":1189,"length":126,"line":51,"column":8,"endLine":54,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"place","argumentNames":["this","mySprite"]} -function control_Interval_constructor__P90181_mk(s) { +function tiles_Location_place__P153780_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_Interval_constructor__P90181, depth: s.depth + 1, + parent: s, fn: tiles_Location_place__P153780, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function inline__P191802(s) { +function Sprite_setPosition__P153556(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31423,30 +35179,88 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = control_Interval_work__P90179_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 1; s.pc = 1; return s.tmp_0; + s.physics___166217 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 338; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + r0 = r0.fields["physicsEngine"]; + s.physics___166217 = (r0); + s.tmp_0 = PhysicsEngine__C153643_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___166217; + s.tmp_0.arg1 = s.arg0; + s.tmp_2 = r0 = s.arg1; + s.tmp_4 = Sprite_x__P153509_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 339; s.pc = 3; return s.tmp_4; + case 3: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_2 - s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_1 * 256); + s.tmp_5 = r0; + r0 = (s.tmp_5 | 0); + s.tmp_0.arg2 = r0; + s.tmp_7 = r0 = s.arg2; + s.tmp_9 = Sprite_y__P153511_mk(s); + s.tmp_9.arg0 = s.arg0; + s.callLocIdx = 341; s.pc = 4; return s.tmp_9; + case 4: + r0 = s.retval; + s.tmp_8 = r0; + r0 = (s.tmp_7 - s.tmp_8); + s.tmp_6 = r0; + r0 = (s.tmp_6 * 256); + s.tmp_10 = r0; + r0 = (s.tmp_10 | 0); + s.tmp_0.arg3 = r0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C153643_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.moveSprite; + s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P191802.info = {"start":621,"length":17,"line":23,"column":34,"endLine":23,"endColumn":51,"fileName":"pxt_modules/base/interval.ts","functionName":"inline","argumentNames":[]} +Sprite_setPosition__P153556.info = {"start":11962,"length":220,"line":430,"column":4,"endLine":437,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setPosition","argumentNames":["this","x","y"]} -function inline__P191802_mk(s) { +function Sprite_setPosition__P153556_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P191802, depth: s.depth + 1, + parent: s, fn: Sprite_setPosition__P153556, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + physics___166217: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function control_Interval_work__P90179(s) { +function PhysicsEngine_moveSprite__P153647(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31458,120 +35272,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, control_Interval__C90178_VT)) failedCast(r0); - r0 = s.arg0.fields["mode"]; - s.tmp_0 = r0; - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); - if (r0) { step = 7; continue; } - r0 = s.tmp_0; - { step = 12; continue; } - case 1: - case 2: - r0 = s.arg0.fields["delay"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 > 0); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - s.tmp_3 = pause__P86887_mk(s); - r0 = s.arg0.fields["delay"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 2; s.pc = 13; return s.tmp_3; - case 13: - r0 = s.retval; - case 3: - case 4: - r0 = s.arg0.fields["delay"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_2 = if_func_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, "func"), 1); - s.callLocIdx = 3; s.pc = 14; return s.tmp_2; - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["func"]; - if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["func"], 1); s.callLocIdx = 3; s.pc = 14; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 3; s.pc = 14; return s.tmp_2;; } - else { s.callLocIdx = 3; s.pc = 14; return s.tmp_2; } - } - case 14: - r0 = s.retval; - case 5: - case 6: - { step = 12; continue; } - case 7: - case 8: - r0 = s.arg0.fields["delay"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.tmp_2 = pause__P86887_mk(s); - r0 = s.arg0.fields["delay"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 4; s.pc = 15; return s.tmp_2; - case 15: - r0 = s.retval; - r0 = s.arg0.fields["delay"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - s.tmp_2 = if_func_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, "func"), 1); - s.callLocIdx = 5; s.pc = 16; return s.tmp_2; - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["func"]; - if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["func"], 1); s.callLocIdx = 5; s.pc = 16; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 5; s.pc = 16; return s.tmp_2;; } - else { s.callLocIdx = 5; s.pc = 16; return s.tmp_2; } - } - case 16: - r0 = s.retval; - case 9: - case 10: - { step = 8; continue; } - case 11: - case 12: - r0 = pxsim_Array_.removeElement(globals._intervals___90177, s.arg0); + if (!checkSubtype(r0, PhysicsEngine__C153643_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -control_Interval_work__P90179.info = {"start":660,"length":823,"line":26,"column":8,"endLine":47,"endColumn":9,"fileName":"pxt_modules/base/interval.ts","functionName":"work","argumentNames":["this"]} +PhysicsEngine_moveSprite__P153647.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 control_Interval_work__P90179_mk(s) { +function PhysicsEngine_moveSprite__P153647_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_Interval_work__P90179, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_moveSprite__P153647, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function tiles_placeOnTile__P88833(s) { +function timer_after__P155078(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31586,70 +35315,24 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_0 = setTimeout__P151896_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 1424; s.pc = 1; return s.tmp_0; case 1: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (!r0) { step = 3; continue; } - r0 = s.tmp_3; - { step = 4; continue; } - case 3: - s.tmp_6 = game_currentScene__P89017_mk(s); - s.callLocIdx = 32; s.pc = 8; return s.tmp_6; - case 8: r0 = s.retval; - r0 = r0.fields["tileMap"]; - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - case 4: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 5; continue; } - { step = 7; continue; } - case 5: - case 6: - s.tmp_8 = tiles_Location_place__P88781_mk(s); - s.tmp_8.arg0 = s.arg1; - s.tmp_8.arg1 = s.arg0; - s.callLocIdx = 33; s.pc = 9; return s.tmp_8; - case 9: - r0 = s.retval; - case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_placeOnTile__P88833.info = {"start":18232,"length":168,"line":566,"column":4,"endLine":569,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"placeOnTile","argumentNames":["sprite","loc"]} +timer_after__P155078.info = {"start":317,"length":96,"line":11,"column":4,"endLine":13,"endColumn":5,"fileName":"pxt_modules/Timers/timers.ts","functionName":"after","argumentNames":["time","thenDo"]} -function tiles_placeOnTile__P88833_mk(s) { +function timer_after__P155078_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_placeOnTile__P88833, depth: s.depth + 1, + parent: s, fn: timer_after__P155078, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, arg0: undefined, arg1: undefined, } } @@ -31658,7 +35341,7 @@ function tiles_placeOnTile__P88833_mk(s) { -function tiles_Location_place__P88781(s) { +function setTimeout__P151896(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31673,51 +35356,24 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C88774_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 3; continue; } + s.tmp_0 = control_setInterval__P151827_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = 1; + s.callLocIdx = 67; s.pc = 1; return s.tmp_0; case 1: - case 2: - s.tmp_2 = Sprite_setPosition__P88557_mk(s); - s.tmp_2.arg0 = s.arg1; - s.tmp_3 = tiles_Location_x__P88778_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 29; s.pc = 5; return s.tmp_3; - case 5: - r0 = s.retval; - s.tmp_2.arg1 = r0; - s.tmp_4 = tiles_Location_y__P88779_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 30; s.pc = 6; return s.tmp_4; - case 6: r0 = s.retval; - s.tmp_2.arg2 = r0; - s.callLocIdx = 31; s.pc = 4; return s.tmp_2; - case 4: - r0 = s.retval; - case 3: - r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_Location_place__P88781.info = {"start":1189,"length":126,"line":51,"column":8,"endLine":54,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"place","argumentNames":["this","mySprite"]} +setTimeout__P151896.info = {"start":610,"length":139,"line":26,"column":0,"endLine":28,"endColumn":1,"fileName":"pxt_modules/base/scheduling.ts","functionName":"setTimeout","argumentNames":["func","delay"]} -function tiles_Location_place__P88781_mk(s) { +function setTimeout__P151896_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_place__P88781, depth: s.depth + 1, + parent: s, fn: setTimeout__P151896, depth: s.depth + 1, pc: 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, } } @@ -31726,7 +35382,7 @@ function tiles_Location_place__P88781_mk(s) { -function Sprite_setPosition__P88557(s) { +function control_setInterval__P151827(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31736,78 +35392,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___142960 = undefined; + s.interval___166258 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 14; s.pc = 1; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - r0 = s.retval; - r0 = r0.fields["physicsEngine"]; - s.physics___142960 = (r0); - s.tmp_0 = PhysicsEngine__C88644_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___142960; - s.tmp_0.arg1 = s.arg0; - s.tmp_2 = r0 = s.arg1; - s.tmp_4 = Sprite_x__P88510_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 15; s.pc = 3; return s.tmp_4; + r0 = (s.arg1 < 0); + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = 0; + { step = 7; continue; } case 3: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_2 - s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_1 * 256); - s.tmp_5 = r0; - r0 = (s.tmp_5 | 0); - s.tmp_0.arg2 = r0; - s.tmp_7 = r0 = s.arg2; - s.tmp_9 = Sprite_y__P88512_mk(s); - s.tmp_9.arg0 = s.arg0; - s.callLocIdx = 17; s.pc = 4; return s.tmp_9; case 4: + r0 = pxsim_numops_toBoolDecr(globals._intervals___155341); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 5; continue; } + r0 = pxsim_Array__mk(); + globals._intervals___155341 = (r0); + case 5: + case 6: + r0 = pxsim_pxtcore_mkClassInstance(control_Interval__C155342_VT); + s.tmp_0 = r0; + s.tmp_1 = control_Interval_constructor__P155345_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.arg1; + s.tmp_1.arg3 = s.arg2; + s.callLocIdx = 31; s.pc = 8; return s.tmp_1; + case 8: r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_7 - s.tmp_8); - s.tmp_6 = r0; - r0 = (s.tmp_6 * 256); - s.tmp_10 = r0; - r0 = (s.tmp_10 | 0); - s.tmp_0.arg3 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C88644_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; + s.interval___166258 = (s.tmp_0); + r0 = s.interval___166258.fields["id"]; + case 7: return leave(s, r0) default: oops() } } } -Sprite_setPosition__P88557.info = {"start":11962,"length":220,"line":430,"column":4,"endLine":437,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setPosition","argumentNames":["this","x","y"]} +control_setInterval__P151827.info = {"start":1554,"length":266,"line":54,"column":4,"endLine":59,"endColumn":5,"fileName":"pxt_modules/base/interval.ts","functionName":"setInterval","argumentNames":["func","delay","mode"]} -function Sprite_setPosition__P88557_mk(s) { +function control_setInterval__P151827_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setPosition__P88557, depth: s.depth + 1, + parent: s, fn: control_setInterval__P151827, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - physics___142960: undefined, + interval___166258: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -31817,7 +35466,7 @@ function Sprite_setPosition__P88557_mk(s) { -function PhysicsEngine_moveSprite__P88648(s) { +function control_Interval_constructor__P155345(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31835,18 +35484,55 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C88644_VT)) failedCast(r0); + if (!checkSubtype(r0, control_Interval__C155342_VT)) failedCast(r0); + r0 = pxsim_Array__length(globals._intervals___155341); + s.tmp_1 = r0; + r0 = (s.tmp_1 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 1; + { step = 2; continue; } + case 1: + s.tmp_3 = r0 = globals._intervals___155341; + r0 = pxsim_Array__length(globals._intervals___155341); + 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["id"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + case 2: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = (s.arg0).fields["id"] = (s.tmp_6); + r0 = (s.arg0).fields["func"] = (s.arg1); + r0 = (s.arg0).fields["delay"] = (s.arg2); + r0 = (s.arg0).fields["mode"] = (s.arg3); + r0 = pxsim_Array__push(globals._intervals___155341, s.arg0); + r0 = pxsim_pxtcore_mkAction(1, inline__P166301); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim.control.runInParallel(s.tmp_0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_moveSprite__P88648.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"]} +control_Interval_constructor__P155345.info = {"start":283,"length":367,"line":15,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/base/interval.ts","functionName":"inline","argumentNames":["this","func","delay","mode"]} -function PhysicsEngine_moveSprite__P88648_mk(s) { +function control_Interval_constructor__P155345_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_moveSprite__P88648, depth: s.depth + 1, + parent: s, fn: control_Interval_constructor__P155345, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -31857,7 +35543,7 @@ function PhysicsEngine_moveSprite__P88648_mk(s) { -function timer_throttle__P89941(s) { +function inline__P166301(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31867,67 +35553,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = pxsim_pxtrt.mapGetGeneric(globals.throttleTimeouts___92154, s.arg0); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_3 = lambda_1_mk(s); - s.tmp_3.argL = s.arg2; - setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 62; s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P194344); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = r0 = globals.throttleTimeouts___92154; - s.tmp_2 = r0 = s.arg0; - s.tmp_4 = setTimeout__P86897_mk(s); - s.tmp_4.arg0 = s.tmp_0; - s.tmp_4.arg1 = s.arg1; - s.callLocIdx = 63; s.pc = 4; return s.tmp_4; - case 4: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_1, s.tmp_2, s.tmp_3); + s.tmp_0 = control_Interval_work__P155343_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 26; s.pc = 1; return s.tmp_0; case 1: - case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -timer_throttle__P89941.info = {"start":1744,"length":271,"line":55,"column":4,"endLine":62,"endColumn":5,"fileName":"pxt_modules/Timers/timers.ts","functionName":"throttle","argumentNames":["key","time","thenDo"]} +inline__P166301.info = {"start":621,"length":17,"line":23,"column":34,"endLine":23,"endColumn":51,"fileName":"pxt_modules/base/interval.ts","functionName":"inline","argumentNames":[]} -function timer_throttle__P89941_mk(s) { +function inline__P166301_mk(s) { checkStack(s.depth); return { - parent: s, fn: timer_throttle__P89941, depth: s.depth + 1, + parent: s, fn: inline__P166301, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function inline__P194344(s) { +function control_Interval_work__P155343(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31937,25 +35586,122 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_pxtrt.mapSetGeneric(globals.throttleTimeouts___92154, s.caps[0], null); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, control_Interval__C155342_VT)) failedCast(r0); + r0 = s.arg0.fields["mode"]; + s.tmp_0 = r0; + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); + if (r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 12; continue; } + case 1: + case 2: + r0 = s.arg0.fields["delay"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 > 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + s.tmp_3 = pause__P151886_mk(s); + r0 = s.arg0.fields["delay"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 27; s.pc = 13; return s.tmp_3; + case 13: + r0 = s.retval; + case 3: + case 4: + r0 = s.arg0.fields["delay"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_2 = if_func_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, "func"), 1); + s.callLocIdx = 28; s.pc = 14; return s.tmp_2; + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["func"]; + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["func"], 1); s.callLocIdx = 28; s.pc = 14; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 28; s.pc = 14; return s.tmp_2;; } + else { s.callLocIdx = 28; s.pc = 14; return s.tmp_2; } + } + case 14: + r0 = s.retval; + case 5: + case 6: + { step = 12; continue; } + case 7: + case 8: + r0 = s.arg0.fields["delay"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + s.tmp_2 = pause__P151886_mk(s); + r0 = s.arg0.fields["delay"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 29; s.pc = 15; return s.tmp_2; + case 15: + r0 = s.retval; + r0 = s.arg0.fields["delay"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + s.tmp_2 = if_func_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, "func"), 1); + s.callLocIdx = 30; s.pc = 16; return s.tmp_2; + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["func"]; + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["func"], 1); s.callLocIdx = 30; s.pc = 16; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 30; s.pc = 16; return s.tmp_2;; } + else { s.callLocIdx = 30; s.pc = 16; return s.tmp_2; } + } + case 16: + r0 = s.retval; + case 9: + case 10: + { step = 8; continue; } + case 11: + case 12: + r0 = pxsim_Array_.removeElement(globals._intervals___155341, s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P194344.info = {"start":1925,"length":67,"line":58,"column":47,"endLine":60,"endColumn":13,"fileName":"pxt_modules/Timers/timers.ts","functionName":"inline","argumentNames":[]} +control_Interval_work__P155343.info = {"start":660,"length":823,"line":26,"column":8,"endLine":47,"endColumn":9,"fileName":"pxt_modules/base/interval.ts","functionName":"work","argumentNames":["this"]} -function inline__P194344_mk(s) { +function control_Interval_work__P155343_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P194344, depth: s.depth + 1, + parent: s, fn: control_Interval_work__P155343, depth: s.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 scene_onOverlapTile__P88593(s) { +function scene_onOverlapTile__P153592(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31965,7 +35711,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tileOverlapHandlers___188812 = undefined; + s.tileOverlapHandlers___166346 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -32001,34 +35747,34 @@ switch (step) { { step = 7; continue; } case 5: case 6: - s.tmp_5 = game_currentScene__P89017_mk(s); - s.callLocIdx = 14; s.pc = 8; return s.tmp_5; + s.tmp_5 = game_currentScene__P154016_mk(s); + s.callLocIdx = 482; s.pc = 8; return s.tmp_5; case 8: r0 = s.retval; r0 = r0.fields["tileOverlapHandlers"]; - s.tileOverlapHandlers___188812 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(scene_TileOverlapHandler__C88881_VT); + s.tileOverlapHandlers___166346 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(scene_TileOverlapHandler__C153880_VT); s.tmp_0 = r0; - s.tmp_1 = scene_TileOverlapHandler_constructor__P88882_mk(s); + s.tmp_1 = scene_TileOverlapHandler_constructor__P153881_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; s.tmp_1.arg2 = s.arg1; s.tmp_1.arg3 = s.arg2; - s.callLocIdx = 15; s.pc = 9; return s.tmp_1; + s.callLocIdx = 483; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - r0 = pxsim_Array__push(s.tileOverlapHandlers___188812, s.tmp_0); + r0 = pxsim_Array__push(s.tileOverlapHandlers___166346, s.tmp_0); case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_onOverlapTile__P88593.info = {"start":2785,"length":432,"line":89,"column":4,"endLine":100,"endColumn":5,"fileName":"pxt_modules/game/spriteevents.ts","functionName":"onOverlapTile","argumentNames":["kind","tile","handler"]} +scene_onOverlapTile__P153592.info = {"start":2785,"length":432,"line":89,"column":4,"endLine":100,"endColumn":5,"fileName":"pxt_modules/game/spriteevents.ts","functionName":"onOverlapTile","argumentNames":["kind","tile","handler"]} -function scene_onOverlapTile__P88593_mk(s) { +function scene_onOverlapTile__P153592_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_onOverlapTile__P88593, depth: s.depth + 1, + parent: s, fn: scene_onOverlapTile__P153592, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32036,7 +35782,7 @@ function scene_onOverlapTile__P88593_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tileOverlapHandlers___188812: undefined, + tileOverlapHandlers___166346: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -32046,7 +35792,7 @@ function scene_onOverlapTile__P88593_mk(s) { -function scene_TileOverlapHandler_constructor__P88882(s) { +function scene_TileOverlapHandler_constructor__P153881(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32064,7 +35810,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_TileOverlapHandler__C88881_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_TileOverlapHandler__C153880_VT)) failedCast(r0); r0 = (s.arg0).fields["spriteKind"] = (s.arg1); r0 = (s.arg0).fields["tileKind"] = (s.arg2); r0 = (s.arg0).fields["handler"] = (s.arg3); @@ -32072,12 +35818,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_TileOverlapHandler_constructor__P88882.info = {"start":1075,"length":180,"line":37,"column":8,"endLine":41,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","spriteKind","tileKind","handler"]} +scene_TileOverlapHandler_constructor__P153881.info = {"start":1075,"length":180,"line":37,"column":8,"endLine":41,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","spriteKind","tileKind","handler"]} -function scene_TileOverlapHandler_constructor__P88882_mk(s) { +function scene_TileOverlapHandler_constructor__P153881_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_TileOverlapHandler_constructor__P88882, depth: s.depth + 1, + parent: s, fn: scene_TileOverlapHandler_constructor__P153881, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -32089,7 +35835,7 @@ function scene_TileOverlapHandler_constructor__P88882_mk(s) { -function ConnectionKind_create__P90020(s) { +function ConnectionKind_create__P155165(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32099,26 +35845,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.nextKind___92159 === undefined); + r0 = (globals.nextKind___157421 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.nextKind___92159 = (1); + globals.nextKind___157421 = (1); case 1: case 2: - s.tmp_0 = r0 = globals.nextKind___92159; + s.tmp_0 = r0 = globals.nextKind___157421; r0 = (s.tmp_0 + 1); - globals.nextKind___92159 = (r0); + globals.nextKind___157421 = (r0); r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -ConnectionKind_create__P90020.info = {"start":412,"length":112,"line":13,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/tilemaps/overworld.ts","functionName":"create","argumentNames":[]} +ConnectionKind_create__P155165.info = {"start":412,"length":112,"line":13,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/tilemaps/overworld.ts","functionName":"create","argumentNames":[]} -function ConnectionKind_create__P90020_mk(s) { +function ConnectionKind_create__P155165_mk(s) { checkStack(s.depth); return { - parent: s, fn: ConnectionKind_create__P90020, depth: s.depth + 1, + parent: s, fn: ConnectionKind_create__P155165, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -32127,7 +35873,47 @@ function ConnectionKind_create__P90020_mk(s) { -function game_eventContext__P89020(s) { +function color_FadeState_constructor__P157326(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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, color_FadeState__C157325_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__P157326.info = {"start":5010,"length":96,"line":173,"column":8,"endLine":176,"endColumn":13,"fileName":"pxt_modules/Color Fading/fade.ts","functionName":"inline","argumentNames":["this","state","scene"]} + +function color_FadeState_constructor__P157326_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_FadeState_constructor__P157326, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function game_eventContext__P154019(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32137,21 +35923,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_init__P90536_mk(s); + s.tmp_0 = game_init__P155700_mk(s); s.tmp_0.arg0 = undefined; - s.callLocIdx = 861; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1041; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals._scene___90528.fields["eventContext"]; + r0 = globals._scene___155692.fields["eventContext"]; return leave(s, r0) default: oops() } } } -game_eventContext__P89020.info = {"start":1084,"length":112,"line":40,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"eventContext","argumentNames":[]} +game_eventContext__P154019.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__P89020_mk(s) { +function game_eventContext__P154019_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_eventContext__P89020, depth: s.depth + 1, + parent: s, fn: game_eventContext__P154019, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -32160,7 +35946,7 @@ function game_eventContext__P89020_mk(s) { -function controller_pauseUntilAnyButtonIsPressed__P88438(s) { +function controller_pauseUntilAnyButtonIsPressed__P153437(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32180,12 +35966,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_pauseUntilAnyButtonIsPressed__P88438.info = {"start":19144,"length":96,"line":583,"column":4,"endLine":585,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"pauseUntilAnyButtonIsPressed","argumentNames":[]} +controller_pauseUntilAnyButtonIsPressed__P153437.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__P88438_mk(s) { +function controller_pauseUntilAnyButtonIsPressed__P153437_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P88438, depth: s.depth + 1, + parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P153437, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -32193,7 +35979,7 @@ function controller_pauseUntilAnyButtonIsPressed__P88438_mk(s) { -function game_setWaitAnyButton__P89018(s) { +function game_setWaitAnyButton__P154017(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32207,17 +35993,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.__waitAnyButton___90532 = (s.arg0); + globals.__waitAnyButton___155696 = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -game_setWaitAnyButton__P89018.info = {"start":878,"length":83,"line":31,"column":4,"endLine":33,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"setWaitAnyButton","argumentNames":["f"]} +game_setWaitAnyButton__P154017.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__P89018_mk(s) { +function game_setWaitAnyButton__P154017_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_setWaitAnyButton__P89018, depth: s.depth + 1, + parent: s, fn: game_setWaitAnyButton__P154017, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -32226,7 +36012,7 @@ function game_setWaitAnyButton__P89018_mk(s) { -function Math_abs__P86608(s) { +function Math_abs__P151607(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32255,12 +36041,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_abs__P86608.info = {"start":15106,"length":77,"line":511,"column":4,"endLine":513,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"abs","argumentNames":["x"]} +Math_abs__P151607.info = {"start":15106,"length":77,"line":511,"column":4,"endLine":513,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"abs","argumentNames":["x"]} -function Math_abs__P86608_mk(s) { +function Math_abs__P151607_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_abs__P86608, depth: s.depth + 1, + parent: s, fn: Math_abs__P151607, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32271,7 +36057,7 @@ function Math_abs__P86608_mk(s) { -function Math_sign__P86609(s) { +function Math_sign__P151608(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32306,12 +36092,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_sign__P86609.info = {"start":15341,"length":125,"line":519,"column":4,"endLine":523,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sign","argumentNames":["x"]} +Math_sign__P151608.info = {"start":15341,"length":125,"line":519,"column":4,"endLine":523,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sign","argumentNames":["x"]} -function Math_sign__P86609_mk(s) { +function Math_sign__P151608_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_sign__P86609, depth: s.depth + 1, + parent: s, fn: Math_sign__P151608, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32322,7 +36108,7 @@ function Math_sign__P86609_mk(s) { -function texteffects_TextEffect_constructor__P89318(s) { +function texteffects_TextEffect_constructor__P154317(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32338,18 +36124,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, texteffects_TextEffect__C89316_VT)) failedCast(r0); + if (!checkSubtype(r0, texteffects_TextEffect__C154315_VT)) failedCast(r0); r0 = (s.arg0).fields["getState"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -texteffects_TextEffect_constructor__P89318.info = {"start":657,"length":133,"line":25,"column":8,"endLine":27,"endColumn":9,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":["this","getState"]} +texteffects_TextEffect_constructor__P154317.info = {"start":657,"length":133,"line":25,"column":8,"endLine":27,"endColumn":9,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":["this","getState"]} -function texteffects_TextEffect_constructor__P89318_mk(s) { +function texteffects_TextEffect_constructor__P154317_mk(s) { checkStack(s.depth); return { - parent: s, fn: texteffects_TextEffect_constructor__P89318, depth: s.depth + 1, + parent: s, fn: texteffects_TextEffect_constructor__P154317, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -32359,7 +36145,7 @@ function texteffects_TextEffect_constructor__P89318_mk(s) { -function Math_FastRandom_constructor__P89073(s) { +function Math_FastRandom_constructor__P154072(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32375,7 +36161,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C89071_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C154070_VT)) failedCast(r0); r0 = (s.arg1 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -32390,12 +36176,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_constructor__P89073.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__P154072.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__P89073_mk(s) { +function Math_FastRandom_constructor__P154072_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_constructor__P89073, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_constructor__P154072, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -32406,7 +36192,7 @@ function Math_FastRandom_constructor__P89073_mk(s) { -function control_ramSize__P86820(s) { +function control_ramSize__P151819(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32431,12 +36217,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_ramSize__P86820.info = {"start":5058,"length":100,"line":172,"column":4,"endLine":174,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"ramSize","argumentNames":[]} +control_ramSize__P151819.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__P86820_mk(s) { +function control_ramSize__P151819_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_ramSize__P86820, depth: s.depth + 1, + parent: s, fn: control_ramSize__P151819, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32446,7 +36232,7 @@ function control_ramSize__P86820_mk(s) { -function control__ramSize__P90175(s) { +function control__ramSize__P155339(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32460,12 +36246,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control__ramSize__P90175.info = {"start":4938,"length":60,"line":167,"column":4,"endLine":169,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"_ramSize","argumentNames":[]} +control__ramSize__P155339.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__P90175_mk(s) { +function control__ramSize__P155339_mk(s) { checkStack(s.depth); return { - parent: s, fn: control__ramSize__P90175, depth: s.depth + 1, + parent: s, fn: control__ramSize__P155339, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -32473,7 +36259,7 @@ function control__ramSize__P90175_mk(s) { -function game_consoleOverlay_listener__P90861(s) { +function game_consoleOverlay_listener__P156025(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32488,7 +36274,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___90826); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___155990); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -32508,39 +36294,39 @@ switch (step) { { step = 7; continue; } case 3: case 4: - s.tmp_4 = helpers_arrayForEach__P86592_mk(s); - s.tmp_5 = helpers_arrayFilter__P86593_mk(s); - s.tmp_6 = helpers_stringSplit__P86602_mk(s); + s.tmp_4 = helpers_arrayForEach__P151591_mk(s); + s.tmp_5 = helpers_arrayFilter__P151592_mk(s); + s.tmp_6 = helpers_stringSplit__P151601_mk(s); s.tmp_6.arg0 = s.arg1; s.tmp_6.arg1 = "\n"; s.tmp_6.arg2 = undefined; - s.callLocIdx = 1050; s.pc = 10; return s.tmp_6; + s.callLocIdx = 1242; s.pc = 10; return s.tmp_6; case 10: r0 = s.retval; s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = inline__P97809; - s.callLocIdx = 1051; s.pc = 9; return s.tmp_5; + s.tmp_5.arg1 = inline__P166923; + s.callLocIdx = 1243; s.pc = 9; return s.tmp_5; case 9: r0 = s.retval; s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = inline__P97814; - s.callLocIdx = 1053; s.pc = 8; return s.tmp_4; + s.tmp_4.arg1 = inline__P166928; + s.callLocIdx = 1245; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; - r0 = pxsim_Array__length(globals.consoleStrings___90826); + r0 = pxsim_Array__length(globals.consoleStrings___155990); s.tmp_1 = r0; - r0 = (s.tmp_1 > globals.consoleLines___90839); + r0 = (s.tmp_1 > globals.consoleLines___156003); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_2 = helpers_arraySplice__P86583_mk(s); - s.tmp_2.arg0 = globals.consoleStrings___90826; + s.tmp_2 = helpers_arraySplice__P151582_mk(s); + s.tmp_2.arg0 = globals.consoleStrings___155990; s.tmp_2.arg1 = 0; - r0 = pxsim_Array__length(globals.consoleStrings___90826); + r0 = pxsim_Array__length(globals.consoleStrings___155990); s.tmp_3 = r0; - r0 = (s.tmp_3 - globals.consoleLines___90839); + r0 = (s.tmp_3 - globals.consoleLines___156003); s.tmp_2.arg2 = r0; - s.callLocIdx = 1054; s.pc = 11; return s.tmp_2; + s.callLocIdx = 1246; s.pc = 11; return s.tmp_2; case 11: r0 = s.retval; case 5: @@ -32550,12 +36336,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_consoleOverlay_listener__P90861.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__P156025.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__P90861_mk(s) { +function game_consoleOverlay_listener__P156025_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_listener__P90861, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_listener__P156025, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32572,7 +36358,7 @@ function game_consoleOverlay_listener__P90861_mk(s) { -function inline__P97809(s) { +function inline__P166923(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32596,12 +36382,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P97809.info = {"start":985,"length":14,"line":32,"column":20,"endLine":32,"endColumn":34,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} +inline__P166923.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__P97809_mk(s) { +function inline__P166923_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P97809, depth: s.depth + 1, + parent: s, fn: inline__P166923, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32613,7 +36399,7 @@ function inline__P97809_mk(s) { -function inline__P97814(s) { +function inline__P166928(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32623,45 +36409,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.j___97816 = undefined; + s.j___166930 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.j___97816 = (0); + s.j___166930 = (0); case 1: - s.tmp_1 = r0 = s.j___97816; + s.tmp_1 = r0 = s.j___166930; 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___90826; - s.tmp_5 = helpers_stringSlice__P86600_mk(s); + s.tmp_3 = r0 = globals.consoleStrings___155990; + s.tmp_5 = helpers_stringSlice__P151599_mk(s); s.tmp_5.arg0 = s.arg0; - s.tmp_5.arg1 = s.j___97816; - r0 = (s.j___97816 + globals.consoleColumns___90849); + s.tmp_5.arg1 = s.j___166930; + r0 = (s.j___166930 + globals.consoleColumns___156013); s.tmp_5.arg2 = r0; - s.callLocIdx = 1052; s.pc = 3; return s.tmp_5; + s.callLocIdx = 1244; 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___97816 + globals.consoleColumns___90849); - s.j___97816 = (r0); + r0 = (s.j___166930 + globals.consoleColumns___156013); + s.j___166930 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P97814.info = {"start":1022,"length":189,"line":33,"column":21,"endLine":37,"endColumn":13,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} +inline__P166928.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__P97814_mk(s) { +function inline__P166928_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P97814, depth: s.depth + 1, + parent: s, fn: inline__P166928, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32669,7 +36455,7 @@ function inline__P97814_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - j___97816: undefined, + j___166930: undefined, arg0: undefined, } } @@ -32677,7 +36463,7 @@ function inline__P97814_mk(s) { -function console_addListener__P86857(s) { +function console_addListener__P151856(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32700,7 +36486,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_Array_.indexOf(globals.listeners___90190, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals.listeners___155354, s.arg0, undefined); s.tmp_2 = r0; r0 = (s.tmp_2 > -1); case 2: @@ -32711,18 +36497,18 @@ switch (step) { { step = 5; continue; } case 3: case 4: - r0 = pxsim_Array__push(globals.listeners___90190, s.arg0); + r0 = pxsim_Array__push(globals.listeners___155354, s.arg0); case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -console_addListener__P86857.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__P151856.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__P86857_mk(s) { +function console_addListener__P151856_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_addListener__P86857, depth: s.depth + 1, + parent: s, fn: console_addListener__P151856, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32735,7 +36521,7 @@ function console_addListener__P86857_mk(s) { -function inline__P90189(s) { +function inline__P155353(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32755,12 +36541,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P90189.info = {"start":534,"length":85,"line":25,"column":8,"endLine":25,"endColumn":93,"fileName":"pxt_modules/base/console.ts","functionName":"inline","argumentNames":["priority","text"]} +inline__P155353.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__P90189_mk(s) { +function inline__P155353_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P90189, depth: s.depth + 1, + parent: s, fn: inline__P155353, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -32770,7 +36556,7 @@ function inline__P90189_mk(s) { -function scene_systemMenu_register__P89118(s) { +function scene_systemMenu_register__P154117(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32780,16 +36566,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___90780); + r0 = pxsim_numops_toBoolDecr(globals.instance___155944); if (!r0) { step = 1; continue; } { step = 3; continue; } case 1: case 2: - s.tmp_0 = controller_Button_onEvent__P88395_mk(s); - s.tmp_0.arg0 = globals.menu___88368; + s.tmp_0 = controller_Button_onEvent__P153394_mk(s); + s.tmp_0.arg0 = globals.menu___153367; s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P89119; - s.callLocIdx = 1037; s.pc = 4; return s.tmp_0; + s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P154118; + s.callLocIdx = 1229; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 3: @@ -32797,12 +36583,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_register__P89118.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__P154117.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__P89118_mk(s) { +function scene_systemMenu_register__P154117_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_register__P89118, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_register__P154117, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -32811,7 +36597,7 @@ function scene_systemMenu_register__P89118_mk(s) { -function scene_systemMenu_showSystemMenu__P89119(s) { +function scene_systemMenu_showSystemMenu__P154118(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32821,28 +36607,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___90780); + r0 = pxsim_numops_toBoolDecr(globals.instance___155944); if (!r0) { step = 1; continue; } { step = 3; continue; } case 1: case 2: - s.tmp_0 = game_pushScene__P89021_mk(s); - s.callLocIdx = 1038; s.pc = 4; return s.tmp_0; + s.tmp_0 = game_pushScene__P154020_mk(s); + s.callLocIdx = 1230; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C89107_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C154106_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P89108_mk(s); + s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P154107_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P89115; + s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P154114; s.tmp_1.arg2 = undefined; - s.callLocIdx = 1039; s.pc = 5; return s.tmp_1; + s.callLocIdx = 1231; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - globals.instance___90780 = (s.tmp_0); - s.tmp_0 = scene_systemMenu_PauseMenu_show__P89109_mk(s); - s.tmp_0.arg0 = globals.instance___90780; - s.callLocIdx = 1040; s.pc = 6; return s.tmp_0; + globals.instance___155944 = (s.tmp_0); + s.tmp_0 = scene_systemMenu_PauseMenu_show__P154108_mk(s); + s.tmp_0.arg0 = globals.instance___155944; + s.callLocIdx = 1232; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; case 3: @@ -32850,12 +36636,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_showSystemMenu__P89119.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__P154118.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__P89119_mk(s) { +function scene_systemMenu_showSystemMenu__P154118_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_showSystemMenu__P89119, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_showSystemMenu__P154118, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32865,7 +36651,7 @@ function scene_systemMenu_showSystemMenu__P89119_mk(s) { -function scene_systemMenu_buildOptionList__P89115(s) { +function scene_systemMenu_buildOptionList__P154114(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32875,136 +36661,136 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.options___98909 = undefined; + s.options___167646 = undefined; r0 = pxsim_Array__mk(); - s.options___98909 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C89099_VT); + s.options___167646 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C154098_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P89100_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P154099_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___89129; - s.tmp_1.arg2 = inline__P98917; - s.tmp_1.arg3 = scene_systemMenu_volumeDown__P90786; - s.callLocIdx = 1020; s.pc = 5; return s.tmp_1; + s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___154128; + s.tmp_1.arg2 = inline__P167654; + s.tmp_1.arg3 = scene_systemMenu_volumeDown__P155950; + s.callLocIdx = 1212; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - r0 = pxsim_Array__push(s.options___98909, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C89099_VT); + r0 = pxsim_Array__push(s.options___167646, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C154098_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P89100_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P154099_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.VOLUME_UP_ICON___89126; - s.tmp_1.arg2 = inline__P98931; - s.tmp_1.arg3 = scene_systemMenu_volumeUp__P90785; - s.callLocIdx = 1022; s.pc = 6; return s.tmp_1; + s.tmp_1.arg1 = globals.VOLUME_UP_ICON___154125; + s.tmp_1.arg2 = inline__P167668; + s.tmp_1.arg3 = scene_systemMenu_volumeUp__P155949; + s.callLocIdx = 1214; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - r0 = pxsim_Array__push(s.options___98909, s.tmp_0); + r0 = pxsim_Array__push(s.options___167646, 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__C89099_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C154098_VT); s.tmp_1 = r0; - s.tmp_2 = scene_systemMenu_MenuOption_constructor__P89100_mk(s); + s.tmp_2 = scene_systemMenu_MenuOption_constructor__P154099_mk(s); s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___89127; - s.tmp_2.arg2 = inline__P98946; - s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P90788; - s.callLocIdx = 1025; s.pc = 7; return s.tmp_2; + s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___154126; + s.tmp_2.arg2 = inline__P167683; + s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P155952; + s.callLocIdx = 1217; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; - r0 = pxsim_Array__push(s.options___98909, s.tmp_1); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C89099_VT); + r0 = pxsim_Array__push(s.options___167646, s.tmp_1); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C154098_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P89100_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P154099_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___89132; - s.tmp_1.arg2 = inline__P98961; - s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P90787; - s.callLocIdx = 1027; s.pc = 8; return s.tmp_1; + s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___154131; + s.tmp_1.arg2 = inline__P167698; + s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P155951; + s.callLocIdx = 1219; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - r0 = pxsim_Array__push(s.options___98909, s.tmp_0); + r0 = pxsim_Array__push(s.options___167646, s.tmp_0); case 1: case 2: - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C89099_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C154098_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P89100_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P154099_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.STATS_ICON___89133; - s.tmp_1.arg2 = inline__P98976; - s.tmp_1.arg3 = scene_systemMenu_toggleStats__P90790; - s.callLocIdx = 1028; s.pc = 9; return s.tmp_1; + s.tmp_1.arg1 = globals.STATS_ICON___154132; + s.tmp_1.arg2 = inline__P167713; + s.tmp_1.arg3 = scene_systemMenu_toggleStats__P155954; + s.callLocIdx = 1220; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - r0 = pxsim_Array__push(s.options___98909, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C89099_VT); + r0 = pxsim_Array__push(s.options___167646, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C154098_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P89100_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P154099_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.CONSOLE_ICON___89131; - s.tmp_1.arg2 = inline__P98985; - s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P90791; - s.callLocIdx = 1030; s.pc = 10; return s.tmp_1; + s.tmp_1.arg1 = globals.CONSOLE_ICON___154130; + s.tmp_1.arg2 = inline__P167722; + s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P155955; + s.callLocIdx = 1222; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; - r0 = pxsim_Array__push(s.options___98909, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C89099_VT); + r0 = pxsim_Array__push(s.options___167646, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C154098_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P89100_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P154099_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.SLEEP_ICON___89130; - s.tmp_1.arg2 = inline__P98994; - s.tmp_1.arg3 = scene_systemMenu_sleep__P90792; - s.callLocIdx = 1031; s.pc = 11; return s.tmp_1; + s.tmp_1.arg1 = globals.SLEEP_ICON___154129; + s.tmp_1.arg2 = inline__P167731; + s.tmp_1.arg3 = scene_systemMenu_sleep__P155956; + s.callLocIdx = 1223; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; - r0 = pxsim_Array__push(s.options___98909, s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___90781); + r0 = pxsim_Array__push(s.options___167646, s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___155945); if (!r0) { step = 3; continue; } - s.tmp_0 = helpers_arrayConcat__P86596_mk(s); - s.tmp_0.arg0 = s.options___98909; - s.tmp_0.arg1 = globals.customMenuOptions___90781; - s.callLocIdx = 1032; s.pc = 12; return s.tmp_0; + s.tmp_0 = helpers_arrayConcat__P151595_mk(s); + s.tmp_0.arg0 = s.options___167646; + s.tmp_0.arg1 = globals.customMenuOptions___155945; + s.callLocIdx = 1224; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.options___98909 = (r0); + s.options___167646 = (r0); case 3: case 4: - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C89099_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C154098_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P89100_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P154099_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___89128; - s.tmp_1.arg2 = inline__P99007; - s.tmp_1.arg3 = scene_systemMenu_closeMenu__P89114; - s.callLocIdx = 1033; s.pc = 13; return s.tmp_1; + s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___154127; + s.tmp_1.arg2 = inline__P167744; + s.tmp_1.arg3 = scene_systemMenu_closeMenu__P154113; + s.callLocIdx = 1225; s.pc = 13; return s.tmp_1; case 13: r0 = s.retval; - r0 = pxsim_Array__push(s.options___98909, s.tmp_0); - r0 = s.options___98909; + r0 = pxsim_Array__push(s.options___167646, s.tmp_0); + r0 = s.options___167646; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList__P89115.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__P154114.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__P89115_mk(s) { +function scene_systemMenu_buildOptionList__P154114_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList__P89115, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList__P154114, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - options___98909: undefined, + options___167646: undefined, } } -function inline__P98917(s) { +function inline__P167654(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33014,8 +36800,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = music_volume__P88078_mk(s); - s.callLocIdx = 1019; s.pc = 1; return s.tmp_3; + s.tmp_3 = music_volume__P153077_mk(s); + s.callLocIdx = 1211; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -33034,12 +36820,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P98917.info = {"start":10644,"length":39,"line":337,"column":54,"endLine":337,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P167654.info = {"start":10644,"length":39,"line":337,"column":54,"endLine":337,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P98917_mk(s) { +function inline__P167654_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98917, depth: s.depth + 1, + parent: s, fn: inline__P167654, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33051,7 +36837,7 @@ function inline__P98917_mk(s) { -function inline__P98931(s) { +function inline__P167668(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33061,8 +36847,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = music_volume__P88078_mk(s); - s.callLocIdx = 1021; s.pc = 1; return s.tmp_3; + s.tmp_3 = music_volume__P153077_mk(s); + s.callLocIdx = 1213; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -33081,12 +36867,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P98931.info = {"start":10751,"length":37,"line":338,"column":52,"endLine":338,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P167668.info = {"start":10751,"length":37,"line":338,"column":52,"endLine":338,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P98931_mk(s) { +function inline__P167668_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98931, depth: s.depth + 1, + parent: s, fn: inline__P167668, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33098,7 +36884,7 @@ function inline__P98931_mk(s) { -function inline__P98946(s) { +function inline__P167683(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33108,7 +36894,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.brightness___88209; + r0 = globals.brightness___153208; s.tmp_2 = r0; if ((s.tmp_2) && (s.tmp_2).vtable) { setupResume(s, 1); @@ -33125,12 +36911,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P98946.info = {"start":10910,"length":48,"line":340,"column":62,"endLine":340,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P167683.info = {"start":10910,"length":48,"line":340,"column":62,"endLine":340,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P98946_mk(s) { +function inline__P167683_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98946, depth: s.depth + 1, + parent: s, fn: inline__P167683, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33141,7 +36927,7 @@ function inline__P98946_mk(s) { -function inline__P98961(s) { +function inline__P167698(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33151,7 +36937,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.brightness___88209; + r0 = globals.brightness___153208; s.tmp_2 = r0; if ((s.tmp_2) && (s.tmp_2).vtable) { setupResume(s, 1); @@ -33168,12 +36954,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P98961.info = {"start":11038,"length":46,"line":341,"column":60,"endLine":341,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P167698.info = {"start":11038,"length":46,"line":341,"column":60,"endLine":341,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P98961_mk(s) { +function inline__P167698_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98961, depth: s.depth + 1, + parent: s, fn: inline__P167698, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33184,7 +36970,7 @@ function inline__P98961_mk(s) { -function inline__P98976(s) { +function inline__P167713(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33194,7 +36980,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.stats___89014); + r0 = pxsim_numops_toBoolDecr(globals.stats___154013); if (!r0) { step = 1; continue; } r0 = "HIDE STATS"; { step = 2; continue; } @@ -33207,12 +36993,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P98976.info = {"start":11160,"length":46,"line":343,"column":48,"endLine":343,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P167713.info = {"start":11160,"length":46,"line":343,"column":48,"endLine":343,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P98976_mk(s) { +function inline__P167713_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98976, depth: s.depth + 1, + parent: s, fn: inline__P167713, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -33221,7 +37007,7 @@ function inline__P98976_mk(s) { -function inline__P98985(s) { +function inline__P167722(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33231,7 +37017,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___90826); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___155990); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; @@ -33252,12 +37038,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P98985.info = {"start":11273,"length":71,"line":344,"column":50,"endLine":344,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P167722.info = {"start":11273,"length":71,"line":344,"column":50,"endLine":344,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P98985_mk(s) { +function inline__P167722_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98985, depth: s.depth + 1, + parent: s, fn: inline__P167722, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33270,7 +37056,7 @@ function inline__P98985_mk(s) { -function inline__P98994(s) { +function inline__P167731(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33284,12 +37070,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P98994.info = {"start":11411,"length":13,"line":345,"column":48,"endLine":345,"endColumn":61,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P167731.info = {"start":11411,"length":13,"line":345,"column":48,"endLine":345,"endColumn":61,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P98994_mk(s) { +function inline__P167731_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98994, depth: s.depth + 1, + parent: s, fn: inline__P167731, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -33297,7 +37083,7 @@ function inline__P98994_mk(s) { -function inline__P99007(s) { +function inline__P167744(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33311,12 +37097,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P99007.info = {"start":11590,"length":13,"line":351,"column":53,"endLine":351,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P167744.info = {"start":11590,"length":13,"line":351,"column":53,"endLine":351,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P99007_mk(s) { +function inline__P167744_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P99007, depth: s.depth + 1, + parent: s, fn: inline__P167744, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -33324,7 +37110,7 @@ function inline__P99007_mk(s) { -function scene_systemMenu_setScreenBrightnessSupported__P90793(s) { +function scene_systemMenu_setScreenBrightnessSupported__P155957(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33338,12 +37124,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_setScreenBrightnessSupported__P90793.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__P155957.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__P90793_mk(s) { +function scene_systemMenu_setScreenBrightnessSupported__P155957_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P90793, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P155957, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -33351,7 +37137,7 @@ function scene_systemMenu_setScreenBrightnessSupported__P90793_mk(s) { -function scene_systemMenu_sleep__P90792(s) { +function scene_systemMenu_sleep__P155956(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33366,12 +37152,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_sleep__P90792.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__P155956.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__P90792_mk(s) { +function scene_systemMenu_sleep__P155956_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_sleep__P90792, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_sleep__P155956, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -33379,7 +37165,7 @@ function scene_systemMenu_sleep__P90792_mk(s) { -function scene_systemMenu_toggleConsole__P90791(s) { +function scene_systemMenu_toggleConsole__P155955(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33389,7 +37175,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___90826); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___155990); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; @@ -33399,23 +37185,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__P89138_mk(s); + s.tmp_4 = game_consoleOverlay_setVisible__P154137_mk(s); s.tmp_4.arg0 = false; s.tmp_4.arg1 = undefined; - s.callLocIdx = 1013; s.pc = 3; return s.tmp_4; + s.callLocIdx = 1205; s.pc = 3; return s.tmp_4; case 3: r0 = s.retval; { step = 2; continue; } case 1: - s.tmp_0 = game_consoleOverlay_setVisible__P89138_mk(s); + s.tmp_0 = game_consoleOverlay_setVisible__P154137_mk(s); s.tmp_0.arg0 = true; s.tmp_0.arg1 = undefined; - s.callLocIdx = 1014; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1206; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = console_log__P86854_mk(s); + s.tmp_0 = console_log__P151853_mk(s); s.tmp_0.arg0 = "console"; - s.callLocIdx = 1015; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1207; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 2: @@ -33423,12 +37209,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_toggleConsole__P90791.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__P155955.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__P90791_mk(s) { +function scene_systemMenu_toggleConsole__P155955_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_toggleConsole__P90791, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_toggleConsole__P155955, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33441,7 +37227,7 @@ function scene_systemMenu_toggleConsole__P90791_mk(s) { -function game_consoleOverlay_setVisible__P89138(s) { +function game_consoleOverlay_setVisible__P154137(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33457,7 +37243,7 @@ switch (step) { s.lambdaArgs = null; } s.tmp_1 = r0 = s.arg0; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___90826); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___155990); s.tmp_5 = r0; r0 = pxsim_Boolean__bang(s.tmp_5); s.tmp_4 = r0; @@ -33478,26 +37264,26 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_6 = r0; - globals.consoleStrings___90826 = (s.tmp_6); + globals.consoleStrings___155990 = (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___90825 = (s.arg1); + globals.consoleColor___155989 = (s.arg1); case 5: case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -game_consoleOverlay_setVisible__P89138.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__P154137.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__P89138_mk(s) { +function game_consoleOverlay_setVisible__P154137_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_setVisible__P89138, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_setVisible__P154137, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33514,7 +37300,7 @@ function game_consoleOverlay_setVisible__P89138_mk(s) { -function console_log__P86854(s) { +function console_log__P151853(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33528,22 +37314,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = console_add__P86850_mk(s); + s.tmp_0 = console_add__P151849_mk(s); s.tmp_0.arg0 = 1; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 34; s.pc = 1; return s.tmp_0; + s.callLocIdx = 41; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -console_log__P86854.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__P151853.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__P86854_mk(s) { +function console_log__P151853_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_log__P86854, depth: s.depth + 1, + parent: s, fn: console_log__P151853, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -33553,7 +37339,7 @@ function console_log__P86854_mk(s) { -function console_add__P86850(s) { +function console_add__P151849(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33563,58 +37349,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.text___99046 = undefined; - s.i___99055 = undefined; + s.text___167783 = undefined; + s.i___167792 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 < globals.minPriority___86849); + r0 = (s.arg0 < globals.minPriority___151848); 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__P86856_mk(s); + s.tmp_1 = console_inspect__P151855_mk(s); s.tmp_1.arg0 = s.arg1; s.tmp_1.arg1 = 20; - s.callLocIdx = 32; s.pc = 6; return s.tmp_1; + s.callLocIdx = 39; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - s.text___99046 = (r0); - if ((s.text___99046) && (s.text___99046).vtable) { + s.text___167783 = (r0); + if ((s.text___167783) && (s.text___167783).vtable) { setupResume(s, 7); - pxsim_String__stringConv(s.text___99046); + pxsim_String__stringConv(s.text___167783); checkResumeConsumed(); return; - } else { s.retval = (s.text___99046) + ""; } + } else { s.retval = (s.text___167783) + ""; } case 7: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, "\n"); - s.text___99046 = (r0); - s.i___99055 = (0); + s.text___167783 = (r0); + s.i___167792 = (0); case 3: - s.tmp_1 = r0 = s.i___99055; - r0 = pxsim_Array__length(globals.listeners___90190); + s.tmp_1 = r0 = s.i___167792; + r0 = pxsim_Array__length(globals.listeners___155354); 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___90190, s.i___99055); + r0 = pxsim_Array__getAt(globals.listeners___155354, s.i___167792); s.tmp_3.argL = r0; s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.text___99046; + s.tmp_3.arg1 = s.text___167783; setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 33; s.pc = 8; return s.tmp_3; + s.callLocIdx = 40; s.pc = 8; return s.tmp_3; case 8: r0 = s.retval; - r0 = (s.i___99055 + 1); - s.i___99055 = (r0); + r0 = (s.i___167792 + 1); + s.i___167792 = (r0); { step = 3; continue; } case 4: case 5: @@ -33622,19 +37408,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -console_add__P86850.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__P151849.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__P86850_mk(s) { +function console_add__P151849_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_add__P86850, depth: s.depth + 1, + parent: s, fn: console_add__P151849, depth: s.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___99046: undefined, - i___99055: undefined, + text___167783: undefined, + i___167792: undefined, arg0: undefined, arg1: undefined, } } @@ -33643,7 +37429,7 @@ function console_add__P86850_mk(s) { -function console_inspect__P86856(s) { +function console_inspect__P151855(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33653,10 +37439,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.asArr___99086 = undefined; - s.asString___99104 = undefined; - s.keys___99116 = undefined; - s.snipped___99120 = undefined; + s.asArr___167823 = undefined; + s.asString___167841 = undefined; + s.keys___167853 = undefined; + s.snipped___167857 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -33697,17 +37483,17 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 5; continue; } - s.asArr___99086 = (s.arg0); - r0 = pxsim_Array__length(s.asArr___99086); + s.asArr___167823 = (s.arg0); + r0 = pxsim_Array__length(s.asArr___167823); 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__P86586_mk(s); - s.tmp_2.arg0 = s.asArr___99086; + s.tmp_2 = helpers_arrayJoin__P151585_mk(s); + s.tmp_2.arg0 = s.asArr___167823; s.tmp_2.arg1 = ","; - s.callLocIdx = 35; s.pc = 19; return s.tmp_2; + s.callLocIdx = 42; s.pc = 19; return s.tmp_2; case 19: r0 = s.retval; { step = 17; continue; } @@ -33715,17 +37501,17 @@ switch (step) { case 3: r0 = pxsim_String_.mkEmpty(); s.tmp_4 = r0; - s.tmp_7 = helpers_arrayJoin__P86586_mk(s); - s.tmp_8 = helpers_arraySlice__P86597_mk(s); - s.tmp_8.arg0 = s.asArr___99086; + s.tmp_7 = helpers_arrayJoin__P151585_mk(s); + s.tmp_8 = helpers_arraySlice__P151596_mk(s); + s.tmp_8.arg0 = s.asArr___167823; s.tmp_8.arg1 = 0; s.tmp_8.arg2 = s.arg1; - s.callLocIdx = 36; s.pc = 21; return s.tmp_8; + s.callLocIdx = 43; s.pc = 21; return s.tmp_8; case 21: r0 = s.retval; s.tmp_7.arg0 = r0; s.tmp_7.arg1 = ","; - s.callLocIdx = 37; s.pc = 20; return s.tmp_7; + s.callLocIdx = 44; s.pc = 20; return s.tmp_7; case 20: r0 = s.retval; s.tmp_6 = r0; @@ -33757,46 +37543,46 @@ switch (step) { r0 = pxsim_String_.mkEmpty(); s.tmp_10 = r0; r0 = pxsim_String__concat(s.tmp_9, s.tmp_10); - s.asString___99104 = (r0); - r0 = (s.asString___99104 != "[object Object]"); + s.asString___167841 = (r0); + r0 = (s.asString___167841 != "[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___99104 != "[Object]"); + r0 = (s.asString___167841 != "[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___99104; + r0 = s.asString___167841; { step = 17; continue; } case 8: case 9: r0 = pxsim_pxtrt.keysOf(s.arg0); - s.keys___99116 = (r0); - r0 = pxsim_Array__length(s.keys___99116); + s.keys___167853 = (r0); + r0 = pxsim_Array__length(s.keys___167853); s.tmp_0 = r0; r0 = (s.tmp_0 > s.arg1); - s.snipped___99120 = (r0); - r0 = pxsim_numops_toBoolDecr(s.snipped___99120); + s.snipped___167857 = (r0); + r0 = pxsim_numops_toBoolDecr(s.snipped___167857); if (!r0) { step = 10; continue; } - s.tmp_0 = helpers_arraySlice__P86597_mk(s); - s.tmp_0.arg0 = s.keys___99116; + s.tmp_0 = helpers_arraySlice__P151596_mk(s); + s.tmp_0.arg0 = s.keys___167853; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 38; s.pc = 24; return s.tmp_0; + s.callLocIdx = 45; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.keys___99116 = (r0); + s.keys___167853 = (r0); case 10: case 11: - r0 = pxsim_pxtcore_mkAction(1, inline__P99137); + r0 = pxsim_pxtcore_mkAction(1, inline__P167874); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_numops_toBoolDecr(s.snipped___99120); + r0 = pxsim_numops_toBoolDecr(s.snipped___167857); if (!r0) { step = 12; continue; } r0 = "\n ..."; { step = 13; continue; } @@ -33805,12 +37591,12 @@ switch (step) { case 13: // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_7 = helpers_arrayReduce__P86595_mk(s); - s.tmp_7.arg0 = s.keys___99116; + s.tmp_7 = helpers_arrayReduce__P151594_mk(s); + s.tmp_7.arg0 = s.keys___167853; s.tmp_7.arg1 = s.tmp_0; r0 = pxsim_String_.mkEmpty(); s.tmp_7.arg2 = r0; - s.callLocIdx = 39; s.pc = 25; return s.tmp_7; + s.callLocIdx = 46; s.pc = 25; return s.tmp_7; case 25: r0 = s.retval; s.tmp_6 = r0; @@ -33855,12 +37641,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -console_inspect__P86856.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__P151855.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__P86856_mk(s) { +function console_inspect__P151855_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_inspect__P86856, depth: s.depth + 1, + parent: s, fn: console_inspect__P151855, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33873,10 +37659,10 @@ function console_inspect__P86856_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - asArr___99086: undefined, - asString___99104: undefined, - keys___99116: undefined, - snipped___99120: undefined, + asArr___167823: undefined, + asString___167841: undefined, + keys___167853: undefined, + snipped___167857: undefined, arg0: undefined, arg1: undefined, } } @@ -33885,7 +37671,7 @@ function console_inspect__P86856_mk(s) { -function inline__P99137(s) { +function inline__P167874(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33948,12 +37734,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P99137.info = {"start":3293,"length":61,"line":108,"column":20,"endLine":108,"endColumn":81,"fileName":"pxt_modules/base/console.ts","functionName":"inline","argumentNames":["prev","currKey"]} +inline__P167874.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__P99137_mk(s) { +function inline__P167874_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P99137, depth: s.depth + 1, + parent: s, fn: inline__P167874, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33971,7 +37757,7 @@ function inline__P99137_mk(s) { -function helpers_arrayReduce__P86595(s) { +function helpers_arrayReduce__P151594(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33981,8 +37767,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___99164 = undefined; - s.i___99167 = undefined; + s.len___167901 = undefined; + s.i___167904 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -33990,43 +37776,43 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_Array__length(s.arg0); - s.len___99164 = (r0); - s.i___99167 = (0); + s.len___167901 = (r0); + s.i___167904 = (0); case 1: - r0 = (s.i___99167 < s.len___99164); + r0 = (s.i___167904 < s.len___167901); 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___99167); + r0 = pxsim_Array__getAt(s.arg0, s.i___167904); s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = s.i___99167; + s.tmp_1.arg2 = s.i___167904; setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 8; s.pc = 3; return s.tmp_1; + s.callLocIdx = 9; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.arg2 = (r0); - r0 = (s.i___99167 + 1); - s.i___99167 = (r0); + r0 = (s.i___167904 + 1); + s.i___167904 = (r0); { step = 1; continue; } case 2: r0 = s.arg2; return leave(s, r0) default: oops() } } } -helpers_arrayReduce__P86595.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__P151594.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__P86595_mk(s) { +function helpers_arrayReduce__P151594_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayReduce__P86595, depth: s.depth + 1, + parent: s, fn: helpers_arrayReduce__P151594, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___99164: undefined, - i___99167: undefined, + len___167901: undefined, + i___167904: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -34036,7 +37822,7 @@ function helpers_arrayReduce__P86595_mk(s) { -function helpers_arrayJoin__P86586(s) { +function helpers_arrayJoin__P151585(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34046,9 +37832,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___99192 = undefined; - s.len___99193 = undefined; - s.i___99196 = undefined; + s.r___167929 = undefined; + s.len___167930 = undefined; + s.i___167933 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -34071,16 +37857,16 @@ switch (step) { case 3: case 4: r0 = pxsim_String_.mkEmpty(); - s.r___99192 = (r0); + s.r___167929 = (r0); r0 = pxsim_Array__length(s.arg0); - s.len___99193 = (r0); - s.i___99196 = (0); + s.len___167930 = (r0); + s.i___167933 = (0); case 5: - r0 = (s.i___99196 < s.len___99193); + r0 = (s.i___167933 < s.len___167930); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - r0 = (s.i___99196 > 0); + r0 = (s.i___167933 > 0); s.tmp_1 = r0; r0 = pxsim_numops_toBool(s.tmp_1); if (r0) { step = 6; continue; } @@ -34093,12 +37879,12 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 8; continue; } - if ((s.r___99192) && (s.r___99192).vtable) { + if ((s.r___167929) && (s.r___167929).vtable) { setupResume(s, 15); - pxsim_String__stringConv(s.r___99192); + pxsim_String__stringConv(s.r___167929); checkResumeConsumed(); return; - } else { s.retval = (s.r___99192) + ""; } + } else { s.retval = (s.r___167929) + ""; } case 15: r0 = s.retval; s.tmp_3 = r0; @@ -34112,10 +37898,10 @@ switch (step) { r0 = s.retval; s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.r___99192 = (r0); + s.r___167929 = (r0); case 8: case 9: - r0 = pxsim_Array__getAt(s.arg0, s.i___99196); + r0 = pxsim_Array__getAt(s.arg0, s.i___167933); s.tmp_1 = r0; r0 = (s.tmp_1 === undefined); s.tmp_0 = r0; @@ -34124,7 +37910,7 @@ switch (step) { r0 = s.tmp_0; { step = 11; continue; } case 10: - r0 = pxsim_Array__getAt(s.arg0, s.i___99196); + r0 = pxsim_Array__getAt(s.arg0, s.i___167933); s.tmp_2 = r0; r0 = (s.tmp_2 === null); case 11: @@ -34135,16 +37921,16 @@ switch (step) { r0 = pxsim_String_.mkEmpty(); { step = 13; continue; } case 12: - r0 = pxsim_Array__getAt(s.arg0, s.i___99196); + r0 = pxsim_Array__getAt(s.arg0, s.i___167933); case 13: // jmp value (already in r0) s.tmp_4 = r0; - if ((s.r___99192) && (s.r___99192).vtable) { + if ((s.r___167929) && (s.r___167929).vtable) { setupResume(s, 17); - pxsim_String__stringConv(s.r___99192); + pxsim_String__stringConv(s.r___167929); checkResumeConsumed(); return; - } else { s.retval = (s.r___99192) + ""; } + } else { s.retval = (s.r___167929) + ""; } case 17: r0 = s.retval; s.tmp_5 = r0; @@ -34158,21 +37944,21 @@ switch (step) { r0 = s.retval; s.tmp_6 = r0; r0 = pxsim_String__concat(s.tmp_5, s.tmp_6); - s.r___99192 = (r0); - r0 = (s.i___99196 + 1); - s.i___99196 = (r0); + s.r___167929 = (r0); + r0 = (s.i___167933 + 1); + s.i___167933 = (r0); { step = 5; continue; } case 14: - r0 = s.r___99192; + r0 = s.r___167929; return leave(s, r0) default: oops() } } } -helpers_arrayJoin__P86586.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__P151585.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__P86586_mk(s) { +function helpers_arrayJoin__P151585_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayJoin__P86586, depth: s.depth + 1, + parent: s, fn: helpers_arrayJoin__P151585, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34181,9 +37967,9 @@ function helpers_arrayJoin__P86586_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - r___99192: undefined, - len___99193: undefined, - i___99196: undefined, + r___167929: undefined, + len___167930: undefined, + i___167933: undefined, arg0: undefined, arg1: undefined, } } @@ -34192,7 +37978,7 @@ function helpers_arrayJoin__P86586_mk(s) { -function scene_systemMenu_toggleStats__P90790(s) { +function scene_systemMenu_toggleStats__P155954(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34202,11 +37988,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.stats___89014); + r0 = pxsim_numops_toBoolDecr(globals.stats___154013); s.tmp_0 = r0; r0 = pxsim_Boolean__bang(s.tmp_0); - globals.stats___89014 = (r0); - r0 = pxsim_numops_toBoolDecr(globals.stats___89014); + globals.stats___154013 = (r0); + r0 = pxsim_numops_toBoolDecr(globals.stats___154013); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -34215,18 +38001,18 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = globals.control_EventContext_onStats___86872; + r0 = globals.control_EventContext_onStats___151871; 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___86872; + s.tmp_3.argL = globals.control_EventContext_onStats___151871; r0 = pxsim_String_.mkEmpty(); s.tmp_3.arg0 = r0; setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 1011; s.pc = 5; return s.tmp_3; + s.callLocIdx = 1203; s.pc = 5; return s.tmp_3; case 5: r0 = s.retval; case 3: @@ -34235,12 +38021,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_toggleStats__P90790.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__P155954.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__P90790_mk(s) { +function scene_systemMenu_toggleStats__P155954_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_toggleStats__P90790, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_toggleStats__P155954, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34252,7 +38038,7 @@ function scene_systemMenu_toggleStats__P90790_mk(s) { -function scene_systemMenu_brightnessDown__P90788(s) { +function scene_systemMenu_brightnessDown__P155952(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34262,24 +38048,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_setScreenBrightness__P90789_mk(s); - r0 = globals.brightness___88209; + s.tmp_0 = scene_systemMenu_setScreenBrightness__P155953_mk(s); + r0 = globals.brightness___153208; s.tmp_1 = r0; r0 = (s.tmp_1 - 5); s.tmp_0.arg0 = r0; - s.callLocIdx = 1007; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1199; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessDown__P90788.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__P155952.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__P90788_mk(s) { +function scene_systemMenu_brightnessDown__P155952_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessDown__P90788, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_brightnessDown__P155952, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34289,7 +38075,7 @@ function scene_systemMenu_brightnessDown__P90788_mk(s) { -function scene_systemMenu_setScreenBrightness__P90789(s) { +function scene_systemMenu_setScreenBrightness__P155953(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34303,29 +38089,29 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = helpers_setScreenBrightness__P88220_mk(s); - s.tmp_0.arg0 = globals.screen___88287; + s.tmp_0 = helpers_setScreenBrightness__P153219_mk(s); + s.tmp_0.arg0 = globals.screen___153286; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1008; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1200; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P88314_mk(s); + s.tmp_0 = settings_writeNumber__P153313_mk(s); s.tmp_0.arg0 = "#brightness"; - r0 = globals.brightness___88209; + r0 = globals.brightness___153208; s.tmp_0.arg1 = r0; - s.callLocIdx = 1010; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1202; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_setScreenBrightness__P90789.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__P155953.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__P90789_mk(s) { +function scene_systemMenu_setScreenBrightness__P155953_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setScreenBrightness__P90789, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setScreenBrightness__P155953, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -34335,7 +38121,7 @@ function scene_systemMenu_setScreenBrightness__P90789_mk(s) { -function helpers_setScreenBrightness__P88220(s) { +function helpers_setScreenBrightness__P153219(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34350,27 +38136,27 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = Math_clamp__P86607_mk(s); + s.tmp_0 = Math_clamp__P151606_mk(s); s.tmp_0.arg0 = 10; s.tmp_0.arg1 = 100; r0 = (s.arg1 | 0); s.tmp_0.arg2 = r0; - s.callLocIdx = 87; s.pc = 1; return s.tmp_0; + s.callLocIdx = 129; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; s.arg1 = (r0); - globals.brightness___88209 = (s.arg1); - r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___88209); + globals.brightness___153208 = (s.arg1); + r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___153208); r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_setScreenBrightness__P88220.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__P153219.info = {"start":6243,"length":210,"line":211,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]} -function helpers_setScreenBrightness__P88220_mk(s) { +function helpers_setScreenBrightness__P153219_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_setScreenBrightness__P88220, depth: s.depth + 1, + parent: s, fn: helpers_setScreenBrightness__P153219, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -34381,7 +38167,7 @@ function helpers_setScreenBrightness__P88220_mk(s) { -function scene_systemMenu_brightnessUp__P90787(s) { +function scene_systemMenu_brightnessUp__P155951(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34391,24 +38177,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_setScreenBrightness__P90789_mk(s); - r0 = globals.brightness___88209; + s.tmp_0 = scene_systemMenu_setScreenBrightness__P155953_mk(s); + r0 = globals.brightness___153208; s.tmp_1 = r0; r0 = (s.tmp_1 + 5); s.tmp_0.arg0 = r0; - s.callLocIdx = 1005; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1197; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessUp__P90787.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__P155951.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__P90787_mk(s) { +function scene_systemMenu_brightnessUp__P155951_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessUp__P90787, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_brightnessUp__P155951, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34418,7 +38204,7 @@ function scene_systemMenu_brightnessUp__P90787_mk(s) { -function scene_systemMenu_volumeDown__P90786(s) { +function scene_systemMenu_volumeDown__P155950(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34428,54 +38214,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___99630 = undefined; - s.remainder___99633 = undefined; - s.newVolume___99636 = undefined; - s.tmp_0 = music_volume__P88078_mk(s); - s.callLocIdx = 1002; s.pc = 3; return s.tmp_0; + s.v___168129 = undefined; + s.remainder___168132 = undefined; + s.newVolume___168135 = undefined; + s.tmp_0 = music_volume__P153077_mk(s); + s.callLocIdx = 1194; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.v___99630 = (r0); - r0 = (s.v___99630 % 32); - s.remainder___99633 = (r0); - r0 = pxsim_numops_toBoolDecr(s.remainder___99633); + s.v___168129 = (r0); + r0 = (s.v___168129 % 32); + s.remainder___168132 = (r0); + r0 = pxsim_numops_toBoolDecr(s.remainder___168132); if (!r0) { step = 1; continue; } - r0 = s.remainder___99633; + r0 = s.remainder___168132; { step = 2; continue; } case 1: r0 = 32; case 2: // jmp value (already in r0) s.tmp_0 = r0; - r0 = (s.v___99630 - s.tmp_0); - s.newVolume___99636 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P90784_mk(s); - s.tmp_0.arg0 = s.newVolume___99636; - s.callLocIdx = 1003; s.pc = 4; return s.tmp_0; + r0 = (s.v___168129 - s.tmp_0); + s.newVolume___168135 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P155948_mk(s); + s.tmp_0.arg0 = s.newVolume___168135; + s.callLocIdx = 1195; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeDown__P90786.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__P155950.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__P90786_mk(s) { +function scene_systemMenu_volumeDown__P155950_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeDown__P90786, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_volumeDown__P155950, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - v___99630: undefined, - remainder___99633: undefined, - newVolume___99636: undefined, + v___168129: undefined, + remainder___168132: undefined, + newVolume___168135: undefined, } } -function scene_systemMenu_setVolume__P90784(s) { +function scene_systemMenu_setVolume__P155948(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34489,33 +38275,33 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = music_setVolume__P88077_mk(s); + s.tmp_0 = music_setVolume__P153076_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 997; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1189; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = music_playTone__P88079_mk(s); + s.tmp_0 = music_playTone__P153078_mk(s); s.tmp_0.arg0 = 440; s.tmp_0.arg1 = 500; - s.callLocIdx = 998; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1190; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P88314_mk(s); + s.tmp_0 = settings_writeNumber__P153313_mk(s); s.tmp_0.arg0 = "#volume"; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 999; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1191; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_setVolume__P90784.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__P155948.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__P90784_mk(s) { +function scene_systemMenu_setVolume__P155948_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setVolume__P90784, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setVolume__P155948, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -34525,7 +38311,7 @@ function scene_systemMenu_setVolume__P90784_mk(s) { -function music_playTone__P88079(s) { +function music_playTone__P153078(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34535,7 +38321,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.id___99471 = undefined; + s.id___168061 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -34560,29 +38346,29 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_2 = music_playNoteCore__P90248_mk(s); + s.tmp_2 = music_playNoteCore__P155412_mk(s); s.tmp_2.arg0 = 0; s.tmp_2.arg1 = s.arg0; r0 = pxsim_pxtrt_ldlocRef(s.arg1); s.tmp_2.arg2 = r0; - s.callLocIdx = 66; s.pc = 5; return s.tmp_2; + s.callLocIdx = 74; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; - s.tmp_0 = pause__P86887_mk(s); + s.tmp_0 = pause__P151886_mk(s); r0 = pxsim_pxtrt_ldlocRef(s.arg1); s.tmp_0.arg0 = r0; - s.callLocIdx = 67; s.pc = 6; return s.tmp_0; + s.callLocIdx = 75; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; { step = 4; continue; } case 3: - r0 = (globals.playToneID___90250 + 1); + r0 = (globals.playToneID___155414 + 1); s.tmp_0 = r0; - globals.playToneID___90250 = (r0); - s.id___99471 = (s.tmp_0); - r0 = pxsim_pxtcore_mkAction(3, inline__P99477); + globals.playToneID___155414 = (r0); + s.id___168061 = (s.tmp_0); + r0 = pxsim_pxtcore_mkAction(3, inline__P168067); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___99471); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___168061); 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); @@ -34591,17 +38377,17 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_playTone__P88079.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__P153078.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__P88079_mk(s) { +function music_playTone__P153078_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playTone__P88079, depth: s.depth + 1, + parent: s, fn: music_playTone__P153078, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - id___99471: undefined, + id___168061: undefined, arg0: undefined, arg1: undefined, } } @@ -34610,7 +38396,7 @@ function music_playTone__P88079_mk(s) { -function inline__P99477(s) { +function inline__P168067(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34620,14 +38406,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pos___99478 = undefined; - s.now___99488 = undefined; - s.d___99491 = undefined; - s.t___99495 = undefined; + s.pos___168068 = undefined; + s.now___168078 = undefined; + s.d___168081 = undefined; + s.t___168085 = undefined; r0 = pxsim.control.millis(); - s.pos___99478 = (r0); + s.pos___168068 = (r0); case 1: - r0 = (s.caps[0] == globals.playToneID___90250); + r0 = (s.caps[0] == globals.playToneID___155414); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 2; continue; } @@ -34643,31 +38429,31 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 6; continue; } r0 = pxsim.control.millis(); - s.now___99488 = (r0); - r0 = (s.pos___99478 - s.now___99488); - s.d___99491 = (r0); - s.tmp_0 = Math_min__P86611_mk(s); + s.now___168078 = (r0); + r0 = (s.pos___168068 - s.now___168078); + s.d___168081 = (r0); + s.tmp_0 = Math_min__P151610_mk(s); r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 500; - s.callLocIdx = 68; s.pc = 7; return s.tmp_0; + s.callLocIdx = 76; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.t___99495 = (r0); + s.t___168085 = (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___99495); + r0 = (s.tmp_2 - s.t___168085); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = (s.pos___99478 + s.t___99495); - s.pos___99478 = (r0); - s.tmp_0 = music_playNoteCore__P90248_mk(s); - r0 = (s.d___99491 - 1); + r0 = (s.pos___168068 + s.t___168085); + s.pos___168068 = (r0); + s.tmp_0 = music_playNoteCore__P155412_mk(s); + r0 = (s.d___168081 - 1); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.caps[2]; - s.tmp_0.arg2 = s.t___99495; - s.callLocIdx = 69; s.pc = 8; return s.tmp_0; + s.tmp_0.arg2 = s.t___168085; + s.callLocIdx = 77; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); @@ -34676,20 +38462,20 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_2 = pause__P86887_mk(s); - r0 = (s.d___99491 + s.t___99495); + s.tmp_2 = pause__P151886_mk(s); + r0 = (s.d___168081 + s.t___168085); s.tmp_2.arg0 = r0; - s.callLocIdx = 70; s.pc = 9; return s.tmp_2; + s.callLocIdx = 78; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; { step = 5; continue; } case 4: - s.tmp_0 = pause__P86887_mk(s); - r0 = (s.d___99491 + s.t___99495); + s.tmp_0 = pause__P151886_mk(s); + r0 = (s.d___168081 + s.t___168085); s.tmp_1 = r0; r0 = (s.tmp_1 - 100); s.tmp_0.arg0 = r0; - s.callLocIdx = 71; s.pc = 10; return s.tmp_0; + s.callLocIdx = 79; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; case 5: @@ -34699,27 +38485,27 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P99477.info = {"start":2890,"length":515,"line":92,"column":34,"endLine":106,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} +inline__P168067.info = {"start":2890,"length":515,"line":92,"column":34,"endLine":106,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} -function inline__P99477_mk(s) { +function inline__P168067_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P99477, depth: s.depth + 1, + parent: s, fn: inline__P168067, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - pos___99478: undefined, - now___99488: undefined, - d___99491: undefined, - t___99495: undefined, + pos___168068: undefined, + now___168078: undefined, + d___168081: undefined, + t___168085: undefined, } } -function music_playNoteCore__P90248(s) { +function music_playNoteCore__P155412(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34729,7 +38515,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___99525 = undefined; + s.buf___168115 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -34737,39 +38523,39 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim.control.createBuffer(12); - s.buf___99525 = (r0); - s.tmp_0 = music_addNote__P90255_mk(s); - s.tmp_0.arg0 = s.buf___99525; + s.buf___168115 = (r0); + s.tmp_0 = music_addNote__P155419_mk(s); + s.tmp_0.arg0 = s.buf___168115; 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__P88078_mk(s); - s.callLocIdx = 64; s.pc = 2; return s.tmp_1; + s.tmp_1 = music_volume__P153077_mk(s); + s.callLocIdx = 72; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg7 = r0; s.tmp_0.arg8 = s.arg1; - s.callLocIdx = 65; s.pc = 1; return s.tmp_0; + s.callLocIdx = 73; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___99525); + r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___168115); r0 = undefined; return leave(s, r0) default: oops() } } } -music_playNoteCore__P90248.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__P155412.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__P90248_mk(s) { +function music_playNoteCore__P155412_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playNoteCore__P90248, depth: s.depth + 1, + parent: s, fn: music_playNoteCore__P155412, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - buf___99525: undefined, + buf___168115: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -34779,7 +38565,7 @@ function music_playNoteCore__P90248_mk(s) { -function scene_systemMenu_volumeUp__P90785(s) { +function scene_systemMenu_volumeUp__P155949(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34789,47 +38575,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___99439 = undefined; - s.remainder___99442 = undefined; - s.newVolume___99445 = undefined; - s.tmp_0 = music_volume__P88078_mk(s); - s.callLocIdx = 1000; s.pc = 1; return s.tmp_0; + s.v___168029 = undefined; + s.remainder___168032 = undefined; + s.newVolume___168035 = undefined; + s.tmp_0 = music_volume__P153077_mk(s); + s.callLocIdx = 1192; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.v___99439 = (r0); - r0 = (s.v___99439 % 32); - s.remainder___99442 = (r0); - r0 = (s.v___99439 + 32); + s.v___168029 = (r0); + r0 = (s.v___168029 % 32); + s.remainder___168032 = (r0); + r0 = (s.v___168029 + 32); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.remainder___99442); - s.newVolume___99445 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P90784_mk(s); - s.tmp_0.arg0 = s.newVolume___99445; - s.callLocIdx = 1001; s.pc = 2; return s.tmp_0; + r0 = (s.tmp_0 - s.remainder___168032); + s.newVolume___168035 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P155948_mk(s); + s.tmp_0.arg0 = s.newVolume___168035; + s.callLocIdx = 1193; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeUp__P90785.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__P155949.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__P90785_mk(s) { +function scene_systemMenu_volumeUp__P155949_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeUp__P90785, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_volumeUp__P155949, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - v___99439: undefined, - remainder___99442: undefined, - newVolume___99445: undefined, + v___168029: undefined, + remainder___168032: undefined, + newVolume___168035: undefined, } } -function game_consoleOverlay_isVisible__P89136(s) { +function game_consoleOverlay_isVisible__P154135(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34839,7 +38625,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___90826); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___155990); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; @@ -34849,12 +38635,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_consoleOverlay_isVisible__P89136.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__P154135.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__P89136_mk(s) { +function game_consoleOverlay_isVisible__P154135_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_isVisible__P89136, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_isVisible__P154135, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34865,7 +38651,7 @@ function game_consoleOverlay_isVisible__P89136_mk(s) { -function scene_systemMenu_closeMenu__P89114(s) { +function scene_systemMenu_closeMenu__P154113(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34875,21 +38661,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___90780); + r0 = pxsim_numops_toBoolDecr(globals.instance___155944); if (!r0) { step = 1; continue; } - s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P89113_mk(s); - s.tmp_0.arg0 = globals.instance___90780; - s.callLocIdx = 1016; s.pc = 3; return s.tmp_0; + s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P154112_mk(s); + s.tmp_0.arg0 = globals.instance___155944; + s.callLocIdx = 1208; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.instance___90780 = (undefined); - s.tmp_0 = controller__setUserEventsEnabled__P88439_mk(s); + globals.instance___155944 = (undefined); + s.tmp_0 = controller__setUserEventsEnabled__P153438_mk(s); s.tmp_0.arg0 = true; - s.callLocIdx = 1017; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1209; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = game_popScene__P89022_mk(s); - s.callLocIdx = 1018; s.pc = 5; return s.tmp_0; + s.tmp_0 = game_popScene__P154021_mk(s); + s.callLocIdx = 1210; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 1: @@ -34898,12 +38684,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_closeMenu__P89114.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__P154113.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__P89114_mk(s) { +function scene_systemMenu_closeMenu__P154113_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_closeMenu__P89114, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_closeMenu__P154113, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -34912,7 +38698,7 @@ function scene_systemMenu_closeMenu__P89114_mk(s) { -function scene_systemMenu_PauseMenu_dispose__P89113(s) { +function scene_systemMenu_PauseMenu_dispose__P154112(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34927,16 +38713,16 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C89107_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C154106_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__P86592_mk(s); + s.tmp_1 = helpers_arrayForEach__P151591_mk(s); r0 = s.arg0.fields["options"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = inline__P98465; - s.callLocIdx = 993; s.pc = 3; return s.tmp_1; + s.tmp_1.arg1 = inline__P167479; + s.callLocIdx = 1185; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; r0 = (s.arg0).fields["options"] = (undefined); @@ -34946,12 +38732,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_dispose__P89113.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__P154112.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__P89113_mk(s) { +function scene_systemMenu_PauseMenu_dispose__P154112_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_dispose__P89113, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_dispose__P154112, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34962,7 +38748,7 @@ function scene_systemMenu_PauseMenu_dispose__P89113_mk(s) { -function inline__P98465(s) { +function inline__P167479(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34976,21 +38762,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = scene_systemMenu_MenuOption_dispose__P89106_mk(s); + s.tmp_0 = scene_systemMenu_MenuOption_dispose__P154105_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 992; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1184; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P98465.info = {"start":7813,"length":16,"line":245,"column":37,"endLine":245,"endColumn":53,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["o"]} +inline__P167479.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__P98465_mk(s) { +function inline__P167479_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98465, depth: s.depth + 1, + parent: s, fn: inline__P167479, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -35000,7 +38786,7 @@ function inline__P98465_mk(s) { -function scene_systemMenu_MenuOption_dispose__P89106(s) { +function scene_systemMenu_MenuOption_dispose__P154105(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35015,25 +38801,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C89099_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C154098_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__P88572_mk(s); + s.tmp_1 = Sprite_destroy__P153571_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = undefined; s.tmp_1.arg2 = undefined; - s.callLocIdx = 912; s.pc = 3; return s.tmp_1; + s.callLocIdx = 1104; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.tmp_0 = Sprite_destroy__P88572_mk(s); + s.tmp_0 = Sprite_destroy__P153571_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = undefined; s.tmp_0.arg2 = undefined; - s.callLocIdx = 913; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1105; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = (s.arg0).fields["card"] = (undefined); @@ -35044,12 +38830,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_dispose__P89106.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__P154105.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__P89106_mk(s) { +function scene_systemMenu_MenuOption_dispose__P154105_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_dispose__P89106, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_dispose__P154105, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35060,7 +38846,7 @@ function scene_systemMenu_MenuOption_dispose__P89106_mk(s) { -function controller__setUserEventsEnabled__P88439(s) { +function controller__setUserEventsEnabled__P153438(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35074,17 +38860,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals._userEventsEnabled___90357 = (s.arg0); + globals._userEventsEnabled___155521 = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -controller__setUserEventsEnabled__P88439.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__P153438.info = {"start":19246,"length":101,"line":587,"column":4,"endLine":589,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_setUserEventsEnabled","argumentNames":["enabled"]} -function controller__setUserEventsEnabled__P88439_mk(s) { +function controller__setUserEventsEnabled__P153438_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__setUserEventsEnabled__P88439, depth: s.depth + 1, + parent: s, fn: controller__setUserEventsEnabled__P153438, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -35093,7 +38879,7 @@ function controller__setUserEventsEnabled__P88439_mk(s) { -function scene_systemMenu_MenuOption_constructor__P89100(s) { +function scene_systemMenu_MenuOption_constructor__P154099(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35111,7 +38897,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C89099_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C154098_VT)) failedCast(r0); r0 = (s.arg0).fields["iconImage"] = (s.arg1); r0 = (s.arg0).fields["getText"] = (s.arg2); r0 = (s.arg0).fields["action"] = (s.arg3); @@ -35119,12 +38905,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_constructor__P89100.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__P154099.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__P89100_mk(s) { +function scene_systemMenu_MenuOption_constructor__P154099_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_constructor__P89100, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_constructor__P154099, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -35136,7 +38922,7 @@ function scene_systemMenu_MenuOption_constructor__P89100_mk(s) { -function helpers_screenBrightness__P88221(s) { +function helpers_screenBrightness__P153220(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35150,16 +38936,16 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = globals.brightness___88209; + r0 = globals.brightness___153208; return leave(s, r0) default: oops() } } } -helpers_screenBrightness__P88221.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__P153220.info = {"start":6459,"length":98,"line":217,"column":4,"endLine":219,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]} -function helpers_screenBrightness__P88221_mk(s) { +function helpers_screenBrightness__P153220_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_screenBrightness__P88221, depth: s.depth + 1, + parent: s, fn: helpers_screenBrightness__P153220, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -35168,7 +38954,7 @@ function helpers_screenBrightness__P88221_mk(s) { -function helpers_arrayConcat__P86596(s) { +function helpers_arrayConcat__P151595(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35178,74 +38964,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.out___99012 = undefined; - s.value___99015 = undefined; - s.unnamed360___U2 = undefined; - s.unnamed361___U3 = undefined; - s.value___99022 = undefined; - s.unnamed362___U5 = undefined; - s.unnamed363___U6 = undefined; + s.out___167749 = undefined; + s.value___167752 = undefined; + s.unnamed1462___U2 = undefined; + s.unnamed1463___U3 = undefined; + s.value___167759 = undefined; + s.unnamed1464___U5 = undefined; + s.unnamed1465___U6 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.out___99012 = (r0); - s.value___99015 = (undefined); - s.unnamed360___U2 = (s.arg0); - s.unnamed361___U3 = (0); + s.out___167749 = (r0); + s.value___167752 = (undefined); + s.unnamed1462___U2 = (s.arg0); + s.unnamed1463___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed361___U3; - r0 = pxsim_Array__length(s.unnamed360___U2); + s.tmp_0 = r0 = s.unnamed1463___U3; + r0 = pxsim_Array__length(s.unnamed1462___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed360___U2, s.unnamed361___U3); - s.value___99015 = (r0); - r0 = pxsim_Array__push(s.out___99012, s.value___99015); - r0 = (s.unnamed361___U3 + 1); - s.unnamed361___U3 = (r0); + r0 = pxsim_Array__getAt(s.unnamed1462___U2, s.unnamed1463___U3); + s.value___167752 = (r0); + r0 = pxsim_Array__push(s.out___167749, s.value___167752); + r0 = (s.unnamed1463___U3 + 1); + s.unnamed1463___U3 = (r0); { step = 1; continue; } case 2: - s.unnamed360___U2 = (undefined); - s.value___99022 = (undefined); - s.unnamed362___U5 = (s.arg1); - s.unnamed363___U6 = (0); + s.unnamed1462___U2 = (undefined); + s.value___167759 = (undefined); + s.unnamed1464___U5 = (s.arg1); + s.unnamed1465___U6 = (0); case 3: - s.tmp_0 = r0 = s.unnamed363___U6; - r0 = pxsim_Array__length(s.unnamed362___U5); + s.tmp_0 = r0 = s.unnamed1465___U6; + r0 = pxsim_Array__length(s.unnamed1464___U5); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed362___U5, s.unnamed363___U6); - s.value___99022 = (r0); - r0 = pxsim_Array__push(s.out___99012, s.value___99022); - r0 = (s.unnamed363___U6 + 1); - s.unnamed363___U6 = (r0); + r0 = pxsim_Array__getAt(s.unnamed1464___U5, s.unnamed1465___U6); + s.value___167759 = (r0); + r0 = pxsim_Array__push(s.out___167749, s.value___167759); + r0 = (s.unnamed1465___U6 + 1); + s.unnamed1465___U6 = (r0); { step = 3; continue; } case 4: - s.unnamed362___U5 = (undefined); - r0 = s.out___99012; + s.unnamed1464___U5 = (undefined); + r0 = s.out___167749; return leave(s, r0) default: oops() } } } -helpers_arrayConcat__P86596.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__P151595.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__P86596_mk(s) { +function helpers_arrayConcat__P151595_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayConcat__P86596, depth: s.depth + 1, + parent: s, fn: helpers_arrayConcat__P151595, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - out___99012: undefined, - value___99015: undefined, - unnamed360___U2: undefined, - unnamed361___U3: undefined, - value___99022: undefined, - unnamed362___U5: undefined, - unnamed363___U6: undefined, + out___167749: undefined, + value___167752: undefined, + unnamed1462___U2: undefined, + unnamed1463___U3: undefined, + value___167759: undefined, + unnamed1464___U5: undefined, + unnamed1465___U6: undefined, arg0: undefined, arg1: undefined, } } @@ -35254,7 +39040,7 @@ function helpers_arrayConcat__P86596_mk(s) { -function scene_systemMenu_PauseMenu_show__P89109(s) { +function scene_systemMenu_PauseMenu_show__P154108(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35264,34 +39050,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___97894 = undefined; - s.i___97895 = undefined; + s.current___167008 = undefined; + s.i___167009 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C89107_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C154106_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 = 925; s.pc = 3; return s.tmp_2; + s.callLocIdx = 1117; 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 = 925; s.pc = 3; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 925; s.pc = 3; return s.tmp_2;; } - else { s.callLocIdx = 925; 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 = 1117; s.pc = 3; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1117; s.pc = 3; return s.tmp_2;; } + else { s.callLocIdx = 1117; 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___97895 = (0); + s.i___167009 = (0); case 1: - s.tmp_1 = r0 = s.i___97895; + s.tmp_1 = r0 = s.i___167009; r0 = s.arg0.fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -35302,22 +39088,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___97895); - s.current___97894 = (r0); - s.tmp_0 = scene_systemMenu_MenuOption_show__P89101_mk(s); - s.tmp_0.arg0 = s.current___97894; - s.callLocIdx = 926; s.pc = 4; return s.tmp_0; + r0 = pxsim_Array__getAt(s.tmp_4, s.i___167009); + s.current___167008 = (r0); + s.tmp_0 = scene_systemMenu_MenuOption_show__P154100_mk(s); + s.tmp_0.arg0 = s.current___167008; + s.callLocIdx = 1118; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P89104_mk(s); - s.tmp_0.arg0 = s.current___97894; + s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P154103_mk(s); + s.tmp_0.arg0 = s.current___167008; r0 = s.arg0.fields["theme"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 927; 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 = scene_systemMenu_MenuOption_position__P89102_mk(s); - s.tmp_0.arg0 = s.current___97894; + s.tmp_0 = scene_systemMenu_MenuOption_position__P154101_mk(s); + s.tmp_0.arg0 = s.current___167008; s.tmp_2 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_2.arg0 = r0; @@ -35327,12 +39113,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 = 928; s.pc = 7; return s.tmp_2; } + else { s.callLocIdx = 1120; s.pc = 7; return s.tmp_2; } } case 7: r0 = s.retval; s.tmp_1 = r0; - s.tmp_5 = r0 = s.i___97895; + s.tmp_5 = r0 = s.i___167009; s.tmp_7 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_7.arg0 = r0; @@ -35342,7 +39128,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 = 929; s.pc = 8; return s.tmp_7; } + else { s.callLocIdx = 1121; s.pc = 8; return s.tmp_7; } } case 8: r0 = s.retval; @@ -35358,7 +39144,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 = 930; s.pc = 9; return s.tmp_10; } + else { s.callLocIdx = 1122; s.pc = 9; return s.tmp_10; } } case 9: r0 = s.retval; @@ -35372,7 +39158,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 = 931; s.pc = 10; return s.tmp_12; } + else { s.callLocIdx = 1123; s.pc = 10; return s.tmp_12; } } case 10: r0 = s.retval; @@ -35392,12 +39178,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 = 932; s.pc = 11; return s.tmp_14; } + else { s.callLocIdx = 1124; s.pc = 11; return s.tmp_14; } } case 11: r0 = s.retval; s.tmp_13 = r0; - s.tmp_17 = r0 = s.i___97895; + s.tmp_17 = r0 = s.i___167009; s.tmp_19 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_19.arg0 = r0; @@ -35407,7 +39193,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 = 933; s.pc = 12; return s.tmp_19; } + else { s.callLocIdx = 1125; s.pc = 12; return s.tmp_19; } } case 12: r0 = s.retval; @@ -35423,7 +39209,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 = 934; s.pc = 13; return s.tmp_22; } + else { s.callLocIdx = 1126; s.pc = 13; return s.tmp_22; } } case 13: r0 = s.retval; @@ -35437,7 +39223,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 = 935; s.pc = 14; return s.tmp_24; } + else { s.callLocIdx = 1127; s.pc = 14; return s.tmp_24; } } case 14: r0 = s.retval; @@ -35448,116 +39234,116 @@ switch (step) { s.tmp_15 = r0; r0 = (s.tmp_13 + s.tmp_15); s.tmp_0.arg2 = r0; - s.callLocIdx = 936; s.pc = 6; return s.tmp_0; + s.callLocIdx = 1128; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - r0 = (s.i___97895 + 1); - s.i___97895 = (r0); + r0 = (s.i___167009 + 1); + s.i___167009 = (r0); { step = 1; continue; } case 2: - s.tmp_0 = controller__setUserEventsEnabled__P88439_mk(s); + s.tmp_0 = controller__setUserEventsEnabled__P153438_mk(s); s.tmp_0.arg0 = false; - s.callLocIdx = 937; s.pc = 15; return s.tmp_0; + s.callLocIdx = 1129; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P97958); + r0 = pxsim_pxtcore_mkAction(1, inline__P167072); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P88395_mk(s); - s.tmp_1.arg0 = globals.A___88362; + s.tmp_1 = controller_Button_onEvent__P153394_mk(s); + s.tmp_1.arg0 = globals.A___153361; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 939; s.pc = 16; return s.tmp_1; + s.callLocIdx = 1131; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P97978); + r0 = pxsim_pxtcore_mkAction(1, inline__P167092); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P88395_mk(s); - s.tmp_1.arg0 = globals.A___88362; + s.tmp_1 = controller_Button_onEvent__P153394_mk(s); + s.tmp_1.arg0 = globals.A___153361; s.tmp_1.arg1 = 2052; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 941; s.pc = 17; return s.tmp_1; + s.callLocIdx = 1133; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P88395_mk(s); - s.tmp_0.arg0 = globals.B___88363; + s.tmp_0 = controller_Button_onEvent__P153394_mk(s); + s.tmp_0.arg0 = globals.B___153362; s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = inline__P98007; - s.callLocIdx = 943; s.pc = 18; return s.tmp_0; + s.tmp_0.arg2 = inline__P167121; + s.callLocIdx = 1135; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P88395_mk(s); - s.tmp_0.arg0 = globals.menu___88368; + s.tmp_0 = controller_Button_onEvent__P153394_mk(s); + s.tmp_0.arg0 = globals.menu___153367; s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = inline__P98012; - s.callLocIdx = 945; s.pc = 19; return s.tmp_0; + s.tmp_0.arg2 = inline__P167126; + s.callLocIdx = 1137; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P98017); + r0 = pxsim_pxtcore_mkAction(1, inline__P167131); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P88395_mk(s); - s.tmp_1.arg0 = globals.up___88365; + s.tmp_1 = controller_Button_onEvent__P153394_mk(s); + s.tmp_1.arg0 = globals.up___153364; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 949; s.pc = 20; return s.tmp_1; + s.callLocIdx = 1141; s.pc = 20; return s.tmp_1; case 20: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P98029); + r0 = pxsim_pxtcore_mkAction(1, inline__P167143); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P88395_mk(s); - s.tmp_1.arg0 = globals.left___88364; + s.tmp_1 = controller_Button_onEvent__P153394_mk(s); + s.tmp_1.arg0 = globals.left___153363; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 952; s.pc = 21; return s.tmp_1; + s.callLocIdx = 1144; s.pc = 21; return s.tmp_1; case 21: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P98038); + r0 = pxsim_pxtcore_mkAction(1, inline__P167152); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P88395_mk(s); - s.tmp_1.arg0 = globals.down___88367; + s.tmp_1 = controller_Button_onEvent__P153394_mk(s); + s.tmp_1.arg0 = globals.down___153366; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 956; s.pc = 22; return s.tmp_1; + s.callLocIdx = 1148; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P98054); + r0 = pxsim_pxtcore_mkAction(1, inline__P167168); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P88395_mk(s); - s.tmp_1.arg0 = globals.right___88366; + s.tmp_1 = controller_Button_onEvent__P153394_mk(s); + s.tmp_1.arg0 = globals.right___153365; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 959; s.pc = 23; return s.tmp_1; + s.callLocIdx = 1151; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P98066); + r0 = pxsim_pxtcore_mkAction(1, inline__P167180); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = game_onShade__P89032_mk(s); + s.tmp_1 = game_onShade__P154031_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 962; s.pc = 24; return s.tmp_1; + s.callLocIdx = 1154; s.pc = 24; return s.tmp_1; case 24: r0 = s.retval; - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P89111_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P154110_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.callLocIdx = 963; s.pc = 25; return s.tmp_0; + s.callLocIdx = 1155; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show__P89109.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__P154108.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__P89109_mk(s) { +function scene_systemMenu_PauseMenu_show__P154108_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show__P89109, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show__P154108, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35584,8 +39370,8 @@ function scene_systemMenu_PauseMenu_show__P89109_mk(s) { tmp_22: undefined, tmp_23: undefined, tmp_24: undefined, - current___97894: undefined, - i___97895: undefined, + current___167008: undefined, + i___167009: undefined, arg0: undefined, } } @@ -35593,7 +39379,7 @@ function scene_systemMenu_PauseMenu_show__P89109_mk(s) { -function inline__P97958(s) { +function inline__P167072(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35631,7 +39417,7 @@ switch (step) { { step = 5; continue; } case 3: case 4: - s.tmp_8 = scene_systemMenu_MenuOption_setState__P89105_mk(s); + s.tmp_8 = scene_systemMenu_MenuOption_setState__P154104_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_9 = r0; r0 = s.caps[0].fields["selection"]; @@ -35639,7 +39425,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 = 938; s.pc = 6; return s.tmp_8; + s.callLocIdx = 1130; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; case 5: @@ -35647,12 +39433,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P97958.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P167072.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P97958_mk(s) { +function inline__P167072_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P97958, depth: s.depth + 1, + parent: s, fn: inline__P167072, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35671,7 +39457,7 @@ function inline__P97958_mk(s) { -function inline__P97978(s) { +function inline__P167092(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35709,7 +39495,7 @@ switch (step) { { step = 5; continue; } case 3: case 4: - s.tmp_8 = scene_systemMenu_MenuOption_setState__P89105_mk(s); + s.tmp_8 = scene_systemMenu_MenuOption_setState__P154104_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_9 = r0; r0 = s.caps[0].fields["selection"]; @@ -35717,7 +39503,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 = 940; s.pc = 6; return s.tmp_8; + s.callLocIdx = 1132; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; r0 = s.caps[0].fields["options"]; @@ -35733,12 +39519,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P97978.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P167092.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P97978_mk(s) { +function inline__P167092_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P97978, depth: s.depth + 1, + parent: s, fn: inline__P167092, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35757,7 +39543,7 @@ function inline__P97978_mk(s) { -function inline__P98007(s) { +function inline__P167121(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35767,20 +39553,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_closeMenu__P89114_mk(s); - s.callLocIdx = 942; s.pc = 1; return s.tmp_0; + s.tmp_0 = scene_systemMenu_closeMenu__P154113_mk(s); + s.callLocIdx = 1134; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P98007.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P167121.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P98007_mk(s) { +function inline__P167121_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98007, depth: s.depth + 1, + parent: s, fn: inline__P167121, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -35789,7 +39575,7 @@ function inline__P98007_mk(s) { -function inline__P98012(s) { +function inline__P167126(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35799,20 +39585,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_closeMenu__P89114_mk(s); - s.callLocIdx = 944; s.pc = 1; return s.tmp_0; + s.tmp_0 = scene_systemMenu_closeMenu__P154113_mk(s); + s.callLocIdx = 1136; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P98012.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P167126.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P98012_mk(s) { +function inline__P167126_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98012, depth: s.depth + 1, + parent: s, fn: inline__P167126, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -35821,7 +39607,7 @@ function inline__P98012_mk(s) { -function inline__P98017(s) { +function inline__P167131(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35831,9 +39617,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P89111_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P154110_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_max__P86610_mk(s); + s.tmp_1 = Math_max__P151609_mk(s); s.tmp_1.arg0 = 0; r0 = s.caps[0].fields["selection"]; s.tmp_2 = r0; @@ -35846,30 +39632,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 = 946; s.pc = 3; return s.tmp_4; } + else { s.callLocIdx = 1138; 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 = 947; s.pc = 2; return s.tmp_1; + s.callLocIdx = 1139; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 948; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1140; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P98017.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P167131.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P98017_mk(s) { +function inline__P167131_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98017, depth: s.depth + 1, + parent: s, fn: inline__P167131, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35882,7 +39668,7 @@ function inline__P98017_mk(s) { -function inline__P98029(s) { +function inline__P167143(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35892,31 +39678,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P89111_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P154110_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_max__P86610_mk(s); + s.tmp_1 = Math_max__P151609_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 = 950; s.pc = 2; return s.tmp_1; + s.callLocIdx = 1142; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 951; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1143; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P98029.info = {"start":4927,"length":89,"line":163,"column":53,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P167143.info = {"start":4927,"length":89,"line":163,"column":53,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P98029_mk(s) { +function inline__P167143_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98029, depth: s.depth + 1, + parent: s, fn: inline__P167143, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35927,7 +39713,7 @@ function inline__P98029_mk(s) { -function inline__P98038(s) { +function inline__P167152(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35937,9 +39723,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P89111_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P154110_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_min__P86611_mk(s); + s.tmp_1 = Math_min__P151610_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -35957,30 +39743,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 = 953; s.pc = 3; return s.tmp_6; } + else { s.callLocIdx = 1145; 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 = 954; s.pc = 2; return s.tmp_1; + s.callLocIdx = 1146; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 955; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1147; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P98038.info = {"start":5073,"length":132,"line":167,"column":53,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P167152.info = {"start":5073,"length":132,"line":167,"column":53,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P98038_mk(s) { +function inline__P167152_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98038, depth: s.depth + 1, + parent: s, fn: inline__P167152, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35995,7 +39781,7 @@ function inline__P98038_mk(s) { -function inline__P98054(s) { +function inline__P167168(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36005,9 +39791,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P89111_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P154110_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_min__P86611_mk(s); + s.tmp_1 = Math_min__P151610_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -36018,23 +39804,23 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 1); s.tmp_1.arg1 = r0; - s.callLocIdx = 957; s.pc = 2; return s.tmp_1; + s.callLocIdx = 1149; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 958; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1150; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P98054.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P167168.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P98054_mk(s) { +function inline__P167168_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98054, depth: s.depth + 1, + parent: s, fn: inline__P167168, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36047,7 +39833,7 @@ function inline__P98054_mk(s) { -function inline__P98066(s) { +function inline__P167180(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36057,26 +39843,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P89110_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P154109_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 960; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1152; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P89112_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P154111_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 961; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1153; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P98066.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P167180.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P98066_mk(s) { +function inline__P167180_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P98066, depth: s.depth + 1, + parent: s, fn: inline__P167180, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -36085,7 +39871,7 @@ function inline__P98066_mk(s) { -function scene_systemMenu_PauseMenu_drawText__P89112(s) { +function scene_systemMenu_PauseMenu_drawText__P154111(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36100,7 +39886,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C89107_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C154106_VT)) failedCast(r0); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -36112,11 +39898,11 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_3 = helpers_imageFillRect__P88213_mk(s); - s.tmp_3.arg0 = globals.screen___88287; + s.tmp_3 = helpers_imageFillRect__P153212_mk(s); + s.tmp_3.arg0 = globals.screen___153286; s.tmp_3.arg1 = 0; s.tmp_3.arg2 = 0; - r0 = pxsim_ImageMethods.width(globals.screen___88287); + r0 = pxsim_ImageMethods.width(globals.screen___153286); s.tmp_3.arg3 = r0; s.tmp_5 = if_cardsTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -36127,7 +39913,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 = 974; s.pc = 5; return s.tmp_5; } + else { s.callLocIdx = 1166; s.pc = 5; return s.tmp_5; } } case 5: r0 = s.retval; @@ -36135,11 +39921,11 @@ switch (step) { r0 = (s.tmp_4 - 2); s.tmp_3.arg4 = r0; s.tmp_3.arg5 = 15; - s.callLocIdx = 975; s.pc = 4; return s.tmp_3; + s.callLocIdx = 1167; s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; - s.tmp_0 = helpers_imagePrintCenter__P88244_mk(s); - s.tmp_0.arg0 = globals.screen___88287; + s.tmp_0 = helpers_imagePrintCenter__P153243_mk(s); + s.tmp_0.arg0 = globals.screen___153286; s.tmp_1 = if_headerText_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_1.arg0 = r0; @@ -36149,7 +39935,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 = 976; s.pc = 7; return s.tmp_1; } + else { s.callLocIdx = 1168; s.pc = 7; return s.tmp_1; } } case 7: r0 = s.retval; @@ -36165,16 +39951,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 = 977; s.pc = 8; return s.tmp_2; } + else { s.callLocIdx = 1169; s.pc = 8; return s.tmp_2; } } case 8: r0 = s.retval; s.tmp_0.arg4 = r0; - s.callLocIdx = 978; s.pc = 6; return s.tmp_0; + s.callLocIdx = 1170; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P88213_mk(s); - s.tmp_0.arg0 = globals.screen___88287; + s.tmp_0 = helpers_imageFillRect__P153212_mk(s); + s.tmp_0.arg0 = globals.screen___153286; s.tmp_0.arg1 = 0; s.tmp_2 = if_infoTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -36185,16 +39971,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 = 979; s.pc = 10; return s.tmp_2; } + else { s.callLocIdx = 1171; 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___88287); + r0 = pxsim_ImageMethods.width(globals.screen___153286); s.tmp_0.arg3 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___88287); + r0 = pxsim_ImageMethods.height(globals.screen___153286); s.tmp_4 = r0; s.tmp_6 = if_infoTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -36205,7 +39991,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 = 980; s.pc = 11; return s.tmp_6; } + else { s.callLocIdx = 1172; s.pc = 11; return s.tmp_6; } } case 11: r0 = s.retval; @@ -36215,11 +40001,11 @@ switch (step) { r0 = (s.tmp_3 + 6); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 15; - s.callLocIdx = 981; s.pc = 9; return s.tmp_0; + s.callLocIdx = 1173; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P88213_mk(s); - s.tmp_0.arg0 = globals.screen___88287; + s.tmp_0 = helpers_imageFillRect__P153212_mk(s); + s.tmp_0.arg0 = globals.screen___153286; s.tmp_1 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_1.arg0 = r0; @@ -36229,7 +40015,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 = 982; s.pc = 13; return s.tmp_1; } + else { s.callLocIdx = 1174; s.pc = 13; return s.tmp_1; } } case 13: r0 = s.retval; @@ -36243,12 +40029,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 = 983; s.pc = 14; return s.tmp_2; } + else { s.callLocIdx = 1175; s.pc = 14; return s.tmp_2; } } case 14: r0 = s.retval; s.tmp_0.arg2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___88287); + r0 = pxsim_ImageMethods.width(globals.screen___153286); s.tmp_3 = r0; s.tmp_6 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -36259,7 +40045,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 = 984; s.pc = 15; return s.tmp_6; } + else { s.callLocIdx = 1176; s.pc = 15; return s.tmp_6; } } case 15: r0 = s.retval; @@ -36278,7 +40064,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 = 985; s.pc = 17; return s.tmp_9; } + else { s.callLocIdx = 1177; s.pc = 17; return s.tmp_9; } } case 17: r0 = s.retval; @@ -36289,7 +40075,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 = 986; s.pc = 16; return s.tmp_8; } + else { s.callLocIdx = 1178; s.pc = 16; return s.tmp_8; } } case 16: r0 = s.retval; @@ -36297,11 +40083,11 @@ switch (step) { r0 = (s.tmp_7 + 1); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 1; - s.callLocIdx = 987; s.pc = 12; return s.tmp_0; + s.callLocIdx = 1179; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_0 = helpers_imagePrintCenter__P88244_mk(s); - s.tmp_0.arg0 = globals.screen___88287; + s.tmp_0 = helpers_imagePrintCenter__P153243_mk(s); + s.tmp_0.arg0 = globals.screen___153286; s.tmp_1 = if_getText_1_mk(s); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; @@ -36311,12 +40097,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 = 988; s.pc = 19; return s.tmp_1; + s.callLocIdx = 1180; 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 = 988; s.pc = 19; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 988; s.pc = 19; return s.tmp_1;; } - else { s.callLocIdx = 988; 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 = 1180; s.pc = 19; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 1180; s.pc = 19; return s.tmp_1;; } + else { s.callLocIdx = 1180; s.pc = 19; return s.tmp_1; } } case 19: r0 = s.retval; @@ -36330,7 +40116,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 = 989; s.pc = 20; return s.tmp_5; } + else { s.callLocIdx = 1181; s.pc = 20; return s.tmp_5; } } case 20: r0 = s.retval; @@ -36347,12 +40133,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 = 990; s.pc = 21; return s.tmp_6; } + else { s.callLocIdx = 1182; s.pc = 21; return s.tmp_6; } } case 21: r0 = s.retval; s.tmp_0.arg4 = r0; - s.callLocIdx = 991; s.pc = 18; return s.tmp_0; + s.callLocIdx = 1183; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; case 3: @@ -36360,12 +40146,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_drawText__P89112.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__P154111.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__P89112_mk(s) { +function scene_systemMenu_PauseMenu_drawText__P154111_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_drawText__P89112, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_drawText__P154111, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36384,7 +40170,7 @@ function scene_systemMenu_PauseMenu_drawText__P89112_mk(s) { -function scene_systemMenu_PauseMenu_setSelection__P89111(s) { +function scene_systemMenu_PauseMenu_setSelection__P154110(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36400,7 +40186,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C89107_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C154106_VT)) failedCast(r0); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -36420,7 +40206,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__P89105_mk(s); + s.tmp_6 = scene_systemMenu_MenuOption_setState__P154104_mk(s); r0 = s.arg0.fields["options"]; s.tmp_7 = r0; r0 = s.arg0.fields["selection"]; @@ -36428,7 +40214,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 = 971; s.pc = 10; return s.tmp_6; + s.callLocIdx = 1163; s.pc = 10; return s.tmp_6; case 10: r0 = s.retval; case 3: @@ -36442,9 +40228,9 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_4 = controller_Button__C88388_v0_1_mk(s); - s.tmp_4.arg0 = globals.A___88362; - if (!checkSubtype(s.tmp_4.arg0, controller_Button__C88388_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4 = controller_Button__C153387_v0_1_mk(s); + s.tmp_4.arg0 = globals.A___153361; + if (!checkSubtype(s.tmp_4.arg0, controller_Button__C153387_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: @@ -36459,7 +40245,7 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_5 = r0; - s.tmp_6 = scene_systemMenu_MenuOption_setState__P89105_mk(s); + s.tmp_6 = scene_systemMenu_MenuOption_setState__P154104_mk(s); r0 = s.arg0.fields["options"]; s.tmp_7 = r0; r0 = s.arg0.fields["selection"]; @@ -36467,14 +40253,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 = 972; s.pc = 12; return s.tmp_6; + s.callLocIdx = 1164; s.pc = 12; return s.tmp_6; case 12: r0 = s.retval; case 7: case 8: - s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P90783_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P155947_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 973; s.pc = 13; return s.tmp_0; + s.callLocIdx = 1165; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; case 9: @@ -36482,12 +40268,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_setSelection__P89111.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__P154110.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__P89111_mk(s) { +function scene_systemMenu_PauseMenu_setSelection__P154110_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P89111, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P154110, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36506,7 +40292,7 @@ function scene_systemMenu_PauseMenu_setSelection__P89111_mk(s) { -function scene_systemMenu_PauseMenu_updateScrollTarget__P90783(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P155947(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36516,13 +40302,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.row___98346 = undefined; + s.row___167425 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C89107_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C154106_VT)) failedCast(r0); r0 = s.arg0.fields["selection"]; s.tmp_0 = r0; s.tmp_2 = if_cardsPerRow_1_mk(s); @@ -36534,23 +40320,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 = 994; s.pc = 8; return s.tmp_2; } + else { s.callLocIdx = 1186; 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___98346 = (r0); + s.row___167425 = (r0); r0 = s.arg0.fields["scrollRow"]; s.tmp_1 = r0; - r0 = (s.row___98346 === s.tmp_1); + r0 = (s.row___167425 === 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___98346 - 1); + r0 = (s.row___167425 - 1); s.tmp_2 = r0; r0 = s.arg0.fields["scrollRow"]; s.tmp_3 = r0; @@ -36565,7 +40351,7 @@ switch (step) { case 4: r0 = s.arg0.fields["scrollRow"]; s.tmp_6 = r0; - r0 = (s.row___98346 > s.tmp_6); + r0 = (s.row___167425 > s.tmp_6); s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 5; continue; } @@ -36596,7 +40382,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 = 995; s.pc = 9; return s.tmp_5; } + else { s.callLocIdx = 1187; s.pc = 9; return s.tmp_5; } } case 9: r0 = s.retval; @@ -36610,7 +40396,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 = 996; s.pc = 10; return s.tmp_7; } + else { s.callLocIdx = 1188; s.pc = 10; return s.tmp_7; } } case 10: r0 = s.retval; @@ -36625,12 +40411,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_updateScrollTarget__P90783.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__P155947.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__P90783_mk(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P155947_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P90783, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P155947, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36642,7 +40428,7 @@ function scene_systemMenu_PauseMenu_updateScrollTarget__P90783_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - row___98346: undefined, + row___167425: undefined, arg0: undefined, } } @@ -36650,7 +40436,7 @@ function scene_systemMenu_PauseMenu_updateScrollTarget__P90783_mk(s) { -function scene_systemMenu_PauseMenu_onUpdate__P89110(s) { +function scene_systemMenu_PauseMenu_onUpdate__P154109(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36660,22 +40446,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.t___98175 = undefined; - s.i___98179 = undefined; - s.dt___98208 = undefined; + s.t___167258 = undefined; + s.i___167262 = undefined; + s.dt___167291 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C89107_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C154106_VT)) failedCast(r0); r0 = pxsim.control.millis(); s.tmp_0 = r0; r0 = (s.tmp_0 / 250); - s.t___98175 = (r0); - s.i___98179 = (0); + s.t___167258 = (r0); + s.i___167262 = (0); case 1: - s.tmp_1 = r0 = s.i___98179; + s.tmp_1 = r0 = s.i___167262; r0 = s.arg0.fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -36684,13 +40470,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__P89103_mk(s); + s.tmp_4 = scene_systemMenu_MenuOption_setOffset__P154102_mk(s); r0 = s.arg0.fields["options"]; s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.i___98179); + r0 = pxsim_Array__getAt(s.tmp_5, s.i___167262); s.tmp_4.arg0 = r0; - s.tmp_8 = r0 = s.t___98175; - s.tmp_11 = r0 = s.i___98179; + s.tmp_8 = r0 = s.t___167258; + s.tmp_11 = r0 = s.i___167262; s.tmp_13 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_13.arg0 = r0; @@ -36700,7 +40486,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 = 964; s.pc = 11; return s.tmp_13; } + else { s.callLocIdx = 1156; s.pc = 11; return s.tmp_13; } } case 11: r0 = s.retval; @@ -36715,15 +40501,15 @@ switch (step) { s.tmp_6 = r0; r0 = (2 * s.tmp_6); s.tmp_4.arg1 = r0; - s.callLocIdx = 965; s.pc = 10; return s.tmp_4; + s.callLocIdx = 1157; s.pc = 10; return s.tmp_4; case 10: r0 = s.retval; - r0 = (s.i___98179 + 1); - s.i___98179 = (r0); + r0 = (s.i___167262 + 1); + s.i___167262 = (r0); { step = 1; continue; } case 2: - s.tmp_1 = game_currentScene__P89017_mk(s); - s.callLocIdx = 966; s.pc = 12; return s.tmp_1; + s.tmp_1 = game_currentScene__P154016_mk(s); + s.callLocIdx = 1158; s.pc = 12; return s.tmp_1; case 12: r0 = s.retval; r0 = r0.fields["eventContext"]; @@ -36731,7 +40517,7 @@ switch (step) { r0 = s.tmp_0.fields["deltaTimeMillis"]; s.tmp_2 = r0; r0 = (s.tmp_2 / 1000); - s.dt___98208 = (r0); + s.dt___167291 = (r0); r0 = s.arg0.fields["scrollOffset"]; s.tmp_1 = r0; r0 = s.arg0.fields["scrollTarget"]; @@ -36743,7 +40529,7 @@ switch (step) { s.tmp_3 = r0 = s.arg0; r0 = s.tmp_3.fields["scrollOffset"]; s.tmp_5 = r0; - r0 = (s.dt___98208 * 100); + r0 = (s.dt___167291 * 100); s.tmp_6 = r0; r0 = (s.tmp_5 + s.tmp_6); s.tmp_4 = r0; @@ -36761,7 +40547,7 @@ switch (step) { s.tmp_3 = r0 = s.arg0; r0 = s.tmp_3.fields["scrollOffset"]; s.tmp_5 = r0; - r0 = (s.dt___98208 * 100); + r0 = (s.dt___167291 * 100); s.tmp_6 = r0; r0 = (s.tmp_5 - s.tmp_6); s.tmp_4 = r0; @@ -36771,14 +40557,14 @@ switch (step) { { step = 9; continue; } case 5: case 6: - s.tmp_2 = Math_abs__P86608_mk(s); + s.tmp_2 = Math_abs__P151607_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 = 968; s.pc = 13; return s.tmp_2; + s.callLocIdx = 1160; s.pc = 13; return s.tmp_2; case 13: r0 = s.retval; s.tmp_1 = r0; @@ -36791,16 +40577,16 @@ switch (step) { r0 = (s.arg0).fields["scrollOffset"] = (s.tmp_5); case 7: case 8: - s.tmp_0 = scene_Camera_offsetY__P88853_mk(s); - s.tmp_1 = game_currentScene__P89017_mk(s); - s.callLocIdx = 969; s.pc = 15; return s.tmp_1; + s.tmp_0 = scene_Camera_offsetY__P153852_mk(s); + s.tmp_1 = game_currentScene__P154016_mk(s); + s.callLocIdx = 1161; 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 = 970; s.pc = 14; return s.tmp_0; + s.callLocIdx = 1162; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; case 9: @@ -36808,12 +40594,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_onUpdate__P89110.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__P154109.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__P89110_mk(s) { +function scene_systemMenu_PauseMenu_onUpdate__P154109_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P89110, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P154109, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36829,9 +40615,9 @@ function scene_systemMenu_PauseMenu_onUpdate__P89110_mk(s) { tmp_11: undefined, tmp_12: undefined, tmp_13: undefined, - t___98175: undefined, - i___98179: undefined, - dt___98208: undefined, + t___167258: undefined, + i___167262: undefined, + dt___167291: undefined, arg0: undefined, } } @@ -36839,7 +40625,7 @@ function scene_systemMenu_PauseMenu_onUpdate__P89110_mk(s) { -function scene_systemMenu_MenuOption_setOffset__P89103(s) { +function scene_systemMenu_MenuOption_setOffset__P154102(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36855,40 +40641,40 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C89099_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P88552_mk(s); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C154098_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P153551_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 = 907; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1099; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_y__P88513_mk(s); + s.tmp_0 = Sprite_y__P153512_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P88512_mk(s); + s.tmp_1 = Sprite_y__P153511_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 908; s.pc = 3; return s.tmp_1; + s.callLocIdx = 1100; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 909; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1101; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setOffset__P89103.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__P154102.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__P89103_mk(s) { +function scene_systemMenu_MenuOption_setOffset__P154102_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setOffset__P89103, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setOffset__P154102, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36900,7 +40686,7 @@ function scene_systemMenu_MenuOption_setOffset__P89103_mk(s) { -function Sprite_top__P88552(s) { +function Sprite_top__P153551(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36910,22 +40696,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___98284 = undefined; + s.physics___167367 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 285; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 326; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = r0.fields["physicsEngine"]; - s.physics___98284 = (r0); - s.tmp_0 = PhysicsEngine__C88644_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___98284; + s.physics___167367 = (r0); + s.tmp_0 = PhysicsEngine__C153643_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___167367; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = 0; r0 = (s.arg1 * 256); @@ -36936,7 +40722,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__C88644_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C153643_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: @@ -36945,18 +40731,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_top__P88552.info = {"start":9733,"length":256,"line":355,"column":4,"endLine":365,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this","value"]} +Sprite_top__P153551.info = {"start":9733,"length":256,"line":355,"column":4,"endLine":365,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this","value"]} -function Sprite_top__P88552_mk(s) { +function Sprite_top__P153551_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_top__P88552, depth: s.depth + 1, + parent: s, fn: Sprite_top__P153551, depth: s.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___98284: undefined, + physics___167367: undefined, arg0: undefined, arg1: undefined, } } @@ -36965,7 +40751,7 @@ function Sprite_top__P88552_mk(s) { -function Sprite_top__P88551(s) { +function Sprite_top__P153550(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36980,20 +40766,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C153500_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__P88551.info = {"start":9590,"length":53,"line":350,"column":4,"endLine":352,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this"]} -Sprite_top__P88551.isGetter = true; +Sprite_top__P153550.info = {"start":9590,"length":53,"line":350,"column":4,"endLine":352,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this"]} +Sprite_top__P153550.isGetter = true; -function Sprite_top__P88551_mk(s) { +function Sprite_top__P153550_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_top__P88551, depth: s.depth + 1, + parent: s, fn: Sprite_top__P153550, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -37003,7 +40789,7 @@ function Sprite_top__P88551_mk(s) { -function Sprite_y__P88513(s) { +function Sprite_y__P153512(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37019,8 +40805,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P88552_mk(s); + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P153551_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; r0 = s.arg0.fields["_image"]; @@ -37031,19 +40817,19 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_1 - s.tmp_2); s.tmp_0.arg1 = r0; - s.callLocIdx = 232; s.pc = 1; return s.tmp_0; + s.callLocIdx = 273; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_y__P88513.info = {"start":2022,"length":72,"line":86,"column":4,"endLine":88,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this","v"]} +Sprite_y__P153512.info = {"start":2022,"length":72,"line":86,"column":4,"endLine":88,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this","v"]} -function Sprite_y__P88513_mk(s) { +function Sprite_y__P153512_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_y__P88513, depth: s.depth + 1, + parent: s, fn: Sprite_y__P153512, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37058,7 +40844,7 @@ function Sprite_y__P88513_mk(s) { -function scene_systemMenu_MenuOption_setState__P89105(s) { +function scene_systemMenu_MenuOption_setState__P154104(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37074,7 +40860,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C89099_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C154098_VT)) failedCast(r0); r0 = s.arg0.fields["state"]; s.tmp_1 = r0; r0 = (s.tmp_1 === s.arg1); @@ -37085,9 +40871,9 @@ switch (step) { case 1: case 2: r0 = (s.arg0).fields["state"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P90782_mk(s); + s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P155946_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 911; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1103; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 3: @@ -37095,12 +40881,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setState__P89105.info = {"start":1655,"length":147,"line":71,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setState","argumentNames":["this","state"]} +scene_systemMenu_MenuOption_setState__P154104.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__P89105_mk(s) { +function scene_systemMenu_MenuOption_setState__P154104_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setState__P89105, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setState__P154104, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37112,7 +40898,7 @@ function scene_systemMenu_MenuOption_setState__P89105_mk(s) { -function scene_systemMenu_MenuOption_updateCard__P90782(s) { +function scene_systemMenu_MenuOption_updateCard__P155946(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37127,7 +40913,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C89099_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C154098_VT)) failedCast(r0); r0 = s.arg0.fields["theme"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -37150,7 +40936,7 @@ switch (step) { r0 = s.tmp_3; { step = 6; continue; } case 3: - s.tmp_4 = Sprite_setImage__P88541_mk(s); + s.tmp_4 = Sprite_setImage__P153540_mk(s); r0 = s.arg0.fields["card"]; s.tmp_4.arg0 = r0; s.tmp_5 = if_basicCard_1_mk(s); @@ -37162,17 +40948,17 @@ switch (step) { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["basicCard"]; if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["basicCard"]; } else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 914; s.pc = 9; return s.tmp_5; } + else { s.callLocIdx = 1106; s.pc = 9; return s.tmp_5; } } case 9: r0 = s.retval; s.tmp_4.arg1 = r0; - s.callLocIdx = 915; s.pc = 8; return s.tmp_4; + s.callLocIdx = 1107; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; { step = 6; continue; } case 4: - s.tmp_0 = Sprite_setImage__P88541_mk(s); + s.tmp_0 = Sprite_setImage__P153540_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_1 = if_selectedCard_1_mk(s); @@ -37184,17 +40970,17 @@ switch (step) { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["selectedCard"]; if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["selectedCard"]; } else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 916; s.pc = 11; return s.tmp_1; } + else { s.callLocIdx = 1108; s.pc = 11; return s.tmp_1; } } case 11: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 917; s.pc = 10; return s.tmp_0; + s.callLocIdx = 1109; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; { step = 6; continue; } case 5: - s.tmp_0 = Sprite_setImage__P88541_mk(s); + s.tmp_0 = Sprite_setImage__P153540_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_1 = if_activeCard_1_mk(s); @@ -37206,39 +40992,39 @@ switch (step) { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["activeCard"]; if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["activeCard"]; } else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 918; s.pc = 13; return s.tmp_1; } + else { s.callLocIdx = 1110; s.pc = 13; return s.tmp_1; } } case 13: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 919; s.pc = 12; return s.tmp_0; + s.callLocIdx = 1111; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; case 6: - s.tmp_0 = Sprite_x__P88511_mk(s); + s.tmp_0 = Sprite_x__P153510_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P88510_mk(s); + s.tmp_1 = Sprite_x__P153509_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 920; s.pc = 15; return s.tmp_1; + s.callLocIdx = 1112; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 921; s.pc = 14; return s.tmp_0; + s.callLocIdx = 1113; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - s.tmp_0 = Sprite_y__P88513_mk(s); + s.tmp_0 = Sprite_y__P153512_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P88512_mk(s); + s.tmp_1 = Sprite_y__P153511_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 922; s.pc = 17; return s.tmp_1; + s.callLocIdx = 1114; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 923; s.pc = 16; return s.tmp_0; + s.callLocIdx = 1115; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; case 7: @@ -37246,12 +41032,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_updateCard__P90782.info = {"start":2038,"length":497,"line":86,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"updateCard","argumentNames":["this"]} +scene_systemMenu_MenuOption_updateCard__P155946.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__P90782_mk(s) { +function scene_systemMenu_MenuOption_updateCard__P155946_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_updateCard__P90782, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_updateCard__P155946, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37266,7 +41052,7 @@ function scene_systemMenu_MenuOption_updateCard__P90782_mk(s) { -function Sprite_x__P88511(s) { +function Sprite_x__P153510(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37282,8 +41068,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P88548_mk(s); + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P153547_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; r0 = s.arg0.fields["_image"]; @@ -37294,19 +41080,19 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_1 - s.tmp_2); s.tmp_0.arg1 = r0; - s.callLocIdx = 230; s.pc = 1; return s.tmp_0; + s.callLocIdx = 271; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_x__P88511.info = {"start":1673,"length":72,"line":75,"column":4,"endLine":77,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this","v"]} +Sprite_x__P153510.info = {"start":1673,"length":72,"line":75,"column":4,"endLine":77,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this","v"]} -function Sprite_x__P88511_mk(s) { +function Sprite_x__P153510_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_x__P88511, depth: s.depth + 1, + parent: s, fn: Sprite_x__P153510, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37321,7 +41107,7 @@ function Sprite_x__P88511_mk(s) { -function Sprite_left__P88548(s) { +function Sprite_left__P153547(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37331,22 +41117,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___98831 = undefined; + s.physics___167568 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 277; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 318; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = r0.fields["physicsEngine"]; - s.physics___98831 = (r0); - s.tmp_0 = PhysicsEngine__C88644_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___98831; + s.physics___167568 = (r0); + s.tmp_0 = PhysicsEngine__C153643_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___167568; s.tmp_0.arg1 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -37357,7 +41143,7 @@ switch (step) { r0 = (s.tmp_1 - s.tmp_3); s.tmp_0.arg2 = r0; s.tmp_0.arg3 = 0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C88644_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C153643_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: @@ -37366,18 +41152,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_left__P88548.info = {"start":8929,"length":257,"line":325,"column":4,"endLine":335,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this","value"]} +Sprite_left__P153547.info = {"start":8929,"length":257,"line":325,"column":4,"endLine":335,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this","value"]} -function Sprite_left__P88548_mk(s) { +function Sprite_left__P153547_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_left__P88548, depth: s.depth + 1, + parent: s, fn: Sprite_left__P153547, depth: s.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___98831: undefined, + physics___167568: undefined, arg0: undefined, arg1: undefined, } } @@ -37386,7 +41172,7 @@ function Sprite_left__P88548_mk(s) { -function Sprite_left__P88547(s) { +function Sprite_left__P153546(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37401,20 +41187,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C153500_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__P88547.info = {"start":8785,"length":53,"line":320,"column":4,"endLine":322,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this"]} -Sprite_left__P88547.isGetter = true; +Sprite_left__P153546.info = {"start":8785,"length":53,"line":320,"column":4,"endLine":322,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this"]} +Sprite_left__P153546.isGetter = true; -function Sprite_left__P88547_mk(s) { +function Sprite_left__P153546_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_left__P88547, depth: s.depth + 1, + parent: s, fn: Sprite_left__P153546, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -37424,7 +41210,7 @@ function Sprite_left__P88547_mk(s) { -function scene_systemMenu_MenuOption_setTheme__P89104(s) { +function scene_systemMenu_MenuOption_setTheme__P154103(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37440,23 +41226,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C89099_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C154098_VT)) failedCast(r0); r0 = (s.arg0).fields["theme"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P90782_mk(s); + s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P155946_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 910; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1102; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setTheme__P89104.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__P154103.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__P89104_mk(s) { +function scene_systemMenu_MenuOption_setTheme__P154103_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setTheme__P89104, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setTheme__P154103, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -37467,7 +41253,7 @@ function scene_systemMenu_MenuOption_setTheme__P89104_mk(s) { -function scene_systemMenu_MenuOption_position__P89102(s) { +function scene_systemMenu_MenuOption_position__P154101(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37484,58 +41270,58 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C89099_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C154098_VT)) failedCast(r0); r0 = (s.arg0).fields["top"] = (s.arg2); - s.tmp_0 = Sprite_left__P88548_mk(s); + s.tmp_0 = Sprite_left__P153547_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 901; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1093; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_top__P88552_mk(s); + s.tmp_0 = Sprite_top__P153551_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 902; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1094; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = Sprite_x__P88511_mk(s); + s.tmp_0 = Sprite_x__P153510_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P88510_mk(s); + s.tmp_1 = Sprite_x__P153509_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 903; s.pc = 4; return s.tmp_1; + s.callLocIdx = 1095; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 904; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1096; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = Sprite_y__P88513_mk(s); + s.tmp_0 = Sprite_y__P153512_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P88512_mk(s); + s.tmp_1 = Sprite_y__P153511_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 905; s.pc = 6; return s.tmp_1; + s.callLocIdx = 1097; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 906; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1098; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_position__P89102.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__P154101.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__P89102_mk(s) { +function scene_systemMenu_MenuOption_position__P154101_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_position__P89102, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_position__P154101, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37548,7 +41334,7 @@ function scene_systemMenu_MenuOption_position__P89102_mk(s) { -function scene_systemMenu_MenuOption_show__P89101(s) { +function scene_systemMenu_MenuOption_show__P154100(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37563,7 +41349,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C89099_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C154098_VT)) failedCast(r0); r0 = s.arg0.fields["theme"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -37577,21 +41363,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 = 896; s.pc = 3; return s.tmp_1; } + else { s.callLocIdx = 1088; s.pc = 3; return s.tmp_1; } } case 3: r0 = s.retval; { step = 2; continue; } case 1: - r0 = globals.CARD_NORMAL___89123; + r0 = globals.CARD_NORMAL___154122; case 2: // jmp value (already in r0) s.tmp_2 = r0; s.tmp_3 = r0 = s.arg0; - s.tmp_5 = sprites_create__P88459_mk(s); + s.tmp_5 = sprites_create__P153458_mk(s); s.tmp_5.arg0 = s.tmp_2; s.tmp_5.arg1 = undefined; - s.callLocIdx = 897; s.pc = 4; return s.tmp_5; + s.callLocIdx = 1089; s.pc = 4; return s.tmp_5; case 4: r0 = s.retval; s.tmp_4 = r0; @@ -37606,16 +41392,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 = 898; s.pc = 5; return s.tmp_0; } + else { s.callLocIdx = 1090; s.pc = 5; return s.tmp_0; } } case 5: r0 = s.retval; s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P88459_mk(s); + s.tmp_2 = sprites_create__P153458_mk(s); r0 = s.arg0.fields["iconImage"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = undefined; - s.callLocIdx = 899; s.pc = 6; return s.tmp_2; + s.callLocIdx = 1091; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_1 = r0; @@ -37630,7 +41416,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 = 900; s.pc = 7; return s.tmp_0; } + else { s.callLocIdx = 1092; s.pc = 7; return s.tmp_0; } } case 7: r0 = s.retval; @@ -37639,12 +41425,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_show__P89101.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__P154100.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__P89101_mk(s) { +function scene_systemMenu_MenuOption_show__P154100_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_show__P89101, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_show__P154100, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37659,7 +41445,7 @@ function scene_systemMenu_MenuOption_show__P89101_mk(s) { -function game_onShade__P89032(s) { +function game_onShade__P154031(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37673,9 +41459,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P90536_mk(s); + s.tmp_0 = game_init__P155700_mk(s); s.tmp_0.arg0 = undefined; - s.callLocIdx = 892; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1084; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg0); @@ -37687,11 +41473,11 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_2 = scene_createRenderable__P88868_mk(s); + s.tmp_2 = scene_createRenderable__P153867_mk(s); s.tmp_2.arg0 = 80; s.tmp_2.arg1 = s.arg0; s.tmp_2.arg2 = undefined; - s.callLocIdx = 893; s.pc = 5; return s.tmp_2; + s.callLocIdx = 1085; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; case 3: @@ -37699,12 +41485,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_onShade__P89032.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__P154031.info = {"start":9934,"length":145,"line":320,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]} -function game_onShade__P89032_mk(s) { +function game_onShade__P154031_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onShade__P89032, depth: s.depth + 1, + parent: s, fn: game_onShade__P154031, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37716,7 +41502,7 @@ function game_onShade__P89032_mk(s) { -function scene_systemMenu_PauseMenu_constructor__P89108(s) { +function scene_systemMenu_PauseMenu_constructor__P154107(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37733,7 +41519,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C89107_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C154106_VT)) failedCast(r0); r0 = (s.arg0).fields["generator"] = (s.arg1); s.tmp_0 = r0 = s.arg2; r0 = pxsim_numops_toBool(s.tmp_0); @@ -37741,13 +41527,13 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_1 = scene_systemMenu_buildMenuTheme__P89116_mk(s); - r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___89123); + s.tmp_1 = scene_systemMenu_buildMenuTheme__P154115_mk(s); + r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___154122); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 3; s.tmp_1.arg2 = undefined; s.tmp_1.arg3 = undefined; - s.callLocIdx = 924; s.pc = 3; return s.tmp_1; + s.callLocIdx = 1116; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; case 2: @@ -37761,12 +41547,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_constructor__P89108.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__P154107.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__P89108_mk(s) { +function scene_systemMenu_PauseMenu_constructor__P154107_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_constructor__P89108, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_constructor__P154107, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37780,7 +41566,7 @@ function scene_systemMenu_PauseMenu_constructor__P89108_mk(s) { -function scene_systemMenu_buildMenuTheme__P89116(s) { +function scene_systemMenu_buildMenuTheme__P154115(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37790,7 +41576,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cardsPerRow___99675 = undefined; + s.cardsPerRow___168164 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -37798,19 +41584,19 @@ switch (step) { s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.width(globals.screen___88287); + r0 = pxsim_ImageMethods.width(globals.screen___153286); 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___99675 = (r0); + s.cardsPerRow___168164 = (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___88230; + r0 = globals.font8___153229; case 2: // jmp value (already in r0) s.tmp_1 = r0; @@ -37821,9 +41607,9 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - s.tmp_1 = image_doubledFont__P88233_mk(s); + s.tmp_1 = image_doubledFont__P153232_mk(s); s.tmp_1.arg0 = s.arg2; - s.callLocIdx = 1034; s.pc = 5; return s.tmp_1; + s.callLocIdx = 1226; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; case 4: @@ -37834,12 +41620,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___99675); - r0 = pxsim_ImageMethods.width(globals.screen___88287); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardsPerRow", s.cardsPerRow___168164); + r0 = pxsim_ImageMethods.width(globals.screen___153286); s.tmp_3 = r0; - r0 = (s.cardsPerRow___99675 * s.arg0); + r0 = (s.cardsPerRow___168164 * s.arg0); s.tmp_5 = r0; - r0 = (s.cardsPerRow___99675 - 1); + r0 = (s.cardsPerRow___168164 - 1); s.tmp_7 = r0; r0 = (s.tmp_7 * s.arg1); s.tmp_6 = r0; @@ -37860,7 +41646,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 = 1035; s.pc = 6; return s.tmp_11; } + else { s.callLocIdx = 1227; s.pc = 6; return s.tmp_11; } } case 6: r0 = s.retval; @@ -37870,7 +41656,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___88287); + r0 = pxsim_ImageMethods.height(globals.screen___153286); s.tmp_14 = r0; s.tmp_16 = if_charHeight_1_mk(s); s.tmp_16.arg0 = s.arg2; @@ -37880,7 +41666,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 = 1036; s.pc = 7; return s.tmp_16; } + else { s.callLocIdx = 1228; s.pc = 7; return s.tmp_16; } } case 7: r0 = s.retval; @@ -37891,19 +41677,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___89124); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___89125); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___89123); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "selectedCard", globals.CARD_SELECTED___154123); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___154124); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___154122); r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildMenuTheme__P89116.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__P154115.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__P89116_mk(s) { +function scene_systemMenu_buildMenuTheme__P154115_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildMenuTheme__P89116, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildMenuTheme__P154115, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37922,7 +41708,7 @@ function scene_systemMenu_buildMenuTheme__P89116_mk(s) { tmp_14: undefined, tmp_15: undefined, tmp_16: undefined, - cardsPerRow___99675: undefined, + cardsPerRow___168164: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -37933,7 +41719,7 @@ function scene_systemMenu_buildMenuTheme__P89116_mk(s) { -function image_doubledFont__P88233(s) { +function image_doubledFont__P153232(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37947,21 +41733,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = image_scaledFont__P88234_mk(s); + s.tmp_0 = image_scaledFont__P153233_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 2; - s.callLocIdx = 88; s.pc = 1; return s.tmp_0; + s.callLocIdx = 130; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -image_doubledFont__P88233.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__P153232.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__P88233_mk(s) { +function image_doubledFont__P153232_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_doubledFont__P88233, depth: s.depth + 1, + parent: s, fn: image_doubledFont__P153232, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -37971,7 +41757,7 @@ function image_doubledFont__P88233_mk(s) { -function image_scaledFont__P88234(s) { +function image_scaledFont__P153233(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38006,7 +41792,7 @@ switch (step) { s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charWidth"]; if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charWidth"]; } else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 89; s.pc = 6; return s.tmp_4; } + else { s.callLocIdx = 131; s.pc = 6; return s.tmp_4; } } case 6: r0 = s.retval; @@ -38022,7 +41808,7 @@ switch (step) { s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["charHeight"]; if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["charHeight"]; } else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } - else { s.callLocIdx = 90; s.pc = 7; return s.tmp_7; } + else { s.callLocIdx = 132; s.pc = 7; return s.tmp_7; } } case 7: r0 = s.retval; @@ -38038,7 +41824,7 @@ switch (step) { s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["data"]; if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["data"]; } else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } - else { s.callLocIdx = 91; s.pc = 8; return s.tmp_9; } + else { s.callLocIdx = 133; s.pc = 8; return s.tmp_9; } } case 8: r0 = s.retval; @@ -38052,7 +41838,7 @@ switch (step) { s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["multiplier"]; if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["multiplier"]; } else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } - else { s.callLocIdx = 92; s.pc = 9; return s.tmp_11; } + else { s.callLocIdx = 134; s.pc = 9; return s.tmp_11; } } case 9: r0 = s.retval; @@ -38068,7 +41854,7 @@ switch (step) { s.tmp_14.fn = s.tmp_14.arg0.vtable.iface["multiplier"]; if (s.tmp_14.fn == null) { s.retval = s.tmp_14.arg0.fields["multiplier"]; } else if (!s.tmp_14.fn.isGetter) { s.retval = bind(s.tmp_14); } - else { s.callLocIdx = 93; s.pc = 10; return s.tmp_14; } + else { s.callLocIdx = 135; s.pc = 10; return s.tmp_14; } } case 10: r0 = s.retval; @@ -38086,12 +41872,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -image_scaledFont__P88234.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__P153233.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__P88234_mk(s) { +function image_scaledFont__P153233_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_scaledFont__P88234, depth: s.depth + 1, + parent: s, fn: image_scaledFont__P153233, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38117,7 +41903,7 @@ function image_scaledFont__P88234_mk(s) { -function controller_Button_onEvent__P88395(s) { +function controller_Button_onEvent__P153394(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38134,26 +41920,26 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C88388_VT)) failedCast(r0); - s.tmp_0 = control_onEvent__P86865_mk(s); + if (!checkSubtype(r0, controller_Button__C153387_VT)) failedCast(r0); + s.tmp_0 = control_onEvent__P151864_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 = 142; s.pc = 1; return s.tmp_0; + s.callLocIdx = 183; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_onEvent__P88395.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__P153394.info = {"start":3368,"length":124,"line":112,"column":8,"endLine":114,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"onEvent","argumentNames":["this","event","handler"]} -function controller_Button_onEvent__P88395_mk(s) { +function controller_Button_onEvent__P153394_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_onEvent__P88395, depth: s.depth + 1, + parent: s, fn: controller_Button_onEvent__P153394, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -38165,7 +41951,7 @@ function controller_Button_onEvent__P88395_mk(s) { -function scene_systemMenu_initScreen__P90795(s) { +function scene_systemMenu_initScreen__P155959(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38175,21 +41961,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.brightness___99806 = undefined; - s.tmp_0 = settings_readNumber__P88318_mk(s); + s.brightness___168252 = undefined; + s.tmp_0 = settings_readNumber__P153317_mk(s); s.tmp_0.arg0 = "#brightness"; - s.callLocIdx = 1043; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1235; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.brightness___99806 = (r0); - r0 = (s.brightness___99806 !== undefined); + s.brightness___168252 = (r0); + r0 = (s.brightness___168252 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_setScreenBrightness__P88220_mk(s); - s.tmp_1.arg0 = globals.screen___88287; - s.tmp_1.arg1 = s.brightness___99806; - s.callLocIdx = 1044; s.pc = 4; return s.tmp_1; + s.tmp_1 = helpers_setScreenBrightness__P153219_mk(s); + s.tmp_1.arg0 = globals.screen___153286; + s.tmp_1.arg1 = s.brightness___168252; + s.callLocIdx = 1236; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; case 1: @@ -38198,23 +41984,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_initScreen__P90795.info = {"start":13388,"length":175,"line":405,"column":4,"endLine":409,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initScreen","argumentNames":[]} +scene_systemMenu_initScreen__P155959.info = {"start":13388,"length":175,"line":405,"column":4,"endLine":409,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initScreen","argumentNames":[]} -function scene_systemMenu_initScreen__P90795_mk(s) { +function scene_systemMenu_initScreen__P155959_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_initScreen__P90795, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_initScreen__P155959, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - brightness___99806: undefined, + brightness___168252: undefined, } } -function scene_systemMenu_initVolume__P90794(s) { +function scene_systemMenu_initVolume__P155958(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38224,20 +42010,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.vol___99898 = undefined; - s.tmp_0 = settings_readNumber__P88318_mk(s); + s.vol___168262 = undefined; + s.tmp_0 = settings_readNumber__P153317_mk(s); s.tmp_0.arg0 = "#volume"; - s.callLocIdx = 1041; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1233; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.vol___99898 = (r0); - r0 = (s.vol___99898 !== undefined); + s.vol___168262 = (r0); + r0 = (s.vol___168262 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = music_setVolume__P88077_mk(s); - s.tmp_1.arg0 = s.vol___99898; - s.callLocIdx = 1042; s.pc = 4; return s.tmp_1; + s.tmp_1 = music_setVolume__P153076_mk(s); + s.tmp_1.arg0 = s.vol___168262; + s.callLocIdx = 1234; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; case 1: @@ -38246,23 +42032,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_initVolume__P90794.info = {"start":13238,"length":144,"line":399,"column":4,"endLine":403,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initVolume","argumentNames":[]} +scene_systemMenu_initVolume__P155958.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__P90794_mk(s) { +function scene_systemMenu_initVolume__P155958_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_initVolume__P90794, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_initVolume__P155958, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - vol___99898: undefined, + vol___168262: undefined, } } -function game_currentScene__P89017(s) { +function game_currentScene__P154016(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38272,21 +42058,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_init__P90536_mk(s); + s.tmp_0 = game_init__P155700_mk(s); s.tmp_0.arg0 = undefined; - s.callLocIdx = 860; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1038; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals._scene___90528; + r0 = globals._scene___155692; return leave(s, r0) default: oops() } } } -game_currentScene__P89017.info = {"start":667,"length":90,"line":22,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"currentScene","argumentNames":[]} +game_currentScene__P154016.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__P89017_mk(s) { +function game_currentScene__P154016_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_currentScene__P89017, depth: s.depth + 1, + parent: s, fn: game_currentScene__P154016, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -38295,7 +42081,7 @@ function game_currentScene__P89017_mk(s) { -function game_addScenePopHandler__P89036(s) { +function game_addScenePopHandler__P154035(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38309,35 +42095,35 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___90531); + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___155695); 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___90531 = (r0); + globals._scenePopHandlers___155695 = (r0); case 1: case 2: - r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___90531, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___155695, 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___90531, s.arg0); + r0 = pxsim_Array__push(globals._scenePopHandlers___155695, s.arg0); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -game_addScenePopHandler__P89036.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__P154035.info = {"start":11754,"length":237,"line":368,"column":4,"endLine":372,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]} -function game_addScenePopHandler__P89036_mk(s) { +function game_addScenePopHandler__P154035_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_addScenePopHandler__P89036, depth: s.depth + 1, + parent: s, fn: game_addScenePopHandler__P154035, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38348,7 +42134,7 @@ function game_addScenePopHandler__P89036_mk(s) { -function game_addScenePushHandler__P89034(s) { +function game_addScenePushHandler__P154033(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38362,35 +42148,35 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___90530); + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___155694); 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___90530 = (r0); + globals._scenePushHandlers___155694 = (r0); case 1: case 2: - r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___90530, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___155694, 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___90530, s.arg0); + r0 = pxsim_Array__push(globals._scenePushHandlers___155694, s.arg0); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -game_addScenePushHandler__P89034.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__P154033.info = {"start":10753,"length":242,"line":344,"column":4,"endLine":348,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]} -function game_addScenePushHandler__P89034_mk(s) { +function game_addScenePushHandler__P154033_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_addScenePushHandler__P89034, depth: s.depth + 1, + parent: s, fn: game_addScenePushHandler__P154033, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38401,7 +42187,7 @@ function game_addScenePushHandler__P89034_mk(s) { -function Fx8__P86629(s) { +function Fx8__P151628(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38421,12 +42207,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx8__P86629.info = {"start":42,"length":68,"line":4,"column":0,"endLine":6,"endColumn":1,"fileName":"pxt_modules/base/fixed.ts","functionName":"Fx8","argumentNames":["v"]} +Fx8__P151628.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__P86629_mk(s) { +function Fx8__P151628_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx8__P86629, depth: s.depth + 1, + parent: s, fn: Fx8__P151628, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -38436,7 +42222,7 @@ function Fx8__P86629_mk(s) { -function SpriteKind_create__P88612(s) { +function SpriteKind_create__P153611(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38446,26 +42232,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.nextKind___90381 === undefined); + r0 = (globals.nextKind___155545 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.nextKind___90381 = (1000); + globals.nextKind___155545 = (1000); case 1: case 2: - s.tmp_0 = r0 = globals.nextKind___90381; + s.tmp_0 = r0 = globals.nextKind___155545; r0 = (s.tmp_0 + 1); - globals.nextKind___90381 = (r0); + globals.nextKind___155545 = (r0); r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -SpriteKind_create__P88612.info = {"start":750,"length":112,"line":25,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/game/spritekind.ts","functionName":"create","argumentNames":[]} +SpriteKind_create__P153611.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__P88612_mk(s) { +function SpriteKind_create__P153611_mk(s) { checkStack(s.depth); return { - parent: s, fn: SpriteKind_create__P88612, depth: s.depth + 1, + parent: s, fn: SpriteKind_create__P153611, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -38474,7 +42260,7 @@ function SpriteKind_create__P88612_mk(s) { -function controller_Button_constructor__P88394(s) { +function controller_Button_constructor__P153393(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38491,7 +42277,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C88388_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C153387_VT)) failedCast(r0); r0 = (s.arg0).fields["id"] = (s.arg1); r0 = (s.arg0).fields["_pressed"] = (false); r0 = (s.arg0).fields["repeatDelay"] = (undefined); @@ -38501,13 +42287,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__P99974); + r0 = pxsim_pxtcore_mkAction(1, inline__P168338); 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__P99981); + r0 = pxsim_pxtcore_mkAction(1, inline__P168345); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); r0 = s.arg0.fields["id"]; @@ -38526,12 +42312,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_constructor__P88394.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__P153393.info = {"start":1589,"length":863,"line":67,"column":8,"endLine":83,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","id","configKey"]} -function controller_Button_constructor__P88394_mk(s) { +function controller_Button_constructor__P153393_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_constructor__P88394, depth: s.depth + 1, + parent: s, fn: controller_Button_constructor__P153393, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38545,7 +42331,7 @@ function controller_Button_constructor__P88394_mk(s) { -function inline__P99974(s) { +function inline__P168338(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38555,22 +42341,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_setPressed__P88399_mk(s); + s.tmp_0 = controller_Button_setPressed__P153398_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = false; - s.callLocIdx = 139; s.pc = 1; return s.tmp_0; + s.callLocIdx = 180; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P99974.info = {"start":2211,"length":28,"line":77,"column":66,"endLine":77,"endColumn":94,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} +inline__P168338.info = {"start":2211,"length":28,"line":77,"column":66,"endLine":77,"endColumn":94,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} -function inline__P99974_mk(s) { +function inline__P168338_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P99974, depth: s.depth + 1, + parent: s, fn: inline__P168338, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -38579,7 +42365,7 @@ function inline__P99974_mk(s) { -function inline__P99981(s) { +function inline__P168345(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38589,22 +42375,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_setPressed__P88399_mk(s); + s.tmp_0 = controller_Button_setPressed__P153398_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = true; - s.callLocIdx = 140; s.pc = 1; return s.tmp_0; + s.callLocIdx = 181; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P99981.info = {"start":2313,"length":27,"line":78,"column":68,"endLine":78,"endColumn":95,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} +inline__P168345.info = {"start":2313,"length":27,"line":78,"column":68,"endLine":78,"endColumn":95,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} -function inline__P99981_mk(s) { +function inline__P168345_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P99981, depth: s.depth + 1, + parent: s, fn: inline__P168345, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -38613,7 +42399,7 @@ function inline__P99981_mk(s) { -function controller_setupButton__P90363(s) { +function controller_setupButton__P155527(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38632,12 +42418,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_setupButton__P90363.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__P155527.info = {"start":983,"length":93,"line":47,"column":4,"endLine":49,"endColumn":6,"fileName":"pxt_modules/game/controller.ts","functionName":"setupButton","argumentNames":["buttonId","key"]} -function controller_setupButton__P90363_mk(s) { +function controller_setupButton__P155527_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_setupButton__P90363, depth: s.depth + 1, + parent: s, fn: controller_setupButton__P155527, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -38647,7 +42433,7 @@ function controller_setupButton__P90363_mk(s) { -function controller_Button_setPressed__P88399(s) { +function controller_Button_setPressed__P153398(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38663,26 +42449,26 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C88388_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C153387_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__P88190_mk(s); - s.callLocIdx = 143; s.pc = 7; return s.tmp_2; + s.tmp_2 = power_poke__P153189_mk(s); + s.callLocIdx = 184; 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__P88428_mk(s); + s.tmp_1 = controller_Controller_connected__P153427_mk(s); r0 = s.arg0.fields["_owner"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = true; - s.callLocIdx = 144; s.pc = 8; return s.tmp_1; + s.callLocIdx = 185; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; case 1: @@ -38693,17 +42479,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__P90365_mk(s); + s.tmp_0 = controller_Button_raiseButtonDown__P155529_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 145; s.pc = 9; return s.tmp_0; + s.callLocIdx = 186; 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__P90364_mk(s); + s.tmp_0 = controller_Button_raiseButtonUp__P155528_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 146; s.pc = 10; return s.tmp_0; + s.callLocIdx = 187; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; case 4: @@ -38713,12 +42499,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_setPressed__P88399.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__P153398.info = {"start":4600,"length":507,"line":148,"column":8,"endLine":162,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"setPressed","argumentNames":["this","pressed"]} -function controller_Button_setPressed__P88399_mk(s) { +function controller_Button_setPressed__P153398_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_setPressed__P88399, depth: s.depth + 1, + parent: s, fn: controller_Button_setPressed__P153398, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38731,7 +42517,7 @@ function controller_Button_setPressed__P88399_mk(s) { -function controller_Button_raiseButtonDown__P90365(s) { +function controller_Button_raiseButtonDown__P155529(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38746,8 +42532,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C88388_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___90357); + if (!checkSubtype(r0, controller_Button__C153387_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___155521); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["id"]; s.tmp_0 = r0; @@ -38762,12 +42548,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonDown__P90365.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__P155529.info = {"start":2672,"length":205,"line":92,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonDown","argumentNames":["this"]} -function controller_Button_raiseButtonDown__P90365_mk(s) { +function controller_Button_raiseButtonDown__P155529_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonDown__P90365, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonDown__P155529, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -38777,7 +42563,7 @@ function controller_Button_raiseButtonDown__P90365_mk(s) { -function controller_Button_raiseButtonUp__P90364(s) { +function controller_Button_raiseButtonUp__P155528(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38792,8 +42578,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C88388_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___90357); + if (!checkSubtype(r0, controller_Button__C153387_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___155521); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["id"]; s.tmp_0 = r0; @@ -38808,12 +42594,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonUp__P90364.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__P155528.info = {"start":2462,"length":200,"line":85,"column":8,"endLine":90,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonUp","argumentNames":["this"]} -function controller_Button_raiseButtonUp__P90364_mk(s) { +function controller_Button_raiseButtonUp__P155528_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonUp__P90364, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonUp__P155528, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -38823,7 +42609,324 @@ function controller_Button_raiseButtonUp__P90364_mk(s) { -function controller_Controller_connected__P88428(s) { +function controller_Controller_connected__P153427(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C153407_VT)) failedCast(r0); + r0 = s.arg0.fields["_connected"]; + s.tmp_1 = r0; + r0 = (s.arg1 != s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = (s.arg0).fields["_connected"] = (s.arg1); + r0 = s.arg0.fields["_connected"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 1; + { step = 2; continue; } + case 1: + r0 = 2; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.arg0.fields["_id"]; + s.tmp_2 = r0; + r0 = pxsim.control.raiseEvent(s.tmp_2, s.tmp_1); + case 3: + case 4: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_Controller_connected__P153427.info = {"start":12550,"length":261,"line":405,"column":8,"endLine":410,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this","value"]} + +function controller_Controller_connected__P153427_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Controller_connected__P153427, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function controller_Controller_id__P153414(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C153407_VT)) failedCast(r0); + r0 = s.arg0.fields["_id"]; + return leaveAccessor(s, r0) + default: oops() +} } } +controller_Controller_id__P153414.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__P153414.isGetter = true; + +function controller_Controller_id__P153414_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Controller_id__P153414, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function controller_Controller_connected__P153426(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C153407_VT)) failedCast(r0); + r0 = s.arg0.fields["_connected"]; + return leaveAccessor(s, r0) + default: oops() +} } } +controller_Controller_connected__P153426.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__P153426.isGetter = true; + +function controller_Controller_connected__P153426_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Controller_connected__P153426, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function settings_initScopes__P155494(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.rn___168423 = undefined; + s.tmp_1 = settings_runNumber__P153309_mk(s); + s.callLocIdx = 159; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 1); + s.rn___168423 = (r0); + s.tmp_0 = settings_writeNumber__P153313_mk(s); + s.tmp_0.arg0 = globals.RUN_KEY___155482; + s.tmp_0.arg1 = s.rn___168423; + s.callLocIdx = 160; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + r0 = pxsim.control.deviceSerialNumber(); + s.tmp_1 = r0; + r0 = (s.tmp_1 & 2147483647); + s.tmp_0 = r0; + r0 = pxsim_pxtcore.seedAddRandom(s.tmp_0); + r0 = pxsim_pxtcore.seedAddRandom(s.rn___168423); + s.tmp_0 = settings_setScope__P155493_mk(s); + r0 = pxsim_pxtcore.programName(); + s.tmp_0.arg0 = r0; + s.callLocIdx = 161; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +settings_initScopes__P155494.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__P155494_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_initScopes__P155494, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + rn___168423: undefined, +} } + + + + + +function settings_setScope__P155493(s) { +let r0 = s.r0, 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.currScope___168452 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_String_.length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_2 > 100); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtrt.panic(922); + case 3: + case 4: + s.tmp_0 = settings_readString__P153316_mk(s); + s.tmp_0.arg0 = globals.SCOPE_KEY___155483; + s.callLocIdx = 157; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.currScope___168452 = (r0); + r0 = (s.currScope___168452 != 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__P153312_mk(s); + s.tmp_0.arg0 = globals.SCOPE_KEY___155483; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 158; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + case 5: + case 6: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +settings_setScope__P155493.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__P155493_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_setScope__P155493, depth: s.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___168452: undefined, + arg0: undefined, +} } + + + + + +function settings_readString__P153316(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.buf___168473 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim.settings._get(s.arg0); + s.buf___168473 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___168473); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = undefined; + { step = 3; continue; } + { step = 2; continue; } + case 1: + r0 = pxsim.BufferMethods.toString(s.buf___168473); + { step = 3; continue; } + case 2: + r0 = undefined; + case 3: + return leave(s, r0) + default: oops() +} } } +settings_readString__P153316.info = {"start":2649,"length":177,"line":103,"column":4,"endLine":109,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readString","argumentNames":["key"]} + +function settings_readString__P153316_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_readString__P153316, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + buf___168473: undefined, + arg0: undefined, +} } + + + + + +function settings_writeString__P153312(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38838,45 +42941,25 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C88408_VT)) failedCast(r0); - r0 = s.arg0.fields["_connected"]; - s.tmp_1 = r0; - r0 = (s.arg1 != s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = (s.arg0).fields["_connected"] = (s.arg1); - r0 = s.arg0.fields["_connected"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = 1; - { step = 2; continue; } + s.tmp_0 = settings_writeBuffer__P153311_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = pxsim.control.createBufferFromUTF8(s.arg1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 163; s.pc = 1; return s.tmp_0; case 1: - r0 = 2; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.arg0.fields["_id"]; - s.tmp_2 = r0; - r0 = pxsim.control.raiseEvent(s.tmp_2, s.tmp_1); - case 3: - case 4: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller_connected__P88428.info = {"start":12550,"length":261,"line":405,"column":8,"endLine":410,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this","value"]} +settings_writeString__P153312.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 controller_Controller_connected__P88428_mk(s) { +function settings_writeString__P153312_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_connected__P88428, depth: s.depth + 1, + parent: s, fn: settings_writeString__P153312, 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, } } @@ -38885,42 +42968,7 @@ function controller_Controller_connected__P88428_mk(s) { -function controller_Controller_id__P88415(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C88408_VT)) failedCast(r0); - r0 = s.arg0.fields["_id"]; - return leaveAccessor(s, r0) - default: oops() -} } } -controller_Controller_id__P88415.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__P88415.isGetter = true; - -function controller_Controller_id__P88415_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Controller_id__P88415, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function controller_Controller_connected__P88427(s) { +function settings_runNumber__P153309(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38930,88 +42978,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C88408_VT)) failedCast(r0); - r0 = s.arg0.fields["_connected"]; - return leaveAccessor(s, r0) - default: oops() -} } } -controller_Controller_connected__P88427.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__P88427.isGetter = true; - -function controller_Controller_connected__P88427_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Controller_connected__P88427, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function settings_initScopes__P90330(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.rn___100059 = undefined; - s.tmp_1 = settings_runNumber__P88310_mk(s); - s.callLocIdx = 117; s.pc = 1; return s.tmp_1; - case 1: + s.tmp_1 = settings_readNumber__P153317_mk(s); + s.tmp_1.arg0 = globals.RUN_KEY___155482; + s.callLocIdx = 156; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - s.rn___100059 = (r0); - s.tmp_0 = settings_writeNumber__P88314_mk(s); - s.tmp_0.arg0 = globals.RUN_KEY___90318; - s.tmp_0.arg1 = s.rn___100059; - s.callLocIdx = 118; s.pc = 2; return s.tmp_0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = 0; case 2: - r0 = s.retval; - r0 = pxsim.control.deviceSerialNumber(); - s.tmp_1 = r0; - r0 = (s.tmp_1 & 2147483647); - s.tmp_0 = r0; - r0 = pxsim_pxtcore.seedAddRandom(s.tmp_0); - r0 = pxsim_pxtcore.seedAddRandom(s.rn___100059); - s.tmp_0 = settings_setScope__P90329_mk(s); - r0 = pxsim_pxtcore.programName(); - s.tmp_0.arg0 = r0; - s.callLocIdx = 119; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - r0 = undefined; + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.tmp_2; return leave(s, r0) default: oops() } } } -settings_initScopes__P90330.info = {"start":1104,"length":230,"line":41,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"initScopes","argumentNames":[]} +settings_runNumber__P153309.info = {"start":745,"length":75,"line":27,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"runNumber","argumentNames":[]} -function settings_initScopes__P90330_mk(s) { +function settings_runNumber__P153309_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_initScopes__P90330, depth: s.depth + 1, + parent: s, fn: settings_runNumber__P153309, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - rn___100059: undefined, + tmp_2: undefined, } } -function settings_setScope__P90329(s) { +function control___screen_setupUpdate__P153248(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39021,66 +43023,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.currScope___100088 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + globals.__updated___155451 = (true); + globals.__update___155449 = (s.arg0); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.arg0; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 152; s.pc = 1; return s.tmp_0; case 1: - r0 = pxsim_String_.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_2 > 100); - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtrt.panic(922); - case 3: - case 4: - s.tmp_0 = settings_readString__P88317_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___90319; - s.callLocIdx = 115; s.pc = 7; return s.tmp_0; - case 7: r0 = s.retval; - s.currScope___100088 = (r0); - r0 = (s.currScope___100088 != 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__P88313_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___90319; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 116; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - case 5: - case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -settings_setScope__P90329.info = {"start":826,"length":272,"line":31,"column":4,"endLine":39,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"setScope","argumentNames":["scope"]} +control___screen_setupUpdate__P153248.info = {"start":198,"length":125,"line":10,"column":4,"endLine":14,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"setupUpdate","argumentNames":["update"]} -function settings_setScope__P90329_mk(s) { +function control___screen_setupUpdate__P153248_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_setScope__P90329, depth: s.depth + 1, + parent: s, fn: control___screen_setupUpdate__P153248, depth: s.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___100088: undefined, arg0: undefined, } } @@ -39088,7 +43054,7 @@ function settings_setScope__P90329_mk(s) { -function settings_readString__P88317(s) { +function control___screen_update__P153247(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39098,49 +43064,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___100109 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim.settings._get(s.arg0); - s.buf___100109 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___100109); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals.__update___155449); if (!r0) { step = 1; continue; } - r0 = undefined; - { step = 3; continue; } - { step = 2; continue; } + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = globals.__update___155449; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 151; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; case 1: - r0 = pxsim.BufferMethods.toString(s.buf___100109); - { step = 3; continue; } case 2: + globals.__updated___155451 = (true); r0 = undefined; - case 3: return leave(s, r0) default: oops() } } } -settings_readString__P88317.info = {"start":2649,"length":177,"line":103,"column":4,"endLine":109,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readString","argumentNames":["key"]} +control___screen_update__P153247.info = {"start":90,"length":102,"line":4,"column":4,"endLine":8,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"update","argumentNames":[]} -function settings_readString__P88317_mk(s) { +function control___screen_update__P153247_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readString__P88317, depth: s.depth + 1, + parent: s, fn: control___screen_update__P153247, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - buf___100109: undefined, - arg0: undefined, } } -function settings_writeString__P88313(s) { +function pause__P151886(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39152,82 +43105,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = settings_writeBuffer__P88312_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = pxsim.control.createBufferFromUTF8(s.arg1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 121; s.pc = 1; return s.tmp_0; + setupResume(s, 1); + pxsim.loops.pause(s.arg0); + checkResumeConsumed(); + return; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -settings_writeString__P88313.info = {"start":1895,"length":125,"line":75,"column":4,"endLine":77,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeString","argumentNames":["key","value"]} +pause__P151886.info = {"start":246,"length":57,"line":7,"column":0,"endLine":9,"endColumn":1,"fileName":"pxt_modules/base/pause.ts","functionName":"pause","argumentNames":["ms"]} -function settings_writeString__P88313_mk(s) { +function pause__P151886_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeString__P88313, depth: s.depth + 1, + parent: s, fn: pause__P151886, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, - arg1: undefined, -} } - - - - - -function settings_runNumber__P88310(s) { -let r0 = s.r0, 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_1 = settings_readNumber__P88318_mk(s); - s.tmp_1.arg0 = globals.RUN_KEY___90318; - s.callLocIdx = 114; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.tmp_2; - return leave(s, r0) - default: oops() -} } } -settings_runNumber__P88310.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__P88310_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: settings_runNumber__P88310, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, } } -function control___screen_setupUpdate__P88249(s) { +function game_BaseDialog_drawTextCore__P153976(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39241,26 +43145,19 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.__updated___90287 = (true); - globals.__update___90285 = (s.arg0); - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.arg0; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 110; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C153961_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -control___screen_setupUpdate__P88249.info = {"start":198,"length":125,"line":10,"column":4,"endLine":14,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"setupUpdate","argumentNames":["update"]} +game_BaseDialog_drawTextCore__P153976.info = {"start":1757,"length":65,"line":70,"column":8,"endLine":72,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawTextCore","argumentNames":["this"]} -function control___screen_setupUpdate__P88249_mk(s) { +function game_BaseDialog_drawTextCore__P153976_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_setupUpdate__P88249, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_drawTextCore__P153976, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -39268,7 +43165,7 @@ function control___screen_setupUpdate__P88249_mk(s) { -function control___screen_update__P88248(s) { +function game_BaseDialog_update__P153974(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39278,36 +43175,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.__update___90285); - if (!r0) { step = 1; continue; } - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.__update___90285; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 109; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C153961_VT)) failedCast(r0); + s.tmp_0 = game_BaseDialog_clearInterior__P155667_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1006; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + s.tmp_0 = game_BaseDialog__C153961_v1_1_mk(s); + s.tmp_0.arg0 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, game_BaseDialog__C153961_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.drawTextCore; + s.pc = 2; return s.tmp_0; case 2: - globals.__updated___90287 = (true); + r0 = s.retval; + s.tmp_0 = game_BaseDialog_drawCursorRow__P153977_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1007; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -control___screen_update__P88248.info = {"start":90,"length":102,"line":4,"column":4,"endLine":8,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"update","argumentNames":[]} +game_BaseDialog_update__P153974.info = {"start":1539,"length":121,"line":60,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"update","argumentNames":["this"]} -function control___screen_update__P88248_mk(s) { +function game_BaseDialog_update__P153974_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_update__P88248, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_update__P153974, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + arg0: undefined, } } -function pause__P86887(s) { +function music_Melody_toString__P153091(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39321,22 +43231,18 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - setupResume(s, 1); - pxsim.loops.pause(s.arg0); - checkResumeConsumed(); - return; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = s.arg0; + if (!checkSubtype(r0, music_Melody__C153082_VT)) failedCast(r0); + r0 = s.arg0.fields["_text"]; return leave(s, r0) default: oops() } } } -pause__P86887.info = {"start":246,"length":57,"line":7,"column":0,"endLine":9,"endColumn":1,"fileName":"pxt_modules/base/pause.ts","functionName":"pause","argumentNames":["ms"]} +music_Melody_toString__P153091.info = {"start":9640,"length":53,"line":303,"column":8,"endLine":305,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"toString","argumentNames":["this"]} -function pause__P86887_mk(s) { +function music_Melody_toString__P153091_mk(s) { checkStack(s.depth); return { - parent: s, fn: pause__P86887, depth: s.depth + 1, + parent: s, fn: music_Melody_toString__P153091, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -39345,7 +43251,7 @@ function pause__P86887_mk(s) { -function sprites_SpriteMap_toString__P88587(s) { +function sprites_SpriteMap_toString__P153586(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39360,7 +43266,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C88579_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C153578_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_3 = r0; r0 = s.arg0.fields["buckets"]; @@ -39380,11 +43286,11 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, " buckets, "); s.tmp_1 = r0; - s.tmp_10 = helpers_arrayFilter__P86593_mk(s); + s.tmp_10 = helpers_arrayFilter__P151592_mk(s); r0 = s.arg0.fields["buckets"]; s.tmp_10.arg0 = r0; - s.tmp_10.arg1 = inline__P100149; - s.callLocIdx = 435; s.pc = 2; return s.tmp_10; + s.tmp_10.arg1 = inline__P168513; + s.callLocIdx = 481; s.pc = 2; return s.tmp_10; case 2: r0 = s.retval; s.tmp_9 = r0; @@ -39405,12 +43311,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteMap_toString__P88587.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__P153586.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__P88587_mk(s) { +function sprites_SpriteMap_toString__P153586_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_toString__P88587, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_toString__P153586, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39430,7 +43336,7 @@ function sprites_SpriteMap_toString__P88587_mk(s) { -function inline__P100149(s) { +function inline__P168513(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39454,12 +43360,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P100149.info = {"start":4196,"length":8,"line":113,"column":74,"endLine":113,"endColumn":82,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["b"]} +inline__P168513.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__P100149_mk(s) { +function inline__P168513_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P100149, depth: s.depth + 1, + parent: s, fn: inline__P168513, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39471,7 +43377,7 @@ function inline__P100149_mk(s) { -function ArcadePhysicsEngine_moveSprite__P88672(s) { +function ArcadePhysicsEngine_moveSprite__P153671(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39481,9 +43387,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___100187 = undefined; - s.maxDist___100197 = undefined; - s.ms___100217 = undefined; + s.tm___168551 = undefined; + s.maxDist___168561 = undefined; + s.ms___168581 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -39492,7 +43398,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C88658_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C153657_VT)) failedCast(r0); r0 = s.arg1.fields["_x"]; s.tmp_0 = r0; r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); @@ -39521,19 +43427,19 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - s.tmp_4 = game_currentScene__P89017_mk(s); - s.callLocIdx = 646; s.pc = 16; return s.tmp_4; + s.tmp_4 = game_currentScene__P154016_mk(s); + s.callLocIdx = 694; s.pc = 16; return s.tmp_4; case 16: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___100187 = (r0); - s.tmp_0 = r0 = s.tm___100187; + s.tm___168551 = (r0); + s.tmp_0 = r0 = s.tm___168551; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.tm___100187.fields["_map"]; + r0 = s.tm___168551.fields["_map"]; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; @@ -39559,41 +43465,41 @@ switch (step) { r0 = (s.tmp_8 + 128); s.tmp_9 = r0; r0 = (s.tmp_9 >> 8); - s.maxDist___100197 = (r0); - s.tmp_2 = Math_abs__P86608_mk(s); + s.maxDist___168561 = (r0); + s.tmp_2 = Math_abs__P151607_mk(s); r0 = (s.arg2 + 128); s.tmp_3 = r0; r0 = (s.tmp_3 >> 8); s.tmp_2.arg0 = r0; - s.callLocIdx = 650; s.pc = 17; return s.tmp_2; + s.callLocIdx = 698; s.pc = 17; return s.tmp_2; case 17: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.maxDist___100197); + r0 = (s.tmp_1 <= s.maxDist___168561); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 5; continue; } r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_5 = Math_abs__P86608_mk(s); + s.tmp_5 = Math_abs__P151607_mk(s); r0 = (s.arg3 + 128); s.tmp_6 = r0; r0 = (s.tmp_6 >> 8); s.tmp_5.arg0 = r0; - s.callLocIdx = 652; s.pc = 18; return s.tmp_5; + s.callLocIdx = 700; s.pc = 18; return s.tmp_5; case 18: r0 = s.retval; s.tmp_4 = r0; - r0 = (s.tmp_4 <= s.maxDist___100197); + r0 = (s.tmp_4 <= s.maxDist___168561); case 6: // jmp value (already in r0) s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 7; continue; } - r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C88656_VT); + r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C153655_VT); s.tmp_8 = r0; - s.tmp_9 = MovingSprite_constructor__P88657_mk(s); + s.tmp_9 = MovingSprite_constructor__P153656_mk(s); s.tmp_9.arg0 = s.tmp_8; s.tmp_9.arg1 = s.arg1; r0 = s.arg1.fields["_vx"]; @@ -39604,23 +43510,23 @@ switch (step) { s.tmp_9.arg5 = s.arg3; s.tmp_9.arg6 = s.arg2; s.tmp_9.arg7 = s.arg3; - s.callLocIdx = 653; s.pc = 19; return s.tmp_9; + s.callLocIdx = 701; s.pc = 19; return s.tmp_9; case 19: r0 = s.retval; - s.ms___100217 = (s.tmp_8); - s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P90403_mk(s); + s.ms___168581 = (s.tmp_8); + s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P155567_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ms___100217; - s.tmp_0.arg2 = s.tm___100187; - s.callLocIdx = 654; s.pc = 20; return s.tmp_0; + s.tmp_0.arg1 = s.ms___168581; + s.tmp_0.arg2 = s.tm___168551; + s.callLocIdx = 702; s.pc = 20; return s.tmp_0; case 20: r0 = s.retval; { step = 12; continue; } case 7: - s.tmp_1 = tiles_TileMap_isOnWall__P88823_mk(s); - s.tmp_1.arg0 = s.tm___100187; + s.tmp_1 = tiles_TileMap_isOnWall__P153822_mk(s); + s.tmp_1.arg0 = s.tm___168551; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 655; s.pc = 21; return s.tmp_1; + s.callLocIdx = 703; s.pc = 21; return s.tmp_1; case 21: r0 = s.retval; s.tmp_0 = r0; @@ -39629,11 +43535,11 @@ switch (step) { r0 = s.tmp_0; { step = 9; continue; } case 8: - s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P90405_mk(s); + s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P155569_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = s.arg1; - s.tmp_4.arg2 = s.tm___100187; - s.callLocIdx = 656; s.pc = 22; return s.tmp_4; + s.tmp_4.arg2 = s.tm___168551; + s.callLocIdx = 704; s.pc = 22; return s.tmp_4; case 22: r0 = s.retval; s.tmp_3 = r0; @@ -39668,12 +43574,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_moveSprite__P88672.info = {"start":21785,"length":1276,"line":642,"column":4,"endLine":675,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]} +ArcadePhysicsEngine_moveSprite__P153671.info = {"start":21785,"length":1276,"line":642,"column":4,"endLine":675,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]} -function ArcadePhysicsEngine_moveSprite__P88672_mk(s) { +function ArcadePhysicsEngine_moveSprite__P153671_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_moveSprite__P88672, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_moveSprite__P153671, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39685,9 +43591,9 @@ function ArcadePhysicsEngine_moveSprite__P88672_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - tm___100187: undefined, - maxDist___100197: undefined, - ms___100217: undefined, + tm___168551: undefined, + maxDist___168561: undefined, + ms___168581: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -39698,7 +43604,7 @@ function ArcadePhysicsEngine_moveSprite__P88672_mk(s) { -function ArcadePhysicsEngine_canResolveClipping__P90405(s) { +function ArcadePhysicsEngine_canResolveClipping__P155569(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39708,19 +43614,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___100262 = undefined; - s.sz___100265 = undefined; - s.maxMove___100270 = undefined; - s.origY___100272 = undefined; - s.origX___100275 = undefined; - s.l___100278 = undefined; - s.r___100283 = undefined; - s.t___100288 = undefined; - s.b___100293 = undefined; - s.offset___100298 = undefined; - s.offset___100323 = undefined; - s.offset___100354 = undefined; - s.offset___100379 = undefined; + s.hbox___168626 = undefined; + s.sz___168629 = undefined; + s.maxMove___168634 = undefined; + s.origY___168636 = undefined; + s.origX___168639 = undefined; + s.l___168642 = undefined; + s.r___168647 = undefined; + s.t___168652 = undefined; + s.b___168657 = undefined; + s.offset___168662 = undefined; + s.offset___168687 = undefined; + s.offset___168718 = undefined; + s.offset___168743 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -39728,7 +43634,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C88658_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C153657_VT)) failedCast(r0); r0 = s.arg1.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.isStatic(s.tmp_3); @@ -39739,91 +43645,91 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_4 = Sprite_setHitbox__P88542_mk(s); + s.tmp_4 = Sprite_setHitbox__P153541_mk(s); s.tmp_4.arg0 = s.arg1; - s.callLocIdx = 658; s.pc = 20; return s.tmp_4; + s.callLocIdx = 706; s.pc = 20; return s.tmp_4; case 20: r0 = s.retval; case 1: case 2: r0 = s.arg1.fields["_hitbox"]; - s.hbox___100262 = (r0); + s.hbox___168626 = (r0); r0 = s.arg2.fields["_scale"]; s.tmp_0 = r0; r0 = (1 << s.tmp_0); - s.sz___100265 = (r0); - s.tmp_0 = ArcadePhysicsEngine_maxStep__P88664_mk(s); + s.sz___168629 = (r0); + s.tmp_0 = ArcadePhysicsEngine_maxStep__P153663_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 660; s.pc = 21; return s.tmp_0; + s.callLocIdx = 708; s.pc = 21; return s.tmp_0; case 21: r0 = s.retval; - s.maxMove___100270 = (r0); + s.maxMove___168634 = (r0); r0 = s.arg1.fields["_y"]; - s.origY___100272 = (r0); + s.origY___168636 = (r0); r0 = s.arg1.fields["_x"]; - s.origX___100275 = (r0); - s.tmp_1 = game_Hitbox_left__P88451_mk(s); - s.tmp_1.arg0 = s.hbox___100262; - s.callLocIdx = 661; s.pc = 22; return s.tmp_1; + s.origX___168639 = (r0); + s.tmp_1 = game_Hitbox_left__P153450_mk(s); + s.tmp_1.arg0 = s.hbox___168626; + s.callLocIdx = 709; 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___100278 = (r0); - s.tmp_1 = game_Hitbox_right__P88453_mk(s); - s.tmp_1.arg0 = s.hbox___100262; - s.callLocIdx = 663; s.pc = 23; return s.tmp_1; + s.l___168642 = (r0); + s.tmp_1 = game_Hitbox_right__P153452_mk(s); + s.tmp_1.arg0 = s.hbox___168626; + s.callLocIdx = 711; 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___100283 = (r0); - s.tmp_1 = game_Hitbox_top__P88452_mk(s); - s.tmp_1.arg0 = s.hbox___100262; - s.callLocIdx = 665; s.pc = 24; return s.tmp_1; + s.r___168647 = (r0); + s.tmp_1 = game_Hitbox_top__P153451_mk(s); + s.tmp_1.arg0 = s.hbox___168626; + s.callLocIdx = 713; 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___100288 = (r0); - s.tmp_1 = game_Hitbox_bottom__P88454_mk(s); - s.tmp_1.arg0 = s.hbox___100262; - s.callLocIdx = 667; s.pc = 25; return s.tmp_1; + s.t___168652 = (r0); + s.tmp_1 = game_Hitbox_bottom__P153453_mk(s); + s.tmp_1.arg0 = s.hbox___168626; + s.callLocIdx = 715; 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___100293 = (r0); - r0 = (s.b___100293 + 1); + s.b___168657 = (r0); + r0 = (s.b___168657 + 1); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___100265); - s.offset___100298 = (r0); - r0 = (s.offset___100298 <= s.maxMove___100270); + r0 = (s.tmp_0 % s.sz___168629); + s.offset___168662 = (r0); + r0 = (s.offset___168662 <= s.maxMove___168634); 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___100298 * 256); + r0 = (s.offset___168662 * 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__P88823_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P153822_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 671; s.pc = 26; return s.tmp_3; + s.callLocIdx = 719; s.pc = 26; return s.tmp_3; case 26: r0 = s.retval; s.tmp_2 = r0; @@ -39837,38 +43743,38 @@ switch (step) { { step = 19; continue; } { step = 4; continue; } case 3: - r0 = (s.arg1).fields["_y"] = (s.origY___100272); + r0 = (s.arg1).fields["_y"] = (s.origY___168636); case 4: case 5: case 6: - r0 = (s.t___100288 / s.sz___100265); + r0 = (s.t___168652 / s.sz___168629); 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___100265); + r0 = (s.tmp_1 * s.sz___168629); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.t___100288); - s.offset___100323 = (r0); - r0 = (s.offset___100323 <= s.maxMove___100270); + r0 = (s.tmp_0 - s.t___168652); + s.offset___168687 = (r0); + r0 = (s.offset___168687 <= s.maxMove___168634); 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___100323 * 256); + r0 = (s.offset___168687 * 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__P88823_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P153822_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 674; s.pc = 27; return s.tmp_3; + s.callLocIdx = 722; s.pc = 27; return s.tmp_3; case 27: r0 = s.retval; s.tmp_2 = r0; @@ -39882,32 +43788,32 @@ switch (step) { { step = 19; continue; } { step = 8; continue; } case 7: - r0 = (s.arg1).fields["_y"] = (s.origY___100272); + r0 = (s.arg1).fields["_y"] = (s.origY___168636); case 8: case 9: case 10: - r0 = (s.r___100283 + 1); + r0 = (s.r___168647 + 1); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___100265); - s.offset___100354 = (r0); - r0 = (s.offset___100354 <= s.maxMove___100270); + r0 = (s.tmp_0 % s.sz___168629); + s.offset___168718 = (r0); + r0 = (s.offset___168718 <= s.maxMove___168634); 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___100354 * 256); + r0 = (s.offset___168718 * 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__P88823_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P153822_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 677; s.pc = 28; return s.tmp_3; + s.callLocIdx = 725; s.pc = 28; return s.tmp_3; case 28: r0 = s.retval; s.tmp_2 = r0; @@ -39921,38 +43827,38 @@ switch (step) { { step = 19; continue; } { step = 12; continue; } case 11: - r0 = (s.arg1).fields["_x"] = (s.origX___100275); + r0 = (s.arg1).fields["_x"] = (s.origX___168639); case 12: case 13: case 14: - r0 = (s.l___100278 / s.sz___100265); + r0 = (s.l___168642 / s.sz___168629); 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___100265); + r0 = (s.tmp_1 * s.sz___168629); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.l___100278); - s.offset___100379 = (r0); - r0 = (s.offset___100379 <= s.maxMove___100270); + r0 = (s.tmp_0 - s.l___168642); + s.offset___168743 = (r0); + r0 = (s.offset___168743 <= s.maxMove___168634); 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___100379 * 256); + r0 = (s.offset___168743 * 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__P88823_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P153822_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 680; s.pc = 29; return s.tmp_3; + s.callLocIdx = 728; s.pc = 29; return s.tmp_3; case 29: r0 = s.retval; s.tmp_2 = r0; @@ -39966,7 +43872,7 @@ switch (step) { { step = 19; continue; } { step = 16; continue; } case 15: - r0 = (s.arg1).fields["_x"] = (s.origX___100275); + r0 = (s.arg1).fields["_x"] = (s.origX___168639); case 16: case 17: case 18: @@ -39975,12 +43881,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_canResolveClipping__P90405.info = {"start":23157,"length":2135,"line":678,"column":4,"endLine":749,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"canResolveClipping","argumentNames":["this","s","tm"]} +ArcadePhysicsEngine_canResolveClipping__P155569.info = {"start":23157,"length":2135,"line":678,"column":4,"endLine":749,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"canResolveClipping","argumentNames":["this","s","tm"]} -function ArcadePhysicsEngine_canResolveClipping__P90405_mk(s) { +function ArcadePhysicsEngine_canResolveClipping__P155569_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P90405, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P155569, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39988,19 +43894,19 @@ function ArcadePhysicsEngine_canResolveClipping__P90405_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - hbox___100262: undefined, - sz___100265: undefined, - maxMove___100270: undefined, - origY___100272: undefined, - origX___100275: undefined, - l___100278: undefined, - r___100283: undefined, - t___100288: undefined, - b___100293: undefined, - offset___100298: undefined, - offset___100323: undefined, - offset___100354: undefined, - offset___100379: undefined, + hbox___168626: undefined, + sz___168629: undefined, + maxMove___168634: undefined, + origY___168636: undefined, + origX___168639: undefined, + l___168642: undefined, + r___168647: undefined, + t___168652: undefined, + b___168657: undefined, + offset___168662: undefined, + offset___168687: undefined, + offset___168718: undefined, + offset___168743: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -40010,7 +43916,7 @@ function ArcadePhysicsEngine_canResolveClipping__P90405_mk(s) { -function Sprite_isStatic__P88543(s) { +function Sprite_isStatic__P153542(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40025,19 +43931,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C153500_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__P88543.info = {"start":8266,"length":57,"line":299,"column":4,"endLine":301,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isStatic","argumentNames":["this"]} +Sprite_isStatic__P153542.info = {"start":8266,"length":57,"line":299,"column":4,"endLine":301,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isStatic","argumentNames":["this"]} -function Sprite_isStatic__P88543_mk(s) { +function Sprite_isStatic__P153542_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isStatic__P88543, depth: s.depth + 1, + parent: s, fn: Sprite_isStatic__P153542, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -40047,7 +43953,7 @@ function Sprite_isStatic__P88543_mk(s) { -function game_Hitbox_bottom__P88454(s) { +function game_Hitbox_bottom__P153453(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40062,12 +43968,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C88444_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C153443_VT)) failedCast(r0); r0 = s.arg0.fields["height"]; s.tmp_1 = r0; - s.tmp_3 = game_Hitbox_top__P88452_mk(s); + s.tmp_3 = game_Hitbox_top__P153451_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 214; s.pc = 1; return s.tmp_3; + s.callLocIdx = 255; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -40077,13 +43983,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_bottom__P88454.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__P88454.isGetter = true; +game_Hitbox_bottom__P153453.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__P153453.isGetter = true; -function game_Hitbox_bottom__P88454_mk(s) { +function game_Hitbox_bottom__P153453_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_bottom__P88454, depth: s.depth + 1, + parent: s, fn: game_Hitbox_bottom__P153453, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40096,7 +44002,7 @@ function game_Hitbox_bottom__P88454_mk(s) { -function game_Hitbox_right__P88453(s) { +function game_Hitbox_right__P153452(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40111,12 +44017,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C88444_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C153443_VT)) failedCast(r0); r0 = s.arg0.fields["width"]; s.tmp_1 = r0; - s.tmp_3 = game_Hitbox_left__P88451_mk(s); + s.tmp_3 = game_Hitbox_left__P153450_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 211; s.pc = 1; return s.tmp_3; + s.callLocIdx = 252; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -40126,13 +44032,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_right__P88453.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__P88453.isGetter = true; +game_Hitbox_right__P153452.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__P153452.isGetter = true; -function game_Hitbox_right__P88453_mk(s) { +function game_Hitbox_right__P153452_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_right__P88453, depth: s.depth + 1, + parent: s, fn: game_Hitbox_right__P153452, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40145,7 +44051,7 @@ function game_Hitbox_right__P88453_mk(s) { -function game_Hitbox_top__P88452(s) { +function game_Hitbox_top__P153451(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40160,7 +44066,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C88444_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C153443_VT)) failedCast(r0); r0 = s.arg0.fields["oy"]; s.tmp_0 = r0; r0 = s.arg0.fields["parent"]; @@ -40170,13 +44076,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_top__P88452.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__P88452.isGetter = true; +game_Hitbox_top__P153451.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__P153451.isGetter = true; -function game_Hitbox_top__P88452_mk(s) { +function game_Hitbox_top__P153451_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_top__P88452, depth: s.depth + 1, + parent: s, fn: game_Hitbox_top__P153451, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40187,7 +44093,7 @@ function game_Hitbox_top__P88452_mk(s) { -function game_Hitbox_left__P88451(s) { +function game_Hitbox_left__P153450(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40202,7 +44108,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C88444_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C153443_VT)) failedCast(r0); r0 = s.arg0.fields["ox"]; s.tmp_0 = r0; r0 = s.arg0.fields["parent"]; @@ -40212,13 +44118,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_left__P88451.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__P88451.isGetter = true; +game_Hitbox_left__P153450.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__P153450.isGetter = true; -function game_Hitbox_left__P88451_mk(s) { +function game_Hitbox_left__P153450_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_left__P88451, depth: s.depth + 1, + parent: s, fn: game_Hitbox_left__P153450, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40229,7 +44135,7 @@ function game_Hitbox_left__P88451_mk(s) { -function ArcadePhysicsEngine_tilemapCollisions__P90403(s) { +function ArcadePhysicsEngine_tilemapCollisions__P155567(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40239,38 +44145,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___100530 = undefined; - s.hbox___100553 = undefined; - s.tileScale___100556 = undefined; - s.tileSize___100559 = undefined; - s.xDiff___100563 = undefined; - s.yDiff___100570 = undefined; - s.overlappedTiles___100577 = undefined; - s.right___100582 = undefined; - s.x0___100586 = undefined; - s.collidedTiles___100601 = undefined; - s.y___100603 = undefined; - s.y0___100617 = undefined; - s.obstacle___100633 = undefined; - s.collisionDirection___100667 = undefined; - s.tile___100693 = undefined; - s.unnamed388___U15 = undefined; - s.unnamed389___U16 = undefined; - s.down___100771 = undefined; - s.y0___100775 = undefined; - s.collidedTiles___100790 = undefined; - s.overlappedTiles___100792 = undefined; - s.x___100794 = undefined; - s.x0___100804 = undefined; - s.obstacle___100818 = undefined; - s.collisionDirection___100852 = undefined; - s.tile___100878 = undefined; - s.unnamed390___U26 = undefined; - s.unnamed391___U27 = undefined; - s.x___100953 = undefined; - s.x0___100963 = undefined; - s.y___100973 = undefined; - s.y0___100983 = undefined; + s.s___168894 = undefined; + s.hbox___168917 = undefined; + s.tileScale___168920 = undefined; + s.tileSize___168923 = undefined; + s.xDiff___168927 = undefined; + s.yDiff___168934 = undefined; + s.overlappedTiles___168941 = undefined; + s.right___168946 = undefined; + s.x0___168950 = undefined; + s.collidedTiles___168965 = undefined; + s.y___168967 = undefined; + s.y0___168981 = undefined; + s.obstacle___168997 = undefined; + s.collisionDirection___169031 = undefined; + s.tile___169057 = undefined; + s.unnamed1490___U15 = undefined; + s.unnamed1491___U16 = undefined; + s.down___169135 = undefined; + s.y0___169139 = undefined; + s.collidedTiles___169154 = undefined; + s.overlappedTiles___169156 = undefined; + s.x___169158 = undefined; + s.x0___169168 = undefined; + s.obstacle___169182 = undefined; + s.collisionDirection___169216 = undefined; + s.tile___169242 = undefined; + s.unnamed1492___U26 = undefined; + s.unnamed1493___U27 = undefined; + s.x___169317 = undefined; + s.x0___169327 = undefined; + s.y___169337 = undefined; + s.y0___169347 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -40278,19 +44184,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C88658_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C153657_VT)) failedCast(r0); r0 = s.arg1.fields["sprite"]; - s.s___100530 = (r0); - r0 = s.s___100530.fields["flags"]; + s.s___168894 = (r0); + r0 = s.s___168894.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 256); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_3 = tiles_TileMap_isOnWall__P88823_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P153822_mk(s); s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.s___100530; - s.callLocIdx = 539; s.pc = 84; return s.tmp_3; + s.tmp_3.arg1 = s.s___168894; + s.callLocIdx = 587; s.pc = 84; return s.tmp_3; case 84: r0 = s.retval; s.tmp_2 = r0; @@ -40299,7 +44205,7 @@ switch (step) { { step = 83; continue; } { step = 2; continue; } case 1: - s.tmp_4 = r0 = s.s___100530; + s.tmp_4 = r0 = s.s___168894; r0 = s.tmp_4.fields["flags"]; s.tmp_6 = r0; r0 = (s.tmp_6 & -257); @@ -40308,7 +44214,7 @@ switch (step) { case 2: case 3: case 4: - r0 = s.s___100530.fields["_image"]; + r0 = s.s___168894.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.isStatic(s.tmp_3); s.tmp_2 = r0; @@ -40318,53 +44224,53 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_4 = Sprite_setHitbox__P88542_mk(s); - s.tmp_4.arg0 = s.s___100530; - s.callLocIdx = 541; s.pc = 85; return s.tmp_4; + s.tmp_4 = Sprite_setHitbox__P153541_mk(s); + s.tmp_4.arg0 = s.s___168894; + s.callLocIdx = 589; s.pc = 85; return s.tmp_4; case 85: r0 = s.retval; case 5: case 6: - r0 = s.s___100530.fields["_hitbox"]; - s.hbox___100553 = (r0); + r0 = s.s___168894.fields["_hitbox"]; + s.hbox___168917 = (r0); r0 = s.arg2.fields["_scale"]; - s.tileScale___100556 = (r0); - r0 = (1 << s.tileScale___100556); - s.tileSize___100559 = (r0); - r0 = s.s___100530.fields["_x"]; + s.tileScale___168920 = (r0); + r0 = (1 << s.tileScale___168920); + s.tileSize___168923 = (r0); + r0 = s.s___168894.fields["_x"]; s.tmp_0 = r0; - r0 = s.s___100530.fields["_lastX"]; + r0 = s.s___168894.fields["_lastX"]; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.xDiff___100563 = (r0); - r0 = s.s___100530.fields["_y"]; + s.xDiff___168927 = (r0); + r0 = s.s___168894.fields["_y"]; s.tmp_0 = r0; - r0 = s.s___100530.fields["_lastY"]; + r0 = s.s___168894.fields["_lastY"]; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.yDiff___100570 = (r0); + s.yDiff___168934 = (r0); r0 = pxsim_Array__mk(); - s.overlappedTiles___100577 = (r0); - r0 = (s.xDiff___100563 !== 0); + s.overlappedTiles___168941 = (r0); + r0 = (s.xDiff___168927 !== 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 39; continue; } - r0 = (s.xDiff___100563 > 0); - s.right___100582 = (r0); - r0 = pxsim_numops_toBoolDecr(s.right___100582); + r0 = (s.xDiff___168927 > 0); + s.right___168946 = (r0); + r0 = pxsim_numops_toBoolDecr(s.right___168946); if (!r0) { step = 7; continue; } - s.tmp_1 = game_Hitbox_right__P88453_mk(s); - s.tmp_1.arg0 = s.hbox___100553; - s.callLocIdx = 545; s.pc = 86; return s.tmp_1; + s.tmp_1 = game_Hitbox_right__P153452_mk(s); + s.tmp_1.arg0 = s.hbox___168917; + s.callLocIdx = 593; s.pc = 86; return s.tmp_1; case 86: r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 + 256); { step = 8; continue; } case 7: - s.tmp_3 = game_Hitbox_left__P88451_mk(s); - s.tmp_3.arg0 = s.hbox___100553; - s.callLocIdx = 547; s.pc = 87; return s.tmp_3; + s.tmp_3 = game_Hitbox_left__P153450_mk(s); + s.tmp_3.arg0 = s.hbox___168917; + s.callLocIdx = 595; s.pc = 87; return s.tmp_3; case 87: r0 = s.retval; s.tmp_2 = r0; @@ -40374,30 +44280,30 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 128); s.tmp_5 = r0; - r0 = (s.tileScale___100556 + 8); + r0 = (s.tileScale___168920 + 8); s.tmp_6 = r0; r0 = (s.tmp_5 >> s.tmp_6); - s.x0___100586 = (r0); + s.x0___168950 = (r0); r0 = pxsim_Array__mk(); - s.collidedTiles___100601 = (r0); - s.tmp_1 = game_Hitbox_top__P88452_mk(s); - s.tmp_1.arg0 = s.hbox___100553; - s.callLocIdx = 551; s.pc = 88; return s.tmp_1; + s.collidedTiles___168965 = (r0); + s.tmp_1 = game_Hitbox_top__P153451_mk(s); + s.tmp_1.arg0 = s.hbox___168917; + s.callLocIdx = 599; s.pc = 88; return s.tmp_1; case 88: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.yDiff___100570); - s.y___100603 = (r0); + r0 = (s.tmp_0 - s.yDiff___168934); + s.y___168967 = (r0); case 9: - s.tmp_1 = r0 = s.y___100603; - s.tmp_3 = r0 = s.tileSize___100559; - s.tmp_6 = game_Hitbox_bottom__P88454_mk(s); - s.tmp_6.arg0 = s.hbox___100553; - s.callLocIdx = 553; s.pc = 89; return s.tmp_6; + s.tmp_1 = r0 = s.y___168967; + s.tmp_3 = r0 = s.tileSize___168923; + s.tmp_6 = game_Hitbox_bottom__P153453_mk(s); + s.tmp_6.arg0 = s.hbox___168917; + s.callLocIdx = 601; s.pc = 89; return s.tmp_6; case 89: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.yDiff___100570); + r0 = (s.tmp_5 - s.yDiff___168934); s.tmp_4 = r0; r0 = (s.tmp_3 << 8); s.tmp_7 = r0; @@ -40407,51 +44313,51 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - s.tmp_10 = Fx_min__P86646_mk(s); - s.tmp_10.arg0 = s.y___100603; - s.tmp_12 = game_Hitbox_bottom__P88454_mk(s); - s.tmp_12.arg0 = s.hbox___100553; - s.callLocIdx = 556; s.pc = 91; return s.tmp_12; + s.tmp_10 = Fx_min__P151645_mk(s); + s.tmp_10.arg0 = s.y___168967; + s.tmp_12 = game_Hitbox_bottom__P153453_mk(s); + s.tmp_12.arg0 = s.hbox___168917; + s.callLocIdx = 604; s.pc = 91; return s.tmp_12; case 91: r0 = s.retval; s.tmp_11 = r0; - r0 = (s.tmp_11 - s.yDiff___100570); + r0 = (s.tmp_11 - s.yDiff___168934); s.tmp_10.arg1 = r0; - s.callLocIdx = 558; s.pc = 90; return s.tmp_10; + s.callLocIdx = 606; s.pc = 90; return s.tmp_10; case 90: r0 = s.retval; s.tmp_9 = r0; r0 = (s.tmp_9 + 128); s.tmp_8 = r0; - r0 = (s.tileScale___100556 + 8); + r0 = (s.tileScale___168920 + 8); s.tmp_13 = r0; r0 = (s.tmp_8 >> s.tmp_13); - s.y0___100617 = (r0); - s.tmp_1 = tiles_TileMap_isObstacle__P88821_mk(s); + s.y0___168981 = (r0); + s.tmp_1 = tiles_TileMap_isObstacle__P153820_mk(s); s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___100586; - s.tmp_1.arg2 = s.y0___100617; - s.callLocIdx = 561; s.pc = 92; return s.tmp_1; + s.tmp_1.arg1 = s.x0___168950; + s.tmp_1.arg2 = s.y0___168981; + s.callLocIdx = 609; s.pc = 92; return s.tmp_1; case 92: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 12; continue; } - s.tmp_2 = tiles_TileMap_getObstacle__P88822_mk(s); + s.tmp_2 = tiles_TileMap_getObstacle__P153821_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___100586; - s.tmp_2.arg2 = s.y0___100617; - s.callLocIdx = 562; s.pc = 93; return s.tmp_2; + s.tmp_2.arg1 = s.x0___168950; + s.tmp_2.arg2 = s.y0___168981; + s.callLocIdx = 610; s.pc = 93; return s.tmp_2; case 93: r0 = s.retval; - s.obstacle___100633 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P100641); + s.obstacle___168997 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P169005); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___100633); - s.tmp_4 = helpers_arraySome__P86590_mk(s); - s.tmp_4.arg0 = s.collidedTiles___100601; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___168997); + s.tmp_4 = helpers_arraySome__P151589_mk(s); + s.tmp_4.arg0 = s.collidedTiles___168965; s.tmp_4.arg1 = s.tmp_0; - s.callLocIdx = 563; s.pc = 94; return s.tmp_4; + s.callLocIdx = 611; s.pc = 94; return s.tmp_4; case 94: r0 = s.retval; s.tmp_3 = r0; @@ -40461,33 +44367,33 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 10; continue; } - r0 = pxsim_Array__push(s.collidedTiles___100601, s.obstacle___100633); + r0 = pxsim_Array__push(s.collidedTiles___168965, s.obstacle___168997); case 10: case 11: { step = 13; continue; } case 12: - s.tmp_0 = r0 = s.overlappedTiles___100577; - s.tmp_2 = tiles_TileMap_getTile__P88814_mk(s); + s.tmp_0 = r0 = s.overlappedTiles___168941; + s.tmp_2 = tiles_TileMap_getTile__P153813_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___100586; - s.tmp_2.arg2 = s.y0___100617; - s.callLocIdx = 564; s.pc = 95; return s.tmp_2; + s.tmp_2.arg1 = s.x0___168950; + s.tmp_2.arg2 = s.y0___168981; + s.callLocIdx = 612; s.pc = 95; return s.tmp_2; case 95: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); case 13: - r0 = (s.tileSize___100559 << 8); + r0 = (s.tileSize___168923 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.y___100603); - s.y___100603 = (r0); + r0 = (s.tmp_0 + s.y___168967); + s.y___168967 = (r0); { step = 9; continue; } case 14: - r0 = pxsim_Array__length(s.collidedTiles___100601); + r0 = pxsim_Array__length(s.collidedTiles___168965); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 37; continue; } - r0 = pxsim_numops_toBoolDecr(s.right___100582); + r0 = pxsim_numops_toBoolDecr(s.right___168946); if (!r0) { step = 15; continue; } r0 = 2; { step = 16; continue; } @@ -40496,23 +44402,23 @@ switch (step) { case 16: // jmp value (already in r0) s.tmp_1 = r0; - s.collisionDirection___100667 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.right___100582); + s.collisionDirection___169031 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.right___168946); if (!r0) { step = 17; continue; } - r0 = (s.x0___100586 << s.tileScale___100556); + r0 = (s.x0___168950 << s.tileScale___168920); 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___100553.fields["width"]; + r0 = s.hbox___168917.fields["width"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); { step = 18; continue; } case 17: - r0 = (s.x0___100586 + 1); + r0 = (s.x0___168950 + 1); s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___100556); + r0 = (s.tmp_5 << s.tileScale___168920); s.tmp_4 = r0; r0 = (s.tmp_4 * 256); s.tmp_6 = r0; @@ -40520,52 +44426,52 @@ switch (step) { case 18: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.s___100530; - r0 = s.hbox___100553.fields["ox"]; + s.tmp_8 = r0 = s.s___168894; + r0 = s.hbox___168917.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___100693 = (undefined); - s.unnamed388___U15 = (s.collidedTiles___100601); - s.unnamed389___U16 = (0); + s.tile___169057 = (undefined); + s.unnamed1490___U15 = (s.collidedTiles___168965); + s.unnamed1491___U16 = (0); case 19: - s.tmp_0 = r0 = s.unnamed389___U16; - r0 = pxsim_Array__length(s.unnamed388___U15); + s.tmp_0 = r0 = s.unnamed1491___U16; + r0 = pxsim_Array__length(s.unnamed1490___U15); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 20; continue; } - r0 = pxsim_Array__getAt(s.unnamed388___U15, s.unnamed389___U16); - s.tile___100693 = (r0); - s.tmp_2 = Sprite_registerObstacle__P88570_mk(s); - s.tmp_2.arg0 = s.s___100530; - s.tmp_2.arg1 = s.collisionDirection___100667; - s.tmp_2.arg2 = s.tile___100693; + r0 = pxsim_Array__getAt(s.unnamed1490___U15, s.unnamed1491___U16); + s.tile___169057 = (r0); + s.tmp_2 = Sprite_registerObstacle__P153569_mk(s); + s.tmp_2.arg0 = s.s___168894; + s.tmp_2.arg1 = s.collisionDirection___169031; + s.tmp_2.arg2 = s.tile___169057; s.tmp_2.arg3 = s.arg2; - s.callLocIdx = 570; s.pc = 96; return s.tmp_2; + s.callLocIdx = 618; s.pc = 96; return s.tmp_2; case 96: r0 = s.retval; - r0 = (s.unnamed389___U16 + 1); - s.unnamed389___U16 = (r0); + r0 = (s.unnamed1491___U16 + 1); + s.unnamed1491___U16 = (r0); { step = 19; continue; } case 20: - s.unnamed388___U15 = (undefined); - r0 = s.s___100530.fields["flags"]; + s.unnamed1490___U15 = (undefined); + r0 = s.s___168894.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__P88572_mk(s); - s.tmp_2.arg0 = s.s___100530; + s.tmp_2 = Sprite_destroy__P153571_mk(s); + s.tmp_2.arg0 = s.s___168894; s.tmp_2.arg1 = undefined; s.tmp_2.arg2 = undefined; - s.callLocIdx = 571; s.pc = 97; return s.tmp_2; + s.callLocIdx = 619; s.pc = 97; return s.tmp_2; case 97: r0 = s.retval; { step = 36; continue; } case 21: - r0 = s.s___100530.fields["_vx"]; + r0 = s.s___168894.fields["_vx"]; s.tmp_1 = r0; r0 = s.arg1.fields["cachedVx"]; s.tmp_2 = r0; @@ -40573,13 +44479,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 32; continue; } - r0 = s.s___100530.fields["flags"]; + r0 = s.s___168894.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___100582); + r0 = pxsim_numops_toBoolDecr(s.right___168946); s.tmp_6 = r0; r0 = pxsim_Boolean__bang(s.tmp_6); s.tmp_5 = r0; @@ -40588,9 +44494,9 @@ switch (step) { r0 = s.tmp_5; { step = 23; continue; } case 22: - s.tmp_8 = Sprite_vx__P88514_mk(s); - s.tmp_8.arg0 = s.s___100530; - s.callLocIdx = 572; s.pc = 98; return s.tmp_8; + s.tmp_8 = Sprite_vx__P153513_mk(s); + s.tmp_8.arg0 = s.s___168894; + s.callLocIdx = 620; s.pc = 98; return s.tmp_8; case 98: r0 = s.retval; s.tmp_7 = r0; @@ -40603,15 +44509,15 @@ switch (step) { r0 = s.tmp_9; { step = 27; continue; } case 24: - s.tmp_10 = r0 = s.right___100582; + s.tmp_10 = r0 = s.right___168946; r0 = pxsim_numops_toBool(s.tmp_10); if (r0) { step = 25; continue; } r0 = s.tmp_10; { step = 26; continue; } case 25: - s.tmp_12 = Sprite_vx__P88514_mk(s); - s.tmp_12.arg0 = s.s___100530; - s.callLocIdx = 573; s.pc = 99; return s.tmp_12; + s.tmp_12 = Sprite_vx__P153513_mk(s); + s.tmp_12.arg0 = s.s___168894; + s.callLocIdx = 621; s.pc = 99; return s.tmp_12; case 99: r0 = s.retval; s.tmp_11 = r0; @@ -40625,8 +44531,8 @@ switch (step) { s.tmp_14 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_14); if (!r0) { step = 28; continue; } - s.tmp_15 = r0 = s.s___100530; - r0 = s.s___100530.fields["_vx"]; + s.tmp_15 = r0 = s.s___168894; + r0 = s.s___168894.fields["_vx"]; s.tmp_17 = r0; r0 = (0 - s.tmp_17); s.tmp_16 = r0; @@ -40648,29 +44554,29 @@ switch (step) { { step = 31; continue; } case 30: r0 = (s.arg1).fields["dx"] = (0); - r0 = (s.s___100530).fields["_vx"] = (0); + r0 = (s.s___168894).fields["_vx"] = (0); case 31: { step = 35; continue; } case 32: - s.tmp_2 = Math_sign__P86609_mk(s); - r0 = s.s___100530.fields["_vx"]; + s.tmp_2 = Math_sign__P151608_mk(s); + r0 = s.s___168894.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 = 578; s.pc = 100; return s.tmp_2; + s.callLocIdx = 626; s.pc = 100; return s.tmp_2; case 100: r0 = s.retval; s.tmp_1 = r0; - s.tmp_6 = Math_sign__P86609_mk(s); + s.tmp_6 = Math_sign__P151608_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 = 580; s.pc = 101; return s.tmp_6; + s.callLocIdx = 628; s.pc = 101; return s.tmp_6; case 101: r0 = s.retval; s.tmp_5 = r0; @@ -40687,26 +44593,26 @@ switch (step) { case 38: case 39: case 40: - r0 = (s.yDiff___100570 !== 0); + r0 = (s.yDiff___168934 !== 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 73; continue; } - r0 = (s.yDiff___100570 > 0); - s.down___100771 = (r0); - r0 = pxsim_numops_toBoolDecr(s.down___100771); + r0 = (s.yDiff___168934 > 0); + s.down___169135 = (r0); + r0 = pxsim_numops_toBoolDecr(s.down___169135); if (!r0) { step = 41; continue; } - s.tmp_1 = game_Hitbox_bottom__P88454_mk(s); - s.tmp_1.arg0 = s.hbox___100553; - s.callLocIdx = 581; s.pc = 102; return s.tmp_1; + s.tmp_1 = game_Hitbox_bottom__P153453_mk(s); + s.tmp_1.arg0 = s.hbox___168917; + s.callLocIdx = 629; s.pc = 102; return s.tmp_1; case 102: r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 + 256); { step = 42; continue; } case 41: - s.tmp_3 = game_Hitbox_top__P88452_mk(s); - s.tmp_3.arg0 = s.hbox___100553; - s.callLocIdx = 583; s.pc = 103; return s.tmp_3; + s.tmp_3 = game_Hitbox_top__P153451_mk(s); + s.tmp_3.arg0 = s.hbox___168917; + s.callLocIdx = 631; s.pc = 103; return s.tmp_3; case 103: r0 = s.retval; s.tmp_2 = r0; @@ -40716,26 +44622,26 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 128); s.tmp_5 = r0; - r0 = (s.tileScale___100556 + 8); + r0 = (s.tileScale___168920 + 8); s.tmp_6 = r0; r0 = (s.tmp_5 >> s.tmp_6); - s.y0___100775 = (r0); + s.y0___169139 = (r0); r0 = pxsim_Array__mk(); - s.collidedTiles___100790 = (r0); + s.collidedTiles___169154 = (r0); r0 = pxsim_Array__mk(); - s.overlappedTiles___100792 = (r0); - s.tmp_0 = game_Hitbox_left__P88451_mk(s); - s.tmp_0.arg0 = s.hbox___100553; - s.callLocIdx = 587; s.pc = 104; return s.tmp_0; + s.overlappedTiles___169156 = (r0); + s.tmp_0 = game_Hitbox_left__P153450_mk(s); + s.tmp_0.arg0 = s.hbox___168917; + s.callLocIdx = 635; s.pc = 104; return s.tmp_0; case 104: r0 = s.retval; - s.x___100794 = (r0); + s.x___169158 = (r0); case 43: - s.tmp_1 = r0 = s.x___100794; - s.tmp_3 = r0 = s.tileSize___100559; - s.tmp_5 = game_Hitbox_right__P88453_mk(s); - s.tmp_5.arg0 = s.hbox___100553; - s.callLocIdx = 588; s.pc = 105; return s.tmp_5; + s.tmp_1 = r0 = s.x___169158; + s.tmp_3 = r0 = s.tileSize___168923; + s.tmp_5 = game_Hitbox_right__P153452_mk(s); + s.tmp_5.arg0 = s.hbox___168917; + s.callLocIdx = 636; s.pc = 105; return s.tmp_5; case 105: r0 = s.retval; s.tmp_4 = r0; @@ -40747,49 +44653,49 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 48; continue; } - s.tmp_9 = Fx_min__P86646_mk(s); - s.tmp_9.arg0 = s.x___100794; - s.tmp_10 = game_Hitbox_right__P88453_mk(s); - s.tmp_10.arg0 = s.hbox___100553; - s.callLocIdx = 590; s.pc = 107; return s.tmp_10; + s.tmp_9 = Fx_min__P151645_mk(s); + s.tmp_9.arg0 = s.x___169158; + s.tmp_10 = game_Hitbox_right__P153452_mk(s); + s.tmp_10.arg0 = s.hbox___168917; + s.callLocIdx = 638; s.pc = 107; return s.tmp_10; case 107: r0 = s.retval; s.tmp_9.arg1 = r0; - s.callLocIdx = 591; s.pc = 106; return s.tmp_9; + s.callLocIdx = 639; s.pc = 106; return s.tmp_9; case 106: r0 = s.retval; s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___100556 + 8); + r0 = (s.tileScale___168920 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.x0___100804 = (r0); - s.tmp_1 = tiles_TileMap_isObstacle__P88821_mk(s); + s.x0___169168 = (r0); + s.tmp_1 = tiles_TileMap_isObstacle__P153820_mk(s); s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___100804; - s.tmp_1.arg2 = s.y0___100775; - s.callLocIdx = 594; s.pc = 108; return s.tmp_1; + s.tmp_1.arg1 = s.x0___169168; + s.tmp_1.arg2 = s.y0___169139; + s.callLocIdx = 642; s.pc = 108; return s.tmp_1; case 108: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 46; continue; } - s.tmp_2 = tiles_TileMap_getObstacle__P88822_mk(s); + s.tmp_2 = tiles_TileMap_getObstacle__P153821_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___100804; - s.tmp_2.arg2 = s.y0___100775; - s.callLocIdx = 595; s.pc = 109; return s.tmp_2; + s.tmp_2.arg1 = s.x0___169168; + s.tmp_2.arg2 = s.y0___169139; + s.callLocIdx = 643; s.pc = 109; return s.tmp_2; case 109: r0 = s.retval; - s.obstacle___100818 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P100826); + s.obstacle___169182 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P169190); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___100818); - s.tmp_4 = helpers_arraySome__P86590_mk(s); - s.tmp_4.arg0 = s.collidedTiles___100790; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___169182); + s.tmp_4 = helpers_arraySome__P151589_mk(s); + s.tmp_4.arg0 = s.collidedTiles___169154; s.tmp_4.arg1 = s.tmp_0; - s.callLocIdx = 596; s.pc = 110; return s.tmp_4; + s.callLocIdx = 644; s.pc = 110; return s.tmp_4; case 110: r0 = s.retval; s.tmp_3 = r0; @@ -40799,33 +44705,33 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 44; continue; } - r0 = pxsim_Array__push(s.collidedTiles___100790, s.obstacle___100818); + r0 = pxsim_Array__push(s.collidedTiles___169154, s.obstacle___169182); case 44: case 45: { step = 47; continue; } case 46: - s.tmp_0 = r0 = s.overlappedTiles___100792; - s.tmp_2 = tiles_TileMap_getTile__P88814_mk(s); + s.tmp_0 = r0 = s.overlappedTiles___169156; + s.tmp_2 = tiles_TileMap_getTile__P153813_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___100804; - s.tmp_2.arg2 = s.y0___100775; - s.callLocIdx = 597; s.pc = 111; return s.tmp_2; + s.tmp_2.arg1 = s.x0___169168; + s.tmp_2.arg2 = s.y0___169139; + s.callLocIdx = 645; s.pc = 111; return s.tmp_2; case 111: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); case 47: - r0 = (s.tileSize___100559 << 8); + r0 = (s.tileSize___168923 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.x___100794); - s.x___100794 = (r0); + r0 = (s.tmp_0 + s.x___169158); + s.x___169158 = (r0); { step = 43; continue; } case 48: - r0 = pxsim_Array__length(s.collidedTiles___100790); + r0 = pxsim_Array__length(s.collidedTiles___169154); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 71; continue; } - r0 = pxsim_numops_toBoolDecr(s.down___100771); + r0 = pxsim_numops_toBoolDecr(s.down___169135); if (!r0) { step = 49; continue; } r0 = 3; { step = 50; continue; } @@ -40834,23 +44740,23 @@ switch (step) { case 50: // jmp value (already in r0) s.tmp_1 = r0; - s.collisionDirection___100852 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.down___100771); + s.collisionDirection___169216 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.down___169135); if (!r0) { step = 51; continue; } - r0 = (s.y0___100775 << s.tileScale___100556); + r0 = (s.y0___169139 << s.tileScale___168920); 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___100553.fields["height"]; + r0 = s.hbox___168917.fields["height"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); { step = 52; continue; } case 51: - r0 = (s.y0___100775 + 1); + r0 = (s.y0___169139 + 1); s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___100556); + r0 = (s.tmp_5 << s.tileScale___168920); s.tmp_4 = r0; r0 = (s.tmp_4 * 256); s.tmp_6 = r0; @@ -40858,52 +44764,52 @@ switch (step) { case 52: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.s___100530; - r0 = s.hbox___100553.fields["oy"]; + s.tmp_8 = r0 = s.s___168894; + r0 = s.hbox___168917.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___100878 = (undefined); - s.unnamed390___U26 = (s.collidedTiles___100790); - s.unnamed391___U27 = (0); + s.tile___169242 = (undefined); + s.unnamed1492___U26 = (s.collidedTiles___169154); + s.unnamed1493___U27 = (0); case 53: - s.tmp_0 = r0 = s.unnamed391___U27; - r0 = pxsim_Array__length(s.unnamed390___U26); + s.tmp_0 = r0 = s.unnamed1493___U27; + r0 = pxsim_Array__length(s.unnamed1492___U26); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 54; continue; } - r0 = pxsim_Array__getAt(s.unnamed390___U26, s.unnamed391___U27); - s.tile___100878 = (r0); - s.tmp_2 = Sprite_registerObstacle__P88570_mk(s); - s.tmp_2.arg0 = s.s___100530; - s.tmp_2.arg1 = s.collisionDirection___100852; - s.tmp_2.arg2 = s.tile___100878; + r0 = pxsim_Array__getAt(s.unnamed1492___U26, s.unnamed1493___U27); + s.tile___169242 = (r0); + s.tmp_2 = Sprite_registerObstacle__P153569_mk(s); + s.tmp_2.arg0 = s.s___168894; + s.tmp_2.arg1 = s.collisionDirection___169216; + s.tmp_2.arg2 = s.tile___169242; s.tmp_2.arg3 = s.arg2; - s.callLocIdx = 603; s.pc = 112; return s.tmp_2; + s.callLocIdx = 651; s.pc = 112; return s.tmp_2; case 112: r0 = s.retval; - r0 = (s.unnamed391___U27 + 1); - s.unnamed391___U27 = (r0); + r0 = (s.unnamed1493___U27 + 1); + s.unnamed1493___U27 = (r0); { step = 53; continue; } case 54: - s.unnamed390___U26 = (undefined); - r0 = s.s___100530.fields["flags"]; + s.unnamed1492___U26 = (undefined); + r0 = s.s___168894.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__P88572_mk(s); - s.tmp_2.arg0 = s.s___100530; + s.tmp_2 = Sprite_destroy__P153571_mk(s); + s.tmp_2.arg0 = s.s___168894; s.tmp_2.arg1 = undefined; s.tmp_2.arg2 = undefined; - s.callLocIdx = 604; s.pc = 113; return s.tmp_2; + s.callLocIdx = 652; s.pc = 113; return s.tmp_2; case 113: r0 = s.retval; { step = 70; continue; } case 55: - r0 = s.s___100530.fields["_vy"]; + r0 = s.s___168894.fields["_vy"]; s.tmp_1 = r0; r0 = s.arg1.fields["cachedVy"]; s.tmp_2 = r0; @@ -40911,13 +44817,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 66; continue; } - r0 = s.s___100530.fields["flags"]; + r0 = s.s___168894.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___100771); + r0 = pxsim_numops_toBoolDecr(s.down___169135); s.tmp_6 = r0; r0 = pxsim_Boolean__bang(s.tmp_6); s.tmp_5 = r0; @@ -40926,9 +44832,9 @@ switch (step) { r0 = s.tmp_5; { step = 57; continue; } case 56: - s.tmp_8 = Sprite_vy__P88516_mk(s); - s.tmp_8.arg0 = s.s___100530; - s.callLocIdx = 605; s.pc = 114; return s.tmp_8; + s.tmp_8 = Sprite_vy__P153515_mk(s); + s.tmp_8.arg0 = s.s___168894; + s.callLocIdx = 653; s.pc = 114; return s.tmp_8; case 114: r0 = s.retval; s.tmp_7 = r0; @@ -40941,15 +44847,15 @@ switch (step) { r0 = s.tmp_9; { step = 61; continue; } case 58: - s.tmp_10 = r0 = s.down___100771; + s.tmp_10 = r0 = s.down___169135; r0 = pxsim_numops_toBool(s.tmp_10); if (r0) { step = 59; continue; } r0 = s.tmp_10; { step = 60; continue; } case 59: - s.tmp_12 = Sprite_vy__P88516_mk(s); - s.tmp_12.arg0 = s.s___100530; - s.callLocIdx = 606; s.pc = 115; return s.tmp_12; + s.tmp_12 = Sprite_vy__P153515_mk(s); + s.tmp_12.arg0 = s.s___168894; + s.callLocIdx = 654; s.pc = 115; return s.tmp_12; case 115: r0 = s.retval; s.tmp_11 = r0; @@ -40963,8 +44869,8 @@ switch (step) { s.tmp_14 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_14); if (!r0) { step = 62; continue; } - s.tmp_15 = r0 = s.s___100530; - r0 = s.s___100530.fields["_vy"]; + s.tmp_15 = r0 = s.s___168894; + r0 = s.s___168894.fields["_vy"]; s.tmp_17 = r0; r0 = (0 - s.tmp_17); s.tmp_16 = r0; @@ -40986,29 +44892,29 @@ switch (step) { { step = 65; continue; } case 64: r0 = (s.arg1).fields["dy"] = (0); - r0 = (s.s___100530).fields["_vy"] = (0); + r0 = (s.s___168894).fields["_vy"] = (0); case 65: { step = 69; continue; } case 66: - s.tmp_2 = Math_sign__P86609_mk(s); - r0 = s.s___100530.fields["_vy"]; + s.tmp_2 = Math_sign__P151608_mk(s); + r0 = s.s___168894.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 = 611; s.pc = 116; return s.tmp_2; + s.callLocIdx = 659; s.pc = 116; return s.tmp_2; case 116: r0 = s.retval; s.tmp_1 = r0; - s.tmp_6 = Math_sign__P86609_mk(s); + s.tmp_6 = Math_sign__P151608_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 = 613; s.pc = 117; return s.tmp_6; + s.callLocIdx = 661; s.pc = 117; return s.tmp_6; case 117: r0 = s.retval; s.tmp_5 = r0; @@ -41025,18 +44931,18 @@ switch (step) { case 72: case 73: case 74: - s.tmp_0 = game_Hitbox_left__P88451_mk(s); - s.tmp_0.arg0 = s.hbox___100553; - s.callLocIdx = 614; s.pc = 118; return s.tmp_0; + s.tmp_0 = game_Hitbox_left__P153450_mk(s); + s.tmp_0.arg0 = s.hbox___168917; + s.callLocIdx = 662; s.pc = 118; return s.tmp_0; case 118: r0 = s.retval; - s.x___100953 = (r0); + s.x___169317 = (r0); case 75: - s.tmp_1 = r0 = s.x___100953; - s.tmp_3 = r0 = s.tileSize___100559; - s.tmp_5 = game_Hitbox_right__P88453_mk(s); - s.tmp_5.arg0 = s.hbox___100553; - s.callLocIdx = 615; s.pc = 119; return s.tmp_5; + s.tmp_1 = r0 = s.x___169317; + s.tmp_3 = r0 = s.tileSize___168923; + s.tmp_5 = game_Hitbox_right__P153452_mk(s); + s.tmp_5.arg0 = s.hbox___168917; + s.callLocIdx = 663; s.pc = 119; return s.tmp_5; case 119: r0 = s.retval; s.tmp_4 = r0; @@ -41048,36 +44954,36 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 80; continue; } - s.tmp_9 = Fx_min__P86646_mk(s); - s.tmp_9.arg0 = s.x___100953; - s.tmp_10 = game_Hitbox_right__P88453_mk(s); - s.tmp_10.arg0 = s.hbox___100553; - s.callLocIdx = 617; s.pc = 121; return s.tmp_10; + s.tmp_9 = Fx_min__P151645_mk(s); + s.tmp_9.arg0 = s.x___169317; + s.tmp_10 = game_Hitbox_right__P153452_mk(s); + s.tmp_10.arg0 = s.hbox___168917; + s.callLocIdx = 665; s.pc = 121; return s.tmp_10; case 121: r0 = s.retval; s.tmp_9.arg1 = r0; - s.callLocIdx = 618; s.pc = 120; return s.tmp_9; + s.callLocIdx = 666; s.pc = 120; return s.tmp_9; case 120: r0 = s.retval; s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___100556 + 8); + r0 = (s.tileScale___168920 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.x0___100963 = (r0); - s.tmp_0 = game_Hitbox_top__P88452_mk(s); - s.tmp_0.arg0 = s.hbox___100553; - s.callLocIdx = 621; s.pc = 122; return s.tmp_0; + s.x0___169327 = (r0); + s.tmp_0 = game_Hitbox_top__P153451_mk(s); + s.tmp_0.arg0 = s.hbox___168917; + s.callLocIdx = 669; s.pc = 122; return s.tmp_0; case 122: r0 = s.retval; - s.y___100973 = (r0); + s.y___169337 = (r0); case 76: - s.tmp_1 = r0 = s.y___100973; - s.tmp_3 = r0 = s.tileSize___100559; - s.tmp_5 = game_Hitbox_bottom__P88454_mk(s); - s.tmp_5.arg0 = s.hbox___100553; - s.callLocIdx = 622; s.pc = 123; return s.tmp_5; + s.tmp_1 = r0 = s.y___169337; + s.tmp_3 = r0 = s.tileSize___168923; + s.tmp_5 = game_Hitbox_bottom__P153453_mk(s); + s.tmp_5.arg0 = s.hbox___168917; + s.callLocIdx = 670; s.pc = 123; return s.tmp_5; case 123: r0 = s.retval; s.tmp_4 = r0; @@ -41089,29 +44995,29 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 79; continue; } - s.tmp_9 = Fx_min__P86646_mk(s); - s.tmp_9.arg0 = s.y___100973; - s.tmp_10 = game_Hitbox_bottom__P88454_mk(s); - s.tmp_10.arg0 = s.hbox___100553; - s.callLocIdx = 624; s.pc = 125; return s.tmp_10; + s.tmp_9 = Fx_min__P151645_mk(s); + s.tmp_9.arg0 = s.y___169337; + s.tmp_10 = game_Hitbox_bottom__P153453_mk(s); + s.tmp_10.arg0 = s.hbox___168917; + s.callLocIdx = 672; s.pc = 125; return s.tmp_10; case 125: r0 = s.retval; s.tmp_9.arg1 = r0; - s.callLocIdx = 625; s.pc = 124; return s.tmp_9; + s.callLocIdx = 673; s.pc = 124; return s.tmp_9; case 124: r0 = s.retval; s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___100556 + 8); + r0 = (s.tileScale___168920 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.y0___100983 = (r0); - s.tmp_3 = tiles_TileMap_isObstacle__P88821_mk(s); + s.y0___169347 = (r0); + s.tmp_3 = tiles_TileMap_isObstacle__P153820_mk(s); s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.x0___100963; - s.tmp_3.arg2 = s.y0___100983; - s.callLocIdx = 628; s.pc = 126; return s.tmp_3; + s.tmp_3.arg1 = s.x0___169327; + s.tmp_3.arg2 = s.y0___169347; + s.callLocIdx = 676; s.pc = 126; return s.tmp_3; case 126: r0 = s.retval; s.tmp_2 = r0; @@ -41121,39 +45027,39 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 77; continue; } - s.tmp_4 = r0 = s.overlappedTiles___100577; - s.tmp_6 = tiles_TileMap_getTile__P88814_mk(s); + s.tmp_4 = r0 = s.overlappedTiles___168941; + s.tmp_6 = tiles_TileMap_getTile__P153813_mk(s); s.tmp_6.arg0 = s.arg2; - s.tmp_6.arg1 = s.x0___100963; - s.tmp_6.arg2 = s.y0___100983; - s.callLocIdx = 629; s.pc = 127; return s.tmp_6; + s.tmp_6.arg1 = s.x0___169327; + s.tmp_6.arg2 = s.y0___169347; + s.callLocIdx = 677; s.pc = 127; return s.tmp_6; case 127: r0 = s.retval; s.tmp_5 = r0; r0 = pxsim_Array__push(s.tmp_4, s.tmp_5); case 77: case 78: - r0 = (s.tileSize___100559 << 8); + r0 = (s.tileSize___168923 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.y___100973); - s.y___100973 = (r0); + r0 = (s.tmp_0 + s.y___169337); + s.y___169337 = (r0); { step = 76; continue; } case 79: - r0 = (s.tileSize___100559 << 8); + r0 = (s.tileSize___168923 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.x___100953); - s.x___100953 = (r0); + r0 = (s.tmp_0 + s.x___169317); + s.x___169317 = (r0); { step = 75; continue; } case 80: - r0 = pxsim_Array__length(s.overlappedTiles___100577); + r0 = pxsim_Array__length(s.overlappedTiles___168941); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 81; continue; } - s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P90404_mk(s); + s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P155568_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.s___100530; - s.tmp_1.arg2 = s.overlappedTiles___100577; - s.callLocIdx = 632; s.pc = 128; return s.tmp_1; + s.tmp_1.arg1 = s.s___168894; + s.tmp_1.arg2 = s.overlappedTiles___168941; + s.callLocIdx = 680; s.pc = 128; return s.tmp_1; case 128: r0 = s.retval; case 81: @@ -41163,12 +45069,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapCollisions__P90403.info = {"start":11859,"length":8619,"line":370,"column":4,"endLine":606,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapCollisions","argumentNames":["this","movingSprite","tm"]} +ArcadePhysicsEngine_tilemapCollisions__P155567.info = {"start":11859,"length":8619,"line":370,"column":4,"endLine":606,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapCollisions","argumentNames":["this","movingSprite","tm"]} -function ArcadePhysicsEngine_tilemapCollisions__P90403_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions__P155567_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P90403, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P155567, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41188,38 +45094,38 @@ function ArcadePhysicsEngine_tilemapCollisions__P90403_mk(s) { tmp_15: undefined, tmp_16: undefined, tmp_17: undefined, - s___100530: undefined, - hbox___100553: undefined, - tileScale___100556: undefined, - tileSize___100559: undefined, - xDiff___100563: undefined, - yDiff___100570: undefined, - overlappedTiles___100577: undefined, - right___100582: undefined, - x0___100586: undefined, - collidedTiles___100601: undefined, - y___100603: undefined, - y0___100617: undefined, - obstacle___100633: undefined, - collisionDirection___100667: undefined, - tile___100693: undefined, - unnamed388___U15: undefined, - unnamed389___U16: undefined, - down___100771: undefined, - y0___100775: undefined, - collidedTiles___100790: undefined, - overlappedTiles___100792: undefined, - x___100794: undefined, - x0___100804: undefined, - obstacle___100818: undefined, - collisionDirection___100852: undefined, - tile___100878: undefined, - unnamed390___U26: undefined, - unnamed391___U27: undefined, - x___100953: undefined, - x0___100963: undefined, - y___100973: undefined, - y0___100983: undefined, + s___168894: undefined, + hbox___168917: undefined, + tileScale___168920: undefined, + tileSize___168923: undefined, + xDiff___168927: undefined, + yDiff___168934: undefined, + overlappedTiles___168941: undefined, + right___168946: undefined, + x0___168950: undefined, + collidedTiles___168965: undefined, + y___168967: undefined, + y0___168981: undefined, + obstacle___168997: undefined, + collisionDirection___169031: undefined, + tile___169057: undefined, + unnamed1490___U15: undefined, + unnamed1491___U16: undefined, + down___169135: undefined, + y0___169139: undefined, + collidedTiles___169154: undefined, + overlappedTiles___169156: undefined, + x___169158: undefined, + x0___169168: undefined, + obstacle___169182: undefined, + collisionDirection___169216: undefined, + tile___169242: undefined, + unnamed1492___U26: undefined, + unnamed1493___U27: undefined, + x___169317: undefined, + x0___169327: undefined, + y___169337: undefined, + y0___169347: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -41229,7 +45135,7 @@ function ArcadePhysicsEngine_tilemapCollisions__P90403_mk(s) { -function inline__P100641(s) { +function inline__P169005(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41251,12 +45157,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P100641.info = {"start":13980,"length":39,"line":434,"column":44,"endLine":434,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} +inline__P169005.info = {"start":13980,"length":39,"line":434,"column":44,"endLine":434,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} -function inline__P100641_mk(s) { +function inline__P169005_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P100641, depth: s.depth + 1, + parent: s, fn: inline__P169005, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41267,7 +45173,7 @@ function inline__P100641_mk(s) { -function inline__P100826(s) { +function inline__P169190(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41289,12 +45195,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P100826.info = {"start":17215,"length":39,"line":516,"column":44,"endLine":516,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} +inline__P169190.info = {"start":17215,"length":39,"line":516,"column":44,"endLine":516,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} -function inline__P100826_mk(s) { +function inline__P169190_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P100826, depth: s.depth + 1, + parent: s, fn: inline__P169190, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41305,7 +45211,7 @@ function inline__P100826_mk(s) { -function ArcadePhysicsEngine_tilemapOverlaps__P90404(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P155568(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41315,11 +45221,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.alreadyHandled___101022 = undefined; - s.tile___101025 = undefined; - s.unnamed392___U2 = undefined; - s.unnamed393___U3 = undefined; - s.tileOverlapHandlers___101046 = undefined; + s.alreadyHandled___169386 = undefined; + s.tile___169389 = undefined; + s.unnamed1494___U2 = undefined; + s.unnamed1495___U3 = undefined; + s.tileOverlapHandlers___169410 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -41327,27 +45233,27 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C88658_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C153657_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.alreadyHandled___101022 = (r0); - s.tile___101025 = (undefined); - s.unnamed392___U2 = (s.arg2); - s.unnamed393___U3 = (0); + s.alreadyHandled___169386 = (r0); + s.tile___169389 = (undefined); + s.unnamed1494___U2 = (s.arg2); + s.unnamed1495___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed393___U3; - r0 = pxsim_Array__length(s.unnamed392___U2); + s.tmp_0 = r0 = s.unnamed1495___U3; + r0 = pxsim_Array__length(s.unnamed1494___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 7; continue; } - r0 = pxsim_Array__getAt(s.unnamed392___U2, s.unnamed393___U3); - s.tile___101025 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P101029); + r0 = pxsim_Array__getAt(s.unnamed1494___U2, s.unnamed1495___U3); + s.tile___169389 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P169393); s.tmp_2 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___101025); - s.tmp_4 = helpers_arraySome__P86590_mk(s); - s.tmp_4.arg0 = s.alreadyHandled___101022; + r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___169389); + s.tmp_4 = helpers_arraySome__P151589_mk(s); + s.tmp_4.arg0 = s.alreadyHandled___169386; s.tmp_4.arg1 = s.tmp_2; - s.callLocIdx = 637; s.pc = 8; return s.tmp_4; + s.callLocIdx = 685; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; s.tmp_3 = r0; @@ -41356,64 +45262,64 @@ switch (step) { { step = 6; continue; } case 2: case 3: - r0 = pxsim_Array__push(s.alreadyHandled___101022, s.tile___101025); - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 638; s.pc = 9; return s.tmp_0; + r0 = pxsim_Array__push(s.alreadyHandled___169386, s.tile___169389); + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 686; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; r0 = r0.fields["tileOverlapHandlers"]; - s.tileOverlapHandlers___101046 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___101046); + s.tileOverlapHandlers___169410 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___169410); if (!r0) { step = 4; continue; } - r0 = pxsim_pxtcore_mkAction(2, inline__P101054); + r0 = pxsim_pxtcore_mkAction(2, inline__P169418); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___101025); - r0 = pxsim_pxtcore_mkAction(2, inline__P101070); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___169389); + r0 = pxsim_pxtcore_mkAction(2, inline__P169432); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___101025); - s.tmp_2 = helpers_arrayForEach__P86592_mk(s); - s.tmp_3 = helpers_arrayFilter__P86593_mk(s); - s.tmp_3.arg0 = s.tileOverlapHandlers___101046; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___169389); + s.tmp_2 = helpers_arrayForEach__P151591_mk(s); + s.tmp_3 = helpers_arrayFilter__P151592_mk(s); + s.tmp_3.arg0 = s.tileOverlapHandlers___169410; s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 641; s.pc = 11; return s.tmp_3; + s.callLocIdx = 689; 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 = 643; s.pc = 10; return s.tmp_2; + s.callLocIdx = 691; s.pc = 10; return s.tmp_2; case 10: r0 = s.retval; case 4: case 5: case 6: - r0 = (s.unnamed393___U3 + 1); - s.unnamed393___U3 = (r0); + r0 = (s.unnamed1495___U3 + 1); + s.unnamed1495___U3 = (r0); { step = 1; continue; } case 7: - s.unnamed392___U2 = (undefined); + s.unnamed1494___U2 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapOverlaps__P90404.info = {"start":20755,"length":699,"line":614,"column":4,"endLine":630,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapOverlaps","argumentNames":["this","sprite","overlappedTiles"]} +ArcadePhysicsEngine_tilemapOverlaps__P155568.info = {"start":20755,"length":699,"line":614,"column":4,"endLine":630,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapOverlaps","argumentNames":["this","sprite","overlappedTiles"]} -function ArcadePhysicsEngine_tilemapOverlaps__P90404_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P155568_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P90404, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P155568, depth: s.depth + 1, pc: 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___101022: undefined, - tile___101025: undefined, - unnamed392___U2: undefined, - unnamed393___U3: undefined, - tileOverlapHandlers___101046: undefined, + alreadyHandled___169386: undefined, + tile___169389: undefined, + unnamed1494___U2: undefined, + unnamed1495___U3: undefined, + tileOverlapHandlers___169410: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -41423,7 +45329,7 @@ function ArcadePhysicsEngine_tilemapOverlaps__P90404_mk(s) { -function inline__P101029(s) { +function inline__P169393(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41460,12 +45366,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P101029.info = {"start":20968,"length":45,"line":618,"column":36,"endLine":618,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["l"]} +inline__P169393.info = {"start":20968,"length":45,"line":618,"column":36,"endLine":618,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["l"]} -function inline__P101029_mk(s) { +function inline__P169393_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P101029, depth: s.depth + 1, + parent: s, fn: inline__P169393, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41480,7 +45386,7 @@ function inline__P101029_mk(s) { -function inline__P101054(s) { +function inline__P169418(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41507,9 +45413,9 @@ switch (step) { case 1: r0 = s.arg0.fields["tileKind"]; s.tmp_3 = r0; - s.tmp_5 = tiles_getTileImage__P88830_mk(s); + s.tmp_5 = tiles_getTileImage__P153829_mk(s); s.tmp_5.arg0 = s.caps[1]; - s.callLocIdx = 640; s.pc = 3; return s.tmp_5; + s.callLocIdx = 688; s.pc = 3; return s.tmp_5; case 3: r0 = s.retval; s.tmp_4 = r0; @@ -41521,12 +45427,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P101054.info = {"start":21282,"length":81,"line":626,"column":28,"endLine":626,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +inline__P169418.info = {"start":21282,"length":81,"line":626,"column":28,"endLine":626,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P101054_mk(s) { +function inline__P169418_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P101054, depth: s.depth + 1, + parent: s, fn: inline__P169418, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41542,7 +45448,7 @@ function inline__P101054_mk(s) { -function inline__P101070(s) { +function inline__P169432(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41562,12 +45468,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 = 642; s.pc = 1; return s.tmp_0; + s.callLocIdx = 690; 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 = 642; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 642; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 642; 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 = 690; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 690; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 690; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -41575,12 +45481,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P101070.info = {"start":21394,"length":28,"line":627,"column":29,"endLine":627,"endColumn":57,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +inline__P169432.info = {"start":21394,"length":28,"line":627,"column":29,"endLine":627,"endColumn":57,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P101070_mk(s) { +function inline__P169432_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P101070, depth: s.depth + 1, + parent: s, fn: inline__P169432, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -41590,7 +45496,7 @@ function inline__P101070_mk(s) { -function tiles_getTileImage__P88830(s) { +function tiles_getTileImage__P153829(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41600,16 +45506,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___101078 = undefined; + s.scene___169439 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 794; s.pc = 6; return s.tmp_0; + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 927; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.scene___101078 = (r0); + s.scene___169439 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -41619,7 +45525,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___101078.fields["tileMap"]; + r0 = s.scene___169439.fields["tileMap"]; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; @@ -41629,32 +45535,32 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 3; continue; } - r0 = pxsim.image.ofBuffer(_hex101088); + r0 = pxsim.image.ofBuffer(_hex169449); { step = 5; continue; } case 3: case 4: - s.tmp_5 = tiles_TileMap_getTileImage__P88824_mk(s); - r0 = s.scene___101078.fields["tileMap"]; + s.tmp_5 = tiles_TileMap_getTileImage__P153823_mk(s); + r0 = s.scene___169439.fields["tileMap"]; s.tmp_5.arg0 = r0; - s.tmp_6 = tiles_Location_tileSet__P88780_mk(s); + s.tmp_6 = tiles_Location_tileSet__P153779_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 795; s.pc = 8; return s.tmp_6; + s.callLocIdx = 928; s.pc = 8; return s.tmp_6; case 8: r0 = s.retval; s.tmp_5.arg1 = r0; - s.callLocIdx = 796; s.pc = 7; return s.tmp_5; + s.callLocIdx = 929; s.pc = 7; return s.tmp_5; case 7: r0 = s.retval; case 5: return leave(s, r0) default: oops() } } } -tiles_getTileImage__P88830.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__P153829.info = {"start":16636,"length":207,"line":525,"column":4,"endLine":529,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["loc"]} -function tiles_getTileImage__P88830_mk(s) { +function tiles_getTileImage__P153829_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_getTileImage__P88830, depth: s.depth + 1, + parent: s, fn: tiles_getTileImage__P153829, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41663,16 +45569,16 @@ function tiles_getTileImage__P88830_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - scene___101078: undefined, + scene___169439: undefined, arg0: undefined, } } -const _hex101088 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") +const _hex169449 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") -function tiles_Location_row__P88776(s) { +function tiles_Location_row__P153775(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41687,18 +45593,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C88774_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C153773_VT)) failedCast(r0); r0 = s.arg0.fields["_row"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_row__P88776.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__P88776.isGetter = true; +tiles_Location_row__P153775.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__P153775.isGetter = true; -function tiles_Location_row__P88776_mk(s) { +function tiles_Location_row__P153775_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_row__P88776, depth: s.depth + 1, + parent: s, fn: tiles_Location_row__P153775, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -41707,7 +45613,7 @@ function tiles_Location_row__P88776_mk(s) { -function tiles_Location_col__P88775(s) { +function tiles_Location_col__P153774(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41722,18 +45628,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C88774_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C153773_VT)) failedCast(r0); r0 = s.arg0.fields["_col"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_col__P88775.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__P88775.isGetter = true; +tiles_Location_col__P153774.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__P153774.isGetter = true; -function tiles_Location_col__P88775_mk(s) { +function tiles_Location_col__P153774_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_col__P88775, depth: s.depth + 1, + parent: s, fn: tiles_Location_col__P153774, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -41742,7 +45648,7 @@ function tiles_Location_col__P88775_mk(s) { -function tiles_TileMap_getObstacle__P88822(s) { +function tiles_TileMap_getObstacle__P153821(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41752,8 +45658,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.index___101204 = undefined; - s.tile___101216 = undefined; + s.index___169557 = undefined; + s.tile___169569 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -41761,13 +45667,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P88801_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P153800_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 = 757; s.pc = 3; return s.tmp_1; + s.callLocIdx = 891; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0 = r0; @@ -41776,31 +45682,31 @@ switch (step) { r0 = 0; { step = 2; continue; } case 1: - s.tmp_2 = tiles_TileMapData_getTile__P88795_mk(s); + s.tmp_2 = tiles_TileMapData_getTile__P153794_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 = 758; s.pc = 4; return s.tmp_2; + s.callLocIdx = 892; 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___101204 = (s.tmp_3); - s.tmp_0 = tiles_TileMapData_getTileImage__P88798_mk(s); + s.index___169557 = (s.tmp_3); + s.tmp_0 = tiles_TileMapData_getTileImage__P153797_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___101204; - s.callLocIdx = 759; s.pc = 5; return s.tmp_0; + s.tmp_0.arg1 = s.index___169557; + s.callLocIdx = 893; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tile___101216 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C88631_VT); + s.tile___169569 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C153630_VT); s.tmp_0 = r0; - s.tmp_1 = sprites_StaticObstacle_constructor__P88637_mk(s); + s.tmp_1 = sprites_StaticObstacle_constructor__P153636_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.tile___101216; + s.tmp_1.arg1 = s.tile___169569; s.tmp_2 = r0 = s.arg2; r0 = s.arg0.fields["_scale"]; s.tmp_3 = r0; @@ -41813,20 +45719,20 @@ switch (step) { s.tmp_1.arg3 = r0; r0 = s.arg0.fields["_layer"]; s.tmp_1.arg4 = r0; - s.tmp_1.arg5 = s.index___101204; - s.callLocIdx = 763; s.pc = 6; return s.tmp_1; + s.tmp_1.arg5 = s.index___169557; + s.callLocIdx = 897; 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__P88822.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__P153821.info = {"start":12642,"length":410,"line":411,"column":8,"endLine":421,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getObstacle","argumentNames":["this","col","row"]} -function tiles_TileMap_getObstacle__P88822_mk(s) { +function tiles_TileMap_getObstacle__P153821_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getObstacle__P88822, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getObstacle__P153821, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41834,8 +45740,8 @@ function tiles_TileMap_getObstacle__P88822_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - index___101204: undefined, - tile___101216: undefined, + index___169557: undefined, + tile___169569: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -41845,7 +45751,7 @@ function tiles_TileMap_getObstacle__P88822_mk(s) { -function tiles_TileMap_layer__P88810(s) { +function tiles_TileMap_layer__P153809(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41860,18 +45766,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); r0 = s.arg0.fields["_layer"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_layer__P88810.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__P88810.isGetter = true; +tiles_TileMap_layer__P153809.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__P153809.isGetter = true; -function tiles_TileMap_layer__P88810_mk(s) { +function tiles_TileMap_layer__P153809_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_layer__P88810, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_layer__P153809, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -41880,7 +45786,7 @@ function tiles_TileMap_layer__P88810_mk(s) { -function sprites_StaticObstacle_constructor__P88637(s) { +function sprites_StaticObstacle_constructor__P153636(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41900,7 +45806,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C88631_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C153630_VT)) failedCast(r0); r0 = (s.arg0).fields["image"] = (s.arg1); r0 = (s.arg0).fields["layer"] = (s.arg4); r0 = (s.arg0).fields["top"] = (s.arg2); @@ -41910,12 +45816,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_StaticObstacle_constructor__P88637.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__P153636.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__P88637_mk(s) { +function sprites_StaticObstacle_constructor__P153636_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_constructor__P88637, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_constructor__P153636, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -41929,7 +45835,7 @@ function sprites_StaticObstacle_constructor__P88637_mk(s) { -function tiles_TileMap_isObstacle__P88821(s) { +function tiles_TileMap_isObstacle__P153820(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41946,7 +45852,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C88802_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); @@ -41967,12 +45873,12 @@ switch (step) { { step = 5; continue; } case 1: case 2: - s.tmp_8 = tiles_TileMapData_isOutsideMap__P88801_mk(s); + s.tmp_8 = tiles_TileMapData_isOutsideMap__P153800_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 = 755; s.pc = 6; return s.tmp_8; + s.callLocIdx = 889; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; s.tmp_7 = r0; @@ -41993,12 +45899,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_isObstacle__P88821.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__P153820.info = {"start":12421,"length":211,"line":404,"column":8,"endLine":409,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isObstacle","argumentNames":["this","col","row"]} -function tiles_TileMap_isObstacle__P88821_mk(s) { +function tiles_TileMap_isObstacle__P153820_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isObstacle__P88821, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isObstacle__P153820, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42021,7 +45927,7 @@ function tiles_TileMap_isObstacle__P88821_mk(s) { -function tiles_TileMapData_isWall__P88800(s) { +function tiles_TileMapData_isWall__P153799(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42038,7 +45944,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C88789_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C153788_VT)) failedCast(r0); r0 = s.arg0.fields["layers"]; s.tmp_1 = r0; r0 = pxsim_ImageMethods.getPixel(s.tmp_1, s.arg1, s.arg2); @@ -42047,12 +45953,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_isWall__P88800.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__P153799.info = {"start":5463,"length":107,"line":195,"column":8,"endLine":197,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isWall","argumentNames":["this","col","row"]} -function tiles_TileMapData_isWall__P88800_mk(s) { +function tiles_TileMapData_isWall__P153799_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_isWall__P88800, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_isWall__P153799, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42065,7 +45971,7 @@ function tiles_TileMapData_isWall__P88800_mk(s) { -function Sprite_registerObstacle__P88570(s) { +function Sprite_registerObstacle__P153569(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42075,10 +45981,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.collisionHandlers___101117 = undefined; - s.wallCollisionHandlers___101124 = undefined; - s.wallHandlersToRun___101149 = undefined; - s.asTileLocation___101162 = undefined; + s.collisionHandlers___169470 = undefined; + s.wallCollisionHandlers___169477 = undefined; + s.wallHandlersToRun___169502 = undefined; + s.asTileLocation___169515 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -42087,12 +45993,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C153500_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__P89017_mk(s); - s.callLocIdx = 362; s.pc = 9; return s.tmp_1; + s.tmp_1 = game_currentScene__P154016_mk(s); + s.callLocIdx = 408; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; r0 = r0.fields["collisionHandlers"]; @@ -42105,42 +46011,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 = 363; s.pc = 10; return s.tmp_3; } + else { s.callLocIdx = 409; 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___101117 = (r0); - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 364; s.pc = 11; return s.tmp_0; + s.collisionHandlers___169470 = (r0); + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 410; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; r0 = r0.fields["wallCollisionHandlers"]; - s.wallCollisionHandlers___101124 = (r0); - r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___101117); + s.wallCollisionHandlers___169477 = (r0); + r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___169470); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P101132); + r0 = pxsim_pxtcore_mkAction(1, inline__P169485); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, inline__P101138); + r0 = pxsim_pxtcore_mkAction(1, inline__P169491); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P86592_mk(s); - s.tmp_3 = helpers_arrayFilter__P86593_mk(s); - s.tmp_3.arg0 = s.collisionHandlers___101117; + s.tmp_2 = helpers_arrayForEach__P151591_mk(s); + s.tmp_3 = helpers_arrayFilter__P151592_mk(s); + s.tmp_3.arg0 = s.collisionHandlers___169470; s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 366; s.pc = 13; return s.tmp_3; + s.callLocIdx = 412; 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 = 368; s.pc = 12; return s.tmp_2; + s.callLocIdx = 414; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; case 1: case 2: - r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___101124); + r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___169477); if (!r0) { step = 7; continue; } s.tmp_0 = r0 = s.arg3; r0 = pxsim_numops_toBool(s.tmp_0); @@ -42148,8 +46054,8 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - s.tmp_1 = game_currentScene__P89017_mk(s); - s.callLocIdx = 369; s.pc = 14; return s.tmp_1; + s.tmp_1 = game_currentScene__P154016_mk(s); + s.callLocIdx = 415; s.pc = 14; return s.tmp_1; case 14: r0 = s.retval; r0 = r0.fields["tileMap"]; @@ -42157,21 +46063,21 @@ switch (step) { // jmp value (already in r0) s.tmp_2 = r0; s.arg3 = (s.tmp_2); - r0 = pxsim_pxtcore_mkAction(1, inline__P101151); + r0 = pxsim_pxtcore_mkAction(1, inline__P169504); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayFilter__P86593_mk(s); - s.tmp_1.arg0 = s.wallCollisionHandlers___101124; + s.tmp_1 = helpers_arrayFilter__P151592_mk(s); + s.tmp_1.arg0 = s.wallCollisionHandlers___169477; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 371; s.pc = 15; return s.tmp_1; + s.callLocIdx = 417; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; - s.wallHandlersToRun___101149 = (r0); - r0 = pxsim_Array__length(s.wallHandlersToRun___101149); + s.wallHandlersToRun___169502 = (r0); + r0 = pxsim_Array__length(s.wallHandlersToRun___169502); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_1 = tiles_TileMap_getTile__P88814_mk(s); + s.tmp_1 = tiles_TileMap_getTile__P153813_mk(s); s.tmp_1.arg0 = s.arg3; s.tmp_3 = if_left_1_mk(s); s.tmp_3.arg0 = s.arg2; @@ -42181,7 +46087,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 = 372; s.pc = 17; return s.tmp_3; } + else { s.callLocIdx = 418; s.pc = 17; return s.tmp_3; } } case 17: r0 = s.retval; @@ -42198,7 +46104,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 = 374; s.pc = 18; return s.tmp_6; } + else { s.callLocIdx = 420; s.pc = 18; return s.tmp_6; } } case 18: r0 = s.retval; @@ -42207,18 +46113,18 @@ switch (step) { s.tmp_7 = r0; r0 = (s.tmp_5 >> s.tmp_7); s.tmp_1.arg2 = r0; - s.callLocIdx = 376; s.pc = 16; return s.tmp_1; + s.callLocIdx = 422; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - s.asTileLocation___101162 = (r0); - r0 = pxsim_pxtcore_mkAction(2, inline__P101178); + s.asTileLocation___169515 = (r0); + r0 = pxsim_pxtcore_mkAction(2, inline__P169531); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___101162); - s.tmp_1 = helpers_arrayForEach__P86592_mk(s); - s.tmp_1.arg0 = s.wallHandlersToRun___101149; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___169515); + s.tmp_1 = helpers_arrayForEach__P151591_mk(s); + s.tmp_1.arg0 = s.wallHandlersToRun___169502; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 378; s.pc = 19; return s.tmp_1; + s.callLocIdx = 424; s.pc = 19; return s.tmp_1; case 19: r0 = s.retval; case 5: @@ -42229,12 +46135,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_registerObstacle__P88570.info = {"start":26932,"length":965,"line":817,"column":4,"endLine":837,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]} +Sprite_registerObstacle__P153569.info = {"start":26932,"length":965,"line":817,"column":4,"endLine":837,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]} -function Sprite_registerObstacle__P88570_mk(s) { +function Sprite_registerObstacle__P153569_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_registerObstacle__P88570, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle__P153569, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42244,10 +46150,10 @@ function Sprite_registerObstacle__P88570_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - collisionHandlers___101117: undefined, - wallCollisionHandlers___101124: undefined, - wallHandlersToRun___101149: undefined, - asTileLocation___101162: undefined, + collisionHandlers___169470: undefined, + wallCollisionHandlers___169477: undefined, + wallHandlersToRun___169502: undefined, + asTileLocation___169515: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -42258,7 +46164,7 @@ function Sprite_registerObstacle__P88570_mk(s) { -function inline__P101132(s) { +function inline__P169485(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42280,12 +46186,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P101132.info = {"start":27330,"length":26,"line":824,"column":24,"endLine":824,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P169485.info = {"start":27330,"length":26,"line":824,"column":24,"endLine":824,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P101132_mk(s) { +function inline__P169485_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P101132, depth: s.depth + 1, + parent: s, fn: inline__P169485, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42296,7 +46202,7 @@ function inline__P101132_mk(s) { -function inline__P101138(s) { +function inline__P169491(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42315,12 +46221,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 = 367; s.pc = 1; return s.tmp_0; + s.callLocIdx = 413; 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 = 367; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 367; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 367; 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 = 413; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 413; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 413; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -42328,12 +46234,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P101138.info = {"start":27383,"length":20,"line":825,"column":25,"endLine":825,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P169491.info = {"start":27383,"length":20,"line":825,"column":25,"endLine":825,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P101138_mk(s) { +function inline__P169491_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P101138, depth: s.depth + 1, + parent: s, fn: inline__P169491, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -42343,7 +46249,7 @@ function inline__P101138_mk(s) { -function inline__P101151(s) { +function inline__P169504(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42365,12 +46271,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P101151.info = {"start":27589,"length":32,"line":830,"column":24,"endLine":830,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P169504.info = {"start":27589,"length":32,"line":830,"column":24,"endLine":830,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P101151_mk(s) { +function inline__P169504_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P101151, depth: s.depth + 1, + parent: s, fn: inline__P169504, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42381,7 +46287,7 @@ function inline__P101151_mk(s) { -function inline__P101178(s) { +function inline__P169531(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42401,12 +46307,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 = 377; s.pc = 1; return s.tmp_0; + s.callLocIdx = 423; 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 = 377; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 377; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 377; 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 = 423; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 423; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 423; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -42414,12 +46320,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P101178.info = {"start":27829,"length":36,"line":834,"column":29,"endLine":834,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P169531.info = {"start":27829,"length":36,"line":834,"column":29,"endLine":834,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P101178_mk(s) { +function inline__P169531_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P101178, depth: s.depth + 1, + parent: s, fn: inline__P169531, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -42429,7 +46335,7 @@ function inline__P101178_mk(s) { -function Fx_min__P86646(s) { +function Fx_min__P151645(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42460,12 +46366,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_min__P86646.info = {"start":1675,"length":117,"line":50,"column":4,"endLine":55,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"min","argumentNames":["a","b"]} +Fx_min__P151645.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__P86646_mk(s) { +function Fx_min__P151645_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_min__P86646, depth: s.depth + 1, + parent: s, fn: Fx_min__P151645, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -42476,7 +46382,7 @@ function Fx_min__P86646_mk(s) { -function Fx_iadd__P86638(s) { +function Fx_iadd__P151637(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42497,12 +46403,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_iadd__P86638.info = {"start":634,"length":110,"line":23,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"iadd","argumentNames":["a","b"]} +Fx_iadd__P151637.info = {"start":634,"length":110,"line":23,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"iadd","argumentNames":["a","b"]} -function Fx_iadd__P86638_mk(s) { +function Fx_iadd__P151637_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_iadd__P86638, depth: s.depth + 1, + parent: s, fn: Fx_iadd__P151637, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -42513,7 +46419,7 @@ function Fx_iadd__P86638_mk(s) { -function Fx_toIntShifted__P86636(s) { +function Fx_toIntShifted__P151635(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42535,12 +46441,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_toIntShifted__P86636.info = {"start":404,"length":102,"line":17,"column":4,"endLine":19,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toIntShifted","argumentNames":["a","n"]} +Fx_toIntShifted__P151635.info = {"start":404,"length":102,"line":17,"column":4,"endLine":19,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toIntShifted","argumentNames":["a","n"]} -function Fx_toIntShifted__P86636_mk(s) { +function Fx_toIntShifted__P151635_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toIntShifted__P86636, depth: s.depth + 1, + parent: s, fn: Fx_toIntShifted__P151635, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42552,7 +46458,7 @@ function Fx_toIntShifted__P86636_mk(s) { -function helpers_arraySome__P86590(s) { +function helpers_arraySome__P151589(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42562,28 +46468,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___101186 = undefined; - s.i___101189 = undefined; + s.len___169539 = undefined; + s.i___169542 = 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___101186 = (r0); - s.i___101189 = (0); + s.len___169539 = (r0); + s.i___169542 = (0); case 1: - r0 = (s.i___101189 < s.len___101186); + r0 = (s.i___169542 < s.len___169539); 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___101189); + r0 = pxsim_Array__getAt(s.arg0, s.i___169542); s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.i___101189; + s.tmp_2.arg1 = s.i___169542; setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 4; s.pc = 6; return s.tmp_2; + s.callLocIdx = 5; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_1 = r0; @@ -42593,8 +46499,8 @@ switch (step) { { step = 5; continue; } case 2: case 3: - r0 = (s.i___101189 + 1); - s.i___101189 = (r0); + r0 = (s.i___169542 + 1); + s.i___169542 = (r0); { step = 1; continue; } case 4: r0 = false; @@ -42602,18 +46508,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_arraySome__P86590.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__P151589.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__P86590_mk(s) { +function helpers_arraySome__P151589_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySome__P86590, depth: s.depth + 1, + parent: s, fn: helpers_arraySome__P151589, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - len___101186: undefined, - i___101189: undefined, + len___169539: undefined, + i___169542: undefined, arg0: undefined, arg1: undefined, } } @@ -42622,7 +46528,7 @@ function helpers_arraySome__P86590_mk(s) { -function tiles_TileMap_isOnWall__P88823(s) { +function tiles_TileMap_isOnWall__P153822(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42632,25 +46538,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___100445 = undefined; - s.left___100448 = undefined; - s.right___100454 = undefined; - s.top___100460 = undefined; - s.bottom___100466 = undefined; - s.col___100472 = undefined; - s.row___100478 = undefined; + s.hbox___168809 = undefined; + s.left___168812 = undefined; + s.right___168818 = undefined; + s.top___168824 = undefined; + s.bottom___168830 = undefined; + s.col___168836 = undefined; + s.row___168842 = 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__C88802_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C153801_VT)) failedCast(r0); r0 = s.arg1.fields["_hitbox"]; - s.hbox___100445 = (r0); - s.tmp_1 = game_Hitbox_left__P88451_mk(s); - s.tmp_1.arg0 = s.hbox___100445; - s.callLocIdx = 764; s.pc = 8; return s.tmp_1; + s.hbox___168809 = (r0); + s.tmp_1 = game_Hitbox_left__P153450_mk(s); + s.tmp_1.arg0 = s.hbox___168809; + s.callLocIdx = 898; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; s.tmp_0 = r0; @@ -42659,10 +46565,10 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.left___100448 = (r0); - s.tmp_1 = game_Hitbox_right__P88453_mk(s); - s.tmp_1.arg0 = s.hbox___100445; - s.callLocIdx = 767; s.pc = 9; return s.tmp_1; + s.left___168812 = (r0); + s.tmp_1 = game_Hitbox_right__P153452_mk(s); + s.tmp_1.arg0 = s.hbox___168809; + s.callLocIdx = 901; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; s.tmp_0 = r0; @@ -42671,10 +46577,10 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.right___100454 = (r0); - s.tmp_1 = game_Hitbox_top__P88452_mk(s); - s.tmp_1.arg0 = s.hbox___100445; - s.callLocIdx = 770; s.pc = 10; return s.tmp_1; + s.right___168818 = (r0); + s.tmp_1 = game_Hitbox_top__P153451_mk(s); + s.tmp_1.arg0 = s.hbox___168809; + s.callLocIdx = 904; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; s.tmp_0 = r0; @@ -42683,10 +46589,10 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.top___100460 = (r0); - s.tmp_1 = game_Hitbox_bottom__P88454_mk(s); - s.tmp_1.arg0 = s.hbox___100445; - s.callLocIdx = 773; s.pc = 11; return s.tmp_1; + s.top___168824 = (r0); + s.tmp_1 = game_Hitbox_bottom__P153453_mk(s); + s.tmp_1.arg0 = s.hbox___168809; + s.callLocIdx = 907; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; s.tmp_0 = r0; @@ -42695,24 +46601,24 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.bottom___100466 = (r0); - s.col___100472 = (s.left___100448); + s.bottom___168830 = (r0); + s.col___168836 = (s.left___168812); case 1: - r0 = (s.col___100472 <= s.right___100454); + r0 = (s.col___168836 <= s.right___168818); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.row___100478 = (s.top___100460); + s.row___168842 = (s.top___168824); case 2: - r0 = (s.row___100478 <= s.bottom___100466); + r0 = (s.row___168842 <= s.bottom___168830); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_2 = tiles_TileMap_isObstacle__P88821_mk(s); + s.tmp_2 = tiles_TileMap_isObstacle__P153820_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.col___100472; - s.tmp_2.arg2 = s.row___100478; - s.callLocIdx = 776; s.pc = 12; return s.tmp_2; + s.tmp_2.arg1 = s.col___168836; + s.tmp_2.arg2 = s.row___168842; + s.callLocIdx = 910; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; s.tmp_1 = r0; @@ -42722,12 +46628,12 @@ switch (step) { { step = 7; continue; } case 3: case 4: - r0 = (s.row___100478 + 1); - s.row___100478 = (r0); + r0 = (s.row___168842 + 1); + s.row___168842 = (r0); { step = 2; continue; } case 5: - r0 = (s.col___100472 + 1); - s.col___100472 = (r0); + r0 = (s.col___168836 + 1); + s.col___168836 = (r0); { step = 1; continue; } case 6: r0 = false; @@ -42735,24 +46641,24 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_isOnWall__P88823.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__P153822.info = {"start":13062,"length":627,"line":423,"column":8,"endLine":440,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]} -function tiles_TileMap_isOnWall__P88823_mk(s) { +function tiles_TileMap_isOnWall__P153822_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isOnWall__P88823, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isOnWall__P153822, depth: s.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___100445: undefined, - left___100448: undefined, - right___100454: undefined, - top___100460: undefined, - bottom___100466: undefined, - col___100472: undefined, - row___100478: undefined, + hbox___168809: undefined, + left___168812: undefined, + right___168818: undefined, + top___168824: undefined, + bottom___168830: undefined, + col___168836: undefined, + row___168842: undefined, arg0: undefined, arg1: undefined, } } @@ -42761,7 +46667,7 @@ function tiles_TileMap_isOnWall__P88823_mk(s) { -function MovingSprite_constructor__P88657(s) { +function MovingSprite_constructor__P153656(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42783,7 +46689,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, MovingSprite__C88656_VT)) failedCast(r0); + if (!checkSubtype(r0, MovingSprite__C153655_VT)) failedCast(r0); r0 = (s.arg0).fields["sprite"] = (s.arg1); r0 = (s.arg0).fields["cachedVx"] = (s.arg2); r0 = (s.arg0).fields["cachedVy"] = (s.arg3); @@ -42795,12 +46701,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -MovingSprite_constructor__P88657.info = {"start":678,"length":313,"line":30,"column":4,"endLine":41,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","sprite","cachedVx","cachedVy","dx","dy","xStep","yStep"]} +MovingSprite_constructor__P153656.info = {"start":678,"length":313,"line":30,"column":4,"endLine":41,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","sprite","cachedVx","cachedVy","dx","dy","xStep","yStep"]} -function MovingSprite_constructor__P88657_mk(s) { +function MovingSprite_constructor__P153656_mk(s) { checkStack(s.depth); return { - parent: s, fn: MovingSprite_constructor__P88657, depth: s.depth + 1, + parent: s, fn: MovingSprite_constructor__P153656, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -42816,7 +46722,7 @@ function MovingSprite_constructor__P88657_mk(s) { -function ArcadePhysicsEngine_move__P88670(s) { +function ArcadePhysicsEngine_move__P153669(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42826,84 +46732,84 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dtf___101275 = undefined; - s.dt2___101282 = undefined; - s.scene___101286 = undefined; - s.tileMap___101289 = undefined; - s.movingSprites___101292 = undefined; - s.MAX_STEP_COUNT___101323 = undefined; - s.overlapHandlers___101335 = undefined; - s.selected___101342 = undefined; - s.buffers___101343 = undefined; - s.count___101347 = undefined; - s.currMovers___101357 = undefined; - s.remainingMovers___101364 = undefined; - s.ms___101369 = undefined; - s.unnamed382___U13 = undefined; - s.unnamed383___U14 = undefined; - s.s___101371 = undefined; - s.stepX___101464 = undefined; - s.stepY___101478 = undefined; + s.dtf___169628 = undefined; + s.dt2___169635 = undefined; + s.scene___169639 = undefined; + s.tileMap___169642 = undefined; + s.movingSprites___169645 = undefined; + s.MAX_STEP_COUNT___169676 = undefined; + s.overlapHandlers___169688 = undefined; + s.selected___169695 = undefined; + s.buffers___169696 = undefined; + s.count___169700 = undefined; + s.currMovers___169710 = undefined; + s.remainingMovers___169717 = undefined; + s.ms___169722 = undefined; + s.unnamed1484___U13 = undefined; + s.unnamed1485___U14 = undefined; + s.s___169724 = undefined; + s.stepX___169817 = undefined; + s.stepY___169831 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C88658_VT)) failedCast(r0); - s.tmp_0 = Fx_min__P86646_mk(s); - s.tmp_0.arg0 = globals.MAX_TIME_STEP___88653; + if (!checkSubtype(r0, ArcadePhysicsEngine__C153657_VT)) failedCast(r0); + s.tmp_0 = Fx_min__P151645_mk(s); + s.tmp_0.arg0 = globals.MAX_TIME_STEP___153652; r0 = (s.arg1 * 1000); s.tmp_1 = r0; r0 = (s.tmp_1 * 256); s.tmp_2 = r0; r0 = (s.tmp_2 | 0); s.tmp_0.arg1 = r0; - s.callLocIdx = 462; s.pc = 47; return s.tmp_0; + s.callLocIdx = 510; s.pc = 47; return s.tmp_0; case 47: r0 = s.retval; - s.dtf___101275 = (r0); - r0 = pxsim.Math_.idiv(s.dtf___101275, 2); - s.dt2___101282 = (r0); - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 464; s.pc = 48; return s.tmp_0; + s.dtf___169628 = (r0); + r0 = pxsim.Math_.idiv(s.dtf___169628, 2); + s.dt2___169635 = (r0); + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 512; s.pc = 48; return s.tmp_0; case 48: r0 = s.retval; - s.scene___101286 = (r0); - r0 = s.scene___101286.fields["tileMap"]; - s.tileMap___101289 = (r0); - r0 = pxsim_pxtcore_mkAction(3, inline__P101294); + s.scene___169639 = (r0); + r0 = s.scene___169639.fields["tileMap"]; + s.tileMap___169642 = (r0); + r0 = pxsim_pxtcore_mkAction(3, inline__P169647); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtf___101275); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___101282); - s.tmp_1 = helpers_arrayMap__P86589_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtf___169628); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___169635); + s.tmp_1 = helpers_arrayMap__P151588_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 466; s.pc = 49; return s.tmp_1; + s.callLocIdx = 514; s.pc = 49; return s.tmp_1; case 49: r0 = s.retval; - s.movingSprites___101292 = (r0); - s.tmp_0 = helpers_arrayForEach__P86592_mk(s); + s.movingSprites___169645 = (r0); + s.tmp_0 = helpers_arrayForEach__P151591_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P101306; - s.callLocIdx = 470; s.pc = 50; return s.tmp_0; + s.tmp_0.arg1 = inline__P169659; + s.callLocIdx = 518; s.pc = 50; return s.tmp_0; case 50: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_clear__P88585_mk(s); + s.tmp_0 = sprites_SpriteMap_clear__P153584_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; - s.callLocIdx = 471; s.pc = 51; return s.tmp_0; + s.callLocIdx = 519; s.pc = 51; return s.tmp_0; case 51: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_resizeBuckets__P88584_mk(s); + s.tmp_0 = sprites_SpriteMap_resizeBuckets__P153583_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["sprites"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 472; s.pc = 52; return s.tmp_0; + s.callLocIdx = 520; s.pc = 52; return s.tmp_0; case 52: r0 = s.retval; r0 = s.arg0.fields["maxVelocity"]; @@ -42914,7 +46820,7 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_5, s.tmp_4); s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.dtf___101275); + r0 = pxsim.Math_.imul(s.tmp_2, s.dtf___169628); s.tmp_6 = r0; r0 = (s.tmp_6 >> 8); s.tmp_1 = r0; @@ -42923,34 +46829,34 @@ switch (step) { r0 = (s.tmp_0 + 128); s.tmp_7 = r0; r0 = (s.tmp_7 >> 8); - s.MAX_STEP_COUNT___101323 = (r0); - s.tmp_0 = helpers_arraySlice__P86597_mk(s); - r0 = s.scene___101286.fields["overlapHandlers"]; + s.MAX_STEP_COUNT___169676 = (r0); + s.tmp_0 = helpers_arraySlice__P151596_mk(s); + r0 = s.scene___169639.fields["overlapHandlers"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = undefined; s.tmp_0.arg2 = undefined; - s.callLocIdx = 477; s.pc = 53; return s.tmp_0; + s.callLocIdx = 525; s.pc = 53; return s.tmp_0; case 53: r0 = s.retval; - s.overlapHandlers___101335 = (r0); - s.selected___101342 = (0); + s.overlapHandlers___169688 = (r0); + s.selected___169695 = (0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___101292); + r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___169645); r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - s.buffers___101343 = (s.tmp_0); - s.count___101347 = (0); + s.buffers___169696 = (s.tmp_0); + s.count___169700 = (0); case 1: - r0 = (s.count___101347 < s.MAX_STEP_COUNT___101323); + r0 = (s.count___169700 < s.MAX_STEP_COUNT___169676); 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___101343, s.selected___101342); + r0 = pxsim_Array__getAt(s.buffers___169696, s.selected___169695); s.tmp_2 = r0; r0 = pxsim_Array__length(s.tmp_2); s.tmp_1 = r0; @@ -42960,43 +46866,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___101343, s.selected___101342); - s.currMovers___101357 = (r0); - r0 = (s.selected___101342 ^ 1); - s.selected___101342 = (r0); - r0 = pxsim_Array__getAt(s.buffers___101343, s.selected___101342); - s.remainingMovers___101364 = (r0); - s.ms___101369 = (undefined); - s.unnamed382___U13 = (s.currMovers___101357); - s.unnamed383___U14 = (0); - case 4: - s.tmp_0 = r0 = s.unnamed383___U14; - r0 = pxsim_Array__length(s.unnamed382___U13); + r0 = pxsim_Array__getAt(s.buffers___169696, s.selected___169695); + s.currMovers___169710 = (r0); + r0 = (s.selected___169695 ^ 1); + s.selected___169695 = (r0); + r0 = pxsim_Array__getAt(s.buffers___169696, s.selected___169695); + s.remainingMovers___169717 = (r0); + s.ms___169722 = (undefined); + s.unnamed1484___U13 = (s.currMovers___169710); + s.unnamed1485___U14 = (0); + case 4: + s.tmp_0 = r0 = s.unnamed1485___U14; + r0 = pxsim_Array__length(s.unnamed1484___U13); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 43; continue; } - r0 = pxsim_Array__getAt(s.unnamed382___U13, s.unnamed383___U14); - s.ms___101369 = (r0); - r0 = s.ms___101369.fields["sprite"]; - s.s___101371 = (r0); - r0 = s.ms___101369.fields["cachedVx"]; + r0 = pxsim_Array__getAt(s.unnamed1484___U13, s.unnamed1485___U14); + s.ms___169722 = (r0); + r0 = s.ms___169722.fields["sprite"]; + s.s___169724 = (r0); + r0 = s.ms___169722.fields["cachedVx"]; s.tmp_1 = r0; - r0 = s.s___101371.fields["_vx"]; + r0 = s.s___169724.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___101371.fields["_vx"]; + r0 = s.s___169724.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___101369).fields["dx"] = (0); + r0 = (s.ms___169722).fields["dx"] = (0); { step = 14; continue; } case 5: - r0 = s.s___101371.fields["_vx"]; + r0 = s.s___169724.fields["_vx"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -43005,7 +46911,7 @@ switch (step) { r0 = s.tmp_0; { step = 7; continue; } case 6: - r0 = s.ms___101369.fields["cachedVx"]; + r0 = s.ms___169722.fields["cachedVx"]; s.tmp_2 = r0; r0 = (s.tmp_2 > 0); case 7: @@ -43016,7 +46922,7 @@ switch (step) { r0 = s.tmp_3; { step = 11; continue; } case 8: - r0 = s.s___101371.fields["_vx"]; + r0 = s.s___169724.fields["_vx"]; s.tmp_5 = r0; r0 = (s.tmp_5 > 0); s.tmp_4 = r0; @@ -43025,7 +46931,7 @@ switch (step) { r0 = s.tmp_4; { step = 10; continue; } case 9: - r0 = s.ms___101369.fields["cachedVx"]; + r0 = s.ms___169722.fields["cachedVx"]; s.tmp_6 = r0; r0 = (s.tmp_6 < 0); case 10: @@ -43037,14 +46943,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___101369; - r0 = s.ms___101369.fields["dx"]; + s.tmp_9 = r0 = s.ms___169722; + r0 = s.ms___169722.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___101369; - r0 = s.ms___101369.fields["xStep"]; + s.tmp_0 = r0 = s.ms___169722; + r0 = s.ms___169722.fields["xStep"]; s.tmp_2 = r0; r0 = (0 - s.tmp_2); s.tmp_1 = r0; @@ -43052,29 +46958,29 @@ switch (step) { case 12: case 13: case 14: - r0 = s.s___101371.fields["_vx"]; + r0 = s.s___169724.fields["_vx"]; s.tmp_0 = r0; - r0 = (s.ms___101369).fields["cachedVx"] = (s.tmp_0); + r0 = (s.ms___169722).fields["cachedVx"] = (s.tmp_0); case 15: case 16: - r0 = s.ms___101369.fields["cachedVy"]; + r0 = s.ms___169722.fields["cachedVy"]; s.tmp_1 = r0; - r0 = s.s___101371.fields["_vy"]; + r0 = s.s___169724.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___101371.fields["_vy"]; + r0 = s.s___169724.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___101369).fields["dy"] = (0); + r0 = (s.ms___169722).fields["dy"] = (0); { step = 26; continue; } case 17: - r0 = s.s___101371.fields["_vy"]; + r0 = s.s___169724.fields["_vy"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -43083,7 +46989,7 @@ switch (step) { r0 = s.tmp_0; { step = 19; continue; } case 18: - r0 = s.ms___101369.fields["cachedVy"]; + r0 = s.ms___169722.fields["cachedVy"]; s.tmp_2 = r0; r0 = (s.tmp_2 > 0); case 19: @@ -43094,7 +47000,7 @@ switch (step) { r0 = s.tmp_3; { step = 23; continue; } case 20: - r0 = s.s___101371.fields["_vy"]; + r0 = s.s___169724.fields["_vy"]; s.tmp_5 = r0; r0 = (s.tmp_5 > 0); s.tmp_4 = r0; @@ -43103,7 +47009,7 @@ switch (step) { r0 = s.tmp_4; { step = 22; continue; } case 21: - r0 = s.ms___101369.fields["cachedVy"]; + r0 = s.ms___169722.fields["cachedVy"]; s.tmp_6 = r0; r0 = (s.tmp_6 < 0); case 22: @@ -43115,14 +47021,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___101369; - r0 = s.ms___101369.fields["dy"]; + s.tmp_9 = r0 = s.ms___169722; + r0 = s.ms___169722.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___101369; - r0 = s.ms___101369.fields["yStep"]; + s.tmp_0 = r0 = s.ms___169722; + r0 = s.ms___169722.fields["yStep"]; s.tmp_2 = r0; r0 = (0 - s.tmp_2); s.tmp_1 = r0; @@ -43130,22 +47036,22 @@ switch (step) { case 24: case 25: case 26: - r0 = s.s___101371.fields["_vy"]; + r0 = s.s___169724.fields["_vy"]; s.tmp_0 = r0; - r0 = (s.ms___101369).fields["cachedVy"] = (s.tmp_0); + r0 = (s.ms___169722).fields["cachedVy"] = (s.tmp_0); case 27: case 28: - s.tmp_2 = Fx_abs__P86645_mk(s); - r0 = s.ms___101369.fields["xStep"]; + s.tmp_2 = Fx_abs__P151644_mk(s); + r0 = s.ms___169722.fields["xStep"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 482; s.pc = 54; return s.tmp_2; + s.callLocIdx = 530; s.pc = 54; return s.tmp_2; case 54: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = Fx_abs__P86645_mk(s); - r0 = s.ms___101369.fields["dx"]; + s.tmp_4 = Fx_abs__P151644_mk(s); + r0 = s.ms___169722.fields["dx"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 483; s.pc = 55; return s.tmp_4; + s.callLocIdx = 531; s.pc = 55; return s.tmp_4; case 55: r0 = s.retval; s.tmp_3 = r0; @@ -43153,25 +47059,25 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 29; continue; } - r0 = s.ms___101369.fields["dx"]; + r0 = s.ms___169722.fields["dx"]; { step = 30; continue; } case 29: - r0 = s.ms___101369.fields["xStep"]; + r0 = s.ms___169722.fields["xStep"]; case 30: // jmp value (already in r0) s.tmp_5 = r0; - s.stepX___101464 = (s.tmp_5); - s.tmp_2 = Fx_abs__P86645_mk(s); - r0 = s.ms___101369.fields["yStep"]; + s.stepX___169817 = (s.tmp_5); + s.tmp_2 = Fx_abs__P151644_mk(s); + r0 = s.ms___169722.fields["yStep"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 484; s.pc = 56; return s.tmp_2; + s.callLocIdx = 532; s.pc = 56; return s.tmp_2; case 56: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = Fx_abs__P86645_mk(s); - r0 = s.ms___101369.fields["dy"]; + s.tmp_4 = Fx_abs__P151644_mk(s); + r0 = s.ms___169722.fields["dy"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 485; s.pc = 57; return s.tmp_4; + s.callLocIdx = 533; s.pc = 57; return s.tmp_4; case 57: r0 = s.retval; s.tmp_3 = r0; @@ -43179,45 +47085,45 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 31; continue; } - r0 = s.ms___101369.fields["dy"]; + r0 = s.ms___169722.fields["dy"]; { step = 32; continue; } case 31: - r0 = s.ms___101369.fields["yStep"]; + r0 = s.ms___169722.fields["yStep"]; case 32: // jmp value (already in r0) s.tmp_5 = r0; - s.stepY___101478 = (s.tmp_5); - s.tmp_0 = r0 = s.ms___101369; - r0 = s.ms___101369.fields["dx"]; + s.stepY___169831 = (s.tmp_5); + s.tmp_0 = r0 = s.ms___169722; + r0 = s.ms___169722.fields["dx"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepX___101464); + r0 = (s.tmp_2 - s.stepX___169817); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dx"] = (s.tmp_1); - s.tmp_0 = r0 = s.ms___101369; - r0 = s.ms___101369.fields["dy"]; + s.tmp_0 = r0 = s.ms___169722; + r0 = s.ms___169722.fields["dy"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepY___101478); + r0 = (s.tmp_2 - s.stepY___169831); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dy"] = (s.tmp_1); - r0 = s.s___101371.fields["_x"]; + r0 = s.s___169724.fields["_x"]; s.tmp_0 = r0; - r0 = (s.s___101371).fields["_lastX"] = (s.tmp_0); - r0 = s.s___101371.fields["_y"]; + r0 = (s.s___169724).fields["_lastX"] = (s.tmp_0); + r0 = s.s___169724.fields["_y"]; s.tmp_0 = r0; - r0 = (s.s___101371).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = r0 = s.s___101371; - r0 = s.s___101371.fields["_x"]; + r0 = (s.s___169724).fields["_lastY"] = (s.tmp_0); + s.tmp_0 = r0 = s.s___169724; + r0 = s.s___169724.fields["_x"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepX___101464); + r0 = (s.tmp_2 + s.stepX___169817); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.s___101371; - r0 = s.s___101371.fields["_y"]; + s.tmp_0 = r0 = s.s___169724; + r0 = s.s___169724.fields["_y"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepY___101478); + r0 = (s.tmp_2 + s.stepY___169831); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = s.s___101371.fields["flags"]; + r0 = s.s___169724.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 515); s.tmp_2 = r0; @@ -43227,20 +47133,20 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 37; continue; } - s.tmp_4 = sprites_SpriteMap_insertAABB__P88586_mk(s); + s.tmp_4 = sprites_SpriteMap_insertAABB__P153585_mk(s); r0 = s.arg0.fields["map"]; s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.s___101371; - s.callLocIdx = 490; s.pc = 58; return s.tmp_4; + s.tmp_4.arg1 = s.s___169724; + s.callLocIdx = 538; s.pc = 58; return s.tmp_4; case 58: r0 = s.retval; - s.tmp_0 = r0 = s.tileMap___101289; + s.tmp_0 = r0 = s.tileMap___169642; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 33; continue; } r0 = s.tmp_0; { step = 34; continue; } case 33: - r0 = s.tileMap___101289.fields["_map"]; + r0 = s.tileMap___169642.fields["_map"]; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; @@ -43254,81 +47160,81 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 35; continue; } - s.tmp_6 = ArcadePhysicsEngine_tilemapCollisions__P90403_mk(s); + s.tmp_6 = ArcadePhysicsEngine_tilemapCollisions__P155567_mk(s); s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.ms___101369; - s.tmp_6.arg2 = s.tileMap___101289; - s.callLocIdx = 492; s.pc = 59; return s.tmp_6; + s.tmp_6.arg1 = s.ms___169722; + s.tmp_6.arg2 = s.tileMap___169642; + s.callLocIdx = 540; s.pc = 59; return s.tmp_6; case 59: r0 = s.retval; case 35: case 36: case 37: case 38: - s.tmp_2 = Fx_abs__P86645_mk(s); - r0 = s.ms___101369.fields["dx"]; + s.tmp_2 = Fx_abs__P151644_mk(s); + r0 = s.ms___169722.fields["dx"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 493; s.pc = 60; return s.tmp_2; + s.callLocIdx = 541; s.pc = 60; return s.tmp_2; case 60: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___88655); + r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___153654); 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__P86645_mk(s); - r0 = s.ms___101369.fields["dy"]; + s.tmp_4 = Fx_abs__P151644_mk(s); + r0 = s.ms___169722.fields["dy"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 494; s.pc = 61; return s.tmp_4; + s.callLocIdx = 542; s.pc = 61; return s.tmp_4; case 61: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___88655); + r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___153654); 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___101364, s.ms___101369); + r0 = pxsim_Array__push(s.remainingMovers___169717, s.ms___169722); case 41: case 42: - r0 = (s.unnamed383___U14 + 1); - s.unnamed383___U14 = (r0); + r0 = (s.unnamed1485___U14 + 1); + s.unnamed1485___U14 = (r0); { step = 4; continue; } case 43: - s.unnamed382___U13 = (undefined); - s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P90402_mk(s); + s.unnamed1484___U13 = (undefined); + s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P155566_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.currMovers___101357; - s.tmp_0.arg2 = s.overlapHandlers___101335; - s.callLocIdx = 495; s.pc = 62; return s.tmp_0; + s.tmp_0.arg1 = s.currMovers___169710; + s.tmp_0.arg2 = s.overlapHandlers___169688; + s.callLocIdx = 543; s.pc = 62; return s.tmp_0; case 62: r0 = s.retval; case 44: - r0 = pxsim_Array__length(s.currMovers___101357); + r0 = pxsim_Array__length(s.currMovers___169710); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 45; continue; } - r0 = pxsim_Array_.pop(s.currMovers___101357); + r0 = pxsim_Array_.pop(s.currMovers___169710); { step = 44; continue; } case 45: - r0 = (s.count___101347 + 1); - s.count___101347 = (r0); + r0 = (s.count___169700 + 1); + s.count___169700 = (r0); { step = 1; continue; } case 46: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_move__P88670.info = {"start":2551,"length":3971,"line":109,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} +ArcadePhysicsEngine_move__P153669.info = {"start":2551,"length":3971,"line":109,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} -function ArcadePhysicsEngine_move__P88670_mk(s) { +function ArcadePhysicsEngine_move__P153669_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_move__P88670, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_move__P153669, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43342,24 +47248,24 @@ function ArcadePhysicsEngine_move__P88670_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - dtf___101275: undefined, - dt2___101282: undefined, - scene___101286: undefined, - tileMap___101289: undefined, - movingSprites___101292: undefined, - MAX_STEP_COUNT___101323: undefined, - overlapHandlers___101335: undefined, - selected___101342: undefined, - buffers___101343: undefined, - count___101347: undefined, - currMovers___101357: undefined, - remainingMovers___101364: undefined, - ms___101369: undefined, - unnamed382___U13: undefined, - unnamed383___U14: undefined, - s___101371: undefined, - stepX___101464: undefined, - stepY___101478: undefined, + dtf___169628: undefined, + dt2___169635: undefined, + scene___169639: undefined, + tileMap___169642: undefined, + movingSprites___169645: undefined, + MAX_STEP_COUNT___169676: undefined, + overlapHandlers___169688: undefined, + selected___169695: undefined, + buffers___169696: undefined, + count___169700: undefined, + currMovers___169710: undefined, + remainingMovers___169717: undefined, + ms___169722: undefined, + unnamed1484___U13: undefined, + unnamed1485___U14: undefined, + s___169724: undefined, + stepX___169817: undefined, + stepY___169831: undefined, arg0: undefined, arg1: undefined, } } @@ -43368,7 +47274,7 @@ function ArcadePhysicsEngine_move__P88670_mk(s) { -function inline__P101294(s) { +function inline__P169647(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43382,23 +47288,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P90401_mk(s); + s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P155565_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 = 465; s.pc = 1; return s.tmp_0; + s.callLocIdx = 513; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -inline__P101294.info = {"start":2943,"length":51,"line":121,"column":17,"endLine":121,"endColumn":68,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["sprite"]} +inline__P169647.info = {"start":2943,"length":51,"line":121,"column":17,"endLine":121,"endColumn":68,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["sprite"]} -function inline__P101294_mk(s) { +function inline__P169647_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P101294, depth: s.depth + 1, + parent: s, fn: inline__P169647, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -43408,7 +47314,7 @@ function inline__P101294_mk(s) { -function inline__P101306(s) { +function inline__P169659(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43422,9 +47328,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_1 = Sprite_vx__P88514_mk(s); + s.tmp_1 = Sprite_vx__P153513_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 467; s.pc = 5; return s.tmp_1; + s.callLocIdx = 515; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0 = r0; @@ -43433,9 +47339,9 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_2 = Sprite_vy__P88516_mk(s); + s.tmp_2 = Sprite_vy__P153515_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 468; s.pc = 6; return s.tmp_2; + s.callLocIdx = 516; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; case 2: @@ -43443,9 +47349,9 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - s.tmp_4 = Sprite_clearObstacles__P88569_mk(s); + s.tmp_4 = Sprite_clearObstacles__P153568_mk(s); s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 469; s.pc = 7; return s.tmp_4; + s.callLocIdx = 517; s.pc = 7; return s.tmp_4; case 7: r0 = s.retval; case 3: @@ -43454,12 +47360,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P101306.info = {"start":3077,"length":66,"line":124,"column":29,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["s"]} +inline__P169659.info = {"start":3077,"length":66,"line":124,"column":29,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["s"]} -function inline__P101306_mk(s) { +function inline__P169659_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P101306, depth: s.depth + 1, + parent: s, fn: inline__P169659, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43473,7 +47379,7 @@ function inline__P101306_mk(s) { -function ArcadePhysicsEngine_spriteCollisions__P90402(s) { +function ArcadePhysicsEngine_spriteCollisions__P155566(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43483,18 +47389,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ms___101579 = undefined; - s.unnamed384___U1 = undefined; - s.unnamed385___U2 = undefined; - s.sprite___101581 = undefined; - s.overSprites___101588 = undefined; - s.overlapper___101596 = undefined; - s.unnamed386___U6 = undefined; - s.unnamed387___U7 = undefined; - s.thisKind___101602 = undefined; - s.otherKind___101606 = undefined; - s.higher___101619 = undefined; - s.lower___101628 = undefined; + s.ms___169932 = undefined; + s.unnamed1486___U1 = undefined; + s.unnamed1487___U2 = undefined; + s.sprite___169934 = undefined; + s.overSprites___169941 = undefined; + s.overlapper___169949 = undefined; + s.unnamed1488___U6 = undefined; + s.unnamed1489___U7 = undefined; + s.thisKind___169955 = undefined; + s.otherKind___169959 = undefined; + s.higher___169972 = undefined; + s.lower___169981 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -43502,7 +47408,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C88658_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C153657_VT)) failedCast(r0); r0 = pxsim_Array__length(s.arg2); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -43514,20 +47420,20 @@ switch (step) { { step = 21; continue; } case 1: case 2: - s.ms___101579 = (undefined); - s.unnamed384___U1 = (s.arg1); - s.unnamed385___U2 = (0); + s.ms___169932 = (undefined); + s.unnamed1486___U1 = (s.arg1); + s.unnamed1487___U2 = (0); case 3: - s.tmp_0 = r0 = s.unnamed385___U2; - r0 = pxsim_Array__length(s.unnamed384___U1); + s.tmp_0 = r0 = s.unnamed1487___U2; + r0 = pxsim_Array__length(s.unnamed1486___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 20; continue; } - r0 = pxsim_Array__getAt(s.unnamed384___U1, s.unnamed385___U2); - s.ms___101579 = (r0); - r0 = s.ms___101579.fields["sprite"]; - s.sprite___101581 = (r0); - r0 = s.sprite___101581.fields["flags"]; + r0 = pxsim_Array__getAt(s.unnamed1486___U1, s.unnamed1487___U2); + s.ms___169932 = (r0); + r0 = s.ms___169932.fields["sprite"]; + s.sprite___169934 = (r0); + r0 = s.sprite___169934.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 515); s.tmp_0 = r0; @@ -43536,27 +47442,27 @@ switch (step) { { step = 19; continue; } case 4: case 5: - s.tmp_2 = sprites_SpriteMap_overlaps__P88582_mk(s); + s.tmp_2 = sprites_SpriteMap_overlaps__P153581_mk(s); r0 = s.arg0.fields["map"]; s.tmp_2.arg0 = r0; - r0 = s.ms___101579.fields["sprite"]; + r0 = s.ms___169932.fields["sprite"]; s.tmp_2.arg1 = r0; - s.callLocIdx = 533; s.pc = 22; return s.tmp_2; + s.callLocIdx = 581; s.pc = 22; return s.tmp_2; case 22: r0 = s.retval; - s.overSprites___101588 = (r0); - s.overlapper___101596 = (undefined); - s.unnamed386___U6 = (s.overSprites___101588); - s.unnamed387___U7 = (0); + s.overSprites___169941 = (r0); + s.overlapper___169949 = (undefined); + s.unnamed1488___U6 = (s.overSprites___169941); + s.unnamed1489___U7 = (0); case 6: - s.tmp_0 = r0 = s.unnamed387___U7; - r0 = pxsim_Array__length(s.unnamed386___U6); + s.tmp_0 = r0 = s.unnamed1489___U7; + r0 = pxsim_Array__length(s.unnamed1488___U6); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 18; continue; } - r0 = pxsim_Array__getAt(s.unnamed386___U6, s.unnamed387___U7); - s.overlapper___101596 = (r0); - r0 = s.overlapper___101596.fields["flags"]; + r0 = pxsim_Array__getAt(s.unnamed1488___U6, s.unnamed1489___U7); + s.overlapper___169949 = (r0); + r0 = s.overlapper___169949.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 515); s.tmp_2 = r0; @@ -43565,13 +47471,13 @@ switch (step) { { step = 17; continue; } case 7: case 8: - r0 = s.sprite___101581.fields["_kind"]; - s.thisKind___101602 = (r0); - r0 = s.overlapper___101596.fields["_kind"]; - s.otherKind___101606 = (r0); - r0 = s.sprite___101581.fields["_kindsOverlappedWith"]; + r0 = s.sprite___169934.fields["_kind"]; + s.thisKind___169955 = (r0); + r0 = s.overlapper___169949.fields["_kind"]; + s.otherKind___169959 = (r0); + r0 = s.sprite___169934.fields["_kindsOverlappedWith"]; s.tmp_2 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___101606, undefined); + r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___169959, undefined); s.tmp_1 = r0; r0 = (s.tmp_1 === -1); s.tmp_0 = r0; @@ -43580,37 +47486,37 @@ switch (step) { { step = 17; continue; } case 9: case 10: - r0 = s.sprite___101581.fields["id"]; + r0 = s.sprite___169934.fields["id"]; s.tmp_4 = r0; - r0 = s.overlapper___101596.fields["id"]; + r0 = s.overlapper___169949.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___101581; + r0 = s.sprite___169934; { step = 12; continue; } case 11: - r0 = s.overlapper___101596; + r0 = s.overlapper___169949; case 12: // jmp value (already in r0) s.tmp_6 = r0; - s.higher___101619 = (s.tmp_6); - r0 = (s.higher___101619 === s.sprite___101581); + s.higher___169972 = (s.tmp_6); + r0 = (s.higher___169972 === s.sprite___169934); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - r0 = s.overlapper___101596; + r0 = s.overlapper___169949; { step = 14; continue; } case 13: - r0 = s.sprite___101581; + r0 = s.sprite___169934; case 14: // jmp value (already in r0) s.tmp_1 = r0; - s.lower___101628 = (s.tmp_1); - r0 = s.higher___101619.fields["_overlappers"]; + s.lower___169981 = (s.tmp_1); + r0 = s.higher___169972.fields["_overlappers"]; s.tmp_2 = r0; - r0 = s.lower___101628.fields["id"]; + r0 = s.lower___169981.fields["id"]; s.tmp_3 = r0; r0 = pxsim_Array_.indexOf(s.tmp_2, s.tmp_3, undefined); s.tmp_1 = r0; @@ -43618,54 +47524,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__P101648); + r0 = pxsim_pxtcore_mkAction(2, inline__P170001); s.tmp_4 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___101602); - r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___101606); - r0 = pxsim_pxtcore_mkAction(5, inline__P101672); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___169955); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___169959); + r0 = pxsim_pxtcore_mkAction(5, inline__P170025); s.tmp_5 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___101619); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___101628); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___101581); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___101596); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___101602); - s.tmp_6 = helpers_arrayForEach__P86592_mk(s); - s.tmp_7 = helpers_arrayFilter__P86593_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___169972); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___169981); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___169934); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___169949); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___169955); + s.tmp_6 = helpers_arrayForEach__P151591_mk(s); + s.tmp_7 = helpers_arrayFilter__P151592_mk(s); s.tmp_7.arg0 = s.arg2; s.tmp_7.arg1 = s.tmp_4; - s.callLocIdx = 536; s.pc = 24; return s.tmp_7; + s.callLocIdx = 584; 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 = 538; s.pc = 23; return s.tmp_6; + s.callLocIdx = 586; s.pc = 23; return s.tmp_6; case 23: r0 = s.retval; case 15: case 16: case 17: - r0 = (s.unnamed387___U7 + 1); - s.unnamed387___U7 = (r0); + r0 = (s.unnamed1489___U7 + 1); + s.unnamed1489___U7 = (r0); { step = 6; continue; } case 18: - s.unnamed386___U6 = (undefined); + s.unnamed1488___U6 = (undefined); case 19: - r0 = (s.unnamed385___U2 + 1); - s.unnamed385___U2 = (r0); + r0 = (s.unnamed1487___U2 + 1); + s.unnamed1487___U2 = (r0); { step = 3; continue; } case 20: - s.unnamed384___U1 = (undefined); + s.unnamed1486___U1 = (undefined); case 21: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_spriteCollisions__P90402.info = {"start":9599,"length":2254,"line":324,"column":4,"endLine":368,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"spriteCollisions","argumentNames":["this","movedSprites","handlers"]} +ArcadePhysicsEngine_spriteCollisions__P155566.info = {"start":9599,"length":2254,"line":324,"column":4,"endLine":368,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"spriteCollisions","argumentNames":["this","movedSprites","handlers"]} -function ArcadePhysicsEngine_spriteCollisions__P90402_mk(s) { +function ArcadePhysicsEngine_spriteCollisions__P155566_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P90402, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P155566, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43675,18 +47581,18 @@ function ArcadePhysicsEngine_spriteCollisions__P90402_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - ms___101579: undefined, - unnamed384___U1: undefined, - unnamed385___U2: undefined, - sprite___101581: undefined, - overSprites___101588: undefined, - overlapper___101596: undefined, - unnamed386___U6: undefined, - unnamed387___U7: undefined, - thisKind___101602: undefined, - otherKind___101606: undefined, - higher___101619: undefined, - lower___101628: undefined, + ms___169932: undefined, + unnamed1486___U1: undefined, + unnamed1487___U2: undefined, + sprite___169934: undefined, + overSprites___169941: undefined, + overlapper___169949: undefined, + unnamed1488___U6: undefined, + unnamed1489___U7: undefined, + thisKind___169955: undefined, + otherKind___169959: undefined, + higher___169972: undefined, + lower___169981: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -43696,7 +47602,7 @@ function ArcadePhysicsEngine_spriteCollisions__P90402_mk(s) { -function inline__P101648(s) { +function inline__P170001(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43753,12 +47659,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P101648.info = {"start":10958,"length":137,"line":350,"column":32,"endLine":351,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +inline__P170001.info = {"start":10958,"length":137,"line":350,"column":32,"endLine":351,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P101648_mk(s) { +function inline__P170001_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P101648, depth: s.depth + 1, + parent: s, fn: inline__P170001, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43776,7 +47682,7 @@ function inline__P101648_mk(s) { -function inline__P101672(s) { +function inline__P170025(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43795,7 +47701,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__P101682); + r0 = pxsim_pxtcore_mkAction(6, inline__P170035); 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]); @@ -43808,12 +47714,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P101672.info = {"start":11155,"length":648,"line":353,"column":33,"endLine":364,"endColumn":25,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +inline__P170025.info = {"start":11155,"length":648,"line":353,"column":33,"endLine":364,"endColumn":25,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P101672_mk(s) { +function inline__P170025_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P101672, depth: s.depth + 1, + parent: s, fn: inline__P170025, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43824,7 +47730,7 @@ function inline__P101672_mk(s) { -function inline__P101682(s) { +function inline__P170035(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43880,12 +47786,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 = 537; s.pc = 7; return s.tmp_12; + s.callLocIdx = 585; 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 = 537; s.pc = 7; return s.tmp_12; } - else if (s.tmp_12.fn.isGetter) { s.tmp_12.stage2Call = true; s.callLocIdx = 537; s.pc = 7; return s.tmp_12;; } - else { s.callLocIdx = 537; 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 = 585; s.pc = 7; return s.tmp_12; } + else if (s.tmp_12.fn.isGetter) { s.tmp_12.stage2Call = true; s.callLocIdx = 585; s.pc = 7; return s.tmp_12;; } + else { s.callLocIdx = 585; s.pc = 7; return s.tmp_12; } } case 7: r0 = s.retval; @@ -43900,12 +47806,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P101682.info = {"start":11276,"length":499,"line":355,"column":50,"endLine":363,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]} +inline__P170035.info = {"start":11276,"length":499,"line":355,"column":50,"endLine":363,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]} -function inline__P101682_mk(s) { +function inline__P170035_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P101682, depth: s.depth + 1, + parent: s, fn: inline__P170035, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43926,7 +47832,7 @@ function inline__P101682_mk(s) { -function sprites_SpriteMap_overlaps__P88582(s) { +function sprites_SpriteMap_overlaps__P153581(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43936,47 +47842,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___101716 = undefined; - s.o___101720 = undefined; + s.n___170069 = undefined; + s.o___170073 = 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__C88579_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_neighbors__P88581_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C153578_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_neighbors__P153580_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 408; s.pc = 1; return s.tmp_0; + s.callLocIdx = 454; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.n___101716 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P101722); + s.n___170069 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P170075); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayFilter__P86593_mk(s); - s.tmp_1.arg0 = s.n___101716; + s.tmp_1 = helpers_arrayFilter__P151592_mk(s); + s.tmp_1.arg0 = s.n___170069; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 410; s.pc = 2; return s.tmp_1; + s.callLocIdx = 456; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - s.o___101720 = (r0); - r0 = s.o___101720; + s.o___170073 = (r0); + r0 = s.o___170073; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_overlaps__P88582.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__P153581.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__P88582_mk(s) { +function sprites_SpriteMap_overlaps__P153581_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_overlaps__P88582, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_overlaps__P153581, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - n___101716: undefined, - o___101720: undefined, + n___170069: undefined, + o___170073: undefined, arg0: undefined, arg1: undefined, } } @@ -43985,7 +47891,7 @@ function sprites_SpriteMap_overlaps__P88582_mk(s) { -function inline__P101722(s) { +function inline__P170075(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43999,21 +47905,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Sprite_overlapsWith__P88565_mk(s); + s.tmp_0 = Sprite_overlapsWith__P153564_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 409; s.pc = 1; return s.tmp_0; + s.callLocIdx = 455; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -inline__P101722.info = {"start":1037,"length":41,"line":32,"column":31,"endLine":32,"endColumn":72,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["neighbor"]} +inline__P170075.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__P101722_mk(s) { +function inline__P170075_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P101722, depth: s.depth + 1, + parent: s, fn: inline__P170075, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -44023,7 +47929,7 @@ function inline__P101722_mk(s) { -function sprites_SpriteMap_neighbors__P88581(s) { +function sprites_SpriteMap_neighbors__P153580(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44033,112 +47939,112 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___101764 = undefined; - s.layer___101766 = undefined; + s.n___170117 = undefined; + s.layer___170119 = 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__C88579_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C153578_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.n___101764 = (r0); + s.n___170117 = (r0); r0 = s.arg1.fields["layer"]; - s.layer___101766 = (r0); - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P90380_mk(s); + s.layer___170119 = (r0); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P155544_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_left__P88547_mk(s); + s.tmp_1 = Sprite_left__P153546_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 396; s.pc = 2; return s.tmp_1; + s.callLocIdx = 442; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_top__P88551_mk(s); + s.tmp_2 = Sprite_top__P153550_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 397; s.pc = 3; return s.tmp_2; + s.callLocIdx = 443; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___101766; - s.tmp_0.arg4 = s.n___101764; - s.callLocIdx = 398; s.pc = 1; return s.tmp_0; + s.tmp_0.arg3 = s.layer___170119; + s.tmp_0.arg4 = s.n___170117; + s.callLocIdx = 444; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P90380_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P155544_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_left__P88547_mk(s); + s.tmp_1 = Sprite_left__P153546_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 399; s.pc = 5; return s.tmp_1; + s.callLocIdx = 445; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_bottom__P88553_mk(s); + s.tmp_2 = Sprite_bottom__P153552_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 400; s.pc = 6; return s.tmp_2; + s.callLocIdx = 446; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___101766; - s.tmp_0.arg4 = s.n___101764; - s.callLocIdx = 401; s.pc = 4; return s.tmp_0; + s.tmp_0.arg3 = s.layer___170119; + s.tmp_0.arg4 = s.n___170117; + s.callLocIdx = 447; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P90380_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P155544_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_right__P88549_mk(s); + s.tmp_1 = Sprite_right__P153548_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 402; s.pc = 8; return s.tmp_1; + s.callLocIdx = 448; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_top__P88551_mk(s); + s.tmp_2 = Sprite_top__P153550_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 403; s.pc = 9; return s.tmp_2; + s.callLocIdx = 449; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___101766; - s.tmp_0.arg4 = s.n___101764; - s.callLocIdx = 404; s.pc = 7; return s.tmp_0; + s.tmp_0.arg3 = s.layer___170119; + s.tmp_0.arg4 = s.n___170117; + s.callLocIdx = 450; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P90380_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P155544_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_right__P88549_mk(s); + s.tmp_1 = Sprite_right__P153548_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 405; s.pc = 11; return s.tmp_1; + s.callLocIdx = 451; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_bottom__P88553_mk(s); + s.tmp_2 = Sprite_bottom__P153552_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 406; s.pc = 12; return s.tmp_2; + s.callLocIdx = 452; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___101766; - s.tmp_0.arg4 = s.n___101764; - s.callLocIdx = 407; s.pc = 10; return s.tmp_0; + s.tmp_0.arg3 = s.layer___170119; + s.tmp_0.arg4 = s.n___170117; + s.callLocIdx = 453; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - r0 = pxsim_Array_.removeElement(s.n___101764, s.arg1); - r0 = s.n___101764; + r0 = pxsim_Array_.removeElement(s.n___170117, s.arg1); + r0 = s.n___170117; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_neighbors__P88581.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__P153580.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__P88581_mk(s) { +function sprites_SpriteMap_neighbors__P153580_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_neighbors__P88581, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_neighbors__P153580, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - n___101764: undefined, - layer___101766: undefined, + n___170117: undefined, + layer___170119: undefined, arg0: undefined, arg1: undefined, } } @@ -44147,7 +48053,7 @@ function sprites_SpriteMap_neighbors__P88581_mk(s) { -function sprites_SpriteMap_mergeAtKey__P90380(s) { +function sprites_SpriteMap_mergeAtKey__P155544(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44157,11 +48063,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___101815 = undefined; - s.bucket___101820 = undefined; - s.sprite___101827 = undefined; - s.unnamed380___U3 = undefined; - s.unnamed381___U4 = undefined; + s.k___170168 = undefined; + s.bucket___170173 = undefined; + s.sprite___170180 = undefined; + s.unnamed1482___U3 = undefined; + s.unnamed1483___U4 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -44171,33 +48077,33 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C88579_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P90378_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C153578_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_key__P155542_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 434; s.pc = 9; return s.tmp_0; + s.callLocIdx = 480; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.k___101815 = (r0); + s.k___170168 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___101815); - s.bucket___101820 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___101820); + r0 = pxsim_Array__getAt(s.tmp_0, s.k___170168); + s.bucket___170173 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___170173); if (!r0) { step = 7; continue; } - s.sprite___101827 = (undefined); - s.unnamed380___U3 = (s.bucket___101820); - s.unnamed381___U4 = (0); + s.sprite___170180 = (undefined); + s.unnamed1482___U3 = (s.bucket___170173); + s.unnamed1483___U4 = (0); case 1: - s.tmp_0 = r0 = s.unnamed381___U4; - r0 = pxsim_Array__length(s.unnamed380___U3); + s.tmp_0 = r0 = s.unnamed1483___U4; + r0 = pxsim_Array__length(s.unnamed1482___U3); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed380___U3, s.unnamed381___U4); - s.sprite___101827 = (r0); - r0 = s.sprite___101827.fields["layer"]; + r0 = pxsim_Array__getAt(s.unnamed1482___U3, s.unnamed1483___U4); + s.sprite___170180 = (r0); + r0 = s.sprite___170180.fields["layer"]; s.tmp_3 = r0; r0 = (s.tmp_3 & s.arg3); s.tmp_2 = r0; @@ -44206,7 +48112,7 @@ switch (step) { r0 = s.tmp_2; { step = 3; continue; } case 2: - r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___101827, undefined); + r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___170180, undefined); s.tmp_4 = r0; r0 = (s.tmp_4 < 0); case 3: @@ -44214,26 +48120,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___101827); + r0 = pxsim_Array__push(s.arg4, s.sprite___170180); case 4: case 5: - r0 = (s.unnamed381___U4 + 1); - s.unnamed381___U4 = (r0); + r0 = (s.unnamed1483___U4 + 1); + s.unnamed1483___U4 = (r0); { step = 1; continue; } case 6: - s.unnamed380___U3 = (undefined); + s.unnamed1482___U3 = (undefined); case 7: case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_mergeAtKey__P90380.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__P155544.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__P90380_mk(s) { +function sprites_SpriteMap_mergeAtKey__P155544_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_mergeAtKey__P90380, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_mergeAtKey__P155544, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44241,11 +48147,11 @@ function sprites_SpriteMap_mergeAtKey__P90380_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - k___101815: undefined, - bucket___101820: undefined, - sprite___101827: undefined, - unnamed380___U3: undefined, - unnamed381___U4: undefined, + k___170168: undefined, + bucket___170173: undefined, + sprite___170180: undefined, + unnamed1482___U3: undefined, + unnamed1483___U4: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -44257,7 +48163,7 @@ function sprites_SpriteMap_mergeAtKey__P90380_mk(s) { -function sprites_SpriteMap_key__P90378(s) { +function sprites_SpriteMap_key__P155542(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44267,8 +48173,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.xi___101848 = undefined; - s.yi___101860 = undefined; + s.xi___170201 = undefined; + s.yi___170213 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -44276,8 +48182,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C88579_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P86607_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C153578_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P151606_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg0.fields["columnCount"]; s.tmp_0.arg1 = r0; @@ -44285,11 +48191,11 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.arg1, s.tmp_1); s.tmp_0.arg2 = r0; - s.callLocIdx = 422; s.pc = 1; return s.tmp_0; + s.callLocIdx = 468; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.xi___101848 = (r0); - s.tmp_0 = Math_clamp__P86607_mk(s); + s.xi___170201 = (r0); + s.tmp_0 = Math_clamp__P151606_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg0.fields["rowCount"]; s.tmp_0.arg1 = r0; @@ -44297,31 +48203,31 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.arg2, s.tmp_1); s.tmp_0.arg2 = r0; - s.callLocIdx = 423; s.pc = 2; return s.tmp_0; + s.callLocIdx = 469; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.yi___101860 = (r0); - s.tmp_0 = r0 = s.xi___101848; + s.yi___170213 = (r0); + s.tmp_0 = r0 = s.xi___170201; r0 = s.arg0.fields["columnCount"]; s.tmp_2 = r0; - r0 = (s.yi___101860 * s.tmp_2); + r0 = (s.yi___170213 * s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); return leave(s, r0) default: oops() } } } -sprites_SpriteMap_key__P90378.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__P155542.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__P90378_mk(s) { +function sprites_SpriteMap_key__P155542_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_key__P90378, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_key__P155542, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - xi___101848: undefined, - yi___101860: undefined, + xi___170201: undefined, + yi___170213: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -44331,7 +48237,7 @@ function sprites_SpriteMap_key__P90378_mk(s) { -function Sprite_bottom__P88553(s) { +function Sprite_bottom__P153552(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44346,10 +48252,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - s.tmp_1 = Sprite_top__P88551_mk(s); + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + s.tmp_1 = Sprite_top__P153550_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 288; s.pc = 1; return s.tmp_1; + s.callLocIdx = 329; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; @@ -44361,13 +48267,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -Sprite_bottom__P88553.info = {"start":10083,"length":59,"line":369,"column":4,"endLine":371,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this"]} -Sprite_bottom__P88553.isGetter = true; +Sprite_bottom__P153552.info = {"start":10083,"length":59,"line":369,"column":4,"endLine":371,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this"]} +Sprite_bottom__P153552.isGetter = true; -function Sprite_bottom__P88553_mk(s) { +function Sprite_bottom__P153552_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_bottom__P88553, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P153552, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44380,7 +48286,7 @@ function Sprite_bottom__P88553_mk(s) { -function Sprite_right__P88549(s) { +function Sprite_right__P153548(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44395,10 +48301,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - s.tmp_1 = Sprite_left__P88547_mk(s); + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + s.tmp_1 = Sprite_left__P153546_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 280; s.pc = 1; return s.tmp_1; + s.callLocIdx = 321; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; @@ -44410,13 +48316,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -Sprite_right__P88549.info = {"start":9279,"length":57,"line":339,"column":4,"endLine":341,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this"]} -Sprite_right__P88549.isGetter = true; +Sprite_right__P153548.info = {"start":9279,"length":57,"line":339,"column":4,"endLine":341,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this"]} +Sprite_right__P153548.isGetter = true; -function Sprite_right__P88549_mk(s) { +function Sprite_right__P153548_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P88549, depth: s.depth + 1, + parent: s, fn: Sprite_right__P153548, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44429,7 +48335,7 @@ function Sprite_right__P88549_mk(s) { -function Sprite_overlapsWith__P88565(s) { +function Sprite_overlapsWith__P153564(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44445,7 +48351,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); r0 = (s.arg1 == s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -44478,29 +48384,29 @@ switch (step) { s.tmp_5 = r0; r0 = s.arg0.fields["_image"]; s.tmp_6 = r0; - s.tmp_9 = Sprite_left__P88547_mk(s); + s.tmp_9 = Sprite_left__P153546_mk(s); s.tmp_9.arg0 = s.arg0; - s.callLocIdx = 358; s.pc = 8; return s.tmp_9; + s.callLocIdx = 404; s.pc = 8; return s.tmp_9; case 8: r0 = s.retval; s.tmp_8 = r0; - s.tmp_11 = Sprite_left__P88547_mk(s); + s.tmp_11 = Sprite_left__P153546_mk(s); s.tmp_11.arg0 = s.arg1; - s.callLocIdx = 359; s.pc = 9; return s.tmp_11; + s.callLocIdx = 405; s.pc = 9; return s.tmp_11; case 9: r0 = s.retval; s.tmp_10 = r0; r0 = (s.tmp_8 - s.tmp_10); s.tmp_7 = r0; - s.tmp_14 = Sprite_top__P88551_mk(s); + s.tmp_14 = Sprite_top__P153550_mk(s); s.tmp_14.arg0 = s.arg0; - s.callLocIdx = 360; s.pc = 10; return s.tmp_14; + s.callLocIdx = 406; s.pc = 10; return s.tmp_14; case 10: r0 = s.retval; s.tmp_13 = r0; - s.tmp_16 = Sprite_top__P88551_mk(s); + s.tmp_16 = Sprite_top__P153550_mk(s); s.tmp_16.arg0 = s.arg1; - s.callLocIdx = 361; s.pc = 11; return s.tmp_16; + s.callLocIdx = 407; s.pc = 11; return s.tmp_16; case 11: r0 = s.retval; s.tmp_15 = r0; @@ -44511,12 +48417,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_overlapsWith__P88565.info = {"start":24476,"length":434,"line":748,"column":4,"endLine":756,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]} +Sprite_overlapsWith__P153564.info = {"start":24476,"length":434,"line":748,"column":4,"endLine":756,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]} -function Sprite_overlapsWith__P88565_mk(s) { +function Sprite_overlapsWith__P153564_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_overlapsWith__P88565, depth: s.depth + 1, + parent: s, fn: Sprite_overlapsWith__P153564, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44543,7 +48449,7 @@ function Sprite_overlapsWith__P88565_mk(s) { -function ArcadePhysicsEngine_createMovingSprite__P90401(s) { +function ArcadePhysicsEngine_createMovingSprite__P155565(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44553,16 +48459,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ovx___102062 = undefined; - s.ovy___102067 = undefined; - s.fx___102094 = undefined; - s.c___102101 = undefined; - s.fy___102144 = undefined; - s.c___102151 = undefined; - s.dx___102190 = undefined; - s.dy___102199 = undefined; - s.xStep___102208 = undefined; - s.yStep___102210 = undefined; + s.ovx___170415 = undefined; + s.ovy___170420 = undefined; + s.fx___170447 = undefined; + s.c___170454 = undefined; + s.fy___170497 = undefined; + s.c___170504 = undefined; + s.dx___170543 = undefined; + s.dy___170552 = undefined; + s.xStep___170561 = undefined; + s.yStep___170563 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -44571,23 +48477,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C88658_VT)) failedCast(r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P90406_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C153657_VT)) failedCast(r0); + s.tmp_0 = ArcadePhysicsEngine_constrain__P155570_mk(s); s.tmp_0.arg0 = s.arg0; r0 = s.arg1.fields["_vx"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 496; s.pc = 25; return s.tmp_0; + s.callLocIdx = 544; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.ovx___102062 = (r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P90406_mk(s); + s.ovx___170415 = (r0); + s.tmp_0 = ArcadePhysicsEngine_constrain__P155570_mk(s); s.tmp_0.arg0 = s.arg0; r0 = s.arg1.fields["_vy"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 497; s.pc = 26; return s.tmp_0; + s.callLocIdx = 545; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - s.ovy___102067 = (r0); + s.ovy___170420 = (r0); r0 = s.arg1.fields["_x"]; s.tmp_0 = r0; r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); @@ -44625,41 +48531,41 @@ switch (step) { r0 = (s.tmp_3 >> 8); s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.tmp_1, 1000); - s.fx___102094 = (r0); + s.fx___170447 = (r0); r0 = s.arg1.fields["_vx"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fx___102094); - s.c___102101 = (r0); - r0 = (s.c___102101 < 0); + r0 = (s.tmp_0 - s.fx___170447); + s.c___170454 = (r0); + r0 = (s.c___170454 < 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__P86646_mk(s); + s.tmp_3 = Fx_min__P151645_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fx___102094); + r0 = (s.tmp_4 + s.fx___170447); s.tmp_3.arg1 = r0; - s.callLocIdx = 505; s.pc = 27; return s.tmp_3; + s.callLocIdx = 553; 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___102101 > 0); + r0 = (s.c___170454 > 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__P86647_mk(s); + s.tmp_3 = Fx_max__P151646_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fx___102094); + r0 = (s.tmp_4 - s.fx___170447); s.tmp_3.arg1 = r0; - s.callLocIdx = 507; s.pc = 28; return s.tmp_3; + s.callLocIdx = 555; s.pc = 28; return s.tmp_3; case 28: r0 = s.retval; s.tmp_2 = r0; @@ -44703,41 +48609,41 @@ switch (step) { r0 = (s.tmp_3 >> 8); s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.tmp_1, 1000); - s.fy___102144 = (r0); + s.fy___170497 = (r0); r0 = s.arg1.fields["_vy"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fy___102144); - s.c___102151 = (r0); - r0 = (s.c___102151 < 0); + r0 = (s.tmp_0 - s.fy___170497); + s.c___170504 = (r0); + r0 = (s.c___170504 < 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__P86646_mk(s); + s.tmp_3 = Fx_min__P151645_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fy___102144); + r0 = (s.tmp_4 + s.fy___170497); s.tmp_3.arg1 = r0; - s.callLocIdx = 515; s.pc = 29; return s.tmp_3; + s.callLocIdx = 563; 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___102151 > 0); + r0 = (s.c___170504 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } s.tmp_1 = r0 = s.arg1; - s.tmp_3 = Fx_min__P86646_mk(s); + s.tmp_3 = Fx_min__P151645_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fy___102144); + r0 = (s.tmp_4 - s.fy___170497); s.tmp_3.arg1 = r0; - s.callLocIdx = 517; s.pc = 30; return s.tmp_3; + s.callLocIdx = 565; s.pc = 30; return s.tmp_3; case 30: r0 = s.retval; s.tmp_2 = r0; @@ -44751,51 +48657,51 @@ switch (step) { case 15: case 16: s.tmp_0 = r0 = s.arg1; - s.tmp_2 = ArcadePhysicsEngine_constrain__P90406_mk(s); + s.tmp_2 = ArcadePhysicsEngine_constrain__P155570_mk(s); s.tmp_2.arg0 = s.arg0; r0 = s.arg1.fields["_vx"]; s.tmp_2.arg1 = r0; - s.callLocIdx = 518; s.pc = 31; return s.tmp_2; + s.callLocIdx = 566; 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__P90406_mk(s); + s.tmp_2 = ArcadePhysicsEngine_constrain__P155570_mk(s); s.tmp_2.arg0 = s.arg0; r0 = s.arg1.fields["_vy"]; s.tmp_2.arg1 = r0; - s.callLocIdx = 519; s.pc = 32; return s.tmp_2; + s.callLocIdx = 567; s.pc = 32; return s.tmp_2; case 32: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); r0 = s.arg1.fields["_vx"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.ovx___102062); + r0 = (s.tmp_2 + s.ovx___170415); s.tmp_1 = r0; r0 = pxsim.Math_.imul(s.tmp_1, s.arg3); s.tmp_3 = r0; r0 = (s.tmp_3 >> 8); s.tmp_0 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, 1000); - s.dx___102190 = (r0); + s.dx___170543 = (r0); r0 = s.arg1.fields["_vy"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.ovy___102067); + r0 = (s.tmp_2 + s.ovy___170420); s.tmp_1 = r0; r0 = pxsim.Math_.imul(s.tmp_1, s.arg3); s.tmp_3 = r0; r0 = (s.tmp_3 >> 8); s.tmp_0 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, 1000); - s.dy___102199 = (r0); - s.xStep___102208 = (s.dx___102190); - s.yStep___102210 = (s.dy___102199); + s.dy___170552 = (r0); + s.xStep___170561 = (s.dx___170543); + s.yStep___170563 = (s.dy___170552); case 17: - s.tmp_2 = Fx_abs__P86645_mk(s); - s.tmp_2.arg0 = s.xStep___102208; - s.callLocIdx = 526; s.pc = 33; return s.tmp_2; + s.tmp_2 = Fx_abs__P151644_mk(s); + s.tmp_2.arg0 = s.xStep___170561; + s.callLocIdx = 574; s.pc = 33; return s.tmp_2; case 33: r0 = s.retval; s.tmp_1 = r0; @@ -44808,9 +48714,9 @@ switch (step) { r0 = s.tmp_0; { step = 19; continue; } case 18: - s.tmp_5 = Fx_abs__P86645_mk(s); - s.tmp_5.arg0 = s.yStep___102210; - s.callLocIdx = 527; s.pc = 34; return s.tmp_5; + s.tmp_5 = Fx_abs__P151644_mk(s); + s.tmp_5.arg0 = s.yStep___170563; + s.callLocIdx = 575; s.pc = 34; return s.tmp_5; case 34: r0 = s.retval; s.tmp_4 = r0; @@ -44822,9 +48728,9 @@ switch (step) { s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 24; continue; } - s.tmp_10 = Fx_abs__P86645_mk(s); - s.tmp_10.arg0 = s.xStep___102208; - s.callLocIdx = 528; s.pc = 35; return s.tmp_10; + s.tmp_10 = Fx_abs__P151644_mk(s); + s.tmp_10.arg0 = s.xStep___170561; + s.callLocIdx = 576; s.pc = 35; return s.tmp_10; case 35: r0 = s.retval; s.tmp_9 = r0; @@ -44834,13 +48740,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___102208, 2); - s.xStep___102208 = (r0); + r0 = pxsim.Math_.idiv(s.xStep___170561, 2); + s.xStep___170561 = (r0); case 20: case 21: - s.tmp_2 = Fx_abs__P86645_mk(s); - s.tmp_2.arg0 = s.yStep___102210; - s.callLocIdx = 530; s.pc = 36; return s.tmp_2; + s.tmp_2 = Fx_abs__P151644_mk(s); + s.tmp_2.arg0 = s.yStep___170563; + s.callLocIdx = 578; s.pc = 36; return s.tmp_2; case 36: r0 = s.retval; s.tmp_1 = r0; @@ -44850,38 +48756,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___102210, 2); - s.yStep___102210 = (r0); + r0 = pxsim.Math_.idiv(s.yStep___170563, 2); + s.yStep___170563 = (r0); case 22: case 23: { step = 17; continue; } case 24: - r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C88656_VT); + r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C153655_VT); s.tmp_0 = r0; - s.tmp_1 = MovingSprite_constructor__P88657_mk(s); + s.tmp_1 = MovingSprite_constructor__P153656_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___102190; - s.tmp_1.arg5 = s.dy___102199; - s.tmp_1.arg6 = s.xStep___102208; - s.tmp_1.arg7 = s.yStep___102210; - s.callLocIdx = 532; s.pc = 37; return s.tmp_1; + s.tmp_1.arg4 = s.dx___170543; + s.tmp_1.arg5 = s.dy___170552; + s.tmp_1.arg6 = s.xStep___170561; + s.tmp_1.arg7 = s.yStep___170563; + s.callLocIdx = 580; s.pc = 37; return s.tmp_1; case 37: r0 = s.retval; r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_createMovingSprite__P90401.info = {"start":6528,"length":3065,"line":213,"column":4,"endLine":322,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"createMovingSprite","argumentNames":["this","sprite","dtMs","dt2"]} +ArcadePhysicsEngine_createMovingSprite__P155565.info = {"start":6528,"length":3065,"line":213,"column":4,"endLine":322,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"createMovingSprite","argumentNames":["this","sprite","dtMs","dt2"]} -function ArcadePhysicsEngine_createMovingSprite__P90401_mk(s) { +function ArcadePhysicsEngine_createMovingSprite__P155565_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P90401, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P155565, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44895,16 +48801,16 @@ function ArcadePhysicsEngine_createMovingSprite__P90401_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - ovx___102062: undefined, - ovy___102067: undefined, - fx___102094: undefined, - c___102101: undefined, - fy___102144: undefined, - c___102151: undefined, - dx___102190: undefined, - dy___102199: undefined, - xStep___102208: undefined, - yStep___102210: undefined, + ovx___170415: undefined, + ovy___170420: undefined, + fx___170447: undefined, + c___170454: undefined, + fy___170497: undefined, + c___170504: undefined, + dx___170543: undefined, + dy___170552: undefined, + xStep___170561: undefined, + yStep___170563: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -44915,7 +48821,7 @@ function ArcadePhysicsEngine_createMovingSprite__P90401_mk(s) { -function ArcadePhysicsEngine_constrain__P90406(s) { +function ArcadePhysicsEngine_constrain__P155570(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44931,30 +48837,30 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C88658_VT)) failedCast(r0); - s.tmp_0 = Fx_max__P86647_mk(s); - s.tmp_1 = Fx_min__P86646_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C153657_VT)) failedCast(r0); + s.tmp_0 = Fx_max__P151646_mk(s); + s.tmp_1 = Fx_min__P151645_mk(s); r0 = s.arg0.fields["maxVelocity"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 681; s.pc = 2; return s.tmp_1; + s.callLocIdx = 729; 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 = 682; s.pc = 1; return s.tmp_0; + s.callLocIdx = 730; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_constrain__P90406.info = {"start":25298,"length":191,"line":751,"column":4,"endLine":759,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"constrain","argumentNames":["this","v"]} +ArcadePhysicsEngine_constrain__P155570.info = {"start":25298,"length":191,"line":751,"column":4,"endLine":759,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"constrain","argumentNames":["this","v"]} -function ArcadePhysicsEngine_constrain__P90406_mk(s) { +function ArcadePhysicsEngine_constrain__P155570_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_constrain__P90406, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_constrain__P155570, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44966,7 +48872,7 @@ function ArcadePhysicsEngine_constrain__P90406_mk(s) { -function Fx_max__P86647(s) { +function Fx_max__P151646(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44997,12 +48903,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_max__P86647.info = {"start":1797,"length":117,"line":56,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"max","argumentNames":["a","b"]} +Fx_max__P151646.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__P86647_mk(s) { +function Fx_max__P151646_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_max__P86647, depth: s.depth + 1, + parent: s, fn: Fx_max__P151646, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -45013,7 +48919,7 @@ function Fx_max__P86647_mk(s) { -function Fx_compare__P86644(s) { +function Fx_compare__P151643(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45032,12 +48938,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_compare__P86644.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__P151643.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__P86644_mk(s) { +function Fx_compare__P151643_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_compare__P86644, depth: s.depth + 1, + parent: s, fn: Fx_compare__P151643, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -45047,7 +48953,7 @@ function Fx_compare__P86644_mk(s) { -function sprites_SpriteMap_insertAABB__P88586(s) { +function sprites_SpriteMap_insertAABB__P153585(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45057,31 +48963,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.left___101880 = undefined; - s.top___101883 = undefined; - s.xn___101886 = undefined; - s.yn___101897 = undefined; - s.x___101908 = undefined; - s.y___101913 = undefined; + s.left___170233 = undefined; + s.top___170236 = undefined; + s.xn___170239 = undefined; + s.yn___170250 = undefined; + s.x___170261 = undefined; + s.y___170266 = 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__C88579_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P88547_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C153578_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P153546_mk(s); s.tmp_0.arg0 = s.arg1; - s.callLocIdx = 425; s.pc = 5; return s.tmp_0; + s.callLocIdx = 471; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.left___101880 = (r0); - s.tmp_0 = Sprite_top__P88551_mk(s); + s.left___170233 = (r0); + s.tmp_0 = Sprite_top__P153550_mk(s); s.tmp_0.arg0 = s.arg1; - s.callLocIdx = 426; s.pc = 6; return s.tmp_0; + s.callLocIdx = 472; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.top___101883 = (r0); + s.top___170236 = (r0); r0 = s.arg1.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.width(s.tmp_3); @@ -45095,7 +49001,7 @@ switch (step) { r0 = s.arg0.fields["cellWidth"]; s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.xn___101886 = (r0); + s.xn___170239 = (r0); r0 = s.arg1.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.height(s.tmp_3); @@ -45109,75 +49015,75 @@ switch (step) { r0 = s.arg0.fields["cellHeight"]; s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.yn___101897 = (r0); - s.x___101908 = (0); + s.yn___170250 = (r0); + s.x___170261 = (0); case 1: - r0 = (s.x___101908 <= s.xn___101886); + r0 = (s.x___170261 <= s.xn___170239); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.y___101913 = (0); + s.y___170266 = (0); case 2: - r0 = (s.y___101913 <= s.yn___101897); + r0 = (s.y___170266 <= s.yn___170250); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_1 = sprites_SpriteMap_insertAtKey__P90379_mk(s); + s.tmp_1 = sprites_SpriteMap_insertAtKey__P155543_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = r0 = s.left___101880; - s.tmp_4 = Math_min__P86611_mk(s); + s.tmp_2 = r0 = s.left___170233; + s.tmp_4 = Math_min__P151610_mk(s); r0 = s.arg1.fields["_image"]; s.tmp_5 = r0; r0 = pxsim_ImageMethods.width(s.tmp_5); s.tmp_4.arg0 = r0; r0 = s.arg0.fields["cellWidth"]; s.tmp_6 = r0; - r0 = (s.x___101908 * s.tmp_6); + r0 = (s.x___170261 * s.tmp_6); s.tmp_4.arg1 = r0; - s.callLocIdx = 430; s.pc = 8; return s.tmp_4; + s.callLocIdx = 476; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; s.tmp_3 = r0; r0 = (s.tmp_2 + s.tmp_3); s.tmp_1.arg1 = r0; - s.tmp_7 = r0 = s.top___101883; - s.tmp_9 = Math_min__P86611_mk(s); + s.tmp_7 = r0 = s.top___170236; + s.tmp_9 = Math_min__P151610_mk(s); r0 = s.arg1.fields["_image"]; s.tmp_10 = r0; r0 = pxsim_ImageMethods.height(s.tmp_10); s.tmp_9.arg0 = r0; r0 = s.arg0.fields["cellHeight"]; s.tmp_11 = r0; - r0 = (s.y___101913 * s.tmp_11); + r0 = (s.y___170266 * s.tmp_11); s.tmp_9.arg1 = r0; - s.callLocIdx = 432; s.pc = 9; return s.tmp_9; + s.callLocIdx = 478; s.pc = 9; return s.tmp_9; case 9: r0 = s.retval; s.tmp_8 = r0; r0 = (s.tmp_7 + s.tmp_8); s.tmp_1.arg2 = r0; s.tmp_1.arg3 = s.arg1; - s.callLocIdx = 433; s.pc = 7; return s.tmp_1; + s.callLocIdx = 479; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; - r0 = (s.y___101913 + 1); - s.y___101913 = (r0); + r0 = (s.y___170266 + 1); + s.y___170266 = (r0); { step = 2; continue; } case 3: - r0 = (s.x___101908 + 1); - s.x___101908 = (r0); + r0 = (s.x___170261 + 1); + s.x___170261 = (r0); { step = 1; continue; } case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_insertAABB__P88586.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__P153585.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__P88586_mk(s) { +function sprites_SpriteMap_insertAABB__P153585_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_insertAABB__P88586, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_insertAABB__P153585, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -45191,12 +49097,12 @@ function sprites_SpriteMap_insertAABB__P88586_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - left___101880: undefined, - top___101883: undefined, - xn___101886: undefined, - yn___101897: undefined, - x___101908: undefined, - y___101913: undefined, + left___170233: undefined, + top___170236: undefined, + xn___170239: undefined, + yn___170250: undefined, + x___170261: undefined, + y___170266: undefined, arg0: undefined, arg1: undefined, } } @@ -45205,7 +49111,7 @@ function sprites_SpriteMap_insertAABB__P88586_mk(s) { -function sprites_SpriteMap_insertAtKey__P90379(s) { +function sprites_SpriteMap_insertAtKey__P155543(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45215,8 +49121,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___101948 = undefined; - s.bucket___101953 = undefined; + s.k___170301 = undefined; + s.bucket___170306 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -45225,20 +49131,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C88579_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P90378_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C153578_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_key__P155542_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 424; s.pc = 5; return s.tmp_0; + s.callLocIdx = 470; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.k___101948 = (r0); + s.k___170301 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___101948); - s.bucket___101953 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___101953); + r0 = pxsim_Array__getAt(s.tmp_0, s.k___170301); + s.bucket___170306 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___170306); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -45246,40 +49152,40 @@ switch (step) { if (!r0) { step = 1; continue; } r0 = s.arg0.fields["buckets"]; s.tmp_2 = r0; - s.tmp_3 = r0 = s.k___101948; + s.tmp_3 = r0 = s.k___170301; r0 = pxsim_Array__mk(); s.tmp_4 = r0; r0 = pxsim_Array_.setAt(s.tmp_2, s.tmp_3, s.tmp_4); - s.bucket___101953 = (s.tmp_4); + s.bucket___170306 = (s.tmp_4); case 1: case 2: - r0 = pxsim_Array_.indexOf(s.bucket___101953, s.arg3, undefined); + r0 = pxsim_Array_.indexOf(s.bucket___170306, 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___101953, s.arg3); + r0 = pxsim_Array__push(s.bucket___170306, s.arg3); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_insertAtKey__P90379.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__P155543.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__P90379_mk(s) { +function sprites_SpriteMap_insertAtKey__P155543_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_insertAtKey__P90379, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_insertAtKey__P155543, depth: s.depth + 1, pc: 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___101948: undefined, - bucket___101953: undefined, + k___170301: undefined, + bucket___170306: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -45290,7 +49196,7 @@ function sprites_SpriteMap_insertAtKey__P90379_mk(s) { -function sprites_SpriteMap_clear__P88585(s) { +function sprites_SpriteMap_clear__P153584(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45305,7 +49211,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C88579_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C153578_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -45314,12 +49220,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteMap_clear__P88585.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__P153584.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__P88585_mk(s) { +function sprites_SpriteMap_clear__P153584_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_clear__P88585, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_clear__P153584, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -45330,7 +49236,7 @@ function sprites_SpriteMap_clear__P88585_mk(s) { -function sprites_SpriteMap_resizeBuckets__P88584(s) { +function sprites_SpriteMap_resizeBuckets__P153583(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45340,121 +49246,121 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.maxWidth___101985 = undefined; - s.maxHeight___101986 = undefined; - s.sprite___101988 = undefined; - s.unnamed378___U3 = undefined; - s.unnamed379___U4 = undefined; - s.tMap___102004 = undefined; - s.areaWidth___102008 = undefined; - s.areaHeight___102015 = undefined; + s.maxWidth___170338 = undefined; + s.maxHeight___170339 = undefined; + s.sprite___170341 = undefined; + s.unnamed1480___U3 = undefined; + s.unnamed1481___U4 = undefined; + s.tMap___170357 = undefined; + s.areaWidth___170361 = undefined; + s.areaHeight___170368 = 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__C88579_VT)) failedCast(r0); - s.maxWidth___101985 = (0); - s.maxHeight___101986 = (0); - s.sprite___101988 = (undefined); - s.unnamed378___U3 = (s.arg1); - s.unnamed379___U4 = (0); + if (!checkSubtype(r0, sprites_SpriteMap__C153578_VT)) failedCast(r0); + s.maxWidth___170338 = (0); + s.maxHeight___170339 = (0); + s.sprite___170341 = (undefined); + s.unnamed1480___U3 = (s.arg1); + s.unnamed1481___U4 = (0); case 1: - s.tmp_0 = r0 = s.unnamed379___U4; - r0 = pxsim_Array__length(s.unnamed378___U3); + s.tmp_0 = r0 = s.unnamed1481___U4; + r0 = pxsim_Array__length(s.unnamed1480___U3); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed378___U3, s.unnamed379___U4); - s.sprite___101988 = (r0); - r0 = s.sprite___101988.fields["_image"]; + r0 = pxsim_Array__getAt(s.unnamed1480___U3, s.unnamed1481___U4); + s.sprite___170341 = (r0); + r0 = s.sprite___170341.fields["_image"]; s.tmp_4 = r0; r0 = pxsim_ImageMethods.width(s.tmp_4); s.tmp_3 = r0; - r0 = (s.tmp_3 > s.maxWidth___101985); + r0 = (s.tmp_3 > s.maxWidth___170338); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 2; continue; } - r0 = s.sprite___101988.fields["_image"]; + r0 = s.sprite___170341.fields["_image"]; s.tmp_5 = r0; r0 = pxsim_ImageMethods.width(s.tmp_5); - s.maxWidth___101985 = (r0); + s.maxWidth___170338 = (r0); case 2: case 3: - r0 = s.sprite___101988.fields["_image"]; + r0 = s.sprite___170341.fields["_image"]; s.tmp_2 = r0; r0 = pxsim_ImageMethods.height(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 > s.maxHeight___101986); + r0 = (s.tmp_1 > s.maxHeight___170339); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - r0 = s.sprite___101988.fields["_image"]; + r0 = s.sprite___170341.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.height(s.tmp_3); - s.maxHeight___101986 = (r0); + s.maxHeight___170339 = (r0); case 4: case 5: - r0 = (s.unnamed379___U4 + 1); - s.unnamed379___U4 = (r0); + r0 = (s.unnamed1481___U4 + 1); + s.unnamed1481___U4 = (r0); { step = 1; continue; } case 6: - s.unnamed378___U3 = (undefined); - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 417; s.pc = 11; return s.tmp_0; + s.unnamed1480___U3 = (undefined); + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 463; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tMap___102004 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tMap___102004); + s.tMap___170357 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tMap___170357); if (!r0) { step = 7; continue; } - s.tmp_0 = tiles_TileMap_areaWidth__P88808_mk(s); - s.tmp_0.arg0 = s.tMap___102004; - s.callLocIdx = 418; s.pc = 12; return s.tmp_0; + s.tmp_0 = tiles_TileMap_areaWidth__P153807_mk(s); + s.tmp_0.arg0 = s.tMap___170357; + s.callLocIdx = 464; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; { step = 8; continue; } case 7: - r0 = pxsim_ImageMethods.width(globals.screen___88287); + r0 = pxsim_ImageMethods.width(globals.screen___153286); case 8: // jmp value (already in r0) s.tmp_1 = r0; - s.areaWidth___102008 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.tMap___102004); + s.areaWidth___170361 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tMap___170357); if (!r0) { step = 9; continue; } - s.tmp_0 = tiles_TileMap_areaHeight__P88809_mk(s); - s.tmp_0.arg0 = s.tMap___102004; - s.callLocIdx = 419; s.pc = 13; return s.tmp_0; + s.tmp_0 = tiles_TileMap_areaHeight__P153808_mk(s); + s.tmp_0.arg0 = s.tMap___170357; + s.callLocIdx = 465; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; { step = 10; continue; } case 9: - r0 = pxsim_ImageMethods.height(globals.screen___88287); + r0 = pxsim_ImageMethods.height(globals.screen___153286); case 10: // jmp value (already in r0) s.tmp_1 = r0; - s.areaHeight___102015 = (s.tmp_1); + s.areaHeight___170368 = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P86607_mk(s); + s.tmp_2 = Math_clamp__P151606_mk(s); s.tmp_2.arg0 = 8; - r0 = (s.areaWidth___102008 >> 2); + r0 = (s.areaWidth___170361 >> 2); s.tmp_2.arg1 = r0; - r0 = (s.maxWidth___101985 * 2); + r0 = (s.maxWidth___170338 * 2); s.tmp_2.arg2 = r0; - s.callLocIdx = 420; s.pc = 14; return s.tmp_2; + s.callLocIdx = 466; s.pc = 14; return s.tmp_2; case 14: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["cellWidth"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P86607_mk(s); + s.tmp_2 = Math_clamp__P151606_mk(s); s.tmp_2.arg0 = 8; - r0 = (s.areaHeight___102015 >> 2); + r0 = (s.areaHeight___170368 >> 2); s.tmp_2.arg1 = r0; - r0 = (s.maxHeight___101986 * 2); + r0 = (s.maxHeight___170339 * 2); s.tmp_2.arg2 = r0; - s.callLocIdx = 421; s.pc = 15; return s.tmp_2; + s.callLocIdx = 467; s.pc = 15; return s.tmp_2; case 15: r0 = s.retval; s.tmp_1 = r0; @@ -45462,25 +49368,25 @@ switch (step) { s.tmp_0 = r0 = s.arg0; r0 = s.arg0.fields["cellHeight"]; s.tmp_2 = r0; - r0 = pxsim.Math_.idiv(s.areaHeight___102015, s.tmp_2); + r0 = pxsim.Math_.idiv(s.areaHeight___170368, 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___102008, s.tmp_2); + r0 = pxsim.Math_.idiv(s.areaWidth___170361, 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__P88584.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__P153583.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__P88584_mk(s) { +function sprites_SpriteMap_resizeBuckets__P153583_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_resizeBuckets__P88584, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_resizeBuckets__P153583, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -45488,14 +49394,14 @@ function sprites_SpriteMap_resizeBuckets__P88584_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - maxWidth___101985: undefined, - maxHeight___101986: undefined, - sprite___101988: undefined, - unnamed378___U3: undefined, - unnamed379___U4: undefined, - tMap___102004: undefined, - areaWidth___102008: undefined, - areaHeight___102015: undefined, + maxWidth___170338: undefined, + maxHeight___170339: undefined, + sprite___170341: undefined, + unnamed1480___U3: undefined, + unnamed1481___U4: undefined, + tMap___170357: undefined, + areaWidth___170361: undefined, + areaHeight___170368: undefined, arg0: undefined, arg1: undefined, } } @@ -45504,7 +49410,7 @@ function sprites_SpriteMap_resizeBuckets__P88584_mk(s) { -function Sprite_clearObstacles__P88569(s) { +function Sprite_clearObstacles__P153568(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45519,7 +49425,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -45528,12 +49434,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_clearObstacles__P88569.info = {"start":26872,"length":54,"line":813,"column":4,"endLine":815,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]} +Sprite_clearObstacles__P153568.info = {"start":26872,"length":54,"line":813,"column":4,"endLine":815,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]} -function Sprite_clearObstacles__P88569_mk(s) { +function Sprite_clearObstacles__P153568_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_clearObstacles__P88569, depth: s.depth + 1, + parent: s, fn: Sprite_clearObstacles__P153568, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -45544,7 +49450,7 @@ function Sprite_clearObstacles__P88569_mk(s) { -function Fx_idiv__P86643(s) { +function Fx_idiv__P151642(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45563,12 +49469,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_idiv__P86643.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__P151642.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__P86643_mk(s) { +function Fx_idiv__P151642_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_idiv__P86643, depth: s.depth + 1, + parent: s, fn: Fx_idiv__P151642, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -45578,7 +49484,7 @@ function Fx_idiv__P86643_mk(s) { -function Fx_div__P86642(s) { +function Fx_div__P151641(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45599,84 +49505,14 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_div__P86642.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__P86642_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Fx_div__P86642, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function helpers_arrayMap__P86589(s) { -let r0 = s.r0, 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___102279 = undefined; - s.len___102281 = undefined; - s.i___102284 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = pxsim_Array__mk(); - s.res___102279 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___102281 = (r0); - s.i___102284 = (0); - case 1: - r0 = (s.i___102284 < s.len___102281); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.res___102279; - s.tmp_3 = lambda_3_mk(s); - s.tmp_3.argL = s.arg1; - r0 = pxsim_Array__getAt(s.arg0, s.i___102284); - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.i___102284; - 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___102284 + 1); - s.i___102284 = (r0); - { step = 1; continue; } - case 2: - r0 = s.res___102279; - return leave(s, r0) - default: oops() -} } } -helpers_arrayMap__P86589.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"]} +Fx_div__P151641.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 helpers_arrayMap__P86589_mk(s) { +function Fx_div__P151641_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayMap__P86589, depth: s.depth + 1, + parent: s, fn: Fx_div__P151641, depth: s.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___102279: undefined, - len___102281: undefined, - i___102284: undefined, arg0: undefined, arg1: undefined, } } @@ -45685,7 +49521,7 @@ function helpers_arrayMap__P86589_mk(s) { -function ArcadePhysicsEngine_draw__P88669(s) { +function ArcadePhysicsEngine_draw__P153668(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45700,23 +49536,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C88658_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_draw__P88583_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C153657_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_draw__P153582_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; - s.callLocIdx = 460; s.pc = 1; return s.tmp_0; + s.callLocIdx = 508; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_draw__P88669.info = {"start":2506,"length":39,"line":105,"column":4,"endLine":107,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} +ArcadePhysicsEngine_draw__P153668.info = {"start":2506,"length":39,"line":105,"column":4,"endLine":107,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} -function ArcadePhysicsEngine_draw__P88669_mk(s) { +function ArcadePhysicsEngine_draw__P153668_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_draw__P88669, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_draw__P153668, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -45726,7 +49562,7 @@ function ArcadePhysicsEngine_draw__P88669_mk(s) { -function sprites_SpriteMap_draw__P88583(s) { +function sprites_SpriteMap_draw__P153582(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45736,108 +49572,108 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x___102311 = undefined; - s.y___102317 = undefined; - s.left___102323 = undefined; - s.top___102328 = undefined; - s.k___102333 = undefined; - s.b___102338 = undefined; + s.x___170664 = undefined; + s.y___170670 = undefined; + s.left___170676 = undefined; + s.top___170681 = undefined; + s.k___170686 = undefined; + s.b___170691 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C88579_VT)) failedCast(r0); - s.x___102311 = (0); + if (!checkSubtype(r0, sprites_SpriteMap__C153578_VT)) failedCast(r0); + s.x___170664 = (0); case 1: r0 = s.arg0.fields["columnCount"]; s.tmp_1 = r0; - r0 = (s.x___102311 < s.tmp_1); + r0 = (s.x___170664 < s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - s.y___102317 = (0); + s.y___170670 = (0); case 2: r0 = s.arg0.fields["rowCount"]; s.tmp_1 = r0; - r0 = (s.y___102317 < s.tmp_1); + r0 = (s.y___170670 < 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___102311 * s.tmp_2); - s.left___102323 = (r0); + r0 = (s.x___170664 * s.tmp_2); + s.left___170676 = (r0); r0 = s.arg0.fields["cellHeight"]; s.tmp_0 = r0; - r0 = (s.y___102317 * s.tmp_0); - s.top___102328 = (r0); - s.tmp_0 = sprites_SpriteMap_key__P90378_mk(s); + r0 = (s.y___170670 * s.tmp_0); + s.top___170681 = (r0); + s.tmp_0 = sprites_SpriteMap_key__P155542_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.left___102323; - s.tmp_0.arg2 = s.top___102328; - s.callLocIdx = 411; s.pc = 9; return s.tmp_0; + s.tmp_0.arg1 = s.left___170676; + s.tmp_0.arg2 = s.top___170681; + s.callLocIdx = 457; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.k___102333 = (r0); + s.k___170686 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___102333); - s.b___102338 = (r0); - s.tmp_0 = r0 = s.b___102338; + r0 = pxsim_Array__getAt(s.tmp_0, s.k___170686); + s.b___170691 = (r0); + s.tmp_0 = r0 = s.b___170691; 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___102338); + r0 = pxsim_Array__length(s.b___170691); 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__P88216_mk(s); - s.tmp_2.arg0 = globals.screen___88287; - s.tmp_2.arg1 = s.left___102323; - s.tmp_2.arg2 = s.top___102328; + s.tmp_2 = helpers_imageDrawRect__P153215_mk(s); + s.tmp_2.arg0 = globals.screen___153286; + s.tmp_2.arg1 = s.left___170676; + s.tmp_2.arg2 = s.top___170681; 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 = 412; s.pc = 10; return s.tmp_2; + s.callLocIdx = 458; s.pc = 10; return s.tmp_2; case 10: r0 = s.retval; case 5: case 6: - r0 = (s.y___102317 + 1); - s.y___102317 = (r0); + r0 = (s.y___170670 + 1); + s.y___170670 = (r0); { step = 2; continue; } case 7: - r0 = (s.x___102311 + 1); - s.x___102311 = (r0); + r0 = (s.x___170664 + 1); + s.x___170664 = (r0); { step = 1; continue; } case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_draw__P88583.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__P153582.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__P88583_mk(s) { +function sprites_SpriteMap_draw__P153582_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_draw__P88583, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_draw__P153582, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - x___102311: undefined, - y___102317: undefined, - left___102323: undefined, - top___102328: undefined, - k___102333: undefined, - b___102338: undefined, + x___170664: undefined, + y___170670: undefined, + left___170676: undefined, + top___170681: undefined, + k___170686: undefined, + b___170691: undefined, arg0: undefined, } } @@ -45845,7 +49681,7 @@ function sprites_SpriteMap_draw__P88583_mk(s) { -function ArcadePhysicsEngine_removeSprite__P88668(s) { +function ArcadePhysicsEngine_removeSprite__P153667(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45861,7 +49697,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C88658_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C153657_VT)) failedCast(r0); r0 = s.arg0.fields["sprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg1); @@ -45869,12 +49705,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_removeSprite__P88668.info = {"start":2420,"length":80,"line":101,"column":4,"endLine":103,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} +ArcadePhysicsEngine_removeSprite__P153667.info = {"start":2420,"length":80,"line":101,"column":4,"endLine":103,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} -function ArcadePhysicsEngine_removeSprite__P88668_mk(s) { +function ArcadePhysicsEngine_removeSprite__P153667_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_removeSprite__P88668, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_removeSprite__P153667, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -45885,7 +49721,7 @@ function ArcadePhysicsEngine_removeSprite__P88668_mk(s) { -function ArcadePhysicsEngine_addSprite__P88667(s) { +function ArcadePhysicsEngine_addSprite__P153666(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45895,33 +49731,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___102375 = undefined; + s.tm___170728 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C88658_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C153657_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__P89017_mk(s); - s.callLocIdx = 458; s.pc = 5; return s.tmp_0; + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 506; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___102375 = (r0); - s.tmp_0 = r0 = s.tm___102375; + s.tm___170728 = (r0); + s.tmp_0 = r0 = s.tm___170728; 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__P88823_mk(s); - s.tmp_1.arg0 = s.tm___102375; + s.tmp_1 = tiles_TileMap_isOnWall__P153822_mk(s); + s.tmp_1.arg0 = s.tm___170728; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 459; s.pc = 6; return s.tmp_1; + s.callLocIdx = 507; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; case 2: @@ -45941,12 +49777,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_addSprite__P88667.info = {"start":2194,"length":220,"line":93,"column":4,"endLine":99,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +ArcadePhysicsEngine_addSprite__P153666.info = {"start":2194,"length":220,"line":93,"column":4,"endLine":99,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} -function ArcadePhysicsEngine_addSprite__P88667_mk(s) { +function ArcadePhysicsEngine_addSprite__P153666_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_addSprite__P88667, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_addSprite__P153666, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -45954,7 +49790,7 @@ function ArcadePhysicsEngine_addSprite__P88667_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tm___102375: undefined, + tm___170728: undefined, arg0: undefined, arg1: undefined, } } @@ -45963,7 +49799,7 @@ function ArcadePhysicsEngine_addSprite__P88667_mk(s) { -function scene_BackgroundLayer_constructor__P88767(s) { +function scene_BackgroundLayer_constructor__P153766(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45981,12 +49817,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_BackgroundLayer__C88760_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_BackgroundLayer__C153759_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_max__P86610_mk(s); + s.tmp_2 = Math_max__P151609_mk(s); s.tmp_2.arg0 = 1; s.tmp_2.arg1 = s.arg1; - s.callLocIdx = 690; s.pc = 7; return s.tmp_2; + s.callLocIdx = 821; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; s.tmp_1 = r0; @@ -46026,74 +49862,30 @@ switch (step) { r0 = (s.arg0).fields["alignY"] = (s.arg2); case 6: r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_BackgroundLayer_constructor__P88767.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__P88767_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_BackgroundLayer_constructor__P88767, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function scene_Camera_y__P88855(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C88845_VT)) failedCast(r0); - r0 = s.arg0.fields["drawOffsetY"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___88287); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - return leaveAccessor(s, r0) + return leave(s, r0) default: oops() } } } -scene_Camera_y__P88855.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__P88855.isGetter = true; +scene_BackgroundLayer_constructor__P153766.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_Camera_y__P88855_mk(s) { +function scene_BackgroundLayer_constructor__P153766_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_y__P88855, depth: s.depth + 1, + parent: s, fn: scene_BackgroundLayer_constructor__P153766, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function scene_Camera_x__P88854(s) { +function scene_Camera_y__P153854(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46108,10 +49900,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C88845_VT)) failedCast(r0); - r0 = s.arg0.fields["drawOffsetX"]; + if (!checkSubtype(r0, scene_Camera__C153844_VT)) failedCast(r0); + r0 = s.arg0.fields["drawOffsetY"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___88287); + r0 = pxsim_ImageMethods.height(globals.screen___153286); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; @@ -46119,84 +49911,25 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_x__P88854.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__P88854.isGetter = true; - -function scene_Camera_x__P88854_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Camera_x__P88854, 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 particles_ShapeFactory_createParticle__P89229(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.p___102538 = 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__C89225_VT)) failedCast(r0); - s.tmp_0 = particles_AreaFactory_createParticle__P89215_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1171; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.p___102538 = (r0); - s.tmp_0 = r0 = s.p___102538; - s.tmp_2 = Math_FastRandom_randomRange__P89075_mk(s); - r0 = s.arg0.fields["galois"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = 1; - s.tmp_2.arg2 = 14; - s.callLocIdx = 1172; 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___102538; - return leave(s, r0) - default: oops() -} } } -particles_ShapeFactory_createParticle__P89229.info = {"start":7505,"length":178,"line":239,"column":8,"endLine":243,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +scene_Camera_y__P153854.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__P153854.isGetter = true; -function particles_ShapeFactory_createParticle__P89229_mk(s) { +function scene_Camera_y__P153854_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_createParticle__P89229, depth: s.depth + 1, + parent: s, fn: scene_Camera_y__P153854, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - p___102538: undefined, arg0: undefined, - arg1: undefined, } } -function particles_AreaFactory_createParticle__P89215(s) { +function scene_Camera_x__P153853(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46206,146 +49939,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___102550 = 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__C89209_VT)) failedCast(r0); - s.tmp_0 = particles_SprayFactory_createParticle__P89205_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1153; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.p___102550 = (r0); - s.tmp_0 = r0 = s.p___102550; - s.tmp_2 = Math_FastRandom_randomRange__P89075_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 = 1154; 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___102550; - s.tmp_4 = Math_FastRandom_randomRange__P89075_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 = 1155; s.pc = 5; return s.tmp_4; - case 5: - r0 = s.retval; - s.tmp_3 = r0; - r0 = s.arg0.fields["xRange"]; - s.tmp_6 = r0; - r0 = (s.tmp_6 >> 1); - s.tmp_5 = r0; - r0 = (s.tmp_3 - s.tmp_5); - s.tmp_2 = r0; - r0 = s.p___102550.fields["_x"]; - s.tmp_7 = r0; - r0 = (s.tmp_2 << 8); - s.tmp_8 = r0; - r0 = (s.tmp_8 + s.tmp_7); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_1 = if_height_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, "height"); - } else { - 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 = 1158; s.pc = 6; return s.tmp_1; } - } - case 6: - r0 = s.retval; + if (!checkSubtype(r0, scene_Camera__C153844_VT)) failedCast(r0); + r0 = s.arg0.fields["drawOffsetX"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_3 = if_height_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, "height"); - } else { - 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 = 1159; s.pc = 7; return s.tmp_3; } - } - case 7: - r0 = s.retval; + r0 = pxsim_ImageMethods.width(globals.screen___153286); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - s.tmp_5 = r0 = s.p___102550; - s.tmp_9 = Math_FastRandom_randomRange__P89075_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 = 1157; 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___102550.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___102550; - return leave(s, r0) + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -particles_AreaFactory_createParticle__P89215.info = {"start":4334,"length":426,"line":148,"column":8,"endLine":156,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +scene_Camera_x__P153853.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__P153853.isGetter = true; -function particles_AreaFactory_createParticle__P89215_mk(s) { +function scene_Camera_x__P153853_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_createParticle__P89215, depth: s.depth + 1, + parent: s, fn: scene_Camera_x__P153853, depth: s.depth + 1, pc: 0, retval: undefined, 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, - p___102550: undefined, arg0: undefined, - arg1: undefined, } } -function particles_SprayFactory_createParticle__P89205(s) { +function particles_ShapeFactory_createParticle__P154228(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46355,75 +49983,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___102598 = undefined; - s.angle___102602 = undefined; + s.p___170808 = 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__C89203_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleFactory_createParticle__P89201_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C154224_VT)) failedCast(r0); + s.tmp_0 = particles_AreaFactory_createParticle__P154214_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1142; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1363; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.p___102598 = (r0); - r0 = s.arg0.fields["minAngle"]; - s.tmp_1 = r0; - s.tmp_3 = Math_FastRandom_randomRange__P89075_mk(s); - s.tmp_3.arg0 = globals.galois___90898; - s.tmp_3.arg1 = 0; - r0 = s.arg0.fields["spread"]; - s.tmp_3.arg2 = r0; - s.callLocIdx = 1143; s.pc = 2; return s.tmp_3; + s.p___170808 = (r0); + s.tmp_0 = r0 = s.p___170808; + s.tmp_2 = Math_FastRandom_randomRange__P154074_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 1; + s.tmp_2.arg2 = 14; + s.callLocIdx = 1364; s.pc = 2; return s.tmp_2; 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___102602 = (r0); - s.tmp_0 = r0 = s.p___102598; - r0 = pxsim_Array__getAt(globals.cachedSin___90893, s.angle___102602); - s.tmp_2 = r0; - r0 = s.arg0.fields["speed"]; - s.tmp_3 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.tmp_3); - s.tmp_4 = r0; - r0 = (s.tmp_4 >> 8); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___102598; - r0 = pxsim_Array__getAt(globals.cachedCos___90894, s.angle___102602); - s.tmp_2 = r0; - r0 = s.arg0.fields["speed"]; - s.tmp_3 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.tmp_3); - s.tmp_4 = r0; - r0 = (s.tmp_4 >> 8); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); - r0 = s.p___102598; + r0 = (s.tmp_0).fields["color"] = (s.tmp_1); + r0 = s.p___170808; return leave(s, r0) default: oops() } } } -particles_SprayFactory_createParticle__P89205.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_ShapeFactory_createParticle__P154228.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_SprayFactory_createParticle__P89205_mk(s) { +function particles_ShapeFactory_createParticle__P154228_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_createParticle__P89205, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_createParticle__P154228, depth: s.depth + 1, pc: 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___102598: undefined, - angle___102602: undefined, + p___170808: undefined, arg0: undefined, arg1: undefined, } } @@ -46432,7 +50032,7 @@ function particles_SprayFactory_createParticle__P89205_mk(s) { -function effects_ScreenEffect_startScreenEffect__P89280(s) { +function effects_ScreenEffect_startScreenEffect__P154279(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46449,7 +50049,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ScreenEffect__C89278_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ScreenEffect__C154277_VT)) failedCast(r0); r0 = s.arg0.fields["sourceFactory"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -46468,10 +50068,10 @@ switch (step) { r0 = s.tmp_3; { step = 4; continue; } case 3: - s.tmp_4 = particles_ParticleSource_enabled__P89175_mk(s); + s.tmp_4 = particles_ParticleSource_enabled__P154174_mk(s); r0 = s.arg0.fields["source"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 221; s.pc = 14; return s.tmp_4; + s.callLocIdx = 1376; s.pc = 14; return s.tmp_4; case 14: r0 = s.retval; case 4: @@ -46489,16 +50089,16 @@ switch (step) { { step = 13; continue; } case 7: case 8: - s.tmp_0 = effects_ScreenEffect_endScreenEffect__P89281_mk(s); + s.tmp_0 = effects_ScreenEffect_endScreenEffect__P154280_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 222; s.pc = 15; return s.tmp_0; + s.callLocIdx = 1377; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(effects_SceneAnchor__C90926_VT); + r0 = pxsim_pxtcore_mkClassInstance(effects_SceneAnchor__C156090_VT); s.tmp_0 = r0; - s.tmp_1 = effects_SceneAnchor_constructor__P90931_mk(s); + s.tmp_1 = effects_SceneAnchor_constructor__P156095_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 223; s.pc = 16; return s.tmp_1; + s.callLocIdx = 1378; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); @@ -46517,12 +50117,12 @@ switch (step) { s.tmp_5.arg2 = s.tmp_2; if (!s.tmp_5.arg0.vtable.iface) { setupLambda(s.tmp_5, pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "sourceFactory"), 3); - s.callLocIdx = 224; s.pc = 17; return s.tmp_5; + s.callLocIdx = 1379; s.pc = 17; return s.tmp_5; } else { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["sourceFactory"]; - if (s.tmp_5.fn == null) { setupLambda(s.tmp_5, s.tmp_5.arg0.fields["sourceFactory"], 3); s.callLocIdx = 224; s.pc = 17; return s.tmp_5; } - else if (s.tmp_5.fn.isGetter) { s.tmp_5.stage2Call = true; s.callLocIdx = 224; s.pc = 17; return s.tmp_5;; } - else { s.callLocIdx = 224; s.pc = 17; return s.tmp_5; } + if (s.tmp_5.fn == null) { setupLambda(s.tmp_5, s.tmp_5.arg0.fields["sourceFactory"], 3); s.callLocIdx = 1379; s.pc = 17; return s.tmp_5; } + else if (s.tmp_5.fn.isGetter) { s.tmp_5.stage2Call = true; s.callLocIdx = 1379; s.pc = 17; return s.tmp_5;; } + else { s.callLocIdx = 1379; s.pc = 17; return s.tmp_5; } } case 17: r0 = s.retval; @@ -46543,12 +50143,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ScreenEffect_startScreenEffect__P89280.info = {"start":3680,"length":601,"line":97,"column":8,"endLine":112,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"startScreenEffect","argumentNames":["this","duration","particlesPerSecond"]} +effects_ScreenEffect_startScreenEffect__P154279.info = {"start":3680,"length":601,"line":97,"column":8,"endLine":112,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"startScreenEffect","argumentNames":["this","duration","particlesPerSecond"]} -function effects_ScreenEffect_startScreenEffect__P89280_mk(s) { +function effects_ScreenEffect_startScreenEffect__P154279_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ScreenEffect_startScreenEffect__P89280, depth: s.depth + 1, + parent: s, fn: effects_ScreenEffect_startScreenEffect__P154279, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -46566,7 +50166,7 @@ function effects_ScreenEffect_startScreenEffect__P89280_mk(s) { -function effects_SceneAnchor_constructor__P90931(s) { +function effects_SceneAnchor_constructor__P156095(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46581,10 +50181,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_SceneAnchor__C90926_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_SceneAnchor__C156090_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = game_currentScene__P89017_mk(s); - s.callLocIdx = 218; s.pc = 1; return s.tmp_2; + s.tmp_2 = game_currentScene__P154016_mk(s); + s.callLocIdx = 1372; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; r0 = r0.fields["camera"]; @@ -46594,12 +50194,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_SceneAnchor_constructor__P90931.info = {"start":2296,"length":79,"line":55,"column":8,"endLine":57,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this"]} +effects_SceneAnchor_constructor__P156095.info = {"start":2296,"length":79,"line":55,"column":8,"endLine":57,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this"]} -function effects_SceneAnchor_constructor__P90931_mk(s) { +function effects_SceneAnchor_constructor__P156095_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_SceneAnchor_constructor__P90931, depth: s.depth + 1, + parent: s, fn: effects_SceneAnchor_constructor__P156095, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -46611,7 +50211,7 @@ function effects_SceneAnchor_constructor__P90931_mk(s) { -function effects_ScreenEffect_endScreenEffect__P89281(s) { +function effects_ScreenEffect_endScreenEffect__P154280(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46626,15 +50226,15 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ScreenEffect__C89278_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ScreenEffect__C154277_VT)) failedCast(r0); r0 = s.arg0.fields["source"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = particles_ParticleSource_destroy__P89177_mk(s); + s.tmp_1 = particles_ParticleSource_destroy__P154176_mk(s); r0 = s.arg0.fields["source"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 225; s.pc = 3; return s.tmp_1; + s.callLocIdx = 1380; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; r0 = (s.arg0).fields["source"] = (undefined); @@ -46644,12 +50244,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ScreenEffect_endScreenEffect__P89281.info = {"start":4677,"length":160,"line":122,"column":8,"endLine":127,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"endScreenEffect","argumentNames":["this"]} +effects_ScreenEffect_endScreenEffect__P154280.info = {"start":4677,"length":160,"line":122,"column":8,"endLine":127,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"endScreenEffect","argumentNames":["this"]} -function effects_ScreenEffect_endScreenEffect__P89281_mk(s) { +function effects_ScreenEffect_endScreenEffect__P154280_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ScreenEffect_endScreenEffect__P89281, depth: s.depth + 1, + parent: s, fn: effects_ScreenEffect_endScreenEffect__P154280, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -46660,7 +50260,7 @@ function effects_ScreenEffect_endScreenEffect__P89281_mk(s) { -function game_BaseDialog_drawTextCore__P88977(s) { +function particles_ParticleSource___draw__P154168(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46670,31 +50270,105 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.current___170964 = undefined; + s.left___170967 = undefined; + s.top___170977 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C88962_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C154162_VT)) failedCast(r0); + r0 = s.arg0.fields["head"]; + s.current___170964 = (r0); + r0 = s.arg0.fields["pFlags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 4); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 0; + { step = 2; continue; } + case 1: + r0 = s.arg1.fields["drawOffsetX"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_3 = r0; + r0 = (s.tmp_3 | 0); + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + s.left___170967 = (s.tmp_4); + r0 = s.arg0.fields["pFlags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 4); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = 0; + { step = 4; continue; } + case 3: + r0 = s.arg1.fields["drawOffsetY"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_3 = r0; + r0 = (s.tmp_3 | 0); + case 4: + // jmp value (already in r0) + s.tmp_4 = r0; + s.top___170977 = (s.tmp_4); + case 5: + r0 = pxsim_numops_toBoolDecr(s.current___170964); + if (!r0) { step = 8; continue; } + r0 = s.current___170964.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__P156048_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.current___170964; + s.tmp_2.arg2 = s.left___170967; + s.tmp_2.arg3 = s.top___170977; + s.callLocIdx = 1269; s.pc = 9; return s.tmp_2; + case 9: + r0 = s.retval; + case 6: + case 7: + r0 = s.current___170964.fields["next"]; + s.current___170964 = (r0); + { step = 5; continue; } + case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_drawTextCore__P88977.info = {"start":1757,"length":65,"line":70,"column":8,"endLine":72,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawTextCore","argumentNames":["this"]} +particles_ParticleSource___draw__P154168.info = {"start":3199,"length":468,"line":111,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"__draw","argumentNames":["this","camera"]} -function game_BaseDialog_drawTextCore__P88977_mk(s) { +function particles_ParticleSource___draw__P154168_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_drawTextCore__P88977, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource___draw__P154168, depth: s.depth + 1, pc: 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___170964: undefined, + left___170967: undefined, + top___170977: undefined, arg0: undefined, + arg1: undefined, } } -function game_BaseDialog_update__P88975(s) { +function particles_ParticleSource_drawParticle__P156048(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46706,47 +50380,55 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C88962_VT)) failedCast(r0); - s.tmp_0 = game_BaseDialog_clearInterior__P90503_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 157; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, particles_ParticleSource__C154162_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleFactory__C154198_v1_4_mk(s); + r0 = s.arg0.fields["_factory"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg1; + r0 = s.arg1.fields["_x"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.arg2); + s.tmp_0.arg2 = r0; + r0 = s.arg1.fields["_y"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.arg3); + s.tmp_0.arg3 = r0; + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C154198_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: - r0 = s.retval; - s.tmp_0 = game_BaseDialog__C88962_v1_1_mk(s); - s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, game_BaseDialog__C88962_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.drawTextCore; - s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_drawCursorRow__P88978_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 158; s.pc = 3; return s.tmp_0; - case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_update__P88975.info = {"start":1539,"length":121,"line":60,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"update","argumentNames":["this"]} +particles_ParticleSource_drawParticle__P156048.info = {"start":8598,"length":174,"line":286,"column":8,"endLine":288,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"drawParticle","argumentNames":["this","p","screenLeft","screenTop"]} -function game_BaseDialog_update__P88975_mk(s) { +function particles_ParticleSource_drawParticle__P156048_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_update__P88975, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_drawParticle__P156048, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function info_PlayerInfo_id__P88725(s) { +function particles_ParticleFactory_drawParticle__P154201(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46758,29 +50440,50 @@ 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, info_PlayerInfo__C88711_VT)) failedCast(r0); - r0 = s.arg0.fields["_player"]; + if (!checkSubtype(r0, particles_ParticleFactory__C154198_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___153286; + r0 = (s.arg2 + 128); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 8); + s.tmp_1 = r0; + r0 = (s.arg3 + 128); + 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, 1); + r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfo_id__P88725.info = {"start":17259,"length":57,"line":568,"column":8,"endLine":570,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"id","argumentNames":["this"]} +particles_ParticleFactory_drawParticle__P154201.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 info_PlayerInfo_id__P88725_mk(s) { +function particles_ParticleFactory_drawParticle__P154201_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_id__P88725, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_drawParticle__P154201, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function music_Melody_toString__P88092(s) { +function particles_AshFactory_createParticle__P154244(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46790,31 +50493,332 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.index___213574 = undefined; + s.choice___213583 = undefined; + s.p___213588 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C88083_VT)) failedCast(r0); - r0 = s.arg0.fields["_text"]; + if (!checkSubtype(r0, particles_AshFactory__C154242_VT)) failedCast(r0); + r0 = s.arg0.fields["colors"]; + s.tmp_2 = r0; + r0 = pxsim_Array__length(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_1 === 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = undefined; + { step = 7; continue; } + case 1: + case 2: + s.tmp_3 = Math_FastRandom_randomRange__P154074_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = 0; + r0 = s.arg0.fields["colors"]; + s.tmp_5 = r0; + r0 = pxsim_Array__length(s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_4 - 1); + s.tmp_3.arg2 = r0; + s.callLocIdx = 48; s.pc = 8; return s.tmp_3; + case 8: + r0 = s.retval; + s.index___213574 = (r0); + r0 = s.arg0.fields["colors"]; + s.tmp_0 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.index___213574); + s.choice___213583 = (r0); + s.tmp_0 = particles_AreaFactory_createParticle__P154214_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 49; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.p___213588 = (r0); + s.tmp_0 = r0 = s.choice___213583; + r0 = s.tmp_0.fields["count"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["count"] = (s.tmp_1); + r0 = s.choice___213583.fields["count"]; + 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 = s.arg0.fields["colors"]; + s.tmp_2 = r0; + r0 = pxsim_Array_.removeAt(s.tmp_2, s.index___213574); + case 3: + case 4: + r0 = s.choice___213583.fields["color"]; + s.tmp_0 = r0; + r0 = (s.p___213588).fields["color"] = (s.tmp_0); + s.tmp_0 = r0 = s.p___213588; + s.tmp_3 = Math_FastRandom_randomRange__P154074_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_3.arg0 = r0; + r0 = s.arg0.fields["yRange"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 >> 1); + s.tmp_3.arg1 = r0; + r0 = s.arg0.fields["yRange"]; + s.tmp_3.arg2 = r0; + s.callLocIdx = 50; s.pc = 10; return s.tmp_3; + case 10: + r0 = s.retval; + s.tmp_2 = r0; + r0 = s.p___213588.fields["_y"]; + s.tmp_5 = r0; + r0 = (s.tmp_2 << 8); + s.tmp_6 = r0; + r0 = (s.tmp_6 + s.tmp_5); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + s.tmp_1 = if_vx_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, "vx"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["vx"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["vx"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 52; s.pc = 11; return s.tmp_1; } + } + case 11: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_5 = if_vx_1_mk(s); + s.tmp_5.arg0 = s.arg1; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "vx"); + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["vx"]; + if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["vx"]; } + else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } + else { s.callLocIdx = 53; s.pc = 12; return s.tmp_5; } + } + case 12: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_4 >> 2); + s.tmp_3 = r0; + r0 = (s.tmp_3 * 256); + s.tmp_6 = r0; + r0 = (s.tmp_6 | 0); + s.tmp_2 = r0; + r0 = (0 - s.tmp_2); + { step = 6; continue; } + case 5: + r0 = 0; + case 6: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = (s.p___213588).fields["vx"] = (s.tmp_7); + s.tmp_0 = r0 = s.p___213588; + s.tmp_3 = Math_FastRandom_randomRange__P154074_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = -150; + s.tmp_3.arg2 = -50; + s.callLocIdx = 56; s.pc = 13; return s.tmp_3; + case 13: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); + r0 = s.p___213588; + case 7: + return leave(s, r0) + default: oops() +} } } +particles_AshFactory_createParticle__P154244.info = {"start":13251,"length":665,"line":425,"column":8,"endLine":442,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} + +function particles_AshFactory_createParticle__P154244_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_AshFactory_createParticle__P154244, depth: s.depth + 1, + pc: 0, retval: undefined, 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, + index___213574: undefined, + choice___213583: undefined, + p___213588: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function particles_AreaFactory_createParticle__P154214(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.p___170820 = 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__C154208_VT)) failedCast(r0); + s.tmp_0 = particles_SprayFactory_createParticle__P154204_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1345; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.p___170820 = (r0); + s.tmp_0 = r0 = s.p___170820; + s.tmp_2 = Math_FastRandom_randomRange__P154074_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 = 1346; 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___170820; + s.tmp_4 = Math_FastRandom_randomRange__P154074_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 = 1347; s.pc = 5; return s.tmp_4; + case 5: + r0 = s.retval; + s.tmp_3 = r0; + r0 = s.arg0.fields["xRange"]; + s.tmp_6 = r0; + r0 = (s.tmp_6 >> 1); + s.tmp_5 = r0; + r0 = (s.tmp_3 - s.tmp_5); + s.tmp_2 = r0; + r0 = s.p___170820.fields["_x"]; + s.tmp_7 = r0; + r0 = (s.tmp_2 << 8); + s.tmp_8 = r0; + r0 = (s.tmp_8 + s.tmp_7); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_1 = if_height_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, "height"); + } else { + 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 = 1350; s.pc = 6; return s.tmp_1; } + } + case 6: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_3 = if_height_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, "height"); + } else { + 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 = 1351; s.pc = 7; return s.tmp_3; } + } + case 7: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + { step = 2; continue; } + case 1: + r0 = 0; + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + s.tmp_5 = r0 = s.p___170820; + s.tmp_9 = Math_FastRandom_randomRange__P154074_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 = 1349; 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___170820.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___170820; return leave(s, r0) default: oops() } } } -music_Melody_toString__P88092.info = {"start":9640,"length":53,"line":303,"column":8,"endLine":305,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"toString","argumentNames":["this"]} +particles_AreaFactory_createParticle__P154214.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 music_Melody_toString__P88092_mk(s) { +function particles_AreaFactory_createParticle__P154214_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_toString__P88092, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_createParticle__P154214, depth: s.depth + 1, pc: 0, retval: undefined, 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, + p___170820: undefined, arg0: undefined, + arg1: undefined, } } -function particles_ParticleSource___draw__P89169(s) { +function particles_SprayFactory_createParticle__P154204(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46824,220 +50828,84 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___102474 = undefined; - s.left___102477 = undefined; - s.top___102487 = undefined; + s.p___170868 = undefined; + s.angle___170872 = 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__C89163_VT)) failedCast(r0); - r0 = s.arg0.fields["head"]; - s.current___102474 = (r0); - r0 = s.arg0.fields["pFlags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 4); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = 0; - { step = 2; continue; } + if (!checkSubtype(r0, particles_SprayFactory__C154202_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleFactory_createParticle__P154200_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1334; s.pc = 1; return s.tmp_0; case 1: - r0 = s.arg1.fields["drawOffsetX"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_3 = r0; - r0 = (s.tmp_3 | 0); - case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - s.left___102477 = (s.tmp_4); - r0 = s.arg0.fields["pFlags"]; + r0 = s.retval; + s.p___170868 = (r0); + r0 = s.arg0.fields["minAngle"]; s.tmp_1 = r0; - r0 = (s.tmp_1 & 4); + s.tmp_3 = Math_FastRandom_randomRange__P154074_mk(s); + s.tmp_3.arg0 = globals.galois___156062; + s.tmp_3.arg1 = 0; + r0 = s.arg0.fields["spread"]; + s.tmp_3.arg2 = r0; + s.callLocIdx = 1335; 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 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = 0; - { step = 4; continue; } - case 3: - r0 = s.arg1.fields["drawOffsetY"]; + r0 = (s.tmp_0 % 100); + s.angle___170872 = (r0); + s.tmp_0 = r0 = s.p___170868; + r0 = pxsim_Array__getAt(globals.cachedSin___156057, s.angle___170872); s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); + r0 = s.arg0.fields["speed"]; s.tmp_3 = r0; - r0 = (s.tmp_3 | 0); - case 4: - // jmp value (already in r0) + r0 = pxsim.Math_.imul(s.tmp_2, s.tmp_3); s.tmp_4 = r0; - s.top___102487 = (s.tmp_4); - case 5: - r0 = pxsim_numops_toBoolDecr(s.current___102474); - if (!r0) { step = 8; continue; } - r0 = s.current___102474.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__P90884_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.current___102474; - s.tmp_2.arg2 = s.left___102477; - s.tmp_2.arg3 = s.top___102487; - s.callLocIdx = 1077; s.pc = 9; return s.tmp_2; - case 9: - r0 = s.retval; - case 6: - case 7: - r0 = s.current___102474.fields["next"]; - s.current___102474 = (r0); - { step = 5; continue; } - case 8: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_ParticleSource___draw__P89169.info = {"start":3199,"length":468,"line":111,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"__draw","argumentNames":["this","camera"]} - -function particles_ParticleSource___draw__P89169_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_ParticleSource___draw__P89169, depth: s.depth + 1, - pc: 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___102474: undefined, - left___102477: undefined, - top___102487: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function particles_ParticleSource_drawParticle__P90884(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C89163_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleFactory__C89199_v1_4_mk(s); - r0 = s.arg0.fields["_factory"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg1; - r0 = s.arg1.fields["_x"]; + r0 = (s.tmp_4 >> 8); s.tmp_1 = r0; - r0 = (s.tmp_1 - s.arg2); - s.tmp_0.arg2 = r0; - r0 = s.arg1.fields["_y"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.arg3); - s.tmp_0.arg3 = r0; - if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C89199_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: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_ParticleSource_drawParticle__P90884.info = {"start":8598,"length":174,"line":286,"column":8,"endLine":288,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"drawParticle","argumentNames":["this","p","screenLeft","screenTop"]} - -function particles_ParticleSource_drawParticle__P90884_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_ParticleSource_drawParticle__P90884, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function particles_ParticleFactory_drawParticle__P89202(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C89199_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___88287; - r0 = (s.arg2 + 128); + r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); + s.tmp_0 = r0 = s.p___170868; + r0 = pxsim_Array__getAt(globals.cachedCos___156058, s.angle___170872); s.tmp_2 = r0; - r0 = (s.tmp_2 >> 8); - s.tmp_1 = r0; - r0 = (s.arg3 + 128); + r0 = s.arg0.fields["speed"]; + s.tmp_3 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.tmp_3); 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, 1); - r0 = undefined; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); + r0 = s.p___170868; return leave(s, r0) default: oops() } } } -particles_ParticleFactory_drawParticle__P89202.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_SprayFactory_createParticle__P154204.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_ParticleFactory_drawParticle__P89202_mk(s) { +function particles_SprayFactory_createParticle__P154204_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_drawParticle__P89202, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_createParticle__P154204, depth: s.depth + 1, pc: 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___170868: undefined, + angle___170872: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function effects_ImageEffect_startScreenEffect__P89305(s) { +function effects_ImageEffect_startScreenEffect__P154304(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47047,7 +50915,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.wasRunning___191903 = undefined; + s.wasRunning___171035 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -47055,9 +50923,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C89301_VT)) failedCast(r0); - s.tmp_4 = game_currentScene__P89017_mk(s); - s.callLocIdx = 232; s.pc = 8; return s.tmp_4; + if (!checkSubtype(r0, effects_ImageEffect__C154300_VT)) failedCast(r0); + s.tmp_4 = game_currentScene__P154016_mk(s); + s.callLocIdx = 1393; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; r0 = r0.fields["background"]; @@ -47084,7 +50952,7 @@ switch (step) { r0 = s.arg0.fields["times"]; s.tmp_9 = r0; r0 = (s.tmp_9 != undefined); - s.wasRunning___191903 = (r0); + s.wasRunning___171035 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 3; continue; } r0 = s.arg1; @@ -47095,13 +50963,13 @@ switch (step) { // jmp value (already in r0) s.tmp_0 = r0; r0 = (s.arg0).fields["times"] = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(s.wasRunning___191903); + r0 = pxsim_numops_toBoolDecr(s.wasRunning___171035); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = pxsim_pxtcore_mkAction(2, inline__P191916); + r0 = pxsim_pxtcore_mkAction(2, inline__P171048); s.tmp_2 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.arg0); r0 = pxsim_pxtrt_stclo(s.tmp_2, 1, s.arg2); @@ -47113,12 +50981,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ImageEffect_startScreenEffect__P89305.info = {"start":1457,"length":637,"line":41,"column":8,"endLine":56,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"startScreenEffect","argumentNames":["this","times","delay"]} +effects_ImageEffect_startScreenEffect__P154304.info = {"start":1457,"length":637,"line":41,"column":8,"endLine":56,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"startScreenEffect","argumentNames":["this","times","delay"]} -function effects_ImageEffect_startScreenEffect__P89305_mk(s) { +function effects_ImageEffect_startScreenEffect__P154304_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_startScreenEffect__P89305, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_startScreenEffect__P154304, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -47130,7 +50998,7 @@ function effects_ImageEffect_startScreenEffect__P89305_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - wasRunning___191903: undefined, + wasRunning___171035: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -47140,7 +51008,7 @@ function effects_ImageEffect_startScreenEffect__P89305_mk(s) { -function inline__P191916(s) { +function inline__P171048(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47157,14 +51025,14 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_2 = effects_ImageEffect_change__P89304_mk(s); + s.tmp_2 = effects_ImageEffect_change__P154303_mk(s); s.tmp_2.arg0 = s.caps[0]; - s.tmp_3 = scene_backgroundImage__P88945_mk(s); - s.callLocIdx = 234; s.pc = 6; return s.tmp_3; + s.tmp_3 = scene_backgroundImage__P153944_mk(s); + s.callLocIdx = 1395; s.pc = 6; return s.tmp_3; case 6: r0 = s.retval; s.tmp_2.arg1 = r0; - s.callLocIdx = 235; s.pc = 5; return s.tmp_2; + s.callLocIdx = 1396; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.caps[1]); @@ -47176,9 +51044,9 @@ switch (step) { case 3: // jmp value (already in r0) s.tmp_0 = r0; - s.tmp_1 = pause__P86887_mk(s); + s.tmp_1 = pause__P151886_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 236; s.pc = 7; return s.tmp_1; + s.callLocIdx = 1397; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; s.tmp_0 = r0 = s.caps[0]; @@ -47194,12 +51062,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P191916.info = {"start":1764,"length":304,"line":47,"column":38,"endLine":54,"endColumn":17,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":[]} +inline__P171048.info = {"start":1764,"length":304,"line":47,"column":38,"endLine":54,"endColumn":17,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":[]} -function inline__P191916_mk(s) { +function inline__P171048_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P191916, depth: s.depth + 1, + parent: s, fn: inline__P171048, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -47211,7 +51079,7 @@ function inline__P191916_mk(s) { -function scene_backgroundImage__P88945(s) { +function scene_backgroundImage__P153944(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47221,37 +51089,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___191935 = undefined; - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 151; s.pc = 1; return s.tmp_0; + s.scene___171067 = undefined; + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 994; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.scene___191935 = (r0); - s.tmp_0 = scene_Background_image__P88756_mk(s); - r0 = s.scene___191935.fields["background"]; + s.scene___171067 = (r0); + s.tmp_0 = scene_Background_image__P153755_mk(s); + r0 = s.scene___171067.fields["background"]; s.tmp_0.arg0 = r0; - s.callLocIdx = 152; s.pc = 2; return s.tmp_0; + s.callLocIdx = 995; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; return leave(s, r0) default: oops() } } } -scene_backgroundImage__P88945.info = {"start":2273,"length":130,"line":90,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"backgroundImage","argumentNames":[]} +scene_backgroundImage__P153944.info = {"start":2273,"length":130,"line":90,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"backgroundImage","argumentNames":[]} -function scene_backgroundImage__P88945_mk(s) { +function scene_backgroundImage__P153944_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_backgroundImage__P88945, depth: s.depth + 1, + parent: s, fn: scene_backgroundImage__P153944, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - scene___191935: undefined, + scene___171067: undefined, } } -function scene_Background_hasBackgroundImage__P88758(s) { +function scene_Background_hasBackgroundImage__P153757(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47266,7 +51134,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C88750_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Background__C153749_VT)) failedCast(r0); r0 = s.arg0.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); @@ -47279,12 +51147,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Background_hasBackgroundImage__P88758.info = {"start":1081,"length":75,"line":44,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"hasBackgroundImage","argumentNames":["this"]} +scene_Background_hasBackgroundImage__P153757.info = {"start":1081,"length":75,"line":44,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"hasBackgroundImage","argumentNames":["this"]} -function scene_Background_hasBackgroundImage__P88758_mk(s) { +function scene_Background_hasBackgroundImage__P153757_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_hasBackgroundImage__P88758, depth: s.depth + 1, + parent: s, fn: scene_Background_hasBackgroundImage__P153757, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -47297,7 +51165,7 @@ function scene_Background_hasBackgroundImage__P88758_mk(s) { -function scene_Scene_data__P88927(s) { +function sprites_SpriteSet_toString__P153606(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47312,19 +51180,40 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C88904_VT)) failedCast(r0); - r0 = s.arg0.fields["_data"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, sprites_SpriteSet__C153595_VT)) failedCast(r0); + r0 = pxsim_String_.mkEmpty(); + s.tmp_1 = r0; + r0 = s.arg0.fields["_sprites"]; + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.tmp_4); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 1); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 1: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, " sprites"); + return leave(s, r0) default: oops() } } } -scene_Scene_data__P88927.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__P88927.isGetter = true; +sprites_SpriteSet_toString__P153606.info = {"start":2577,"length":66,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"toString","argumentNames":["this"]} -function scene_Scene_data__P88927_mk(s) { +function sprites_SpriteSet_toString__P153606_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_data__P88927, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_toString__P153606, depth: s.depth + 1, pc: 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, } } @@ -47332,7 +51221,7 @@ function scene_Scene_data__P88927_mk(s) { -function sprites_SpriteSet_toString__P88607(s) { +function sprites_SpriteSet_length__P153598(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47347,40 +51236,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C88596_VT)) failedCast(r0); - r0 = pxsim_String_.mkEmpty(); - s.tmp_1 = r0; + if (!checkSubtype(r0, sprites_SpriteSet__C153595_VT)) failedCast(r0); r0 = s.arg0.fields["_sprites"]; - s.tmp_4 = r0; - r0 = pxsim_Array__length(s.tmp_4); - s.tmp_3 = r0; - if ((s.tmp_3) && (s.tmp_3).vtable) { - setupResume(s, 1); - pxsim_String__stringConv(s.tmp_3); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_3) + ""; } - case 1: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, " sprites"); - return leave(s, r0) + r0 = pxsim_Array__length(s.tmp_0); + return leaveAccessor(s, r0) default: oops() } } } -sprites_SpriteSet_toString__P88607.info = {"start":2577,"length":66,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"toString","argumentNames":["this"]} +sprites_SpriteSet_length__P153598.info = {"start":628,"length":65,"line":26,"column":8,"endLine":28,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"length","argumentNames":["this"]} +sprites_SpriteSet_length__P153598.isGetter = true; -function sprites_SpriteSet_toString__P88607_mk(s) { +function sprites_SpriteSet_length__P153598_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_toString__P88607, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_length__P153598, depth: s.depth + 1, pc: 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, } } @@ -47388,7 +51259,7 @@ function sprites_SpriteSet_toString__P88607_mk(s) { -function sprites_SpriteSet_length__P88599(s) { +function info_PlayerInfo_id__P153724(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47403,22 +51274,53 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C88596_VT)) failedCast(r0); - r0 = s.arg0.fields["_sprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array__length(s.tmp_0); + if (!checkSubtype(r0, info_PlayerInfo__C153710_VT)) failedCast(r0); + r0 = s.arg0.fields["_player"]; + return leave(s, r0) + default: oops() +} } } +info_PlayerInfo_id__P153724.info = {"start":17259,"length":57,"line":568,"column":8,"endLine":570,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"id","argumentNames":["this"]} + +function info_PlayerInfo_id__P153724_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: info_PlayerInfo_id__P153724, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function scene_Scene_data__P153926(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C153903_VT)) failedCast(r0); + r0 = s.arg0.fields["_data"]; return leaveAccessor(s, r0) default: oops() } } } -sprites_SpriteSet_length__P88599.info = {"start":628,"length":65,"line":26,"column":8,"endLine":28,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"length","argumentNames":["this"]} -sprites_SpriteSet_length__P88599.isGetter = true; +scene_Scene_data__P153926.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__P153926.isGetter = true; -function sprites_SpriteSet_length__P88599_mk(s) { +function scene_Scene_data__P153926_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_length__P88599, depth: s.depth + 1, + parent: s, fn: scene_Scene_data__P153926, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -47426,7 +51328,7 @@ function sprites_SpriteSet_length__P88599_mk(s) { -function Sprite_toString__P88575(s) { +function Sprite_toString__P153574(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47441,7 +51343,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_9 = r0; r0 = s.arg0.fields["id"]; @@ -47459,9 +51361,9 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_String__concat(s.tmp_8, "("); s.tmp_7 = r0; - s.tmp_14 = Sprite_x__P88510_mk(s); + s.tmp_14 = Sprite_x__P153509_mk(s); s.tmp_14.arg0 = s.arg0; - s.callLocIdx = 392; s.pc = 2; return s.tmp_14; + s.callLocIdx = 438; s.pc = 2; return s.tmp_14; case 2: r0 = s.retval; s.tmp_13 = r0; @@ -47478,9 +51380,9 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_String__concat(s.tmp_6, ","); s.tmp_5 = r0; - s.tmp_17 = Sprite_y__P88512_mk(s); + s.tmp_17 = Sprite_y__P153511_mk(s); s.tmp_17.arg0 = s.arg0; - s.callLocIdx = 393; s.pc = 4; return s.tmp_17; + s.callLocIdx = 439; s.pc = 4; return s.tmp_17; case 4: r0 = s.retval; s.tmp_16 = r0; @@ -47497,9 +51399,9 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_4, ")->("); s.tmp_3 = r0; - s.tmp_20 = Sprite_vx__P88514_mk(s); + s.tmp_20 = Sprite_vx__P153513_mk(s); s.tmp_20.arg0 = s.arg0; - s.callLocIdx = 394; s.pc = 6; return s.tmp_20; + s.callLocIdx = 440; s.pc = 6; return s.tmp_20; case 6: r0 = s.retval; s.tmp_19 = r0; @@ -47516,9 +51418,9 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_23 = Sprite_vy__P88516_mk(s); + s.tmp_23 = Sprite_vy__P153515_mk(s); s.tmp_23.arg0 = s.arg0; - s.callLocIdx = 395; s.pc = 8; return s.tmp_23; + s.callLocIdx = 441; s.pc = 8; return s.tmp_23; case 8: r0 = s.retval; s.tmp_22 = r0; @@ -47537,12 +51439,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_toString__P88575.info = {"start":33194,"length":93,"line":980,"column":4,"endLine":982,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]} +Sprite_toString__P153574.info = {"start":33194,"length":93,"line":980,"column":4,"endLine":982,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]} -function Sprite_toString__P88575_mk(s) { +function Sprite_toString__P153574_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_toString__P88575, depth: s.depth + 1, + parent: s, fn: Sprite_toString__P153574, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -47575,7 +51477,7 @@ function Sprite_toString__P88575_mk(s) { -function Sprite___update__P88563(s) { +function Sprite___update__P153562(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47585,8 +51487,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.bounce___102705 = undefined; - s.tm___102710 = undefined; + s.bounce___171151 = undefined; + s.tm___171156 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -47594,7 +51496,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); r0 = s.arg0.fields["lifespan"]; s.tmp_1 = r0; r0 = (s.tmp_1 !== undefined); @@ -47616,9 +51518,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__P88573_mk(s); + s.tmp_0 = Sprite__destroyCore__P153572_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 328; s.pc = 33; return s.tmp_0; + s.callLocIdx = 374; s.pc = 33; return s.tmp_0; case 33: r0 = s.retval; case 1: @@ -47634,10 +51536,10 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_2 = Sprite_isOutOfScreen__P88561_mk(s); + s.tmp_2 = Sprite_isOutOfScreen__P153560_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; - s.callLocIdx = 329; s.pc = 34; return s.tmp_2; + s.callLocIdx = 375; s.pc = 34; return s.tmp_2; case 34: r0 = s.retval; case 6: @@ -47645,11 +51547,11 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 7; continue; } - s.tmp_4 = Sprite_destroy__P88572_mk(s); + s.tmp_4 = Sprite_destroy__P153571_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = undefined; s.tmp_4.arg2 = undefined; - s.callLocIdx = 330; s.pc = 35; return s.tmp_4; + s.callLocIdx = 376; s.pc = 35; return s.tmp_4; case 35: r0 = s.retval; case 7: @@ -47657,13 +51559,13 @@ switch (step) { r0 = s.arg0.fields["flags"]; s.tmp_0 = r0; r0 = (s.tmp_0 & 32); - s.bounce___102705 = (r0); - s.tmp_0 = game_currentScene__P89017_mk(s); - s.callLocIdx = 331; s.pc = 36; return s.tmp_0; + s.bounce___171151 = (r0); + s.tmp_0 = game_currentScene__P154016_mk(s); + s.callLocIdx = 377; s.pc = 36; return s.tmp_0; case 36: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___102710 = (r0); + s.tm___171156 = (r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 8); @@ -47673,13 +51575,13 @@ switch (step) { r0 = s.tmp_0; { step = 12; continue; } case 9: - s.tmp_2 = r0 = s.bounce___102705; + s.tmp_2 = r0 = s.bounce___171151; 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___102710); + r0 = pxsim_numops_toBoolDecr(s.tm___171156); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); case 11: @@ -47691,9 +51593,9 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 29; continue; } - s.tmp_8 = Sprite_left__P88547_mk(s); + s.tmp_8 = Sprite_left__P153546_mk(s); s.tmp_8.arg0 = s.arg0; - s.callLocIdx = 332; s.pc = 37; return s.tmp_8; + s.callLocIdx = 378; s.pc = 37; return s.tmp_8; case 37: r0 = s.retval; s.tmp_7 = r0; @@ -47703,41 +51605,41 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 15; continue; } - s.tmp_10 = Sprite_left__P88548_mk(s); + s.tmp_10 = Sprite_left__P153547_mk(s); s.tmp_10.arg0 = s.arg0; r0 = s.arg1.fields["_offsetX"]; s.tmp_10.arg1 = r0; - s.callLocIdx = 335; s.pc = 38; return s.tmp_10; + s.callLocIdx = 381; s.pc = 38; return s.tmp_10; case 38: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___102705); + r0 = pxsim_numops_toBoolDecr(s.bounce___171151); if (!r0) { step = 13; continue; } - s.tmp_0 = Sprite_vx__P88515_mk(s); + s.tmp_0 = Sprite_vx__P153514_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vx__P88514_mk(s); + s.tmp_2 = Sprite_vx__P153513_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 336; s.pc = 40; return s.tmp_2; + s.callLocIdx = 382; 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 = 337; s.pc = 39; return s.tmp_0; + s.callLocIdx = 383; 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__P88549_mk(s); + s.tmp_2 = Sprite_right__P153548_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 338; s.pc = 41; return s.tmp_2; + s.callLocIdx = 384; 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___88287); + r0 = pxsim_ImageMethods.width(globals.screen___153286); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); s.tmp_3 = r0; @@ -47745,30 +51647,30 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 18; continue; } - s.tmp_6 = Sprite_right__P88550_mk(s); + s.tmp_6 = Sprite_right__P153549_mk(s); s.tmp_6.arg0 = s.arg0; r0 = s.arg1.fields["_offsetX"]; s.tmp_7 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___88287); + r0 = pxsim_ImageMethods.width(globals.screen___153286); s.tmp_8 = r0; r0 = (s.tmp_7 + s.tmp_8); s.tmp_6.arg1 = r0; - s.callLocIdx = 341; s.pc = 42; return s.tmp_6; + s.callLocIdx = 387; s.pc = 42; return s.tmp_6; case 42: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___102705); + r0 = pxsim_numops_toBoolDecr(s.bounce___171151); if (!r0) { step = 16; continue; } - s.tmp_0 = Sprite_vx__P88515_mk(s); + s.tmp_0 = Sprite_vx__P153514_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vx__P88514_mk(s); + s.tmp_2 = Sprite_vx__P153513_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 342; s.pc = 44; return s.tmp_2; + s.callLocIdx = 388; 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 = 343; s.pc = 43; return s.tmp_0; + s.callLocIdx = 389; s.pc = 43; return s.tmp_0; case 43: r0 = s.retval; case 16: @@ -47776,9 +51678,9 @@ switch (step) { case 18: case 19: case 20: - s.tmp_2 = Sprite_top__P88551_mk(s); + s.tmp_2 = Sprite_top__P153550_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 344; s.pc = 45; return s.tmp_2; + s.callLocIdx = 390; s.pc = 45; return s.tmp_2; case 45: r0 = s.retval; s.tmp_1 = r0; @@ -47788,41 +51690,41 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 23; continue; } - s.tmp_4 = Sprite_top__P88552_mk(s); + s.tmp_4 = Sprite_top__P153551_mk(s); s.tmp_4.arg0 = s.arg0; r0 = s.arg1.fields["_offsetY"]; s.tmp_4.arg1 = r0; - s.callLocIdx = 347; s.pc = 46; return s.tmp_4; + s.callLocIdx = 393; s.pc = 46; return s.tmp_4; case 46: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___102705); + r0 = pxsim_numops_toBoolDecr(s.bounce___171151); if (!r0) { step = 21; continue; } - s.tmp_0 = Sprite_vy__P88517_mk(s); + s.tmp_0 = Sprite_vy__P153516_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vy__P88516_mk(s); + s.tmp_2 = Sprite_vy__P153515_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 348; s.pc = 48; return s.tmp_2; + s.callLocIdx = 394; 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 = 349; s.pc = 47; return s.tmp_0; + s.callLocIdx = 395; 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__P88553_mk(s); + s.tmp_2 = Sprite_bottom__P153552_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 350; s.pc = 49; return s.tmp_2; + s.callLocIdx = 396; 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___88287); + r0 = pxsim_ImageMethods.height(globals.screen___153286); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); s.tmp_3 = r0; @@ -47830,30 +51732,30 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 26; continue; } - s.tmp_6 = Sprite_bottom__P88554_mk(s); + s.tmp_6 = Sprite_bottom__P153553_mk(s); s.tmp_6.arg0 = s.arg0; r0 = s.arg1.fields["_offsetY"]; s.tmp_7 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___88287); + r0 = pxsim_ImageMethods.height(globals.screen___153286); s.tmp_8 = r0; r0 = (s.tmp_7 + s.tmp_8); s.tmp_6.arg1 = r0; - s.callLocIdx = 353; s.pc = 50; return s.tmp_6; + s.callLocIdx = 399; s.pc = 50; return s.tmp_6; case 50: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___102705); + r0 = pxsim_numops_toBoolDecr(s.bounce___171151); if (!r0) { step = 24; continue; } - s.tmp_0 = Sprite_vy__P88517_mk(s); + s.tmp_0 = Sprite_vy__P153516_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vy__P88516_mk(s); + s.tmp_2 = Sprite_vy__P153515_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 354; s.pc = 52; return s.tmp_2; + s.callLocIdx = 400; 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 = 355; s.pc = 51; return s.tmp_0; + s.callLocIdx = 401; s.pc = 51; return s.tmp_0; case 51: r0 = s.retval; case 24: @@ -47873,12 +51775,12 @@ switch (step) { s.tmp_1.arg2 = s.arg1; if (!s.tmp_1.arg0.vtable.iface) { setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "updateSay"), 3); - s.callLocIdx = 356; s.pc = 53; return s.tmp_1; + s.callLocIdx = 402; 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 = 356; s.pc = 53; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 356; s.pc = 53; return s.tmp_1;; } - else { s.callLocIdx = 356; s.pc = 53; return s.tmp_1; } + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["updateSay"], 3); s.callLocIdx = 402; s.pc = 53; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 402; s.pc = 53; return s.tmp_1;; } + else { s.callLocIdx = 402; s.pc = 53; return s.tmp_1; } } case 53: r0 = s.retval; @@ -47888,12 +51790,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___update__P88563.info = {"start":22253,"length":1390,"line":682,"column":4,"endLine":721,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__update","argumentNames":["this","camera","dt"]} +Sprite___update__P153562.info = {"start":22253,"length":1390,"line":682,"column":4,"endLine":721,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__update","argumentNames":["this","camera","dt"]} -function Sprite___update__P88563_mk(s) { +function Sprite___update__P153562_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___update__P88563, depth: s.depth + 1, + parent: s, fn: Sprite___update__P153562, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -47906,8 +51808,8 @@ function Sprite___update__P88563_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - bounce___102705: undefined, - tm___102710: undefined, + bounce___171151: undefined, + tm___171156: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -47917,7 +51819,7 @@ function Sprite___update__P88563_mk(s) { -function Sprite_isOutOfScreen__P88561(s) { +function Sprite_isOutOfScreen__P153560(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47927,15 +51829,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___102799 = undefined; - s.oy___102807 = undefined; + s.ox___171245 = undefined; + s.oy___171253 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -47949,7 +51851,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_2 = r0; - s.ox___102799 = (s.tmp_2); + s.ox___171245 = (s.tmp_2); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -47963,14 +51865,14 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___102807 = (s.tmp_2); - s.tmp_3 = Sprite_right__P88549_mk(s); + s.oy___171253 = (s.tmp_2); + s.tmp_3 = Sprite_right__P153548_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 297; s.pc = 11; return s.tmp_3; + s.callLocIdx = 343; s.pc = 11; return s.tmp_3; case 11: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.ox___102799); + r0 = (s.tmp_2 - s.ox___171245); s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -47979,13 +51881,13 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_6 = Sprite_bottom__P88553_mk(s); + s.tmp_6 = Sprite_bottom__P153552_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 298; s.pc = 12; return s.tmp_6; + s.callLocIdx = 344; s.pc = 12; return s.tmp_6; case 12: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.oy___102807); + r0 = (s.tmp_5 - s.oy___171253); s.tmp_4 = r0; r0 = (s.tmp_4 < 0); case 6: @@ -47996,15 +51898,15 @@ switch (step) { r0 = s.tmp_7; { step = 8; continue; } case 7: - s.tmp_10 = Sprite_left__P88547_mk(s); + s.tmp_10 = Sprite_left__P153546_mk(s); s.tmp_10.arg0 = s.arg0; - s.callLocIdx = 299; s.pc = 13; return s.tmp_10; + s.callLocIdx = 345; s.pc = 13; return s.tmp_10; case 13: r0 = s.retval; s.tmp_9 = r0; - r0 = (s.tmp_9 - s.ox___102799); + r0 = (s.tmp_9 - s.ox___171245); s.tmp_8 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___88287); + r0 = pxsim_ImageMethods.width(globals.screen___153286); s.tmp_11 = r0; r0 = (s.tmp_8 > s.tmp_11); case 8: @@ -48015,15 +51917,15 @@ switch (step) { r0 = s.tmp_12; { step = 10; continue; } case 9: - s.tmp_15 = Sprite_top__P88551_mk(s); + s.tmp_15 = Sprite_top__P153550_mk(s); s.tmp_15.arg0 = s.arg0; - s.callLocIdx = 300; s.pc = 14; return s.tmp_15; + s.callLocIdx = 346; s.pc = 14; return s.tmp_15; case 14: r0 = s.retval; s.tmp_14 = r0; - r0 = (s.tmp_14 - s.oy___102807); + r0 = (s.tmp_14 - s.oy___171253); s.tmp_13 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___88287); + r0 = pxsim_ImageMethods.height(globals.screen___153286); s.tmp_16 = r0; r0 = (s.tmp_13 > s.tmp_16); case 10: @@ -48033,12 +51935,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_isOutOfScreen__P88561.info = {"start":20500,"length":358,"line":636,"column":4,"endLine":640,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]} +Sprite_isOutOfScreen__P153560.info = {"start":20500,"length":358,"line":636,"column":4,"endLine":640,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]} -function Sprite_isOutOfScreen__P88561_mk(s) { +function Sprite_isOutOfScreen__P153560_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isOutOfScreen__P88561, depth: s.depth + 1, + parent: s, fn: Sprite_isOutOfScreen__P153560, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48058,8 +51960,8 @@ function Sprite_isOutOfScreen__P88561_mk(s) { tmp_15: undefined, tmp_16: undefined, tmp_17: undefined, - ox___102799: undefined, - oy___102807: undefined, + ox___171245: undefined, + oy___171253: undefined, arg0: undefined, arg1: undefined, } } @@ -48068,7 +51970,7 @@ function Sprite_isOutOfScreen__P88561_mk(s) { -function Sprite_bottom__P88554(s) { +function Sprite_bottom__P153553(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48084,8 +51986,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P88552_mk(s); + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P153551_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; r0 = s.arg0.fields["_image"]; @@ -48094,19 +51996,19 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_1 - s.tmp_2); s.tmp_0.arg1 = r0; - s.callLocIdx = 291; s.pc = 1; return s.tmp_0; + s.callLocIdx = 332; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_bottom__P88554.info = {"start":10235,"length":73,"line":374,"column":4,"endLine":376,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this","value"]} +Sprite_bottom__P153553.info = {"start":10235,"length":73,"line":374,"column":4,"endLine":376,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this","value"]} -function Sprite_bottom__P88554_mk(s) { +function Sprite_bottom__P153553_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_bottom__P88554, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P153553, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48120,7 +52022,7 @@ function Sprite_bottom__P88554_mk(s) { -function Sprite_right__P88550(s) { +function Sprite_right__P153549(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48136,8 +52038,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P88548_mk(s); + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P153547_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; r0 = s.arg0.fields["_image"]; @@ -48146,19 +52048,19 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_1 - s.tmp_2); s.tmp_0.arg1 = r0; - s.callLocIdx = 283; s.pc = 1; return s.tmp_0; + s.callLocIdx = 324; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_right__P88550.info = {"start":9428,"length":71,"line":344,"column":4,"endLine":346,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this","value"]} +Sprite_right__P153549.info = {"start":9428,"length":71,"line":344,"column":4,"endLine":346,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this","value"]} -function Sprite_right__P88550_mk(s) { +function Sprite_right__P153549_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P88550, depth: s.depth + 1, + parent: s, fn: Sprite_right__P153549, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48172,7 +52074,7 @@ function Sprite_right__P88550_mk(s) { -function Sprite_data__P88527(s) { +function Sprite_data__P153526(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48188,18 +52090,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); r0 = (s.arg0).fields["_data"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_data__P88527.info = {"start":4292,"length":56,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this","value"]} +Sprite_data__P153526.info = {"start":4292,"length":56,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this","value"]} -function Sprite_data__P88527_mk(s) { +function Sprite_data__P153526_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_data__P88527, depth: s.depth + 1, + parent: s, fn: Sprite_data__P153526, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -48209,7 +52111,7 @@ function Sprite_data__P88527_mk(s) { -function Sprite_data__P88526(s) { +function Sprite_data__P153525(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48224,7 +52126,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); r0 = s.arg0.fields["_data"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -48243,13 +52145,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -Sprite_data__P88526.info = {"start":4194,"length":92,"line":160,"column":4,"endLine":163,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this"]} -Sprite_data__P88526.isGetter = true; +Sprite_data__P153525.info = {"start":4194,"length":92,"line":160,"column":4,"endLine":163,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this"]} +Sprite_data__P153525.isGetter = true; -function Sprite_data__P88526_mk(s) { +function Sprite_data__P153525_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_data__P88526, depth: s.depth + 1, + parent: s, fn: Sprite_data__P153525, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48263,7 +52165,7 @@ function Sprite_data__P88526_mk(s) { -function sprites_BaseSprite___update__P88351(s) { +function sprites_BaseSprite___update__P153350(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48280,17 +52182,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C88343_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C153342_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___update__P88351.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__P153350.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__P88351_mk(s) { +function sprites_BaseSprite___update__P153350_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___update__P88351, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___update__P153350, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -48301,7 +52203,7 @@ function sprites_BaseSprite___update__P88351_mk(s) { -function sprites_BaseSprite___draw__P88349(s) { +function sprites_BaseSprite___draw__P153348(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48317,10 +52219,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C88343_VT)) failedCast(r0); - s.tmp_1 = sprites_BaseSprite__C88343_v0_1_mk(s); + if (!checkSubtype(r0, sprites_BaseSprite__C153342_VT)) failedCast(r0); + s.tmp_1 = sprites_BaseSprite__C153342_v0_1_mk(s); s.tmp_1.arg0 = s.arg0; - if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C88343_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C153342_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: @@ -48328,10 +52230,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = sprites_BaseSprite__C88343_v2_2_mk(s); + s.tmp_2 = sprites_BaseSprite__C153342_v2_2_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; - if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C88343_VT)) failedCast(s.tmp_2.arg0); + if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C153342_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: @@ -48342,12 +52244,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_BaseSprite___draw__P88349.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__P153348.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__P88349_mk(s) { +function sprites_BaseSprite___draw__P153348_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___draw__P88349, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___draw__P153348, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48360,7 +52262,7 @@ function sprites_BaseSprite___draw__P88349_mk(s) { -function sprites_BaseSprite___drawCore__P88350(s) { +function sprites_BaseSprite___drawCore__P153349(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48376,17 +52278,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C88343_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C153342_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___drawCore__P88350.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__P153349.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__P88350_mk(s) { +function sprites_BaseSprite___drawCore__P153349_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___drawCore__P88350, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___drawCore__P153349, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -48396,7 +52298,7 @@ function sprites_BaseSprite___drawCore__P88350_mk(s) { -function sprites_BaseSprite___visible__P88346(s) { +function sprites_BaseSprite___visible__P153345(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48411,17 +52313,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C88343_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C153342_VT)) failedCast(r0); r0 = true; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___visible__P88346.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__P153345.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__P88346_mk(s) { +function sprites_BaseSprite___visible__P153345_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___visible__P88346, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___visible__P153345, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -48430,7 +52332,7 @@ function sprites_BaseSprite___visible__P88346_mk(s) { -function controller_AnyButton_isPressed__P90369(s) { +function controller_AnyButton_isPressed__P155533(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48440,36 +52342,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctrl___102864 = undefined; - s.b___102868 = undefined; - s.unnamed376___U2 = undefined; - s.unnamed377___U3 = undefined; + s.ctrl___171310 = undefined; + s.b___171314 = undefined; + s.unnamed1478___U2 = undefined; + s.unnamed1479___U3 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_AnyButton__C90367_VT)) failedCast(r0); - s.tmp_0 = controller__player1__P88402_mk(s); - s.callLocIdx = 148; s.pc = 6; return s.tmp_0; + if (!checkSubtype(r0, controller_AnyButton__C155531_VT)) failedCast(r0); + s.tmp_0 = controller__player1__P153401_mk(s); + s.callLocIdx = 189; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.ctrl___102864 = (r0); - s.b___102868 = (undefined); - r0 = s.ctrl___102864.fields["buttons"]; - s.unnamed376___U2 = (r0); - s.unnamed377___U3 = (0); + s.ctrl___171310 = (r0); + s.b___171314 = (undefined); + r0 = s.ctrl___171310.fields["buttons"]; + s.unnamed1478___U2 = (r0); + s.unnamed1479___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed377___U3; - r0 = pxsim_Array__length(s.unnamed376___U2); + s.tmp_0 = r0 = s.unnamed1479___U3; + r0 = pxsim_Array__length(s.unnamed1478___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed376___U2, s.unnamed377___U3); - s.b___102868 = (r0); - s.tmp_3 = controller_Button__C88388_v0_1_mk(s); - s.tmp_3.arg0 = s.b___102868; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C88388_VT)) failedCast(s.tmp_3.arg0); + r0 = pxsim_Array__getAt(s.unnamed1478___U2, s.unnamed1479___U3); + s.b___171314 = (r0); + s.tmp_3 = controller_Button__C153387_v0_1_mk(s); + s.tmp_3.arg0 = s.b___171314; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C153387_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: @@ -48481,31 +52383,31 @@ switch (step) { { step = 5; continue; } case 2: case 3: - r0 = (s.unnamed377___U3 + 1); - s.unnamed377___U3 = (r0); + r0 = (s.unnamed1479___U3 + 1); + s.unnamed1479___U3 = (r0); { step = 1; continue; } case 4: - s.unnamed376___U2 = (undefined); + s.unnamed1478___U2 = (undefined); r0 = false; case 5: return leave(s, r0) default: oops() } } } -controller_AnyButton_isPressed__P90369.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__P155533.info = {"start":5874,"length":202,"line":185,"column":8,"endLine":192,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} -function controller_AnyButton_isPressed__P90369_mk(s) { +function controller_AnyButton_isPressed__P155533_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_AnyButton_isPressed__P90369, depth: s.depth + 1, + parent: s, fn: controller_AnyButton_isPressed__P155533, depth: s.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___102864: undefined, - b___102868: undefined, - unnamed376___U2: undefined, - unnamed377___U3: undefined, + ctrl___171310: undefined, + b___171314: undefined, + unnamed1478___U2: undefined, + unnamed1479___U3: undefined, arg0: undefined, } } @@ -48513,7 +52415,7 @@ function controller_AnyButton_isPressed__P90369_mk(s) { -function controller_Button_toString__P88393(s) { +function controller_Button_toString__P153392(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48528,7 +52430,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C88388_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C153387_VT)) failedCast(r0); r0 = s.arg0.fields["_pressed"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -48568,12 +52470,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_toString__P88393.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__P153392.info = {"start":1479,"length":100,"line":63,"column":8,"endLine":65,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"toString","argumentNames":["this"]} -function controller_Button_toString__P88393_mk(s) { +function controller_Button_toString__P153392_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_toString__P88393, depth: s.depth + 1, + parent: s, fn: controller_Button_toString__P153392, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48589,7 +52491,7 @@ function controller_Button_toString__P88393_mk(s) { -function effects_SceneAnchor_height__P90930(s) { +function effects_SceneAnchor_height__P156094(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48604,18 +52506,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_SceneAnchor__C90926_VT)) failedCast(r0); - r0 = pxsim_ImageMethods.height(globals.screen___88287); + if (!checkSubtype(r0, effects_SceneAnchor__C156090_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.height(globals.screen___153286); return leaveAccessor(s, r0) default: oops() } } } -effects_SceneAnchor_height__P90930.info = {"start":2634,"length":58,"line":71,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"height","argumentNames":["this"]} -effects_SceneAnchor_height__P90930.isGetter = true; +effects_SceneAnchor_height__P156094.info = {"start":2634,"length":58,"line":71,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"height","argumentNames":["this"]} +effects_SceneAnchor_height__P156094.isGetter = true; -function effects_SceneAnchor_height__P90930_mk(s) { +function effects_SceneAnchor_height__P156094_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_SceneAnchor_height__P90930, depth: s.depth + 1, + parent: s, fn: effects_SceneAnchor_height__P156094, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -48624,7 +52526,7 @@ function effects_SceneAnchor_height__P90930_mk(s) { -function effects_SceneAnchor_width__P90929(s) { +function effects_SceneAnchor_width__P156093(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48639,18 +52541,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_SceneAnchor__C90926_VT)) failedCast(r0); - r0 = pxsim_ImageMethods.width(globals.screen___88287); + if (!checkSubtype(r0, effects_SceneAnchor__C156090_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.width(globals.screen___153286); return leaveAccessor(s, r0) default: oops() } } } -effects_SceneAnchor_width__P90929.info = {"start":2568,"length":56,"line":67,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"width","argumentNames":["this"]} -effects_SceneAnchor_width__P90929.isGetter = true; +effects_SceneAnchor_width__P156093.info = {"start":2568,"length":56,"line":67,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"width","argumentNames":["this"]} +effects_SceneAnchor_width__P156093.isGetter = true; -function effects_SceneAnchor_width__P90929_mk(s) { +function effects_SceneAnchor_width__P156093_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_SceneAnchor_width__P90929, depth: s.depth + 1, + parent: s, fn: effects_SceneAnchor_width__P156093, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -48659,7 +52561,7 @@ function effects_SceneAnchor_width__P90929_mk(s) { -function effects_SceneAnchor_y__P90928(s) { +function effects_SceneAnchor_y__P156092(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48674,12 +52576,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_SceneAnchor__C90926_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_SceneAnchor__C156090_VT)) failedCast(r0); r0 = s.arg0.fields["camera"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_offsetY"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___88287); + r0 = pxsim_ImageMethods.height(globals.screen___153286); s.tmp_3 = r0; r0 = (s.tmp_3 >> 1); s.tmp_2 = r0; @@ -48687,13 +52589,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -effects_SceneAnchor_y__P90928.info = {"start":2476,"length":82,"line":63,"column":8,"endLine":65,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"y","argumentNames":["this"]} -effects_SceneAnchor_y__P90928.isGetter = true; +effects_SceneAnchor_y__P156092.info = {"start":2476,"length":82,"line":63,"column":8,"endLine":65,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"y","argumentNames":["this"]} +effects_SceneAnchor_y__P156092.isGetter = true; -function effects_SceneAnchor_y__P90928_mk(s) { +function effects_SceneAnchor_y__P156092_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_SceneAnchor_y__P90928, depth: s.depth + 1, + parent: s, fn: effects_SceneAnchor_y__P156092, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48706,7 +52608,7 @@ function effects_SceneAnchor_y__P90928_mk(s) { -function effects_SceneAnchor_x__P90927(s) { +function effects_SceneAnchor_x__P156091(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48721,12 +52623,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_SceneAnchor__C90926_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_SceneAnchor__C156090_VT)) failedCast(r0); r0 = s.arg0.fields["camera"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_offsetX"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___88287); + r0 = pxsim_ImageMethods.width(globals.screen___153286); s.tmp_3 = r0; r0 = (s.tmp_3 >> 1); s.tmp_2 = r0; @@ -48734,13 +52636,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -effects_SceneAnchor_x__P90927.info = {"start":2385,"length":81,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"x","argumentNames":["this"]} -effects_SceneAnchor_x__P90927.isGetter = true; +effects_SceneAnchor_x__P156091.info = {"start":2385,"length":81,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"x","argumentNames":["this"]} +effects_SceneAnchor_x__P156091.isGetter = true; -function effects_SceneAnchor_x__P90927_mk(s) { +function effects_SceneAnchor_x__P156091_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_SceneAnchor_x__P90927, depth: s.depth + 1, + parent: s, fn: effects_SceneAnchor_x__P156091, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48753,7 +52655,7 @@ function effects_SceneAnchor_x__P90927_mk(s) { -function sprites_StaticObstacle_width__P88641(s) { +function sprites_StaticObstacle_width__P153640(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48768,20 +52670,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C88631_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C153630_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__P88641.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__P88641.isGetter = true; +sprites_StaticObstacle_width__P153640.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__P153640.isGetter = true; -function sprites_StaticObstacle_width__P88641_mk(s) { +function sprites_StaticObstacle_width__P153640_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_width__P88641, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_width__P153640, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -48791,7 +52693,7 @@ function sprites_StaticObstacle_width__P88641_mk(s) { -function sprites_StaticObstacle_height__P88640(s) { +function sprites_StaticObstacle_height__P153639(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48806,20 +52708,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C88631_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C153630_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__P88640.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__P88640.isGetter = true; +sprites_StaticObstacle_height__P153639.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__P153639.isGetter = true; -function sprites_StaticObstacle_height__P88640_mk(s) { +function sprites_StaticObstacle_height__P153639_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_height__P88640, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_height__P153639, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -48829,7 +52731,7 @@ function sprites_StaticObstacle_height__P88640_mk(s) { -function sprites_StaticObstacle_y__P88639(s) { +function sprites_StaticObstacle_y__P153638(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48844,7 +52746,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C88631_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C153630_VT)) failedCast(r0); r0 = s.arg0.fields["top"]; s.tmp_0 = r0; r0 = s.arg0.fields["image"]; @@ -48857,13 +52759,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_y__P88639.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__P88639.isGetter = true; +sprites_StaticObstacle_y__P153638.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__P153638.isGetter = true; -function sprites_StaticObstacle_y__P88639_mk(s) { +function sprites_StaticObstacle_y__P153638_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_y__P88639, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_y__P153638, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48876,7 +52778,7 @@ function sprites_StaticObstacle_y__P88639_mk(s) { -function sprites_StaticObstacle_x__P88638(s) { +function sprites_StaticObstacle_x__P153637(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48891,7 +52793,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C88631_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C153630_VT)) failedCast(r0); r0 = s.arg0.fields["left"]; s.tmp_0 = r0; r0 = s.arg0.fields["image"]; @@ -48904,13 +52806,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_x__P88638.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__P88638.isGetter = true; +sprites_StaticObstacle_x__P153637.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__P153637.isGetter = true; -function sprites_StaticObstacle_x__P88638_mk(s) { +function sprites_StaticObstacle_x__P153637_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_x__P88638, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_x__P153637, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48923,7 +52825,7 @@ function sprites_StaticObstacle_x__P88638_mk(s) { -function scene_Camera_top__P88858(s) { +function scene_Camera_top__P153857(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48938,18 +52840,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C88845_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C153844_VT)) failedCast(r0); r0 = s.arg0.fields["drawOffsetY"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_top__P88858.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__P88858.isGetter = true; +scene_Camera_top__P153857.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__P153857.isGetter = true; -function scene_Camera_top__P88858_mk(s) { +function scene_Camera_top__P153857_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_top__P88858, depth: s.depth + 1, + parent: s, fn: scene_Camera_top__P153857, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -48958,7 +52860,7 @@ function scene_Camera_top__P88858_mk(s) { -function scene_Camera_left__P88856(s) { +function scene_Camera_left__P153855(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48973,18 +52875,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C88845_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C153844_VT)) failedCast(r0); r0 = s.arg0.fields["drawOffsetX"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_left__P88856.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__P88856.isGetter = true; +scene_Camera_left__P153855.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__P153855.isGetter = true; -function scene_Camera_left__P88856_mk(s) { +function scene_Camera_left__P153855_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_left__P88856, depth: s.depth + 1, + parent: s, fn: scene_Camera_left__P153855, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -48993,7 +52895,7 @@ function scene_Camera_left__P88856_mk(s) { -function particles_ShapeFactory_drawParticle__P89228(s) { +function particles_ShapeFactory_drawParticle__P154227(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49003,7 +52905,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pImage___102917 = undefined; + s.pImage___171387 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -49012,23 +52914,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C89225_VT)) failedCast(r0); - s.tmp_1 = Math_FastRandom_pickRandom__P89076_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C154224_VT)) failedCast(r0); + s.tmp_1 = Math_FastRandom_pickRandom__P154075_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_1.arg0 = r0; r0 = s.arg0.fields["sources"]; s.tmp_1.arg1 = r0; - s.callLocIdx = 1166; s.pc = 1; return s.tmp_1; + s.callLocIdx = 1358; 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___102917 = (r0); + s.pImage___171387 = (r0); r0 = s.arg1.fields["color"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.replace(s.pImage___102917, 15, s.tmp_0); - s.tmp_0 = r0 = globals.screen___88287; - s.tmp_1 = r0 = s.pImage___102917; + r0 = pxsim_ImageMethods.replace(s.pImage___171387, 15, s.tmp_0); + s.tmp_0 = r0 = globals.screen___153286; + s.tmp_1 = r0 = s.pImage___171387; r0 = s.arg0.fields["ox"]; s.tmp_4 = r0; r0 = (s.arg2 - s.tmp_4); @@ -49050,12 +52952,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ShapeFactory_drawParticle__P89228.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__P154227.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__P89228_mk(s) { +function particles_ShapeFactory_drawParticle__P154227_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_drawParticle__P89228, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_drawParticle__P154227, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -49067,7 +52969,7 @@ function particles_ShapeFactory_drawParticle__P89228_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - pImage___102917: undefined, + pImage___171387: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -49078,7 +52980,7 @@ function particles_ShapeFactory_drawParticle__P89228_mk(s) { -function Math_FastRandom_pickRandom__P89076(s) { +function Math_FastRandom_pickRandom__P154075(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49094,7 +52996,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C89071_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C154070_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -49117,14 +53019,14 @@ switch (step) { case 3: case 4: s.tmp_4 = r0 = s.arg1; - s.tmp_6 = Math_FastRandom_randomRange__P89075_mk(s); + s.tmp_6 = Math_FastRandom_randomRange__P154074_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 = 895; s.pc = 6; return s.tmp_6; + s.callLocIdx = 1087; s.pc = 6; return s.tmp_6; case 6: r0 = s.retval; s.tmp_5 = r0; @@ -49133,12 +53035,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_pickRandom__P89076.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__P154075.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__P89076_mk(s) { +function Math_FastRandom_pickRandom__P154075_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_pickRandom__P89076, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_pickRandom__P154075, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -49156,7 +53058,65 @@ function Math_FastRandom_pickRandom__P89076_mk(s) { -function particles_AreaFactory_drawParticle__P89216(s) { +function particles_AshFactory_drawParticle__P154245(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_AshFactory__C154242_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___153286; + r0 = (s.arg2 + 128); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 8); + s.tmp_1 = r0; + r0 = (s.arg3 + 128); + s.tmp_4 = r0; + r0 = (s.tmp_4 >> 8); + s.tmp_3 = r0; + r0 = s.arg1.fields["color"]; + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, s.tmp_5); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +particles_AshFactory_drawParticle__P154245.info = {"start":13926,"length":117,"line":444,"column":8,"endLine":446,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","p","x","y"]} + +function particles_AshFactory_drawParticle__P154245_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_AshFactory_drawParticle__P154245, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + + + + +function particles_AreaFactory_drawParticle__P154215(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49166,7 +53126,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.col___102963 = undefined; + s.col___171433 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -49175,7 +53135,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AreaFactory__C89209_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_AreaFactory__C154208_VT)) failedCast(r0); r0 = s.arg1.fields["lifespan"]; s.tmp_1 = r0; r0 = (s.tmp_1 > 500); @@ -49202,8 +53162,8 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_5 = r0; - s.col___102963 = (s.tmp_5); - s.tmp_0 = r0 = globals.screen___88287; + s.col___171433 = (s.tmp_5); + s.tmp_0 = r0 = globals.screen___153286; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -49212,17 +53172,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___102963); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, s.col___171433); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_AreaFactory_drawParticle__P89216.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__P154215.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__P89216_mk(s) { +function particles_AreaFactory_drawParticle__P154215_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_drawParticle__P89216, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_drawParticle__P154215, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -49230,7 +53190,7 @@ function particles_AreaFactory_drawParticle__P89216_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - col___102963: undefined, + col___171433: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -49241,7 +53201,7 @@ function particles_AreaFactory_drawParticle__P89216_mk(s) { -function particles_SprayFactory_drawParticle__P89206(s) { +function particles_SprayFactory_drawParticle__P154205(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49259,8 +53219,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C89203_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___88287; + if (!checkSubtype(r0, particles_SprayFactory__C154202_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___153286; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -49274,12 +53234,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_SprayFactory_drawParticle__P89206.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__P154205.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__P89206_mk(s) { +function particles_SprayFactory_drawParticle__P154205_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_drawParticle__P89206, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_drawParticle__P154205, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -49296,7 +53256,7 @@ function particles_SprayFactory_drawParticle__P89206_mk(s) { -function scene_Renderable___drawCore__P88866(s) { +function scene_Renderable___drawCore__P153865(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49312,19 +53272,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C88863_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Renderable__C153862_VT)) failedCast(r0); s.tmp_0 = if_handler_3_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.screen___88287; + s.tmp_0.arg1 = globals.screen___153286; 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 = 819; s.pc = 1; return s.tmp_0; + s.callLocIdx = 958; 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 = 819; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 819; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 819; 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 = 958; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 958; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 958; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -49332,12 +53292,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Renderable___drawCore__P88866.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__P153865.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__P88866_mk(s) { +function scene_Renderable___drawCore__P153865_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable___drawCore__P88866, depth: s.depth + 1, + parent: s, fn: scene_Renderable___drawCore__P153865, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -49348,7 +53308,7 @@ function scene_Renderable___drawCore__P88866_mk(s) { -function scene_Renderable___visible__P88865(s) { +function scene_Renderable___visible__P153864(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49363,29 +53323,29 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C88863_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Renderable__C153862_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 = 818; s.pc = 1; return s.tmp_0; + s.callLocIdx = 957; 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 = 818; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 818; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 818; 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 = 957; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 957; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 957; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -scene_Renderable___visible__P88865.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__P153864.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__P88865_mk(s) { +function scene_Renderable___visible__P153864_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable___visible__P88865, depth: s.depth + 1, + parent: s, fn: scene_Renderable___visible__P153864, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -49395,7 +53355,7 @@ function scene_Renderable___visible__P88865_mk(s) { -function Sprite___drawCore__P88562(s) { +function Sprite___drawCore__P153561(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49405,24 +53365,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___103001 = undefined; - s.oy___103009 = undefined; - s.l___103017 = undefined; - s.t___103021 = undefined; - s.font___103036 = undefined; - s.tx___103040 = undefined; - s.ty___103042 = undefined; + s.ox___171471 = undefined; + s.oy___171479 = undefined; + s.l___171487 = undefined; + s.t___171491 = undefined; + s.font___171506 = undefined; + s.tx___171510 = undefined; + s.ty___171512 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); - s.tmp_1 = Sprite_isOutOfScreen__P88561_mk(s); + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); + s.tmp_1 = Sprite_isOutOfScreen__P153560_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 301; s.pc = 20; return s.tmp_1; + s.callLocIdx = 347; s.pc = 20; return s.tmp_1; case 20: r0 = s.retval; s.tmp_0 = r0; @@ -49444,7 +53404,7 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_4 = r0; - s.ox___103001 = (s.tmp_4); + s.ox___171471 = (s.tmp_4); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -49458,35 +53418,35 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___103009 = (s.tmp_2); - s.tmp_1 = Sprite_left__P88547_mk(s); + s.oy___171479 = (s.tmp_2); + s.tmp_1 = Sprite_left__P153546_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 302; s.pc = 21; return s.tmp_1; + s.callLocIdx = 348; s.pc = 21; return s.tmp_1; case 21: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.ox___103001); - s.l___103017 = (r0); - s.tmp_1 = Sprite_top__P88551_mk(s); + r0 = (s.tmp_0 - s.ox___171471); + s.l___171487 = (r0); + s.tmp_1 = Sprite_top__P153550_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 303; s.pc = 22; return s.tmp_1; + s.callLocIdx = 349; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.oy___103009); - s.t___103021 = (r0); + r0 = (s.tmp_0 - s.oy___171479); + s.t___171491 = (r0); r0 = s.arg0.fields["_image"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___88287, s.tmp_0, s.l___103017, s.t___103021); + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___153286, s.tmp_0, s.l___171487, s.t___171491); 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___103036 = (globals.font5___88235); - s.tx___103040 = (s.l___103017); - s.tmp_1 = r0 = s.t___103021; + s.font___171506 = (globals.font5___153234); + s.tx___171510 = (s.l___171487); + s.tmp_1 = r0 = s.t___171491; r0 = s.arg0.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.height(s.tmp_3); @@ -49494,14 +53454,14 @@ switch (step) { r0 = (s.tmp_1 + s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 + 2); - s.ty___103042 = (r0); - s.tmp_0 = helpers_imagePrint__P88245_mk(s); - s.tmp_0.arg0 = globals.screen___88287; + s.ty___171512 = (r0); + s.tmp_0 = helpers_imagePrint__P153244_mk(s); + s.tmp_0.arg0 = globals.screen___153286; r0 = pxsim_String_.mkEmpty(); s.tmp_3 = r0; - s.tmp_7 = Sprite_x__P88510_mk(s); + s.tmp_7 = Sprite_x__P153509_mk(s); s.tmp_7.arg0 = s.arg0; - s.callLocIdx = 305; s.pc = 24; return s.tmp_7; + s.callLocIdx = 351; s.pc = 24; return s.tmp_7; case 24: r0 = s.retval; s.tmp_6 = r0; @@ -49520,9 +53480,9 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_11 = Sprite_y__P88512_mk(s); + s.tmp_11 = Sprite_y__P153511_mk(s); s.tmp_11.arg0 = s.arg0; - s.callLocIdx = 306; s.pc = 26; return s.tmp_11; + s.callLocIdx = 352; s.pc = 26; return s.tmp_11; case 26: r0 = s.retval; s.tmp_10 = r0; @@ -49539,33 +53499,33 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_String__concat(s.tmp_1, s.tmp_8); s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.tx___103040; - s.tmp_0.arg3 = s.ty___103042; + s.tmp_0.arg2 = s.tx___171510; + s.tmp_0.arg3 = s.ty___171512; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___103036; + s.tmp_0.arg5 = s.font___171506; s.tmp_0.arg6 = undefined; - s.callLocIdx = 307; s.pc = 23; return s.tmp_0; + s.callLocIdx = 353; s.pc = 23; return s.tmp_0; case 23: r0 = s.retval; - s.tmp_0 = r0 = s.tx___103040; + s.tmp_0 = r0 = s.tx___171510; s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.font___103036; + s.tmp_2.arg0 = s.font___171506; 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 = 308; s.pc = 28; return s.tmp_2; } + else { s.callLocIdx = 354; s.pc = 28; return s.tmp_2; } } case 28: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.tx___103040 = (r0); - s.tmp_1 = Sprite_vx__P88514_mk(s); + s.tx___171510 = (r0); + s.tmp_1 = Sprite_vx__P153513_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 309; s.pc = 29; return s.tmp_1; + s.callLocIdx = 355; s.pc = 29; return s.tmp_1; case 29: r0 = s.retval; s.tmp_0 = r0; @@ -49574,9 +53534,9 @@ switch (step) { r0 = s.tmp_0; { step = 8; continue; } case 7: - s.tmp_2 = Sprite_vy__P88516_mk(s); + s.tmp_2 = Sprite_vy__P153515_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 310; s.pc = 30; return s.tmp_2; + s.callLocIdx = 356; s.pc = 30; return s.tmp_2; case 30: r0 = s.retval; case 8: @@ -49584,16 +53544,16 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 9; continue; } - s.tmp_4 = r0 = s.ty___103042; + s.tmp_4 = r0 = s.ty___171512; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___103036; + s.tmp_7.arg0 = s.font___171506; 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 = 311; s.pc = 31; return s.tmp_7; } + else { s.callLocIdx = 357; s.pc = 31; return s.tmp_7; } } case 31: r0 = s.retval; @@ -49601,12 +53561,12 @@ switch (step) { r0 = (s.tmp_6 + 2); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); - s.ty___103042 = (r0); - s.tmp_0 = helpers_imagePrint__P88245_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - s.tmp_6 = Sprite_vx__P88514_mk(s); + s.ty___171512 = (r0); + s.tmp_0 = helpers_imagePrint__P153244_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + s.tmp_6 = Sprite_vx__P153513_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 312; s.pc = 33; return s.tmp_6; + s.callLocIdx = 358; s.pc = 33; return s.tmp_6; case 33: r0 = s.retval; s.tmp_5 = r0; @@ -49625,9 +53585,9 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_10 = Sprite_vy__P88516_mk(s); + s.tmp_10 = Sprite_vy__P153515_mk(s); s.tmp_10.arg0 = s.arg0; - s.callLocIdx = 313; s.pc = 35; return s.tmp_10; + s.callLocIdx = 359; s.pc = 35; return s.tmp_10; case 35: r0 = s.retval; s.tmp_9 = r0; @@ -49644,19 +53604,19 @@ switch (step) { s.tmp_7 = r0; r0 = pxsim_String__concat(s.tmp_1, s.tmp_7); s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.tx___103040; - s.tmp_0.arg3 = s.ty___103042; + s.tmp_0.arg2 = s.tx___171510; + s.tmp_0.arg3 = s.ty___171512; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___103036; + s.tmp_0.arg5 = s.font___171506; s.tmp_0.arg6 = undefined; - s.callLocIdx = 314; s.pc = 32; return s.tmp_0; + s.callLocIdx = 360; s.pc = 32; return s.tmp_0; case 32: r0 = s.retval; case 9: case 10: - s.tmp_1 = Sprite_ax__P88518_mk(s); + s.tmp_1 = Sprite_ax__P153517_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 315; s.pc = 37; return s.tmp_1; + s.callLocIdx = 361; s.pc = 37; return s.tmp_1; case 37: r0 = s.retval; s.tmp_0 = r0; @@ -49665,9 +53625,9 @@ switch (step) { r0 = s.tmp_0; { step = 12; continue; } case 11: - s.tmp_2 = Sprite_ay__P88520_mk(s); + s.tmp_2 = Sprite_ay__P153519_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 316; s.pc = 38; return s.tmp_2; + s.callLocIdx = 362; s.pc = 38; return s.tmp_2; case 38: r0 = s.retval; case 12: @@ -49675,16 +53635,16 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 13; continue; } - s.tmp_4 = r0 = s.ty___103042; + s.tmp_4 = r0 = s.ty___171512; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___103036; + s.tmp_7.arg0 = s.font___171506; 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 = 317; s.pc = 39; return s.tmp_7; } + else { s.callLocIdx = 363; s.pc = 39; return s.tmp_7; } } case 39: r0 = s.retval; @@ -49692,12 +53652,12 @@ switch (step) { r0 = (s.tmp_6 + 2); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); - s.ty___103042 = (r0); - s.tmp_0 = helpers_imagePrint__P88245_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - s.tmp_6 = Sprite_ax__P88518_mk(s); + s.ty___171512 = (r0); + s.tmp_0 = helpers_imagePrint__P153244_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + s.tmp_6 = Sprite_ax__P153517_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 318; s.pc = 41; return s.tmp_6; + s.callLocIdx = 364; s.pc = 41; return s.tmp_6; case 41: r0 = s.retval; s.tmp_5 = r0; @@ -49716,9 +53676,9 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_10 = Sprite_ay__P88520_mk(s); + s.tmp_10 = Sprite_ay__P153519_mk(s); s.tmp_10.arg0 = s.arg0; - s.callLocIdx = 319; s.pc = 43; return s.tmp_10; + s.callLocIdx = 365; s.pc = 43; return s.tmp_10; case 43: r0 = s.retval; s.tmp_9 = r0; @@ -49735,26 +53695,26 @@ switch (step) { s.tmp_7 = r0; r0 = pxsim_String__concat(s.tmp_1, s.tmp_7); s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.tx___103040; - s.tmp_0.arg3 = s.ty___103042; + s.tmp_0.arg2 = s.tx___171510; + s.tmp_0.arg3 = s.ty___171512; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___103036; + s.tmp_0.arg5 = s.font___171506; s.tmp_0.arg6 = undefined; - s.callLocIdx = 320; s.pc = 40; return s.tmp_0; + s.callLocIdx = 366; s.pc = 40; return s.tmp_0; case 40: r0 = s.retval; case 13: case 14: case 15: case 16: - r0 = pxsim_numops_toBoolDecr(globals.debug___89013); + r0 = pxsim_numops_toBoolDecr(globals.debug___154012); if (!r0) { step = 17; continue; } - s.tmp_0 = helpers_imageDrawRect__P88216_mk(s); - s.tmp_0.arg0 = globals.screen___88287; - s.tmp_3 = game_Hitbox_left__P88451_mk(s); + s.tmp_0 = helpers_imageDrawRect__P153215_mk(s); + s.tmp_0.arg0 = globals.screen___153286; + s.tmp_3 = game_Hitbox_left__P153450_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_3.arg0 = r0; - s.callLocIdx = 321; s.pc = 46; return s.tmp_3; + s.callLocIdx = 367; s.pc = 46; return s.tmp_3; case 46: r0 = s.retval; s.tmp_2 = r0; @@ -49762,12 +53722,12 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 >> 8); s.tmp_1 = r0; - r0 = (s.tmp_1 - s.ox___103001); + r0 = (s.tmp_1 - s.ox___171471); s.tmp_0.arg1 = r0; - s.tmp_7 = game_Hitbox_top__P88452_mk(s); + s.tmp_7 = game_Hitbox_top__P153451_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_7.arg0 = r0; - s.callLocIdx = 323; s.pc = 47; return s.tmp_7; + s.callLocIdx = 369; s.pc = 47; return s.tmp_7; case 47: r0 = s.retval; s.tmp_6 = r0; @@ -49775,7 +53735,7 @@ switch (step) { s.tmp_8 = r0; r0 = (s.tmp_8 >> 8); s.tmp_5 = r0; - r0 = (s.tmp_5 - s.oy___103009); + r0 = (s.tmp_5 - s.oy___171479); s.tmp_0.arg2 = r0; r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["width"]; @@ -49792,7 +53752,7 @@ switch (step) { r0 = (s.tmp_12 >> 8); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 1; - s.callLocIdx = 327; s.pc = 45; return s.tmp_0; + s.callLocIdx = 373; s.pc = 45; return s.tmp_0; case 45: r0 = s.retval; case 17: @@ -49802,12 +53762,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___drawCore__P88562.info = {"start":20864,"length":1383,"line":642,"column":4,"endLine":680,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]} +Sprite___drawCore__P153561.info = {"start":20864,"length":1383,"line":642,"column":4,"endLine":680,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]} -function Sprite___drawCore__P88562_mk(s) { +function Sprite___drawCore__P153561_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___drawCore__P88562, depth: s.depth + 1, + parent: s, fn: Sprite___drawCore__P153561, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -49822,13 +53782,13 @@ function Sprite___drawCore__P88562_mk(s) { tmp_10: undefined, tmp_11: undefined, tmp_12: undefined, - ox___103001: undefined, - oy___103009: undefined, - l___103017: undefined, - t___103021: undefined, - font___103036: undefined, - tx___103040: undefined, - ty___103042: undefined, + ox___171471: undefined, + oy___171479: undefined, + l___171487: undefined, + t___171491: undefined, + font___171506: undefined, + tx___171510: undefined, + ty___171512: undefined, arg0: undefined, arg1: undefined, } } @@ -49837,7 +53797,7 @@ function Sprite___drawCore__P88562_mk(s) { -function Sprite___visible__P88544(s) { +function Sprite___visible__P153543(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49852,7 +53812,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C88501_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C153500_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_2 = r0; r0 = (s.tmp_2 & 128); @@ -49863,12 +53823,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___visible__P88544.info = {"start":8329,"length":72,"line":303,"column":4,"endLine":305,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__visible","argumentNames":["this"]} +Sprite___visible__P153543.info = {"start":8329,"length":72,"line":303,"column":4,"endLine":305,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__visible","argumentNames":["this"]} -function Sprite___visible__P88544_mk(s) { +function Sprite___visible__P153543_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___visible__P88544, depth: s.depth + 1, + parent: s, fn: Sprite___visible__P153543, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -49879,7 +53839,7 @@ function Sprite___visible__P88544_mk(s) { -function lambda_3_mk(s) { +function if_countdownEndHandler_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -49890,12 +53850,10 @@ function lambda_3_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function PhysicsEngine__C88644_v0_2_mk(s) { +function if_charWidth_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -49906,11 +53864,10 @@ function PhysicsEngine__C88644_v0_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function if_handler_2_mk(s) { +function if_charHeight_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -49921,11 +53878,10 @@ function if_handler_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function if_id_2_mk(s) { +function if_multiplier_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -49936,11 +53892,10 @@ function if_id_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function if_effect_3_mk(s) { +function if_data_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -49951,12 +53906,24 @@ function if_effect_3_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function if_sourceFactory_3_mk(s) { +function if_xOffset_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_yOffset_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -49967,12 +53934,10 @@ function if_sourceFactory_3_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function PhysicsEngine__C88644_v1_2_mk(s) { +function if_id_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -49987,7 +53952,7 @@ function PhysicsEngine__C88644_v1_2_mk(s) { } } -function if_destroyHandler_1_mk(s) { +function if_lifeZeroHandler_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50001,7 +53966,7 @@ function if_destroyHandler_1_mk(s) { } } -function if_image_1_mk(s) { +function lambda_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50012,10 +53977,12 @@ function if_image_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function if_scale_1_mk(s) { +function lambda_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50029,7 +53996,7 @@ function if_scale_1_mk(s) { } } -function if_borderWidth_1_mk(s) { +function if_condition_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50043,7 +54010,7 @@ function if_borderWidth_1_mk(s) { } } -function lambda_2_mk(s) { +function if_handler_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50054,11 +54021,10 @@ function lambda_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function if_startScreenEffect_1_mk(s) { +function PhysicsEngine__C153643_v0_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50069,10 +54035,11 @@ function if_startScreenEffect_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function game_GameOverDialog__C89001_v0_1_mk(s) { +function if_handler_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50083,10 +54050,11 @@ function game_GameOverDialog__C89001_v0_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function if_flags_1_mk(s) { +function if_image_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50100,7 +54068,7 @@ function if_flags_1_mk(s) { } } -function particles_ParticleFactory__C89199_v0_2_mk(s) { +function if_scale_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50111,11 +54079,10 @@ function particles_ParticleFactory__C89199_v0_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function particles_ParticleSource__C89163_v4_3_mk(s) { +function if_borderWidth_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50126,12 +54093,10 @@ function particles_ParticleSource__C89163_v4_3_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function if_x_1_mk(s) { +function if_flags_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50145,7 +54110,7 @@ function if_x_1_mk(s) { } } -function if_y_1_mk(s) { +function particles_ParticleFactory__C154198_v0_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50156,10 +54121,11 @@ function if_y_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function lambda_1_mk(s) { +function particles_ParticleSource__C154162_v4_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50170,10 +54136,12 @@ function lambda_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function if_handler_1_mk(s) { +function if_x_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50187,7 +54155,7 @@ function if_handler_1_mk(s) { } } -function if_condition_1_mk(s) { +function if_y_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50201,7 +54169,7 @@ function if_condition_1_mk(s) { } } -function PhysicsEngine__C88644_v4_2_mk(s) { +function PhysicsEngine__C153643_v4_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50232,7 +54200,7 @@ function if___update_3_mk(s) { } } -function PhysicsEngine__C88644_v3_1_mk(s) { +function lambda_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50243,10 +54211,11 @@ function PhysicsEngine__C88644_v3_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function if_charHeight_1_mk(s) { +function PhysicsEngine__C153643_v3_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50260,7 +54229,7 @@ function if_charHeight_1_mk(s) { } } -function if_charWidth_1_mk(s) { +function if___draw_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50271,10 +54240,11 @@ function if_charWidth_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function if_multiplier_1_mk(s) { +function if_z_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50288,7 +54258,7 @@ function if_multiplier_1_mk(s) { } } -function if_data_1_mk(s) { +function if_id_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50302,7 +54272,7 @@ function if_data_1_mk(s) { } } -function if_xOffset_1_mk(s) { +function controller_Button__C153387_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50316,7 +54286,7 @@ function if_xOffset_1_mk(s) { } } -function if_yOffset_1_mk(s) { +function if_s_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50330,7 +54300,7 @@ function if_yOffset_1_mk(s) { } } -function if___draw_2_mk(s) { +function if_vx_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50341,11 +54311,10 @@ function if___draw_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function if_z_1_mk(s) { +function if_vy_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50359,7 +54328,7 @@ function if_z_1_mk(s) { } } -function if_id_1_mk(s) { +function if_width_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50373,7 +54342,7 @@ function if_id_1_mk(s) { } } -function controller_Button__C88388_v0_1_mk(s) { +function if_height_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50387,7 +54356,7 @@ function controller_Button__C88388_v0_1_mk(s) { } } -function if_s_1_mk(s) { +function if_effect_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50398,10 +54367,12 @@ function if_s_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function if_vx_1_mk(s) { +function if_sourceFactory_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50412,10 +54383,12 @@ function if_vx_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function if_vy_1_mk(s) { +function PhysicsEngine__C153643_v1_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50426,10 +54399,11 @@ function if_vy_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function game_GameOverDialog__C89001_v1_1_mk(s) { +function if_destroyHandler_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50443,7 +54417,7 @@ function game_GameOverDialog__C89001_v1_1_mk(s) { } } -function if_countdownEndHandler_1_mk(s) { +function if_startScreenEffect_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50457,7 +54431,21 @@ function if_countdownEndHandler_1_mk(s) { } } -function if_lifeZeroHandler_1_mk(s) { +function game_GameOverDialog__C154000_v0_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 game_GameOverDialog__C154000_v1_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50503,7 +54491,7 @@ function lambda_5_mk(s) { } } -function if_func_1_mk(s) { +function PhysicsEngine__C153643_v2_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50514,10 +54502,13 @@ function if_func_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function PhysicsEngine__C88644_v2_4_mk(s) { +function if_func_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50528,9 +54519,6 @@ function PhysicsEngine__C88644_v2_4_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } @@ -50762,23 +54750,7 @@ function if_z_2_mk(s) { } } -function if_handler_3_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: null, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - -function if_tileIndex_1_mk(s) { +function game_BaseDialog__C153961_v1_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50792,7 +54764,7 @@ function if_tileIndex_1_mk(s) { } } -function if_left_1_mk(s) { +function if_handler_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50803,10 +54775,12 @@ function if_left_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function if_top_1_mk(s) { +function if_tileIndex_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50820,7 +54794,7 @@ function if_top_1_mk(s) { } } -function if_height_1_mk(s) { +function if_left_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50834,7 +54808,7 @@ function if_height_1_mk(s) { } } -function game_BaseDialog__C88962_v1_1_mk(s) { +function if_top_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50848,7 +54822,7 @@ function game_BaseDialog__C88962_v1_1_mk(s) { } } -function particles_ParticleFactory__C89199_v1_4_mk(s) { +function particles_ParticleFactory__C154198_v1_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50881,7 +54855,7 @@ function if_updateSay_3_mk(s) { } } -function sprites_BaseSprite__C88343_v0_1_mk(s) { +function sprites_BaseSprite__C153342_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50895,7 +54869,7 @@ function sprites_BaseSprite__C88343_v0_1_mk(s) { } } -function sprites_BaseSprite__C88343_v2_2_mk(s) { +function sprites_BaseSprite__C153342_v2_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -50995,28 +54969,14 @@ function if_up_2_mk(s) { arg1: undefined, } } - -function if_width_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, -} } - -const controller_Button__C88388_VT = mkVTable({ +const controller_Button__C153387_VT = mkVTable({ name: "Button", numFields: 7, classNo: 16, lastSubtypeNo: 17, maxBgInstances: null, methods: { - "isPressed": controller_Button_isPressed__P88397, + "isPressed": controller_Button_isPressed__P153396, }, iface: { "_owner": null, @@ -51033,26 +54993,26 @@ const controller_Button__C88388_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "toString": controller_Button_toString__P88393, - "raiseButtonUp": controller_Button_raiseButtonUp__P90364, - "raiseButtonDown": controller_Button_raiseButtonDown__P90365, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P90366, - "onEvent": controller_Button_onEvent__P88395, - "isPressed": controller_Button_isPressed__P88397, - "pressureLevel": controller_Button_pressureLevel__P88398, - "setPressed": controller_Button_setPressed__P88399, - "__update": controller_Button___update__P88400, + "toString": controller_Button_toString__P153392, + "raiseButtonUp": controller_Button_raiseButtonUp__P155528, + "raiseButtonDown": controller_Button_raiseButtonDown__P155529, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P155530, + "onEvent": controller_Button_onEvent__P153394, + "isPressed": controller_Button_isPressed__P153396, + "pressureLevel": controller_Button_pressureLevel__P153397, + "setPressed": controller_Button_setPressed__P153398, + "__update": controller_Button___update__P153399, }, - toStringMethod: controller_Button_toString__P88393, + toStringMethod: controller_Button_toString__P153392, }); -const controller_AnyButton__C90367_VT = mkVTable({ +const controller_AnyButton__C155531_VT = mkVTable({ name: "AnyButton", numFields: 7, classNo: 17, lastSubtypeNo: 17, maxBgInstances: null, methods: { - "isPressed": controller_AnyButton_isPressed__P90369, + "isPressed": controller_AnyButton_isPressed__P155533, }, iface: { "_owner": null, @@ -51069,18 +55029,18 @@ const controller_AnyButton__C90367_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "isPressed": controller_AnyButton_isPressed__P90369, - "toString": controller_Button_toString__P88393, - "raiseButtonUp": controller_Button_raiseButtonUp__P90364, - "raiseButtonDown": controller_Button_raiseButtonDown__P90365, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P90366, - "onEvent": controller_Button_onEvent__P88395, - "pressureLevel": controller_Button_pressureLevel__P88398, - "setPressed": controller_Button_setPressed__P88399, - "__update": controller_Button___update__P88400, + "isPressed": controller_AnyButton_isPressed__P155533, + "toString": controller_Button_toString__P153392, + "raiseButtonUp": controller_Button_raiseButtonUp__P155528, + "raiseButtonDown": controller_Button_raiseButtonDown__P155529, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P155530, + "onEvent": controller_Button_onEvent__P153394, + "pressureLevel": controller_Button_pressureLevel__P153397, + "setPressed": controller_Button_setPressed__P153398, + "__update": controller_Button___update__P153399, }, }); -const Math_FastRandom__C89071_VT = mkVTable({ +const Math_FastRandom__C154070_VT = mkVTable({ name: "FastRandom", numFields: 2, classNo: 18, @@ -51093,12 +55053,13 @@ const Math_FastRandom__C89071_VT = mkVTable({ "set/lfsr": null, "seed": null, "set/seed": null, - "next": Math_FastRandom_next__P89074, - "randomRange": Math_FastRandom_randomRange__P89075, - "pickRandom": Math_FastRandom_pickRandom__P89076, + "next": Math_FastRandom_next__P154073, + "randomRange": Math_FastRandom_randomRange__P154074, + "pickRandom": Math_FastRandom_pickRandom__P154075, + "percentChance": Math_FastRandom_percentChance__P154077, }, }); -const texteffects_TextEffect__C89316_VT = mkVTable({ +const texteffects_TextEffect__C154315_VT = mkVTable({ name: "TextEffect", numFields: 1, classNo: 19, @@ -51111,193 +55072,57 @@ const texteffects_TextEffect__C89316_VT = mkVTable({ "set/getState": null, }, }); -const tiles_TileMap__C88802_VT = mkVTable({ - name: "TileMap", - numFields: 3, +const color_FadeState__C157325_VT = mkVTable({ + name: "FadeState", + numFields: 2, classNo: 20, lastSubtypeNo: 20, maxBgInstances: null, methods: { }, iface: { - "_scale": null, - "set/_scale": null, - "_layer": null, - "set/_layer": null, - "_map": null, - "set/_map": null, - "scale": tiles_TileMap_scale__P88804, - "set/scale": tiles_TileMap_scale__P88805, - "data": tiles_TileMap_data__P90472, - "offsetX": tiles_TileMap_offsetX__P88806, - "offsetY": tiles_TileMap_offsetY__P88807, - "areaWidth": tiles_TileMap_areaWidth__P88808, - "areaHeight": tiles_TileMap_areaHeight__P88809, - "layer": tiles_TileMap_layer__P88810, - "enabled": tiles_TileMap_enabled__P88812, - "setData": tiles_TileMap_setData__P88813, - "getTile": tiles_TileMap_getTile__P88814, - "getTileIndex": tiles_TileMap_getTileIndex__P88815, - "setTileAt": tiles_TileMap_setTileAt__P88816, - "getImageType": tiles_TileMap_getImageType__P88817, - "setWallAt": tiles_TileMap_setWallAt__P88818, - "getTilesByType": tiles_TileMap_getTilesByType__P88819, - "isInvalidIndex": tiles_TileMap_isInvalidIndex__P90473, - "draw": tiles_TileMap_draw__P90474, - "isObstacle": tiles_TileMap_isObstacle__P88821, - "getObstacle": tiles_TileMap_getObstacle__P88822, - "isOnWall": tiles_TileMap_isOnWall__P88823, - "getTileImage": tiles_TileMap_getTileImage__P88824, - }, -}); -const tiles_TileMapData__C88789_VT = mkVTable({ - name: "TileMapData", - numFields: 7, - classNo: 21, - lastSubtypeNo: 21, - maxBgInstances: null, - methods: { - }, - iface: { - "data": null, - "set/data": null, - "layers": null, - "set/layers": null, - "tileset": null, - "set/tileset": null, - "cachedTileView": null, - "set/cachedTileView": null, - "_scale": null, - "set/_scale": null, - "_width": null, - "set/_width": null, - "_height": null, - "set/_height": null, - "width": tiles_TileMapData_width__P88791, - "height": tiles_TileMapData_height__P88792, - "scale": tiles_TileMapData_scale__P88793, - "set/scale": tiles_TileMapData_scale__P88794, - "getTile": tiles_TileMapData_getTile__P88795, - "setTile": tiles_TileMapData_setTile__P88796, - "getTileset": tiles_TileMapData_getTileset__P88797, - "getTileImage": tiles_TileMapData_getTileImage__P88798, - "setWall": tiles_TileMapData_setWall__P88799, - "isWall": tiles_TileMapData_isWall__P88800, - "isOutsideMap": tiles_TileMapData_isOutsideMap__P88801, - }, -}); -const tiles_Location__C88774_VT = mkVTable({ - name: "Location", - numFields: 3, - classNo: 22, - lastSubtypeNo: 22, - maxBgInstances: null, - methods: { - }, - iface: { - "_row": null, - "set/_row": null, - "_col": null, - "set/_col": null, - "tileMap": null, - "set/tileMap": null, - "col": tiles_Location_col__P88775, - "row": tiles_Location_row__P88776, - "x": tiles_Location_x__P88778, - "y": tiles_Location_y__P88779, - "tileSet": tiles_Location_tileSet__P88780, - "place": tiles_Location_place__P88781, - }, -}); -const controller_Controller__C88408_VT = mkVTable({ - name: "Controller", - numFields: 5, - classNo: 23, - lastSubtypeNo: 23, - maxBgInstances: null, - methods: { - }, - iface: { - "playerIndex": null, - "set/playerIndex": null, - "buttons": null, - "set/buttons": null, - "analog": null, - "set/analog": null, - "_id": null, - "set/_id": null, - "_connected": null, - "set/_connected": null, - "_controlledSprites": controller_Controller__controlledSprites__P88413, - "set/_controlledSprites": controller_Controller__controlledSprites__P88414, - "id": controller_Controller_id__P88415, - "left": controller_Controller_left__P88417, - "right": controller_Controller_right__P88418, - "up": controller_Controller_up__P88419, - "down": controller_Controller_down__P88420, - "moveSprite": controller_Controller_moveSprite__P88424, - "button": controller_Controller_button__P90372, - "connected": controller_Controller_connected__P88427, - "set/connected": controller_Controller_connected__P88428, - "__preUpdate": controller_Controller___preUpdate__P88432, - "__update": controller_Controller___update__P88433, - }, -}); -const controller_ControlledSprite__C88404_VT = mkVTable({ - name: "ControlledSprite", - numFields: 4, - classNo: 24, - lastSubtypeNo: 24, - maxBgInstances: null, - methods: { - }, - iface: { - "_inputLastFrame": null, - "set/_inputLastFrame": null, - "s": null, - "set/s": null, - "vx": null, - "set/vx": null, - "vy": null, - "set/vy": null, + "state": null, + "set/state": null, + "scene": null, + "set/scene": null, }, }); -const sprites_BaseSprite__C88343_VT = mkVTable({ +const sprites_BaseSprite__C153342_VT = mkVTable({ name: "BaseSprite", numFields: 2, - classNo: 25, - lastSubtypeNo: 28, + classNo: 21, + lastSubtypeNo: 24, maxBgInstances: null, methods: { - "__visible": sprites_BaseSprite___visible__P88346, - "__draw": sprites_BaseSprite___draw__P88349, - "__drawCore": sprites_BaseSprite___drawCore__P88350, - "__update": sprites_BaseSprite___update__P88351, + "__visible": sprites_BaseSprite___visible__P153345, + "__draw": sprites_BaseSprite___draw__P153348, + "__drawCore": sprites_BaseSprite___drawCore__P153349, + "__update": sprites_BaseSprite___update__P153350, }, iface: { "_z": null, "set/_z": null, "id": null, "set/id": null, - "__visible": sprites_BaseSprite___visible__P88346, - "z": sprites_BaseSprite_z__P88347, - "set/z": sprites_BaseSprite_z__P88348, - "__draw": sprites_BaseSprite___draw__P88349, - "__drawCore": sprites_BaseSprite___drawCore__P88350, - "__update": sprites_BaseSprite___update__P88351, + "__visible": sprites_BaseSprite___visible__P153345, + "z": sprites_BaseSprite_z__P153346, + "set/z": sprites_BaseSprite_z__P153347, + "__draw": sprites_BaseSprite___draw__P153348, + "__drawCore": sprites_BaseSprite___drawCore__P153349, + "__update": sprites_BaseSprite___update__P153350, }, }); -const Sprite__C88501_VT = mkVTable({ +const Sprite__C153500_VT = mkVTable({ name: "Sprite", numFields: 26, - classNo: 26, - lastSubtypeNo: 26, + classNo: 22, + lastSubtypeNo: 22, maxBgInstances: null, methods: { - "__visible": Sprite___visible__P88544, - "__draw": sprites_BaseSprite___draw__P88349, - "__drawCore": Sprite___drawCore__P88562, - "__update": Sprite___update__P88563, + "__visible": Sprite___visible__P153543, + "__draw": sprites_BaseSprite___draw__P153348, + "__drawCore": Sprite___drawCore__P153561, + "__update": Sprite___update__P153562, }, iface: { "_z": null, @@ -51352,128 +55177,63 @@ const Sprite__C88501_VT = mkVTable({ "set/flags": null, "destroyHandler": null, "set/destroyHandler": null, - "x": Sprite_x__P88510, - "set/x": Sprite_x__P88511, - "y": Sprite_y__P88512, - "set/y": Sprite_y__P88513, - "vx": Sprite_vx__P88514, - "set/vx": Sprite_vx__P88515, - "vy": Sprite_vy__P88516, - "set/vy": Sprite_vy__P88517, - "ax": Sprite_ax__P88518, - "set/ax": Sprite_ax__P88519, - "ay": Sprite_ay__P88520, - "set/ay": Sprite_ay__P88521, - "fx": Sprite_fx__P88522, - "set/fx": Sprite_fx__P88523, - "fy": Sprite_fy__P88524, - "set/fy": Sprite_fy__P88525, - "data": Sprite_data__P88526, - "set/data": Sprite_data__P88527, - "image": Sprite_image__P88540, - "setImage": Sprite_setImage__P88541, - "setHitbox": Sprite_setHitbox__P88542, - "isStatic": Sprite_isStatic__P88543, - "__visible": Sprite___visible__P88544, - "width": Sprite_width__P88545, - "height": Sprite_height__P88546, - "left": Sprite_left__P88547, - "set/left": Sprite_left__P88548, - "right": Sprite_right__P88549, - "set/right": Sprite_right__P88550, - "top": Sprite_top__P88551, - "set/top": Sprite_top__P88552, - "bottom": Sprite_bottom__P88553, - "set/bottom": Sprite_bottom__P88554, - "kind": Sprite_kind__P88555, - "setKind": Sprite_setKind__P88556, - "setPosition": Sprite_setPosition__P88557, - "isOutOfScreen": Sprite_isOutOfScreen__P88561, - "__drawCore": Sprite___drawCore__P88562, - "__update": Sprite___update__P88563, - "setFlag": Sprite_setFlag__P88564, - "overlapsWith": Sprite_overlapsWith__P88565, - "clearObstacles": Sprite_clearObstacles__P88569, - "registerObstacle": Sprite_registerObstacle__P88570, - "destroy": Sprite_destroy__P88572, - "_destroyCore": Sprite__destroyCore__P88573, - "toString": Sprite_toString__P88575, - "z": sprites_BaseSprite_z__P88347, - "set/z": sprites_BaseSprite_z__P88348, - "__draw": sprites_BaseSprite___draw__P88349, - }, - toStringMethod: Sprite_toString__P88575, -}); -const PhysicsEngine__C88644_VT = mkVTable({ - name: "PhysicsEngine", - numFields: 0, - classNo: 29, - lastSubtypeNo: 30, - maxBgInstances: null, - methods: { - "addSprite": PhysicsEngine_addSprite__P88646, - "removeSprite": PhysicsEngine_removeSprite__P88647, - "moveSprite": PhysicsEngine_moveSprite__P88648, - "draw": PhysicsEngine_draw__P88649, - "move": PhysicsEngine_move__P88650, - }, - iface: { - "addSprite": PhysicsEngine_addSprite__P88646, - "removeSprite": PhysicsEngine_removeSprite__P88647, - "moveSprite": PhysicsEngine_moveSprite__P88648, - "draw": PhysicsEngine_draw__P88649, - "move": PhysicsEngine_move__P88650, - }, -}); -const sprites_SpriteSet__C88596_VT = mkVTable({ - name: "SpriteSet", - numFields: 1, - classNo: 31, - lastSubtypeNo: 31, - maxBgInstances: null, - methods: { - }, - iface: { - "_sprites": null, - "set/_sprites": null, - "length": sprites_SpriteSet_length__P88599, - "add": sprites_SpriteSet_add__P88601, - "remove": sprites_SpriteSet_remove__P88603, - "contains": sprites_SpriteSet_contains__P88604, - "toString": sprites_SpriteSet_toString__P88607, - }, - toStringMethod: sprites_SpriteSet_toString__P88607, -}); -const game_Hitbox__C88444_VT = mkVTable({ - name: "Hitbox", - numFields: 5, - classNo: 32, - lastSubtypeNo: 32, - maxBgInstances: null, - methods: { - }, - iface: { - "parent": null, - "set/parent": null, - "ox": null, - "set/ox": null, - "oy": null, - "set/oy": null, - "width": null, - "set/width": null, - "height": null, - "set/height": null, - "left": game_Hitbox_left__P88451, - "top": game_Hitbox_top__P88452, - "right": game_Hitbox_right__P88453, - "bottom": game_Hitbox_bottom__P88454, + "x": Sprite_x__P153509, + "set/x": Sprite_x__P153510, + "y": Sprite_y__P153511, + "set/y": Sprite_y__P153512, + "vx": Sprite_vx__P153513, + "set/vx": Sprite_vx__P153514, + "vy": Sprite_vy__P153515, + "set/vy": Sprite_vy__P153516, + "ax": Sprite_ax__P153517, + "set/ax": Sprite_ax__P153518, + "ay": Sprite_ay__P153519, + "set/ay": Sprite_ay__P153520, + "fx": Sprite_fx__P153521, + "set/fx": Sprite_fx__P153522, + "fy": Sprite_fy__P153523, + "set/fy": Sprite_fy__P153524, + "data": Sprite_data__P153525, + "set/data": Sprite_data__P153526, + "image": Sprite_image__P153539, + "setImage": Sprite_setImage__P153540, + "setHitbox": Sprite_setHitbox__P153541, + "isStatic": Sprite_isStatic__P153542, + "__visible": Sprite___visible__P153543, + "width": Sprite_width__P153544, + "height": Sprite_height__P153545, + "left": Sprite_left__P153546, + "set/left": Sprite_left__P153547, + "right": Sprite_right__P153548, + "set/right": Sprite_right__P153549, + "top": Sprite_top__P153550, + "set/top": Sprite_top__P153551, + "bottom": Sprite_bottom__P153552, + "set/bottom": Sprite_bottom__P153553, + "kind": Sprite_kind__P153554, + "setKind": Sprite_setKind__P153555, + "setPosition": Sprite_setPosition__P153556, + "isOutOfScreen": Sprite_isOutOfScreen__P153560, + "__drawCore": Sprite___drawCore__P153561, + "__update": Sprite___update__P153562, + "setFlag": Sprite_setFlag__P153563, + "overlapsWith": Sprite_overlapsWith__P153564, + "clearObstacles": Sprite_clearObstacles__P153568, + "registerObstacle": Sprite_registerObstacle__P153569, + "destroy": Sprite_destroy__P153571, + "_destroyCore": Sprite__destroyCore__P153572, + "toString": Sprite_toString__P153574, + "z": sprites_BaseSprite_z__P153346, + "set/z": sprites_BaseSprite_z__P153347, + "__draw": sprites_BaseSprite___draw__P153348, }, + toStringMethod: Sprite_toString__P153574, }); -const scene_Scene__C88904_VT = mkVTable({ +const scene_Scene__C153903_VT = mkVTable({ name: "Scene", numFields: 23, - classNo: 33, - lastSubtypeNo: 33, + classNo: 25, + lastSubtypeNo: 25, maxBgInstances: null, methods: { }, @@ -51524,318 +55284,485 @@ const scene_Scene__C88904_VT = mkVTable({ "set/_data": null, "previousScene": null, "set/previousScene": null, - "init": scene_Scene_init__P88926, - "data": scene_Scene_data__P88927, - "millis": scene_Scene_millis__P88928, - "addSprite": scene_Scene_addSprite__P88929, - "destroy": scene_Scene_destroy__P88930, - "render": scene_Scene_render__P88931, + "init": scene_Scene_init__P153925, + "data": scene_Scene_data__P153926, + "millis": scene_Scene_millis__P153927, + "addSprite": scene_Scene_addSprite__P153928, + "destroy": scene_Scene_destroy__P153929, + "render": scene_Scene_render__P153930, }, }); -const effects_ParticleEffect__C89274_VT = mkVTable({ - name: "ParticleEffect", - numFields: 3, - classNo: 34, - lastSubtypeNo: 35, +const info_PlayerInfo__C153710_VT = mkVTable({ + name: "PlayerInfo", + numFields: 12, + classNo: 26, + lastSubtypeNo: 26, maxBgInstances: null, methods: { }, iface: { - "sourceFactory": null, - "set/sourceFactory": null, - "defaultRate": null, - "set/defaultRate": null, - "defaultLifespan": null, - "set/defaultLifespan": null, - "start": effects_ParticleEffect_start__P89276, - "destroy": effects_ParticleEffect_destroy__P89277, + "_player": null, + "set/_player": null, + "bg": null, + "set/bg": null, + "border": null, + "set/border": null, + "fc": null, + "set/fc": null, + "showScore": null, + "set/showScore": null, + "showLife": null, + "set/showLife": null, + "visilibity": null, + "set/visilibity": null, + "showPlayer": null, + "set/showPlayer": null, + "x": null, + "set/x": null, + "y": null, + "set/y": null, + "left": null, + "set/left": null, + "up": null, + "set/up": null, + "init": info_PlayerInfo_init__P155626, + "getState": info_PlayerInfo_getState__P153723, + "id": info_PlayerInfo_id__P153724, + "score": info_PlayerInfo_score__P153725, + "hasScore": info_PlayerInfo_hasScore__P153728, + "hasLife": info_PlayerInfo_hasLife__P153732, + "raiseLifeZero": info_PlayerInfo_raiseLifeZero__P153734, + "drawPlayer": info_PlayerInfo_drawPlayer__P153735, + "drawScore": info_PlayerInfo_drawScore__P153736, + "drawLives": info_PlayerInfo_drawLives__P153737, }, }); -const effects_ImageEffect__C89301_VT = mkVTable({ - name: "ImageEffect", - numFields: 4, - classNo: 36, - lastSubtypeNo: 36, +const info_InfoState__C155571_VT = mkVTable({ + name: "InfoState", + numFields: 10, + classNo: 27, + lastSubtypeNo: 27, maxBgInstances: null, methods: { }, iface: { - "preferredDelay": null, - "set/preferredDelay": null, - "effect": null, - "set/effect": null, - "fastRandom": null, - "set/fastRandom": null, - "times": null, - "set/times": null, - "applyTo": effects_ImageEffect_applyTo__P89303, - "change": effects_ImageEffect_change__P89304, - "startScreenEffect": effects_ImageEffect_startScreenEffect__P89305, + "playerStates": null, + "set/playerStates": null, + "visibilityFlag": null, + "set/visibilityFlag": null, + "gameEnd": null, + "set/gameEnd": null, + "heartImage": null, + "set/heartImage": null, + "multiplierImage": null, + "set/multiplierImage": null, + "bgColor": null, + "set/bgColor": null, + "borderColor": null, + "set/borderColor": null, + "fontColor": null, + "set/fontColor": null, + "countdownExpired": null, + "set/countdownExpired": null, + "countdownEndHandler": null, + "set/countdownEndHandler": null, }, }); -const particles_ParticleSource__C89163_VT = mkVTable({ - name: "ParticleSource", - numFields: 13, - classNo: 27, - lastSubtypeNo: 27, +const scene_Renderable__C153862_VT = mkVTable({ + name: "Renderable", + numFields: 4, + classNo: 23, + lastSubtypeNo: 23, maxBgInstances: null, methods: { - "__visible": sprites_BaseSprite___visible__P88346, - "__draw": particles_ParticleSource___draw__P89169, - "__drawCore": sprites_BaseSprite___drawCore__P88350, - "__update": sprites_BaseSprite___update__P88351, - "updateParticle": particles_ParticleSource_updateParticle__P90883, + "__visible": scene_Renderable___visible__P153864, + "__draw": sprites_BaseSprite___draw__P153348, + "__drawCore": scene_Renderable___drawCore__P153865, + "__update": sprites_BaseSprite___update__P153350, }, iface: { "_z": null, "set/_z": null, "id": null, "set/id": null, - "priority": null, - "set/priority": null, - "_dt": null, - "set/_dt": null, - "anchor": null, - "set/anchor": null, - "lifespan": null, - "set/lifespan": null, - "pFlags": null, - "set/pFlags": null, - "head": null, - "set/head": null, - "timer": null, - "set/timer": null, - "period": null, - "set/period": null, - "_factory": null, - "set/_factory": null, - "ax": null, - "set/ax": null, - "ay": null, - "set/ay": null, - "__draw": particles_ParticleSource___draw__P89169, - "_update": particles_ParticleSource__update__P89170, - "_prune": particles_ParticleSource__prune__P89171, - "setAcceleration": particles_ParticleSource_setAcceleration__P89172, - "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P89174, - "enabled": particles_ParticleSource_enabled__P89175, - "set/enabled": particles_ParticleSource_enabled__P89176, - "destroy": particles_ParticleSource_destroy__P89177, - "clear": particles_ParticleSource_clear__P89178, - "setAnchor": particles_ParticleSource_setAnchor__P89179, - "setRate": particles_ParticleSource_setRate__P89180, - "setFactory": particles_ParticleSource_setFactory__P89182, - "updateParticle": particles_ParticleSource_updateParticle__P90883, - "drawParticle": particles_ParticleSource_drawParticle__P90884, - "__visible": sprites_BaseSprite___visible__P88346, - "z": sprites_BaseSprite_z__P88347, - "set/z": sprites_BaseSprite_z__P88348, - "__drawCore": sprites_BaseSprite___drawCore__P88350, - "__update": sprites_BaseSprite___update__P88351, + "handler": null, + "set/handler": null, + "shouldBeVisible": null, + "set/shouldBeVisible": null, + "__visible": scene_Renderable___visible__P153864, + "__drawCore": scene_Renderable___drawCore__P153865, + "z": sprites_BaseSprite_z__P153346, + "set/z": sprites_BaseSprite_z__P153347, + "__draw": sprites_BaseSprite___draw__P153348, + "__update": sprites_BaseSprite___update__P153350, }, }); -const scene_Renderable__C88863_VT = mkVTable({ - name: "Renderable", - numFields: 4, +const info_PlayerState__C153681_VT = mkVTable({ + name: "PlayerState", + numFields: 3, classNo: 28, lastSubtypeNo: 28, maxBgInstances: null, methods: { - "__visible": scene_Renderable___visible__P88865, - "__draw": sprites_BaseSprite___draw__P88349, - "__drawCore": scene_Renderable___drawCore__P88866, - "__update": sprites_BaseSprite___update__P88351, }, iface: { - "_z": null, - "set/_z": null, - "id": null, - "set/id": null, + "score": null, + "set/score": null, + "life": null, + "set/life": null, + "lifeZeroHandler": null, + "set/lifeZeroHandler": null, + }, +}); +const color_Fade__C155035_VT = mkVTable({ + name: "Fade", + numFields: 4, + classNo: 29, + lastSubtypeNo: 29, + maxBgInstances: null, + methods: { + }, + iface: { + "startTime": null, + "set/startTime": null, + "duration": null, + "set/duration": null, + "_startPalette": null, + "set/_startPalette": null, + "_endPalette": null, + "set/_endPalette": null, + "startPalette": color_Fade_startPalette__P155037, + "isActive": color_Fade_isActive__P155039, + "start": color_Fade_start__P155040, + "setStartPalette": color_Fade_setStartPalette__P155043, + "setEndPalette": color_Fade_setEndPalette__P155045, + "step": color_Fade_step__P155047, + "pauseUntilDone": color_Fade_pauseUntilDone__P155049, + }, +}); +const control_PollEvent__C155347_VT = mkVTable({ + name: "PollEvent", + numFields: 6, + classNo: 30, + lastSubtypeNo: 30, + maxBgInstances: null, + methods: { + }, + iface: { + "eid": null, + "set/eid": null, + "vid": null, + "set/vid": null, + "start": null, + "set/start": null, + "timeOut": null, + "set/timeOut": null, + "condition": null, + "set/condition": null, + "once": null, + "set/once": null, + }, +}); +const control_EventContext__C151868_VT = mkVTable({ + name: "EventContext", + numFields: 9, + classNo: 31, + lastSubtypeNo: 31, + maxBgInstances: null, + methods: { + }, + iface: { + "handlers": null, + "set/handlers": null, + "frameCallbacks": null, + "set/frameCallbacks": null, + "frameWorker": null, + "set/frameWorker": null, + "framesInSample": null, + "set/framesInSample": null, + "timeInSample": null, + "set/timeInSample": null, + "deltaTimeMillis": null, + "set/deltaTimeMillis": null, + "prevTimeMillis": null, + "set/prevTimeMillis": null, + "idleCallbacks": null, + "set/idleCallbacks": null, + "runningCallbacks": null, + "set/runningCallbacks": null, + "deltaTime": control_EventContext_deltaTime__P151873, + "runCallbacks": control_EventContext_runCallbacks__P155373, + "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P155374, + "register": control_EventContext_register__P151874, + "unregister": control_EventContext_unregister__P151875, + "registerFrameHandler": control_EventContext_registerFrameHandler__P151876, + "registerHandler": control_EventContext_registerHandler__P151878, + }, +}); +const control_EventHandler__C155368_VT = mkVTable({ + name: "EventHandler", + numFields: 4, + classNo: 32, + lastSubtypeNo: 32, + maxBgInstances: null, + methods: { + }, + iface: { + "src": null, + "set/src": null, + "value": null, + "set/value": null, "handler": null, "set/handler": null, - "shouldBeVisible": null, - "set/shouldBeVisible": null, - "__visible": scene_Renderable___visible__P88865, - "__drawCore": scene_Renderable___drawCore__P88866, - "z": sprites_BaseSprite_z__P88347, - "set/z": sprites_BaseSprite_z__P88348, - "__draw": sprites_BaseSprite___draw__P88349, - "__update": sprites_BaseSprite___update__P88351, + "flags": null, + "set/flags": null, + "register": control_EventHandler_register__P155369, + "unregister": control_EventHandler_unregister__P155370, }, }); -const music_Melody__C88083_VT = mkVTable({ - name: "Melody", +const color_ColorBuffer__C154974_VT = mkVTable({ + name: "ColorBuffer", + numFields: 2, + classNo: 33, + lastSubtypeNo: 34, + maxBgInstances: null, + methods: { + }, + iface: { + "layout": null, + "set/layout": null, + "buf": null, + "set/buf": null, + "stride": color_ColorBuffer_stride__P154979, + "length": color_ColorBuffer_length__P154980, + "color": color_ColorBuffer_color__P154981, + "setColor": color_ColorBuffer_setColor__P154982, + }, +}); +const color_Palette__C155014_VT = mkVTable({ + name: "Palette", + numFields: 2, + classNo: 34, + lastSubtypeNo: 34, + maxBgInstances: null, + methods: { + }, + iface: { + "layout": null, + "set/layout": null, + "buf": null, + "set/buf": null, + "stride": color_ColorBuffer_stride__P154979, + "length": color_ColorBuffer_length__P154980, + "color": color_ColorBuffer_color__P154981, + "setColor": color_ColorBuffer_setColor__P154982, + }, +}); +const scene_GameForeverHandler__C153882_VT = mkVTable({ + name: "GameForeverHandler", numFields: 2, + classNo: 35, + lastSubtypeNo: 35, + maxBgInstances: null, + methods: { + }, + iface: { + "lock": null, + "set/lock": null, + "handler": null, + "set/handler": null, + }, +}); +const tiles_TileMap__C153801_VT = mkVTable({ + name: "TileMap", + numFields: 3, + classNo: 36, + lastSubtypeNo: 36, + maxBgInstances: null, + methods: { + }, + iface: { + "_scale": null, + "set/_scale": null, + "_layer": null, + "set/_layer": null, + "_map": null, + "set/_map": null, + "scale": tiles_TileMap_scale__P153803, + "set/scale": tiles_TileMap_scale__P153804, + "data": tiles_TileMap_data__P155636, + "offsetX": tiles_TileMap_offsetX__P153805, + "offsetY": tiles_TileMap_offsetY__P153806, + "areaWidth": tiles_TileMap_areaWidth__P153807, + "areaHeight": tiles_TileMap_areaHeight__P153808, + "layer": tiles_TileMap_layer__P153809, + "enabled": tiles_TileMap_enabled__P153811, + "setData": tiles_TileMap_setData__P153812, + "getTile": tiles_TileMap_getTile__P153813, + "getTileIndex": tiles_TileMap_getTileIndex__P153814, + "setTileAt": tiles_TileMap_setTileAt__P153815, + "getImageType": tiles_TileMap_getImageType__P153816, + "setWallAt": tiles_TileMap_setWallAt__P153817, + "getTilesByType": tiles_TileMap_getTilesByType__P153818, + "isInvalidIndex": tiles_TileMap_isInvalidIndex__P155637, + "draw": tiles_TileMap_draw__P155638, + "isObstacle": tiles_TileMap_isObstacle__P153820, + "getObstacle": tiles_TileMap_getObstacle__P153821, + "isOnWall": tiles_TileMap_isOnWall__P153822, + "getTileImage": tiles_TileMap_getTileImage__P153823, + }, +}); +const tiles_TileMapData__C153788_VT = mkVTable({ + name: "TileMapData", + numFields: 7, classNo: 37, lastSubtypeNo: 37, maxBgInstances: null, methods: { }, iface: { - "_text": null, - "set/_text": null, - "_player": null, - "set/_player": null, - "stop": music_Melody_stop__P88088, - "registerMelody": music_Melody_registerMelody__P90251, - "unregisterMelody": music_Melody_unregisterMelody__P90252, - "playCore": music_Melody_playCore__P90253, - "play": music_Melody_play__P88090, - "toString": music_Melody_toString__P88092, + "data": null, + "set/data": null, + "layers": null, + "set/layers": null, + "tileset": null, + "set/tileset": null, + "cachedTileView": null, + "set/cachedTileView": null, + "_scale": null, + "set/_scale": null, + "_width": null, + "set/_width": null, + "_height": null, + "set/_height": null, + "width": tiles_TileMapData_width__P153790, + "height": tiles_TileMapData_height__P153791, + "scale": tiles_TileMapData_scale__P153792, + "set/scale": tiles_TileMapData_scale__P153793, + "getTile": tiles_TileMapData_getTile__P153794, + "setTile": tiles_TileMapData_setTile__P153795, + "getTileset": tiles_TileMapData_getTileset__P153796, + "getTileImage": tiles_TileMapData_getTileImage__P153797, + "setWall": tiles_TileMapData_setWall__P153798, + "isWall": tiles_TileMapData_isWall__P153799, + "isOutsideMap": tiles_TileMapData_isOutsideMap__P153800, }, - toStringMethod: music_Melody_toString__P88092, }); -const info_PlayerInfo__C88711_VT = mkVTable({ - name: "PlayerInfo", - numFields: 12, +const tiles_Location__C153773_VT = mkVTable({ + name: "Location", + numFields: 3, classNo: 38, lastSubtypeNo: 38, maxBgInstances: null, methods: { }, iface: { - "_player": null, - "set/_player": null, - "bg": null, - "set/bg": null, - "border": null, - "set/border": null, - "fc": null, - "set/fc": null, - "showScore": null, - "set/showScore": null, - "showLife": null, - "set/showLife": null, - "visilibity": null, - "set/visilibity": null, - "showPlayer": null, - "set/showPlayer": null, - "x": null, - "set/x": null, - "y": null, - "set/y": null, - "left": null, - "set/left": null, - "up": null, - "set/up": null, - "init": info_PlayerInfo_init__P90462, - "getState": info_PlayerInfo_getState__P88724, - "id": info_PlayerInfo_id__P88725, - "score": info_PlayerInfo_score__P88726, - "hasScore": info_PlayerInfo_hasScore__P88729, - "hasLife": info_PlayerInfo_hasLife__P88733, - "raiseLifeZero": info_PlayerInfo_raiseLifeZero__P88735, - "drawPlayer": info_PlayerInfo_drawPlayer__P88736, - "drawScore": info_PlayerInfo_drawScore__P88737, - "drawLives": info_PlayerInfo_drawLives__P88738, + "_row": null, + "set/_row": null, + "_col": null, + "set/_col": null, + "tileMap": null, + "set/tileMap": null, + "col": tiles_Location_col__P153774, + "row": tiles_Location_row__P153775, + "x": tiles_Location_x__P153777, + "y": tiles_Location_y__P153778, + "tileSet": tiles_Location_tileSet__P153779, + "place": tiles_Location_place__P153780, }, }); -const game_BaseDialog__C88962_VT = mkVTable({ - name: "BaseDialog", - numFields: 11, +const PhysicsEngine__C153643_VT = mkVTable({ + name: "PhysicsEngine", + numFields: 0, classNo: 39, lastSubtypeNo: 40, maxBgInstances: null, methods: { - "update": game_BaseDialog_update__P88975, - "drawTextCore": game_BaseDialog_drawTextCore__P88977, + "addSprite": PhysicsEngine_addSprite__P153645, + "removeSprite": PhysicsEngine_removeSprite__P153646, + "moveSprite": PhysicsEngine_moveSprite__P153647, + "draw": PhysicsEngine_draw__P153648, + "move": PhysicsEngine_move__P153649, + }, + iface: { + "addSprite": PhysicsEngine_addSprite__P153645, + "removeSprite": PhysicsEngine_removeSprite__P153646, + "moveSprite": PhysicsEngine_moveSprite__P153647, + "draw": PhysicsEngine_draw__P153648, + "move": PhysicsEngine_move__P153649, + }, +}); +const sprites_SpriteSet__C153595_VT = mkVTable({ + name: "SpriteSet", + numFields: 1, + classNo: 41, + lastSubtypeNo: 41, + maxBgInstances: null, + methods: { + }, + iface: { + "_sprites": null, + "set/_sprites": null, + "length": sprites_SpriteSet_length__P153598, + "add": sprites_SpriteSet_add__P153600, + "remove": sprites_SpriteSet_remove__P153602, + "contains": sprites_SpriteSet_contains__P153603, + "toString": sprites_SpriteSet_toString__P153606, + }, + toStringMethod: sprites_SpriteSet_toString__P153606, +}); +const game_Hitbox__C153443_VT = mkVTable({ + name: "Hitbox", + numFields: 5, + classNo: 42, + lastSubtypeNo: 42, + maxBgInstances: null, + methods: { }, iface: { - "image": null, - "set/image": null, - "frame": null, - "set/frame": null, - "cursor": null, - "set/cursor": null, - "columns": null, - "set/columns": null, - "rows": null, - "set/rows": null, - "unit": null, - "set/unit": null, - "innerLeft": null, - "set/innerLeft": null, - "innerTop": null, - "set/innerTop": null, - "cursorCount": null, - "set/cursorCount": null, - "font": null, - "set/font": null, - "textColor": null, - "set/textColor": null, - "update": game_BaseDialog_update__P88975, - "drawTextCore": game_BaseDialog_drawTextCore__P88977, - "drawCursorRow": game_BaseDialog_drawCursorRow__P88978, - "drawBorder": game_BaseDialog_drawBorder__P90501, - "fastFill": game_BaseDialog_fastFill__P90502, - "clearInterior": game_BaseDialog_clearInterior__P90503, - "drawPartial": game_BaseDialog_drawPartial__P90504, - "cursorRowHeight": game_BaseDialog_cursorRowHeight__P90505, - "textAreaWidth": game_BaseDialog_textAreaWidth__P90507, - "textAreaHeight": game_BaseDialog_textAreaHeight__P90508, + "parent": null, + "set/parent": null, + "ox": null, + "set/ox": null, + "oy": null, + "set/oy": null, + "width": null, + "set/width": null, + "height": null, + "set/height": null, + "left": game_Hitbox_left__P153450, + "top": game_Hitbox_top__P153451, + "right": game_Hitbox_right__P153452, + "bottom": game_Hitbox_bottom__P153453, }, }); -const game_GameOverDialog__C89001_VT = mkVTable({ - name: "GameOverDialog", - numFields: 16, - classNo: 40, - lastSubtypeNo: 40, +const effects_ImageEffect__C154300_VT = mkVTable({ + name: "ImageEffect", + numFields: 4, + classNo: 43, + lastSubtypeNo: 43, maxBgInstances: null, methods: { - "update": game_GameOverDialog_update__P89004, - "drawTextCore": game_GameOverDialog_drawTextCore__P89005, }, iface: { - "image": null, - "set/image": null, - "frame": null, - "set/frame": null, - "cursor": null, - "set/cursor": null, - "columns": null, - "set/columns": null, - "rows": null, - "set/rows": null, - "unit": null, - "set/unit": null, - "innerLeft": null, - "set/innerLeft": null, - "innerTop": null, - "set/innerTop": null, - "cursorCount": null, - "set/cursorCount": null, - "font": null, - "set/font": null, - "textColor": null, - "set/textColor": null, - "cursorOn": null, - "set/cursorOn": null, - "isNewHighScore": null, - "set/isNewHighScore": null, - "win": null, - "set/win": null, - "score": null, - "set/score": null, - "highScore": null, - "set/highScore": null, - "displayCursor": game_GameOverDialog_displayCursor__P89003, - "update": game_GameOverDialog_update__P89004, - "drawTextCore": game_GameOverDialog_drawTextCore__P89005, - "drawCursorRow": game_BaseDialog_drawCursorRow__P88978, - "drawBorder": game_BaseDialog_drawBorder__P90501, - "fastFill": game_BaseDialog_fastFill__P90502, - "clearInterior": game_BaseDialog_clearInterior__P90503, - "drawPartial": game_BaseDialog_drawPartial__P90504, - "cursorRowHeight": game_BaseDialog_cursorRowHeight__P90505, - "textAreaWidth": game_BaseDialog_textAreaWidth__P90507, - "textAreaHeight": game_BaseDialog_textAreaHeight__P90508, + "preferredDelay": null, + "set/preferredDelay": null, + "effect": null, + "set/effect": null, + "fastRandom": null, + "set/fastRandom": null, + "times": null, + "set/times": null, + "applyTo": effects_ImageEffect_applyTo__P154302, + "change": effects_ImageEffect_change__P154303, + "startScreenEffect": effects_ImageEffect_startScreenEffect__P154304, }, }); -const effects_ScreenEffect__C89278_VT = mkVTable({ - name: "ScreenEffect", - numFields: 5, - classNo: 35, - lastSubtypeNo: 35, +const effects_ParticleEffect__C154273_VT = mkVTable({ + name: "ParticleEffect", + numFields: 3, + classNo: 44, + lastSubtypeNo: 45, maxBgInstances: null, methods: { }, @@ -51846,40 +55773,34 @@ const effects_ScreenEffect__C89278_VT = mkVTable({ "set/defaultRate": null, "defaultLifespan": null, "set/defaultLifespan": null, - "source": null, - "set/source": null, - "sceneDefaultRate": null, - "set/sceneDefaultRate": null, - "startScreenEffect": effects_ScreenEffect_startScreenEffect__P89280, - "endScreenEffect": effects_ScreenEffect_endScreenEffect__P89281, - "start": effects_ParticleEffect_start__P89276, - "destroy": effects_ParticleEffect_destroy__P89277, + "start": effects_ParticleEffect_start__P154275, + "destroy": effects_ParticleEffect_destroy__P154276, }, }); -const particles_ParticleFactory__C89199_VT = mkVTable({ +const particles_ParticleFactory__C154198_VT = mkVTable({ name: "ParticleFactory", numFields: 0, - classNo: 41, - lastSubtypeNo: 45, + classNo: 46, + lastSubtypeNo: 51, maxBgInstances: null, methods: { - "createParticle": particles_ParticleFactory_createParticle__P89201, - "drawParticle": particles_ParticleFactory_drawParticle__P89202, + "createParticle": particles_ParticleFactory_createParticle__P154200, + "drawParticle": particles_ParticleFactory_drawParticle__P154201, }, iface: { - "createParticle": particles_ParticleFactory_createParticle__P89201, - "drawParticle": particles_ParticleFactory_drawParticle__P89202, + "createParticle": particles_ParticleFactory_createParticle__P154200, + "drawParticle": particles_ParticleFactory_drawParticle__P154201, }, }); -const particles_SprayFactory__C89203_VT = mkVTable({ +const particles_SprayFactory__C154202_VT = mkVTable({ name: "SprayFactory", numFields: 3, - classNo: 42, - lastSubtypeNo: 45, + classNo: 47, + lastSubtypeNo: 51, maxBgInstances: null, methods: { - "createParticle": particles_SprayFactory_createParticle__P89205, - "drawParticle": particles_SprayFactory_drawParticle__P89206, + "createParticle": particles_SprayFactory_createParticle__P154204, + "drawParticle": particles_SprayFactory_drawParticle__P154205, }, iface: { "speed": null, @@ -51888,21 +55809,21 @@ const particles_SprayFactory__C89203_VT = mkVTable({ "set/minAngle": null, "spread": null, "set/spread": null, - "createParticle": particles_SprayFactory_createParticle__P89205, - "drawParticle": particles_SprayFactory_drawParticle__P89206, - "setSpeed": particles_SprayFactory_setSpeed__P89207, - "setDirection": particles_SprayFactory_setDirection__P89208, + "createParticle": particles_SprayFactory_createParticle__P154204, + "drawParticle": particles_SprayFactory_drawParticle__P154205, + "setSpeed": particles_SprayFactory_setSpeed__P154206, + "setDirection": particles_SprayFactory_setDirection__P154207, }, }); -const particles_AreaFactory__C89209_VT = mkVTable({ +const particles_AreaFactory__C154208_VT = mkVTable({ name: "AreaFactory", numFields: 8, - classNo: 43, - lastSubtypeNo: 45, + classNo: 48, + lastSubtypeNo: 51, maxBgInstances: null, methods: { - "createParticle": particles_AreaFactory_createParticle__P89215, - "drawParticle": particles_AreaFactory_drawParticle__P89216, + "createParticle": particles_AreaFactory_createParticle__P154214, + "drawParticle": particles_AreaFactory_drawParticle__P154215, }, iface: { "speed": null, @@ -51921,21 +55842,21 @@ const particles_AreaFactory__C89209_VT = mkVTable({ "set/maxLifespan": null, "galois": null, "set/galois": null, - "createParticle": particles_AreaFactory_createParticle__P89215, - "drawParticle": particles_AreaFactory_drawParticle__P89216, - "setSpeed": particles_SprayFactory_setSpeed__P89207, - "setDirection": particles_SprayFactory_setDirection__P89208, + "createParticle": particles_AreaFactory_createParticle__P154214, + "drawParticle": particles_AreaFactory_drawParticle__P154215, + "setSpeed": particles_SprayFactory_setSpeed__P154206, + "setDirection": particles_SprayFactory_setDirection__P154207, }, }); -const particles_ShapeFactory__C89225_VT = mkVTable({ - name: "ShapeFactory", - numFields: 11, - classNo: 44, - lastSubtypeNo: 45, +const particles_AshFactory__C154242_VT = mkVTable({ + name: "AshFactory", + numFields: 9, + classNo: 49, + lastSubtypeNo: 49, maxBgInstances: null, methods: { - "createParticle": particles_ShapeFactory_createParticle__P89229, - "drawParticle": particles_ShapeFactory_drawParticle__P89228, + "createParticle": particles_AshFactory_createParticle__P154244, + "drawParticle": particles_AshFactory_drawParticle__P154245, }, iface: { "speed": null, @@ -51954,64 +55875,80 @@ const particles_ShapeFactory__C89225_VT = mkVTable({ "set/maxLifespan": null, "galois": null, "set/galois": null, - "sources": null, - "set/sources": null, - "ox": null, - "set/ox": null, - "oy": null, - "set/oy": null, - "addShape": particles_ShapeFactory_addShape__P89227, - "drawParticle": particles_ShapeFactory_drawParticle__P89228, - "createParticle": particles_ShapeFactory_createParticle__P89229, - "setSpeed": particles_SprayFactory_setSpeed__P89207, - "setDirection": particles_SprayFactory_setDirection__P89208, + "colors": null, + "set/colors": null, + "createParticle": particles_AshFactory_createParticle__P154244, + "drawParticle": particles_AshFactory_drawParticle__P154245, + "setSpeed": particles_SprayFactory_setSpeed__P154206, + "setDirection": particles_SprayFactory_setDirection__P154207, }, }); -const particles_ConfettiFactory__C89230_VT = mkVTable({ - name: "ConfettiFactory", - numFields: 11, - classNo: 45, - lastSubtypeNo: 45, +const particles_ParticleSource__C154162_VT = mkVTable({ + name: "ParticleSource", + numFields: 13, + classNo: 24, + lastSubtypeNo: 24, maxBgInstances: null, methods: { - "createParticle": particles_ShapeFactory_createParticle__P89229, - "drawParticle": particles_ShapeFactory_drawParticle__P89228, + "__visible": sprites_BaseSprite___visible__P153345, + "__draw": particles_ParticleSource___draw__P154168, + "__drawCore": sprites_BaseSprite___drawCore__P153349, + "__update": sprites_BaseSprite___update__P153350, + "updateParticle": particles_ParticleSource_updateParticle__P156047, }, iface: { - "speed": null, - "set/speed": null, - "minAngle": null, - "set/minAngle": null, - "spread": null, - "set/spread": null, - "xRange": null, - "set/xRange": null, - "yRange": null, - "set/yRange": null, - "minLifespan": null, - "set/minLifespan": null, - "maxLifespan": null, - "set/maxLifespan": null, - "galois": null, - "set/galois": null, - "sources": null, - "set/sources": null, - "ox": null, - "set/ox": null, - "oy": null, - "set/oy": null, - "addShape": particles_ShapeFactory_addShape__P89227, - "drawParticle": particles_ShapeFactory_drawParticle__P89228, - "createParticle": particles_ShapeFactory_createParticle__P89229, - "setSpeed": particles_SprayFactory_setSpeed__P89207, - "setDirection": particles_SprayFactory_setDirection__P89208, + "_z": null, + "set/_z": null, + "id": null, + "set/id": null, + "priority": null, + "set/priority": null, + "_dt": null, + "set/_dt": null, + "anchor": null, + "set/anchor": null, + "lifespan": null, + "set/lifespan": null, + "pFlags": null, + "set/pFlags": null, + "head": null, + "set/head": null, + "timer": null, + "set/timer": null, + "period": null, + "set/period": null, + "_factory": null, + "set/_factory": null, + "ax": null, + "set/ax": null, + "ay": null, + "set/ay": null, + "__draw": particles_ParticleSource___draw__P154168, + "_update": particles_ParticleSource__update__P154169, + "_prune": particles_ParticleSource__prune__P154170, + "setAcceleration": particles_ParticleSource_setAcceleration__P154171, + "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P154173, + "enabled": particles_ParticleSource_enabled__P154174, + "set/enabled": particles_ParticleSource_enabled__P154175, + "destroy": particles_ParticleSource_destroy__P154176, + "clear": particles_ParticleSource_clear__P154177, + "setAnchor": particles_ParticleSource_setAnchor__P154178, + "setRate": particles_ParticleSource_setRate__P154179, + "setFactory": particles_ParticleSource_setFactory__P154181, + "updateParticle": particles_ParticleSource_updateParticle__P156047, + "drawParticle": particles_ParticleSource_drawParticle__P156048, + "__visible": sprites_BaseSprite___visible__P153345, + "z": sprites_BaseSprite_z__P153346, + "set/z": sprites_BaseSprite_z__P153347, + "__drawCore": sprites_BaseSprite___drawCore__P153349, + "__update": sprites_BaseSprite___update__P153350, }, }); -const particles_Particle__C89144_VT = mkVTable({ +const particles_Particle__C154143_VT = mkVTable({ name: "Particle", numFields: 8, - classNo: 46, - lastSubtypeNo: 46, + classNo: 52, + lastSubtypeNo: 52, maxBgInstances: 200, methods: { }, @@ -52034,106 +55971,116 @@ const particles_Particle__C89144_VT = mkVTable({ "set/color": null, }, }); -const control_EventContext__C86869_VT = mkVTable({ - name: "EventContext", - numFields: 9, - classNo: 47, - lastSubtypeNo: 47, - maxBgInstances: null, - methods: { - }, - iface: { - "handlers": null, - "set/handlers": null, - "frameCallbacks": null, - "set/frameCallbacks": null, - "frameWorker": null, - "set/frameWorker": null, - "framesInSample": null, - "set/framesInSample": null, - "timeInSample": null, - "set/timeInSample": null, - "deltaTimeMillis": null, - "set/deltaTimeMillis": null, - "prevTimeMillis": null, - "set/prevTimeMillis": null, - "idleCallbacks": null, - "set/idleCallbacks": null, - "runningCallbacks": null, - "set/runningCallbacks": null, - "deltaTime": control_EventContext_deltaTime__P86874, - "runCallbacks": control_EventContext_runCallbacks__P90209, - "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P90210, - "register": control_EventContext_register__P86875, - "unregister": control_EventContext_unregister__P86876, - "registerFrameHandler": control_EventContext_registerFrameHandler__P86877, - "registerHandler": control_EventContext_registerHandler__P86879, - }, -}); -const control_FrameCallback__C86866_VT = mkVTable({ - name: "FrameCallback", - numFields: 2, - classNo: 48, - lastSubtypeNo: 48, +const effects_ScreenEffect__C154277_VT = mkVTable({ + name: "ScreenEffect", + numFields: 5, + classNo: 45, + lastSubtypeNo: 45, maxBgInstances: null, methods: { }, iface: { - "order": null, - "set/order": null, - "handler": null, - "set/handler": null, + "sourceFactory": null, + "set/sourceFactory": null, + "defaultRate": null, + "set/defaultRate": null, + "defaultLifespan": null, + "set/defaultLifespan": null, + "source": null, + "set/source": null, + "sceneDefaultRate": null, + "set/sceneDefaultRate": null, + "startScreenEffect": effects_ScreenEffect_startScreenEffect__P154279, + "endScreenEffect": effects_ScreenEffect_endScreenEffect__P154280, + "start": effects_ParticleEffect_start__P154275, + "destroy": effects_ParticleEffect_destroy__P154276, }, }); -const control_PollEvent__C90183_VT = mkVTable({ - name: "PollEvent", - numFields: 6, - classNo: 49, - lastSubtypeNo: 49, +const particles_ShapeFactory__C154224_VT = mkVTable({ + name: "ShapeFactory", + numFields: 11, + classNo: 50, + lastSubtypeNo: 51, maxBgInstances: null, methods: { + "createParticle": particles_ShapeFactory_createParticle__P154228, + "drawParticle": particles_ShapeFactory_drawParticle__P154227, }, iface: { - "eid": null, - "set/eid": null, - "vid": null, - "set/vid": null, - "start": null, - "set/start": null, - "timeOut": null, - "set/timeOut": null, - "condition": null, - "set/condition": null, - "once": null, - "set/once": null, + "speed": null, + "set/speed": null, + "minAngle": null, + "set/minAngle": null, + "spread": null, + "set/spread": null, + "xRange": null, + "set/xRange": null, + "yRange": null, + "set/yRange": null, + "minLifespan": null, + "set/minLifespan": null, + "maxLifespan": null, + "set/maxLifespan": null, + "galois": null, + "set/galois": null, + "sources": null, + "set/sources": null, + "ox": null, + "set/ox": null, + "oy": null, + "set/oy": null, + "addShape": particles_ShapeFactory_addShape__P154226, + "drawParticle": particles_ShapeFactory_drawParticle__P154227, + "createParticle": particles_ShapeFactory_createParticle__P154228, + "setSpeed": particles_SprayFactory_setSpeed__P154206, + "setDirection": particles_SprayFactory_setDirection__P154207, }, }); -const control_EventHandler__C90204_VT = mkVTable({ - name: "EventHandler", - numFields: 4, - classNo: 50, - lastSubtypeNo: 50, +const particles_ConfettiFactory__C154229_VT = mkVTable({ + name: "ConfettiFactory", + numFields: 11, + classNo: 51, + lastSubtypeNo: 51, maxBgInstances: null, methods: { + "createParticle": particles_ShapeFactory_createParticle__P154228, + "drawParticle": particles_ShapeFactory_drawParticle__P154227, }, iface: { - "src": null, - "set/src": null, - "value": null, - "set/value": null, - "handler": null, - "set/handler": null, - "flags": null, - "set/flags": null, - "register": control_EventHandler_register__P90205, - "unregister": control_EventHandler_unregister__P90206, + "speed": null, + "set/speed": null, + "minAngle": null, + "set/minAngle": null, + "spread": null, + "set/spread": null, + "xRange": null, + "set/xRange": null, + "yRange": null, + "set/yRange": null, + "minLifespan": null, + "set/minLifespan": null, + "maxLifespan": null, + "set/maxLifespan": null, + "galois": null, + "set/galois": null, + "sources": null, + "set/sources": null, + "ox": null, + "set/ox": null, + "oy": null, + "set/oy": null, + "addShape": particles_ShapeFactory_addShape__P154226, + "drawParticle": particles_ShapeFactory_drawParticle__P154227, + "createParticle": particles_ShapeFactory_createParticle__P154228, + "setSpeed": particles_SprayFactory_setSpeed__P154206, + "setDirection": particles_SprayFactory_setDirection__P154207, }, }); -const scene_Camera__C88845_VT = mkVTable({ +const scene_Camera__C153844_VT = mkVTable({ name: "Camera", numFields: 8, - classNo: 51, - lastSubtypeNo: 51, + classNo: 53, + lastSubtypeNo: 53, maxBgInstances: null, methods: { }, @@ -52154,22 +56101,22 @@ const scene_Camera__C88845_VT = mkVTable({ "set/shakeDuration": null, "shakeAmplitude": null, "set/shakeAmplitude": null, - "offsetX": scene_Camera_offsetX__P88850, - "set/offsetX": scene_Camera_offsetX__P88851, - "offsetY": scene_Camera_offsetY__P88852, - "set/offsetY": scene_Camera_offsetY__P88853, - "x": scene_Camera_x__P88854, - "y": scene_Camera_y__P88855, - "left": scene_Camera_left__P88856, - "top": scene_Camera_top__P88858, - "update": scene_Camera_update__P88861, + "offsetX": scene_Camera_offsetX__P153849, + "set/offsetX": scene_Camera_offsetX__P153850, + "offsetY": scene_Camera_offsetY__P153851, + "set/offsetY": scene_Camera_offsetY__P153852, + "x": scene_Camera_x__P153853, + "y": scene_Camera_y__P153854, + "left": scene_Camera_left__P153855, + "top": scene_Camera_top__P153857, + "update": scene_Camera_update__P153860, }, }); -const scene_Background__C88750_VT = mkVTable({ +const scene_Background__C153749_VT = mkVTable({ name: "Background", numFields: 4, - classNo: 52, - lastSubtypeNo: 52, + classNo: 54, + lastSubtypeNo: 54, maxBgInstances: null, methods: { }, @@ -52182,17 +56129,17 @@ const scene_Background__C88750_VT = mkVTable({ "set/camera": null, "_layers": null, "set/_layers": null, - "image": scene_Background_image__P88756, - "set/image": scene_Background_image__P88757, - "hasBackgroundImage": scene_Background_hasBackgroundImage__P88758, - "draw": scene_Background_draw__P88759, + "image": scene_Background_image__P153755, + "set/image": scene_Background_image__P153756, + "hasBackgroundImage": scene_Background_hasBackgroundImage__P153757, + "draw": scene_Background_draw__P153758, }, }); -const scene_BackgroundLayer__C88760_VT = mkVTable({ +const scene_BackgroundLayer__C153759_VT = mkVTable({ name: "BackgroundLayer", numFields: 6, - classNo: 53, - lastSubtypeNo: 53, + classNo: 55, + lastSubtypeNo: 55, maxBgInstances: null, methods: { }, @@ -52209,21 +56156,55 @@ const scene_BackgroundLayer__C88760_VT = mkVTable({ "set/alignX": null, "alignY": null, "set/alignY": null, - "draw": scene_BackgroundLayer_draw__P88768, + "draw": scene_BackgroundLayer_draw__P153767, + }, +}); +const controller_Controller__C153407_VT = mkVTable({ + name: "Controller", + numFields: 5, + classNo: 56, + lastSubtypeNo: 56, + maxBgInstances: null, + methods: { + }, + iface: { + "playerIndex": null, + "set/playerIndex": null, + "buttons": null, + "set/buttons": null, + "analog": null, + "set/analog": null, + "_id": null, + "set/_id": null, + "_connected": null, + "set/_connected": null, + "_controlledSprites": controller_Controller__controlledSprites__P153412, + "set/_controlledSprites": controller_Controller__controlledSprites__P153413, + "id": controller_Controller_id__P153414, + "left": controller_Controller_left__P153416, + "right": controller_Controller_right__P153417, + "up": controller_Controller_up__P153418, + "down": controller_Controller_down__P153419, + "moveSprite": controller_Controller_moveSprite__P153423, + "button": controller_Controller_button__P155536, + "connected": controller_Controller_connected__P153426, + "set/connected": controller_Controller_connected__P153427, + "__preUpdate": controller_Controller___preUpdate__P153431, + "__update": controller_Controller___update__P153432, }, }); -const ArcadePhysicsEngine__C88658_VT = mkVTable({ +const ArcadePhysicsEngine__C153657_VT = mkVTable({ name: "ArcadePhysicsEngine", numFields: 6, - classNo: 30, - lastSubtypeNo: 30, + classNo: 40, + lastSubtypeNo: 40, maxBgInstances: null, methods: { - "addSprite": ArcadePhysicsEngine_addSprite__P88667, - "removeSprite": ArcadePhysicsEngine_removeSprite__P88668, - "moveSprite": ArcadePhysicsEngine_moveSprite__P88672, - "draw": ArcadePhysicsEngine_draw__P88669, - "move": ArcadePhysicsEngine_move__P88670, + "addSprite": ArcadePhysicsEngine_addSprite__P153666, + "removeSprite": ArcadePhysicsEngine_removeSprite__P153667, + "moveSprite": ArcadePhysicsEngine_moveSprite__P153671, + "draw": ArcadePhysicsEngine_draw__P153668, + "move": ArcadePhysicsEngine_move__P153669, }, iface: { "sprites": null, @@ -52238,30 +56219,30 @@ const ArcadePhysicsEngine__C88658_VT = mkVTable({ "set/minSingleStep": null, "maxSingleStep": null, "set/maxSingleStep": null, - "maxSpeed": ArcadePhysicsEngine_maxSpeed__P88660, - "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P88661, - "minStep": ArcadePhysicsEngine_minStep__P88662, - "set/minStep": ArcadePhysicsEngine_minStep__P88663, - "maxStep": ArcadePhysicsEngine_maxStep__P88664, - "set/maxStep": ArcadePhysicsEngine_maxStep__P88665, - "addSprite": ArcadePhysicsEngine_addSprite__P88667, - "removeSprite": ArcadePhysicsEngine_removeSprite__P88668, - "draw": ArcadePhysicsEngine_draw__P88669, - "move": ArcadePhysicsEngine_move__P88670, - "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P90401, - "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P90402, - "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P90403, - "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P90404, - "moveSprite": ArcadePhysicsEngine_moveSprite__P88672, - "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P90405, - "constrain": ArcadePhysicsEngine_constrain__P90406, + "maxSpeed": ArcadePhysicsEngine_maxSpeed__P153659, + "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P153660, + "minStep": ArcadePhysicsEngine_minStep__P153661, + "set/minStep": ArcadePhysicsEngine_minStep__P153662, + "maxStep": ArcadePhysicsEngine_maxStep__P153663, + "set/maxStep": ArcadePhysicsEngine_maxStep__P153664, + "addSprite": ArcadePhysicsEngine_addSprite__P153666, + "removeSprite": ArcadePhysicsEngine_removeSprite__P153667, + "draw": ArcadePhysicsEngine_draw__P153668, + "move": ArcadePhysicsEngine_move__P153669, + "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P155565, + "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P155566, + "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P155567, + "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P155568, + "moveSprite": ArcadePhysicsEngine_moveSprite__P153671, + "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P155569, + "constrain": ArcadePhysicsEngine_constrain__P155570, }, }); -const sprites_SpriteMap__C88579_VT = mkVTable({ +const sprites_SpriteMap__C153578_VT = mkVTable({ name: "SpriteMap", numFields: 5, - classNo: 54, - lastSubtypeNo: 54, + classNo: 57, + lastSubtypeNo: 57, maxBgInstances: null, methods: { }, @@ -52276,72 +56257,196 @@ const sprites_SpriteMap__C88579_VT = mkVTable({ "set/columnCount": null, "buckets": null, "set/buckets": null, - "neighbors": sprites_SpriteMap_neighbors__P88581, - "overlaps": sprites_SpriteMap_overlaps__P88582, - "draw": sprites_SpriteMap_draw__P88583, - "resizeBuckets": sprites_SpriteMap_resizeBuckets__P88584, - "clear": sprites_SpriteMap_clear__P88585, - "key": sprites_SpriteMap_key__P90378, - "insertAtKey": sprites_SpriteMap_insertAtKey__P90379, - "insertAABB": sprites_SpriteMap_insertAABB__P88586, - "mergeAtKey": sprites_SpriteMap_mergeAtKey__P90380, - "toString": sprites_SpriteMap_toString__P88587, + "neighbors": sprites_SpriteMap_neighbors__P153580, + "overlaps": sprites_SpriteMap_overlaps__P153581, + "draw": sprites_SpriteMap_draw__P153582, + "resizeBuckets": sprites_SpriteMap_resizeBuckets__P153583, + "clear": sprites_SpriteMap_clear__P153584, + "key": sprites_SpriteMap_key__P155542, + "insertAtKey": sprites_SpriteMap_insertAtKey__P155543, + "insertAABB": sprites_SpriteMap_insertAABB__P153585, + "mergeAtKey": sprites_SpriteMap_mergeAtKey__P155544, + "toString": sprites_SpriteMap_toString__P153586, }, - toStringMethod: sprites_SpriteMap_toString__P88587, + toStringMethod: sprites_SpriteMap_toString__P153586, }); -const info_PlayerState__C88682_VT = mkVTable({ - name: "PlayerState", - numFields: 3, - classNo: 55, - lastSubtypeNo: 55, +const music_Melody__C153082_VT = mkVTable({ + name: "Melody", + numFields: 2, + classNo: 58, + lastSubtypeNo: 58, maxBgInstances: null, methods: { }, iface: { - "score": null, - "set/score": null, - "life": null, - "set/life": null, - "lifeZeroHandler": null, - "set/lifeZeroHandler": null, + "_text": null, + "set/_text": null, + "_player": null, + "set/_player": null, + "stop": music_Melody_stop__P153087, + "registerMelody": music_Melody_registerMelody__P155415, + "unregisterMelody": music_Melody_unregisterMelody__P155416, + "playCore": music_Melody_playCore__P155417, + "play": music_Melody_play__P153089, + "toString": music_Melody_toString__P153091, }, + toStringMethod: music_Melody_toString__P153091, }); -const info_InfoState__C90407_VT = mkVTable({ - name: "InfoState", - numFields: 10, - classNo: 56, - lastSubtypeNo: 56, +const control_FrameCallback__C151865_VT = mkVTable({ + name: "FrameCallback", + numFields: 2, + classNo: 59, + lastSubtypeNo: 59, maxBgInstances: null, methods: { }, iface: { - "playerStates": null, - "set/playerStates": null, - "visibilityFlag": null, - "set/visibilityFlag": null, - "gameEnd": null, - "set/gameEnd": null, - "heartImage": null, - "set/heartImage": null, - "multiplierImage": null, - "set/multiplierImage": null, - "bgColor": null, - "set/bgColor": null, - "borderColor": null, - "set/borderColor": null, - "fontColor": null, - "set/fontColor": null, - "countdownExpired": null, - "set/countdownExpired": null, - "countdownEndHandler": null, - "set/countdownEndHandler": null, + "order": null, + "set/order": null, + "handler": null, + "set/handler": null, + }, +}); +const particles_ColorCount__C156084_VT = mkVTable({ + name: "ColorCount", + numFields: 2, + classNo: 60, + lastSubtypeNo: 60, + maxBgInstances: null, + methods: { + }, + iface: { + "color": null, + "set/color": null, + "count": null, + "set/count": null, + }, +}); +const controller_ControlledSprite__C153403_VT = mkVTable({ + name: "ControlledSprite", + numFields: 4, + classNo: 61, + lastSubtypeNo: 61, + maxBgInstances: null, + methods: { + }, + iface: { + "_inputLastFrame": null, + "set/_inputLastFrame": null, + "s": null, + "set/s": null, + "vx": null, + "set/vx": null, + "vy": null, + "set/vy": null, + }, +}); +const game_BaseDialog__C153961_VT = mkVTable({ + name: "BaseDialog", + numFields: 11, + classNo: 62, + lastSubtypeNo: 63, + maxBgInstances: null, + methods: { + "update": game_BaseDialog_update__P153974, + "drawTextCore": game_BaseDialog_drawTextCore__P153976, + }, + iface: { + "image": null, + "set/image": null, + "frame": null, + "set/frame": null, + "cursor": null, + "set/cursor": null, + "columns": null, + "set/columns": null, + "rows": null, + "set/rows": null, + "unit": null, + "set/unit": null, + "innerLeft": null, + "set/innerLeft": null, + "innerTop": null, + "set/innerTop": null, + "cursorCount": null, + "set/cursorCount": null, + "font": null, + "set/font": null, + "textColor": null, + "set/textColor": null, + "update": game_BaseDialog_update__P153974, + "drawTextCore": game_BaseDialog_drawTextCore__P153976, + "drawCursorRow": game_BaseDialog_drawCursorRow__P153977, + "drawBorder": game_BaseDialog_drawBorder__P155665, + "fastFill": game_BaseDialog_fastFill__P155666, + "clearInterior": game_BaseDialog_clearInterior__P155667, + "drawPartial": game_BaseDialog_drawPartial__P155668, + "cursorRowHeight": game_BaseDialog_cursorRowHeight__P155669, + "textAreaWidth": game_BaseDialog_textAreaWidth__P155671, + "textAreaHeight": game_BaseDialog_textAreaHeight__P155672, + }, +}); +const game_GameOverDialog__C154000_VT = mkVTable({ + name: "GameOverDialog", + numFields: 16, + classNo: 63, + lastSubtypeNo: 63, + maxBgInstances: null, + methods: { + "update": game_GameOverDialog_update__P154003, + "drawTextCore": game_GameOverDialog_drawTextCore__P154004, + }, + iface: { + "image": null, + "set/image": null, + "frame": null, + "set/frame": null, + "cursor": null, + "set/cursor": null, + "columns": null, + "set/columns": null, + "rows": null, + "set/rows": null, + "unit": null, + "set/unit": null, + "innerLeft": null, + "set/innerLeft": null, + "innerTop": null, + "set/innerTop": null, + "cursorCount": null, + "set/cursorCount": null, + "font": null, + "set/font": null, + "textColor": null, + "set/textColor": null, + "cursorOn": null, + "set/cursorOn": null, + "isNewHighScore": null, + "set/isNewHighScore": null, + "win": null, + "set/win": null, + "score": null, + "set/score": null, + "highScore": null, + "set/highScore": null, + "displayCursor": game_GameOverDialog_displayCursor__P154002, + "update": game_GameOverDialog_update__P154003, + "drawTextCore": game_GameOverDialog_drawTextCore__P154004, + "drawCursorRow": game_BaseDialog_drawCursorRow__P153977, + "drawBorder": game_BaseDialog_drawBorder__P155665, + "fastFill": game_BaseDialog_fastFill__P155666, + "clearInterior": game_BaseDialog_clearInterior__P155667, + "drawPartial": game_BaseDialog_drawPartial__P155668, + "cursorRowHeight": game_BaseDialog_cursorRowHeight__P155669, + "textAreaWidth": game_BaseDialog_textAreaWidth__P155671, + "textAreaHeight": game_BaseDialog_textAreaHeight__P155672, }, }); -const music_MelodyPlayer__C88093_VT = mkVTable({ +const music_MelodyPlayer__C153092_VT = mkVTable({ name: "MelodyPlayer", numFields: 2, - classNo: 57, - lastSubtypeNo: 57, + classNo: 64, + lastSubtypeNo: 64, maxBgInstances: null, methods: { }, @@ -52350,16 +56455,16 @@ const music_MelodyPlayer__C88093_VT = mkVTable({ "set/melody": null, "onPlayFinished": null, "set/onPlayFinished": null, - "stop": music_MelodyPlayer_stop__P88097, - "queuePlayInstructions": music_MelodyPlayer_queuePlayInstructions__P90256, - "play": music_MelodyPlayer_play__P88098, + "stop": music_MelodyPlayer_stop__P153096, + "queuePlayInstructions": music_MelodyPlayer_queuePlayInstructions__P155420, + "play": music_MelodyPlayer_play__P153097, }, }); -const control_Interval__C90178_VT = mkVTable({ +const control_Interval__C155342_VT = mkVTable({ name: "Interval", numFields: 4, - classNo: 58, - lastSubtypeNo: 58, + classNo: 65, + lastSubtypeNo: 65, maxBgInstances: null, methods: { }, @@ -52372,14 +56477,14 @@ const control_Interval__C90178_VT = mkVTable({ "set/delay": null, "mode": null, "set/mode": null, - "work": control_Interval_work__P90179, + "work": control_Interval_work__P155343, }, }); -const scene_TileOverlapHandler__C88881_VT = mkVTable({ +const scene_TileOverlapHandler__C153880_VT = mkVTable({ name: "TileOverlapHandler", numFields: 3, - classNo: 59, - lastSubtypeNo: 59, + classNo: 66, + lastSubtypeNo: 66, maxBgInstances: null, methods: { }, @@ -52392,11 +56497,11 @@ const scene_TileOverlapHandler__C88881_VT = mkVTable({ "set/handler": null, }, }); -const scene_systemMenu_PauseMenu__C89107_VT = mkVTable({ +const scene_systemMenu_PauseMenu__C154106_VT = mkVTable({ name: "PauseMenu", numFields: 7, - classNo: 60, - lastSubtypeNo: 60, + classNo: 67, + lastSubtypeNo: 67, maxBgInstances: null, methods: { }, @@ -52415,19 +56520,19 @@ const scene_systemMenu_PauseMenu__C89107_VT = mkVTable({ "set/scrollOffset": null, "generator": null, "set/generator": null, - "show": scene_systemMenu_PauseMenu_show__P89109, - "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P89110, - "setSelection": scene_systemMenu_PauseMenu_setSelection__P89111, - "drawText": scene_systemMenu_PauseMenu_drawText__P89112, - "dispose": scene_systemMenu_PauseMenu_dispose__P89113, - "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P90783, + "show": scene_systemMenu_PauseMenu_show__P154108, + "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P154109, + "setSelection": scene_systemMenu_PauseMenu_setSelection__P154110, + "drawText": scene_systemMenu_PauseMenu_drawText__P154111, + "dispose": scene_systemMenu_PauseMenu_dispose__P154112, + "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P155947, }, }); -const scene_systemMenu_MenuOption__C89099_VT = mkVTable({ +const scene_systemMenu_MenuOption__C154098_VT = mkVTable({ name: "MenuOption", numFields: 8, - classNo: 61, - lastSubtypeNo: 61, + classNo: 68, + lastSubtypeNo: 68, maxBgInstances: null, methods: { }, @@ -52448,20 +56553,20 @@ const scene_systemMenu_MenuOption__C89099_VT = mkVTable({ "set/getText": null, "action": null, "set/action": null, - "show": scene_systemMenu_MenuOption_show__P89101, - "position": scene_systemMenu_MenuOption_position__P89102, - "setOffset": scene_systemMenu_MenuOption_setOffset__P89103, - "setTheme": scene_systemMenu_MenuOption_setTheme__P89104, - "setState": scene_systemMenu_MenuOption_setState__P89105, - "dispose": scene_systemMenu_MenuOption_dispose__P89106, - "updateCard": scene_systemMenu_MenuOption_updateCard__P90782, + "show": scene_systemMenu_MenuOption_show__P154100, + "position": scene_systemMenu_MenuOption_position__P154101, + "setOffset": scene_systemMenu_MenuOption_setOffset__P154102, + "setTheme": scene_systemMenu_MenuOption_setTheme__P154103, + "setState": scene_systemMenu_MenuOption_setState__P154104, + "dispose": scene_systemMenu_MenuOption_dispose__P154105, + "updateCard": scene_systemMenu_MenuOption_updateCard__P155946, }, }); -const MovingSprite__C88656_VT = mkVTable({ +const MovingSprite__C153655_VT = mkVTable({ name: "MovingSprite", numFields: 7, - classNo: 62, - lastSubtypeNo: 62, + classNo: 69, + lastSubtypeNo: 69, maxBgInstances: null, methods: { }, @@ -52482,11 +56587,11 @@ const MovingSprite__C88656_VT = mkVTable({ "set/yStep": null, }, }); -const sprites_StaticObstacle__C88631_VT = mkVTable({ +const sprites_StaticObstacle__C153630_VT = mkVTable({ name: "StaticObstacle", numFields: 5, - classNo: 63, - lastSubtypeNo: 63, + classNo: 70, + lastSubtypeNo: 70, maxBgInstances: null, methods: { }, @@ -52501,31 +56606,31 @@ const sprites_StaticObstacle__C88631_VT = mkVTable({ "set/top": null, "left": null, "set/left": null, - "x": sprites_StaticObstacle_x__P88638, - "y": sprites_StaticObstacle_y__P88639, - "height": sprites_StaticObstacle_height__P88640, - "width": sprites_StaticObstacle_width__P88641, + "x": sprites_StaticObstacle_x__P153637, + "y": sprites_StaticObstacle_y__P153638, + "height": sprites_StaticObstacle_height__P153639, + "width": sprites_StaticObstacle_width__P153640, }, }); -const effects_SceneAnchor__C90926_VT = mkVTable({ +const effects_SceneAnchor__C156090_VT = mkVTable({ name: "SceneAnchor", numFields: 1, - classNo: 64, - lastSubtypeNo: 64, + classNo: 71, + lastSubtypeNo: 71, maxBgInstances: null, methods: { }, iface: { "camera": null, "set/camera": null, - "x": effects_SceneAnchor_x__P90927, - "y": effects_SceneAnchor_y__P90928, - "width": effects_SceneAnchor_width__P90929, - "height": effects_SceneAnchor_height__P90930, + "x": effects_SceneAnchor_x__P156091, + "y": effects_SceneAnchor_y__P156092, + "width": effects_SceneAnchor_width__P156093, + "height": effects_SceneAnchor_height__P156094, }, }); -const breakpoints = setupDebugger(1, ["tile4___142598","difficulty___196123","minimap2___196126","sprite_player___196139","sprite_cursor___196023","debug___196196","tile2___142588","current_col___195851","current_row___195860","tile1___142583","tile3___142593","transparency16___142578"]) +const breakpoints = setupDebugger(1, ["tile8___155293","won___218814","sprite_player___218831","loading___218850","length___218853","loading_numerator___218861","loading_denominator___218864","message1___218907","message2___218915","debug___218922","difficulty___218926","minimap2___218929","sprite_cursor___218948","start_load___218979","tile7___155292","_break___218981","tile5___155290","current_col___218969","current_row___218967","tile6___155291","transparency8___155289"]) -return _main___P196241 +return _main___P219766 }) diff --git a/assets/version.txt b/assets/version.txt index bd52db8..afaf360 100644 --- a/assets/version.txt +++ b/assets/version.txt @@ -1 +1 @@ -0.0.0 \ No newline at end of file +1.0.0 \ No newline at end of file diff --git a/pxt.json b/pxt.json index 2645f92..cef5cd7 100644 --- a/pxt.json +++ b/pxt.json @@ -1,5 +1,6 @@ { "name": "Maze Generator", + "version": "1.0.0", "description": "", "dependencies": { "device": "*",