From 2be75f705017dec02a37a034d4fe1092dc7b9fad Mon Sep 17 00:00:00 2001 From: OLegonD <75202965+OLegonD@users.noreply.github.com> Date: Tue, 22 Nov 2022 03:29:01 +0100 Subject: [PATCH] 1.0.0 --- assets/js/binary.js | 57037 +++++++++++++++++++++++------------------- assets/version.txt | 2 +- pxt.json | 1 + 3 files changed, 31261 insertions(+), 25779 deletions(-) diff --git a/assets/js/binary.js b/assets/js/binary.js index 6f1a3bc..ad2f2e9 100644 --- a/assets/js/binary.js +++ b/assets/js/binary.js @@ -1,5 +1,5 @@ -// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.11.37/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"0.0.0","target":"arcade","targetVersion":"1.11.37"} -// total=1947289 new=10.24% cached=84.49% other=5.27% +// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.11.37/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"1.0.0","target":"arcade","targetVersion":"1.11.37","repo":"olegond/magic-bossfight"} +// total=2135995 new=13.33% cached=81.58% other=5.08% (function (ectx) { 'use strict'; const runtime = ectx.runtime; @@ -27,7 +27,7 @@ const __this = runtime; const pxtrt = pxsim.pxtrt; let yieldSteps = 1; ectx.setupYield(function() { yieldSteps = 100; }) -pxsim.setTitle("dr. Strange"); +pxsim.setTitle("Magic bossfight"); pxsim.setConfigData({ "37": 160, "38": 120 @@ -146,6 +146,9 @@ pxtrt.mapKeyNames = [ "changeValue", "charHeight", "charWidth", + "chunkIndex", + "chunkText", + "chunks", "clear", "clearInterior", "clearObstacles", @@ -204,12 +207,15 @@ pxtrt.mapKeyNames = [ "drawSprite", "drawText", "drawTextCore", + "duration", "dx", "dy", "effect", "eid", "enabled", + "endFrequency", "endScreenEffect", + "endVolume", "event", "eventContext", "explicitlySetDirection", @@ -230,6 +236,7 @@ pxtrt.mapKeyNames = [ "frameWorker", "frames", "framesInSample", + "frequency", "fx", "fy", "galois", @@ -250,6 +257,8 @@ pxtrt.mapKeyNames = [ "hasBackgroundImage", "hasHitZero", "hasLife", + "hasNext", + "hasPrev", "hasScore", "hash", "head", @@ -274,6 +283,7 @@ pxtrt.mapKeyNames = [ "innerTop", "insertAABB", "insertAtKey", + "interpolation", "isHittingTile", "isNewHighScore", "isObstacle", @@ -327,6 +337,7 @@ pxtrt.mapKeyNames = [ "multiplierImage", "neighbors", "next", + "nextPage", "nodeInterval", "nodes", "offColor", @@ -366,6 +377,7 @@ pxtrt.mapKeyNames = [ "positionNextTo", "preferredDelay", "pressureLevel", + "prevPage", "prevTimeMillis", "previousScene", "priority", @@ -398,6 +410,7 @@ pxtrt.mapKeyNames = [ "right", "row", "rowCount", + "rowHeight", "rows", "run", "runButtonEvents", @@ -424,6 +437,7 @@ pxtrt.mapKeyNames = [ "setDirection", "setFactory", "setFlag", + "setFont", "setHitbox", "setImage", "setKind", @@ -440,6 +454,7 @@ pxtrt.mapKeyNames = [ "setStart", "setState", "setStayInScreen", + "setText", "setTheme", "shake", "shakeAmplitude", @@ -465,10 +480,13 @@ pxtrt.mapKeyNames = [ "src", "start", "startEffect", + "startFrequency", "startScreenEffect", + "startVolume", "startedAt", "state", "stop", + "stopAll", "sx", "sy", "system", @@ -493,6 +511,7 @@ pxtrt.mapKeyNames = [ "timeOut", "timer", "times", + "toBuffer", "toString", "top", "unit", @@ -511,9 +530,11 @@ pxtrt.mapKeyNames = [ "vid", "visibility", "visibilityFlag", + "volume", "vx", "vy", "wallCollisionHandlers", + "waveShape", "width", "win", "x", @@ -551,7 +572,7 @@ const pxsim_pxtrt = pxsim.pxtrt; const pxsim_numops = pxsim.numops; -function _main___P24186(s) { +function _main___P30613(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -561,16 +582,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - globals._intervals___4294 = (undefined); - globals._pollEventQueue___4303 = (undefined); + globals._intervals___4334 = (undefined); + globals._pollEventQueue___4343 = (undefined); globals.minPriority___375 = (1); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, listeners_inline__P4306); - globals.listeners___4307 = (s.tmp_0); - globals.freqs___4356 = (_hex4355); - globals.globalVolume___4360 = (null); - globals.playToneID___4367 = (0); + r0 = pxsim_Array__push(s.tmp_0, listeners_inline__P4346); + globals.listeners___4347 = (s.tmp_0); + globals.freqs___4396 = (_hex4395); + globals.globalVolume___4400 = (null); + globals.playToneID___4407 = (0); r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1626_VT); s.tmp_0 = r0; s.tmp_1 = music_Melody_constructor__P1629_mk(s); @@ -594,23 +615,23 @@ switch (step) { 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", _hex10424); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex12022); globals.font8___1820 = (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", _hex10426); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex12024); globals.font12___1821 = (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", _hex18267); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex20221); globals.font5___1825 = (s.tmp_0); - globals.__updated___4422 = (false); - r0 = pxsim.control.runInParallel(control___screen_inline__P4425); - r0 = pxsim_pxtcore.setPalette(_hex4436); + globals.__updated___4462 = (false); + r0 = pxsim.control.runInParallel(control___screen_inline__P4465); + r0 = pxsim_pxtcore.setPalette(_hex4476); r0 = pxsim_pxtcore.getConfig(2102, 160); s.tmp_0 = r0; r0 = pxsim_pxtcore.getConfig(2103, 120); @@ -618,14 +639,14 @@ switch (step) { r0 = pxsim.image.create(s.tmp_0, s.tmp_1); globals.screen___1877 = (r0); s.tmp_0 = control___screen_setupUpdate__P1839_mk(s); - s.tmp_0.arg0 = _screen_internal_inline__P4445; + s.tmp_0.arg0 = _screen_internal_inline__P4485; s.callLocIdx = 6; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.control_EventContext_onStats___398 = (_screen_internal_inline__P4450); - globals.RUN_KEY___4455 = ("#run"); - globals.SCOPE_KEY___4456 = ("#scope"); - s.tmp_0 = settings_initScopes__P4467_mk(s); + globals.control_EventContext_onStats___398 = (_screen_internal_inline__P4490); + globals.RUN_KEY___4495 = ("#run"); + globals.SCOPE_KEY___4496 = ("#scope"); + s.tmp_0 = settings_initScopes__P4507_mk(s); s.callLocIdx = 7; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; @@ -709,7 +730,7 @@ switch (step) { case 12: r0 = s.retval; globals.player2___1964 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C4496_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C4536_VT); s.tmp_0 = r0; s.tmp_1 = controller_Button_constructor__P2038_mk(s); s.tmp_1.arg0 = s.tmp_0; @@ -719,9 +740,9 @@ switch (step) { case 13: r0 = s.retval; globals.anyButton___2013 = (s.tmp_0); - globals._userEventsEnabled___4510 = (true); - globals.defaultRepeatDelay___4512 = (500); - globals.defaultRepeatInterval___4514 = (30); + globals._userEventsEnabled___4550 = (true); + globals.defaultRepeatDelay___4552 = (500); + globals.defaultRepeatInterval___4554 = (30); s.tmp_0 = SpriteKind_create__P2320_mk(s); s.callLocIdx = 17; s.pc = 14; return s.tmp_0; case 14: @@ -741,14 +762,14 @@ switch (step) { s.tmp_0 = r0; r0 = (s.tmp_0 | 0); globals.MIN_MOVE_GAP___2362 = (r0); - globals.infoState___4579 = (undefined); + globals.infoState___4619 = (undefined); s.tmp_0 = game_addScenePushHandler__P2806_mk(s); - s.tmp_0.arg0 = info_inline__P4583; + s.tmp_0.arg0 = info_inline__P4623; s.callLocIdx = 21; s.pc = 17; return s.tmp_0; case 17: r0 = s.retval; s.tmp_0 = game_addScenePopHandler__P2808_mk(s); - s.tmp_0.arg0 = info_inline__P4598; + s.tmp_0.arg0 = info_inline__P4638; s.callLocIdx = 25; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; @@ -767,48 +788,48 @@ switch (step) { globals.stats___2789 = (false); globals.winEffect___2790 = (undefined); globals.loseEffect___2791 = (undefined); - globals.loseSound___4697 = (undefined); - globals.winSound___4699 = (undefined); - globals.__isOver___4707 = (false); - globals.foreverRunning___4711 = (false); - s.tmp_0 = scene_systemMenu_initVolume__P4966_mk(s); + globals.loseSound___4737 = (undefined); + globals.winSound___4739 = (undefined); + globals.__isOver___4747 = (false); + globals.foreverRunning___4751 = (false); + s.tmp_0 = scene_systemMenu_initVolume__P5006_mk(s); s.callLocIdx = 27; s.pc = 20; return s.tmp_0; case 20: r0 = s.retval; - s.tmp_0 = scene_systemMenu_initScreen__P4967_mk(s); + s.tmp_0 = scene_systemMenu_initScreen__P5007_mk(s); s.callLocIdx = 28; s.pc = 21; return s.tmp_0; case 21: r0 = s.retval; r0 = pxsim_Array__push(globals.scene_Scene_initializers___2699, scene_systemMenu_register__P2894); - r0 = pxsim.image.ofBuffer(_hex4974); + r0 = pxsim.image.ofBuffer(_hex5014); globals.CARD_NORMAL___2899 = (r0); - r0 = pxsim.image.ofBuffer(_hex4976); + r0 = pxsim.image.ofBuffer(_hex5016); globals.CARD_SELECTED___2900 = (r0); - r0 = pxsim.image.ofBuffer(_hex4978); + r0 = pxsim.image.ofBuffer(_hex5018); globals.CARD_ACTIVE___2901 = (r0); - r0 = pxsim.image.ofBuffer(_hex4980); + r0 = pxsim.image.ofBuffer(_hex5020); globals.VOLUME_UP_ICON___2902 = (r0); - r0 = pxsim.image.ofBuffer(_hex4982); + r0 = pxsim.image.ofBuffer(_hex5022); globals.BRIGHTNESS_DOWN_ICON___2903 = (r0); - r0 = pxsim.image.ofBuffer(_hex4984); + r0 = pxsim.image.ofBuffer(_hex5024); globals.CLOSE_MENU_ICON___2904 = (r0); - r0 = pxsim.image.ofBuffer(_hex4986); + r0 = pxsim.image.ofBuffer(_hex5026); globals.VOLUME_DOWN_ICON___2905 = (r0); - r0 = pxsim.image.ofBuffer(_hex4988); + r0 = pxsim.image.ofBuffer(_hex5028); globals.SLEEP_ICON___2906 = (r0); - r0 = pxsim.image.ofBuffer(_hex4990); + r0 = pxsim.image.ofBuffer(_hex5030); globals.CONSOLE_ICON___2907 = (r0); - r0 = pxsim.image.ofBuffer(_hex4992); + r0 = pxsim.image.ofBuffer(_hex5032); globals.BRIGHTNESS_UP_ICON___2908 = (r0); - r0 = pxsim.image.ofBuffer(_hex4994); + r0 = pxsim.image.ofBuffer(_hex5034); globals.STATS_ICON___2909 = (r0); - globals.consoleColor___4997 = (1); - globals.tabSize___5000 = (8); - globals.consoleFont___5006 = (globals.font5___1825); + globals.consoleColor___5037 = (1); + globals.tabSize___5040 = (8); + globals.consoleFont___5046 = (globals.font5___1825); r0 = pxsim_ImageMethods.height(globals.screen___1877); s.tmp_2 = r0; s.tmp_5 = if_charHeight_1_mk(s); - s.tmp_5.arg0 = globals.consoleFont___5006; + s.tmp_5.arg0 = globals.consoleFont___5046; if (!s.tmp_5.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight"); } else { @@ -827,13 +848,13 @@ switch (step) { r0 = pxsim.Math_.floor(s.tmp_1); s.tmp_0 = r0; r0 = (s.tmp_0 - 1); - globals.consoleLines___5011 = (r0); + globals.consoleLines___5051 = (r0); r0 = pxsim_ImageMethods.width(globals.screen___1877); 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___5006; + s.tmp_4.arg0 = globals.consoleFont___5046; if (!s.tmp_4.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); } else { @@ -848,19 +869,19 @@ switch (step) { r0 = (s.tmp_1 / s.tmp_3); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - globals.consoleColumns___5021 = (r0); + globals.consoleColumns___5061 = (r0); s.tmp_0 = console_addListener__P383_mk(s); - s.tmp_0.arg0 = game_consoleOverlay_listener__P5033; + s.tmp_0.arg0 = game_consoleOverlay_listener__P5073; s.callLocIdx = 31; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = MAX_SOURCES_inline__P8589; + s.tmp_0.argL = MAX_SOURCES_inline__P9219; setupLambda(s.tmp_0, s.tmp_0.argL); s.callLocIdx = 33; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - globals.MAX_SOURCES___5035 = (r0); + globals.MAX_SOURCES___5075 = (r0); r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C2979_VT); s.tmp_0 = r0; s.tmp_1 = particles_SprayFactory_constructor__P2980_mk(s); @@ -880,8 +901,8 @@ switch (step) { s.callLocIdx = 35; s.pc = 27; return s.tmp_1; case 27: r0 = s.retval; - globals.galois___5055 = (s.tmp_0); - globals.angleSlice___5063 = (0.06283185307179587); + globals.galois___5095 = (s.tmp_0); + globals.angleSlice___5103 = (0.06283185307179587); r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C3054_VT); s.tmp_0 = r0; s.tmp_1 = effects_ScreenEffect_constructor__P3055_mk(s); @@ -889,28 +910,40 @@ switch (step) { s.tmp_1.arg1 = 10; s.tmp_1.arg2 = 40; s.tmp_1.arg3 = 4000; - s.tmp_1.arg4 = confetti_inline__P15602; + s.tmp_1.arg4 = confetti_inline__P15996; s.callLocIdx = 41; s.pc = 28; return s.tmp_1; case 28: r0 = s.retval; globals.confetti___3062 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C3054_VT); + s.tmp_0 = r0; + s.tmp_1 = effects_ScreenEffect_constructor__P3055_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = 5; + s.tmp_1.arg2 = 20; + s.tmp_1.arg3 = 2000; + s.tmp_1.arg4 = hearts_inline__P8742; + s.callLocIdx = 47; s.pc = 29; return s.tmp_1; + case 29: + r0 = s.retval; + globals.hearts___3063 = (s.tmp_0); r0 = pxsim_pxtcore_mkClassInstance(effects_ParticleEffect__C3050_VT); s.tmp_0 = r0; s.tmp_1 = effects_ParticleEffect_constructor__P3051_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 50; s.tmp_1.arg2 = 5000; - s.tmp_1.arg3 = fire_inline__P17529; - s.callLocIdx = 45; s.pc = 29; return s.tmp_1; - case 29: + s.tmp_1.arg3 = fire_inline__P19073; + s.callLocIdx = 51; s.pc = 30; return s.tmp_1; + case 30: r0 = s.retval; globals.fire___3066 = (s.tmp_0); - s.tmp_0 = effects_createEffect__P5090_mk(s); + s.tmp_0 = effects_createEffect__P5130_mk(s); s.tmp_0.arg0 = 70; s.tmp_0.arg1 = 3000; - s.tmp_0.arg2 = halo_inline__P17261; - s.callLocIdx = 47; s.pc = 30; return s.tmp_0; - case 30: + s.tmp_0.arg2 = halo_inline__P18805; + s.callLocIdx = 53; s.pc = 31; return s.tmp_0; + case 31: r0 = s.retval; globals.halo___3069 = (r0); r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C3054_VT); @@ -920,9 +953,9 @@ switch (step) { s.tmp_1.arg1 = 15; s.tmp_1.arg2 = 50; s.tmp_1.arg3 = 3000; - s.tmp_1.arg4 = blizzard_inline__P8100; - s.callLocIdx = 55; s.pc = 31; return s.tmp_1; - case 31: + s.tmp_1.arg4 = blizzard_inline__P9806; + s.callLocIdx = 61; s.pc = 32; return s.tmp_1; + case 32: r0 = s.retval; globals.blizzard___3072 = (s.tmp_0); r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C3077_VT); @@ -930,9 +963,9 @@ switch (step) { s.tmp_1 = effects_ImageEffect_constructor__P3078_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 100; - s.tmp_1.arg2 = dissolve_inline__P17677; - s.callLocIdx = 61; s.pc = 32; return s.tmp_1; - case 32: + s.tmp_1.arg2 = dissolve_inline__P19221; + s.callLocIdx = 67; s.pc = 33; return s.tmp_1; + case 33: r0 = s.retval; globals.dissolve___3082 = (s.tmp_0); r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C3077_VT); @@ -940,877 +973,1121 @@ switch (step) { s.tmp_1 = effects_ImageEffect_constructor__P3078_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 125; - s.tmp_1.arg2 = melt_inline__P15494; - s.callLocIdx = 64; s.pc = 33; return s.tmp_1; - case 33: + s.tmp_1.arg2 = melt_inline__P15888; + s.callLocIdx = 70; s.pc = 34; return s.tmp_1; + case 34: r0 = s.retval; globals.melt___3083 = (s.tmp_0); - globals.stateNamespace___5118 = ("__animation"); + globals.stateNamespace___5158 = ("__animation"); s.tmp_0 = game_setWaitAnyButton__P2793_mk(s); s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P2048; - s.callLocIdx = 65; s.pc = 34; return s.tmp_0; - case 34: + s.callLocIdx = 71; s.pc = 35; return s.tmp_0; + case 35: r0 = s.retval; s.tmp_0 = game_eventContext__P2795_mk(s); - s.callLocIdx = 66; s.pc = 35; return s.tmp_0; - case 35: + s.callLocIdx = 72; s.pc = 36; return s.tmp_0; + case 36: r0 = s.retval; s.tmp_0 = SpriteKind_create__P2320_mk(s); - s.callLocIdx = 67; s.pc = 36; return s.tmp_0; - case 36: + s.callLocIdx = 73; s.pc = 37; return s.tmp_0; + case 37: r0 = s.retval; globals.StatusBar___4147 = (r0); s.tmp_0 = StatusBarKind_create__P4150_mk(s); - s.callLocIdx = 68; s.pc = 37; return s.tmp_0; - case 37: + s.callLocIdx = 74; s.pc = 38; return s.tmp_0; + case 38: r0 = s.retval; globals.Health___4151 = (r0); s.tmp_0 = StatusBarKind_create__P4150_mk(s); - s.callLocIdx = 69; s.pc = 38; return s.tmp_0; - case 38: + s.callLocIdx = 75; s.pc = 39; return s.tmp_0; + case 39: r0 = s.retval; globals.Energy___4152 = (r0); s.tmp_0 = StatusBarKind_create__P4150_mk(s); - s.callLocIdx = 70; s.pc = 39; return s.tmp_0; - case 39: + s.callLocIdx = 76; s.pc = 40; return s.tmp_0; + case 40: r0 = s.retval; globals.Magic___4153 = (r0); s.tmp_0 = StatusBarKind_create__P4150_mk(s); - s.callLocIdx = 71; s.pc = 40; return s.tmp_0; - case 40: + s.callLocIdx = 77; s.pc = 41; return s.tmp_0; + case 41: r0 = s.retval; globals.EnemyHealth___4154 = (r0); - globals.STATUS_BAR_DATA_KEY___6737 = ("STATUS_BAR_DATA_KEY"); - if ((globals.STATUS_BAR_DATA_KEY___6737) && (globals.STATUS_BAR_DATA_KEY___6737).vtable) { - setupResume(s, 41); - pxsim_String__stringConv(globals.STATUS_BAR_DATA_KEY___6737); + globals.STATUS_BAR_DATA_KEY___6777 = ("STATUS_BAR_DATA_KEY"); + if ((globals.STATUS_BAR_DATA_KEY___6777) && (globals.STATUS_BAR_DATA_KEY___6777).vtable) { + setupResume(s, 42); + pxsim_String__stringConv(globals.STATUS_BAR_DATA_KEY___6777); checkResumeConsumed(); return; - } else { s.retval = (globals.STATUS_BAR_DATA_KEY___6737) + ""; } - case 41: + } else { s.retval = (globals.STATUS_BAR_DATA_KEY___6777) + ""; } + case 42: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, "_SPRITES"); - globals.MANAGED_SPRITES_KEY___6741 = (r0); - if ((globals.STATUS_BAR_DATA_KEY___6737) && (globals.STATUS_BAR_DATA_KEY___6737).vtable) { - setupResume(s, 42); - pxsim_String__stringConv(globals.STATUS_BAR_DATA_KEY___6737); + globals.MANAGED_SPRITES_KEY___6781 = (r0); + if ((globals.STATUS_BAR_DATA_KEY___6777) && (globals.STATUS_BAR_DATA_KEY___6777).vtable) { + setupResume(s, 43); + pxsim_String__stringConv(globals.STATUS_BAR_DATA_KEY___6777); checkResumeConsumed(); return; - } else { s.retval = (globals.STATUS_BAR_DATA_KEY___6737) + ""; } - case 42: + } else { s.retval = (globals.STATUS_BAR_DATA_KEY___6777) + ""; } + case 43: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, "_ON_ZERO"); - globals.ZERO_HANDLERS_KEY___6747 = (r0); - if ((globals.STATUS_BAR_DATA_KEY___6737) && (globals.STATUS_BAR_DATA_KEY___6737).vtable) { - setupResume(s, 43); - pxsim_String__stringConv(globals.STATUS_BAR_DATA_KEY___6737); + globals.ZERO_HANDLERS_KEY___6787 = (r0); + if ((globals.STATUS_BAR_DATA_KEY___6777) && (globals.STATUS_BAR_DATA_KEY___6777).vtable) { + setupResume(s, 44); + pxsim_String__stringConv(globals.STATUS_BAR_DATA_KEY___6777); checkResumeConsumed(); return; - } else { s.retval = (globals.STATUS_BAR_DATA_KEY___6737) + ""; } - case 43: + } else { s.retval = (globals.STATUS_BAR_DATA_KEY___6777) + ""; } + case 44: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, "_ON_STATUS_REACHED"); - globals.STATUS_HANDLERS_KEY___6753 = (r0); - if ((globals.STATUS_BAR_DATA_KEY___6737) && (globals.STATUS_BAR_DATA_KEY___6737).vtable) { - setupResume(s, 44); - pxsim_String__stringConv(globals.STATUS_BAR_DATA_KEY___6737); + globals.STATUS_HANDLERS_KEY___6793 = (r0); + if ((globals.STATUS_BAR_DATA_KEY___6777) && (globals.STATUS_BAR_DATA_KEY___6777).vtable) { + setupResume(s, 45); + pxsim_String__stringConv(globals.STATUS_BAR_DATA_KEY___6777); checkResumeConsumed(); return; - } else { s.retval = (globals.STATUS_BAR_DATA_KEY___6737) + ""; } - case 44: + } else { s.retval = (globals.STATUS_BAR_DATA_KEY___6777) + ""; } + case 45: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, "_ON_DISPLAY_UPDATE"); - globals.POST_PROCESS_HANDLERS_KEY___6759 = (r0); - r0 = pxsim.image.ofBuffer(_hex6779); - globals.transparency16___4238 = (r0); - r0 = pxsim.image.ofBuffer(_hex6783); - globals.tile2___4239 = (r0); - r0 = pxsim.image.ofBuffer(_hex6787); - globals.tile3___4240 = (r0); - r0 = pxsim.image.ofBuffer(_hex6791); - globals.tile1___4241 = (r0); + globals.POST_PROCESS_HANDLERS_KEY___6799 = (r0); + r0 = pxsim.image.ofBuffer(_hex6819); + globals.transparency16___4278 = (r0); + r0 = pxsim.image.ofBuffer(_hex6823); + globals.tile2___4279 = (r0); + r0 = pxsim.image.ofBuffer(_hex6827); + globals.tile3___4280 = (r0); + r0 = pxsim.image.ofBuffer(_hex6831); + globals.tile1___4281 = (r0); s.tmp_0 = helpers__registerFactory__P3118_mk(s); s.tmp_0.arg0 = "tilemap"; - s.tmp_0.arg1 = myTiles_inline__P6795; - s.callLocIdx = 78; s.pc = 45; return s.tmp_0; - case 45: + s.tmp_0.arg1 = myTiles_inline__P6835; + s.callLocIdx = 88; s.pc = 46; return s.tmp_0; + case 46: r0 = s.retval; s.tmp_0 = helpers__registerFactory__P3118_mk(s); s.tmp_0.arg0 = "tile"; - s.tmp_0.arg1 = myTiles_inline__P6844; - s.callLocIdx = 80; s.pc = 46; return s.tmp_0; - case 46: - r0 = s.retval; - s.tmp_0 = SpriteKind_create__P2320_mk(s); - s.callLocIdx = 81; s.pc = 47; return s.tmp_0; + s.tmp_0.arg1 = myTiles_inline__P6916; + s.callLocIdx = 90; s.pc = 47; return s.tmp_0; case 47: r0 = s.retval; - globals.pro2___4223 = (r0); s.tmp_0 = SpriteKind_create__P2320_mk(s); - s.callLocIdx = 82; s.pc = 48; return s.tmp_0; + s.callLocIdx = 91; s.pc = 48; return s.tmp_0; case 48: r0 = s.retval; - globals.player2___4224 = (r0); + globals.pro2___27994 = (r0); + s.tmp_0 = SpriteKind_create__P2320_mk(s); + s.callLocIdx = 92; s.pc = 49; return s.tmp_0; + case 49: + r0 = s.retval; + globals.player2___27997 = (r0); + s.tmp_0 = SpriteKind_create__P2320_mk(s); + s.callLocIdx = 93; s.pc = 50; return s.tmp_0; + case 50: + r0 = s.retval; + globals.secretweapon___28000 = (r0); + s.tmp_0 = SpriteKind_create__P2320_mk(s); + s.callLocIdx = 94; s.pc = 51; return s.tmp_0; + case 51: + r0 = s.retval; + globals.heal___28003 = (r0); + s.tmp_0 = SpriteKind_create__P2320_mk(s); + s.callLocIdx = 95; s.pc = 52; return s.tmp_0; + case 52: + r0 = s.retval; + globals.pro3___28006 = (r0); s.tmp_0 = scene_onOverlapTile__P2301_mk(s); s.tmp_0.arg0 = globals.Player___2321; s.tmp_1 = helpers_getTileByName__P3124_mk(s); s.tmp_1.arg0 = "myTile1"; - s.callLocIdx = 83; s.pc = 50; return s.tmp_1; - case 50: + s.callLocIdx = 96; s.pc = 54; return s.tmp_1; + case 54: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = inline__P6862; - s.callLocIdx = 85; s.pc = 49; return s.tmp_0; - case 49: + s.tmp_0.arg2 = inline__P28012; + s.callLocIdx = 98; s.pc = 53; return s.tmp_0; + case 53: r0 = s.retval; s.tmp_0 = controller_Button_onEvent__P2039_mk(s); s.tmp_0.arg0 = globals.up___1960; s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = inline__P6876; - s.callLocIdx = 89; s.pc = 51; return s.tmp_0; - case 51: + s.tmp_0.arg2 = inline__P28026; + s.callLocIdx = 104; s.pc = 55; return s.tmp_0; + case 55: r0 = s.retval; s.tmp_0 = sprites_onOverlap__P2299_mk(s); - s.tmp_0.arg0 = globals.player2___4224; + s.tmp_0.arg0 = globals.player2___27997; s.tmp_0.arg1 = globals.Enemy___2324; - s.tmp_0.arg2 = inline__P6891; - s.callLocIdx = 94; s.pc = 52; return s.tmp_0; - case 52: + s.tmp_0.arg2 = inline__P28052; + s.callLocIdx = 111; s.pc = 56; return s.tmp_0; + case 56: r0 = s.retval; s.tmp_0 = sprites_onOverlap__P2299_mk(s); s.tmp_0.arg0 = globals.Player___2321; - s.tmp_0.arg1 = globals.pro2___4223; - s.tmp_0.arg2 = inline__P6914; - s.callLocIdx = 97; s.pc = 53; return s.tmp_0; - case 53: + s.tmp_0.arg1 = globals.pro2___27994; + s.tmp_0.arg2 = inline__P28085; + s.callLocIdx = 116; s.pc = 57; return s.tmp_0; + case 57: r0 = s.retval; s.tmp_0 = scene_onOverlapTile__P2301_mk(s); s.tmp_0.arg0 = globals.Player___2321; s.tmp_1 = helpers_getTileByName__P3124_mk(s); s.tmp_1.arg0 = "myTile"; - s.callLocIdx = 98; s.pc = 55; return s.tmp_1; - case 55: + s.callLocIdx = 117; s.pc = 59; return s.tmp_1; + case 59: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = inline__P6927; - s.callLocIdx = 100; s.pc = 54; return s.tmp_0; - case 54: + s.tmp_0.arg2 = inline__P28106; + s.callLocIdx = 119; s.pc = 58; return s.tmp_0; + case 58: r0 = s.retval; s.tmp_0 = controller_Button_onEvent__P2039_mk(s); s.tmp_0.arg0 = globals.A___1957; s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = inline__P6939; - s.callLocIdx = 107; s.pc = 56; return s.tmp_0; - case 56: + s.tmp_0.arg2 = inline__P28118; + s.callLocIdx = 132; s.pc = 60; return s.tmp_0; + case 60: r0 = s.retval; s.tmp_0 = controller_Controller_onButtonEvent__P1996_mk(s); s.tmp_0.arg0 = globals.player2___1964; s.tmp_0.arg1 = 5; s.tmp_0.arg2 = 2049; - s.tmp_0.arg3 = inline__P6982; - s.callLocIdx = 111; s.pc = 57; return s.tmp_0; - case 57: + s.tmp_0.arg3 = inline__P28186; + s.callLocIdx = 138; s.pc = 61; return s.tmp_0; + case 61: r0 = s.retval; s.tmp_0 = controller_Button_onEvent__P2039_mk(s); s.tmp_0.arg0 = globals.down___1962; s.tmp_0.arg1 = 2048; - s.tmp_0.arg2 = inline__P6995; - s.callLocIdx = 115; s.pc = 58; return s.tmp_0; - case 58: + s.tmp_0.arg2 = inline__P28206; + s.callLocIdx = 144; s.pc = 62; return s.tmp_0; + case 62: r0 = s.retval; s.tmp_0 = controller_Button_onEvent__P2039_mk(s); s.tmp_0.arg0 = globals.left___1959; s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = inline__P7012; - s.callLocIdx = 117; s.pc = 59; return s.tmp_0; - case 59: + s.tmp_0.arg2 = inline__P28232; + s.callLocIdx = 146; s.pc = 63; return s.tmp_0; + case 63: r0 = s.retval; s.tmp_0 = sprites_onOverlap__P2299_mk(s); s.tmp_0.arg0 = globals.Enemy___2324; s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = inline__P7030; - s.callLocIdx = 120; s.pc = 60; return s.tmp_0; - case 60: + s.tmp_0.arg2 = inline__P28250; + s.callLocIdx = 151; s.pc = 64; return s.tmp_0; + case 64: r0 = s.retval; s.tmp_0 = controller_Button_onEvent__P2039_mk(s); s.tmp_0.arg0 = globals.right___1961; s.tmp_0.arg1 = 2048; - s.tmp_0.arg2 = inline__P7042; - s.callLocIdx = 122; s.pc = 61; return s.tmp_0; - case 61: + s.tmp_0.arg2 = inline__P28270; + s.callLocIdx = 153; s.pc = 65; return s.tmp_0; + case 65: r0 = s.retval; s.tmp_0 = controller_Button_onEvent__P2039_mk(s); s.tmp_0.arg0 = globals.left___1959; s.tmp_0.arg1 = 2048; - s.tmp_0.arg2 = inline__P7051; - s.callLocIdx = 124; s.pc = 62; return s.tmp_0; - case 62: + s.tmp_0.arg2 = inline__P28279; + s.callLocIdx = 155; s.pc = 66; return s.tmp_0; + case 66: r0 = s.retval; s.tmp_0 = scene_onOverlapTile__P2301_mk(s); - s.tmp_0.arg0 = globals.player2___4224; + s.tmp_0.arg0 = globals.player2___27997; s.tmp_1 = helpers_getTileByName__P3124_mk(s); s.tmp_1.arg0 = "myTile1"; - s.callLocIdx = 125; s.pc = 64; return s.tmp_1; - case 64: + s.callLocIdx = 156; s.pc = 68; return s.tmp_1; + case 68: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = inline__P7061; - s.callLocIdx = 127; s.pc = 63; return s.tmp_0; - case 63: + s.tmp_0.arg2 = inline__P28289; + s.callLocIdx = 158; s.pc = 67; return s.tmp_0; + case 67: r0 = s.retval; s.tmp_0 = statusbars_onZero__P4213_mk(s); s.tmp_0.arg0 = globals.EnemyHealth___4154; - s.tmp_0.arg1 = inline__P7072; - s.callLocIdx = 129; s.pc = 65; return s.tmp_0; - case 65: + s.tmp_0.arg1 = inline__P28300; + s.callLocIdx = 160; s.pc = 69; return s.tmp_0; + case 69: r0 = s.retval; s.tmp_0 = scene_onOverlapTile__P2301_mk(s); - s.tmp_0.arg0 = globals.player2___4224; + s.tmp_0.arg0 = globals.player2___27997; s.tmp_1 = helpers_getTileByName__P3124_mk(s); s.tmp_1.arg0 = "myTile"; - s.callLocIdx = 130; s.pc = 67; return s.tmp_1; - case 67: + s.callLocIdx = 161; s.pc = 71; return s.tmp_1; + case 71: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = inline__P7080; - s.callLocIdx = 132; s.pc = 66; return s.tmp_0; - case 66: + s.tmp_0.arg2 = inline__P28308; + s.callLocIdx = 163; s.pc = 70; return s.tmp_0; + case 70: r0 = s.retval; s.tmp_0 = controller_Button_onEvent__P2039_mk(s); s.tmp_0.arg0 = globals.B___1958; s.tmp_0.arg1 = 2054; - s.tmp_0.arg2 = inline__P7093; - s.callLocIdx = 134; s.pc = 68; return s.tmp_0; - case 68: + s.tmp_0.arg2 = inline__P28320; + s.callLocIdx = 167; s.pc = 72; return s.tmp_0; + case 72: r0 = s.retval; s.tmp_0 = controller_Button_onEvent__P2039_mk(s); s.tmp_0.arg0 = globals.right___1961; s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = inline__P7105; - s.callLocIdx = 136; s.pc = 69; return s.tmp_0; - case 69: + s.tmp_0.arg2 = inline__P28341; + s.callLocIdx = 169; s.pc = 73; return s.tmp_0; + case 73: r0 = s.retval; s.tmp_0 = sprites_onOverlap__P2299_mk(s); s.tmp_0.arg0 = 1; - s.tmp_0.arg1 = globals.pro2___4223; - s.tmp_0.arg2 = inline__P7121; - s.callLocIdx = 137; s.pc = 70; return s.tmp_0; - case 70: + s.tmp_0.arg1 = globals.pro2___27994; + s.tmp_0.arg2 = inline__P28357; + s.callLocIdx = 173; s.pc = 74; return s.tmp_0; + case 74: + r0 = s.retval; + s.tmp_0 = sprites_onOverlap__P2299_mk(s); + s.tmp_0.arg0 = globals.Player___2321; + s.tmp_0.arg1 = globals.pro3___28006; + s.tmp_0.arg2 = inline__P28374; + s.callLocIdx = 178; s.pc = 75; return s.tmp_0; + case 75: r0 = s.retval; s.tmp_0 = controller_Button_onEvent__P2039_mk(s); s.tmp_0.arg0 = globals.down___1962; s.tmp_0.arg1 = 2054; - s.tmp_0.arg2 = inline__P7127; - s.callLocIdx = 139; s.pc = 71; return s.tmp_0; - case 71: + s.tmp_0.arg2 = inline__P28394; + s.callLocIdx = 180; s.pc = 76; return s.tmp_0; + case 76: + r0 = s.retval; + s.tmp_0 = sprites_onOverlap__P2299_mk(s); + s.tmp_0.arg0 = globals.heal___28003; + s.tmp_0.arg1 = globals.Player___2321; + s.tmp_0.arg2 = inline__P28405; + s.callLocIdx = 185; s.pc = 77; return s.tmp_0; + case 77: + r0 = s.retval; + s.tmp_0 = sprites_onOverlap__P2299_mk(s); + s.tmp_0.arg0 = globals.heal___28003; + s.tmp_0.arg1 = globals.player2___27997; + s.tmp_0.arg2 = inline__P28423; + s.callLocIdx = 190; s.pc = 78; return s.tmp_0; + case 78: + r0 = s.retval; + globals.beat2___28439 = (0); + globals.projectile3___28441 = (null); + globals.projectile2___28443 = (null); + globals.playing2___28445 = (false); + globals.playing3___28447 = (false); + globals.playing4___28449 = (false); + globals.beat___28451 = (0); + globals.phase___28453 = (0); + globals.count___28326 = (0); + globals.projectile___28122 = (null); + globals.statusbar___28063 = (null); + globals.mySprite4___28068 = (null); + globals.mySprite___28017 = (null); + globals.Soundeffects___28041 = (0); + globals.count2___28209 = (0); + globals.Facing___28037 = (0); + globals.speed___28455 = (100); + globals.Facing___28037 = (0); + globals.count2___28209 = (0); + globals.Soundeffects___28041 = (1); + s.tmp_0 = scene_setBackgroundImage__P2719_mk(s); + r0 = pxsim.image.ofBuffer(_hex28461); + s.tmp_0.arg0 = r0; + s.callLocIdx = 191; s.pc = 79; return s.tmp_0; + case 79: + r0 = s.retval; + s.tmp_0 = game_showLongText__P2781_mk(s); + s.tmp_0.arg0 = "Hey, welcome to a magic bossfight!"; + s.tmp_0.arg1 = 0; + s.callLocIdx = 192; s.pc = 80; return s.tmp_0; + case 80: + r0 = s.retval; + s.tmp_0 = game_showLongText__P2781_mk(s); + s.tmp_0.arg0 = "You control the player 1 with left and right and jump with up button."; + s.tmp_0.arg1 = 0; + s.callLocIdx = 193; s.pc = 81; return s.tmp_0; + case 81: + r0 = s.retval; + s.tmp_0 = game_showLongText__P2781_mk(s); + s.tmp_0.arg0 = "You cast a projectile spell with A button (jump to reset aim). You jump really high with down button. You Teleport with B"; + s.tmp_0.arg1 = 0; + s.callLocIdx = 194; s.pc = 82; return s.tmp_0; + case 82: + r0 = s.retval; + s.tmp_0 = game_showLongText__P2781_mk(s); + s.tmp_0.arg0 = "You move player 2 with player 2 arrow keys. You teleport player 1 with A button. If you hover over the boss and press B the boss loses HP."; + s.tmp_0.arg1 = 0; + s.callLocIdx = 195; s.pc = 83; return s.tmp_0; + case 83: + r0 = s.retval; + s.tmp_0 = game_showLongText__P2781_mk(s); + s.tmp_0.arg0 = "Hit hearts to get more hp."; + s.tmp_0.arg1 = 0; + s.callLocIdx = 196; s.pc = 84; return s.tmp_0; + case 84: + r0 = s.retval; + s.tmp_0 = game_showLongText__P2781_mk(s); + s.tmp_0.arg0 = "Its 4 phases you win if you don't beat the boss and the phases run out you lose."; + s.tmp_0.arg1 = 0; + s.callLocIdx = 197; s.pc = 85; return s.tmp_0; + case 85: + r0 = s.retval; + s.tmp_0 = game_showLongText__P2781_mk(s); + s.tmp_0.arg0 = "Good luck!"; + s.tmp_0.arg1 = 0; + s.callLocIdx = 198; s.pc = 86; return s.tmp_0; + case 86: r0 = s.retval; - globals.projectile2___4225 = (null); - globals.projectile___4226 = (null); - globals.statusbar___4227 = (null); - globals.mySprite4___4228 = (null); - globals.mySprite___4229 = (null); - globals.count2___4230 = (0); - globals.Facing___4231 = (0); - globals.speed___4232 = (100); - globals.Facing___4231 = (0); - globals.count___4233 = (0); - globals.count2___4230 = (0); - globals.phase___4234 = (0); s.tmp_0 = info_setLife__P2409_mk(s); - s.tmp_0.arg0 = 1000; - s.callLocIdx = 140; s.pc = 72; return s.tmp_0; - case 72: + s.tmp_0.arg0 = 100; + s.callLocIdx = 199; s.pc = 87; return s.tmp_0; + case 87: r0 = s.retval; s.tmp_0 = sprites_create__P2118_mk(s); - r0 = pxsim.image.ofBuffer(_hex7144); + r0 = pxsim.image.ofBuffer(_hex28480); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = globals.Player___2321; - s.callLocIdx = 141; s.pc = 73; return s.tmp_0; - case 73: + s.callLocIdx = 200; s.pc = 88; return s.tmp_0; + case 88: r0 = s.retval; - globals.mySprite___4229 = (r0); + globals.mySprite___28017 = (r0); s.tmp_0 = Sprite_setPosition__P2250_mk(s); - s.tmp_0.arg0 = globals.mySprite___4229; + s.tmp_0.arg0 = globals.mySprite___28017; s.tmp_0.arg1 = 10; s.tmp_0.arg2 = 61; - s.callLocIdx = 142; s.pc = 74; return s.tmp_0; - case 74: + s.callLocIdx = 201; s.pc = 89; return s.tmp_0; + case 89: r0 = s.retval; s.tmp_0 = controller_moveSprite__P2010_mk(s); - s.tmp_0.arg0 = globals.mySprite___4229; + s.tmp_0.arg0 = globals.mySprite___28017; s.tmp_0.arg1 = 100; s.tmp_0.arg2 = 0; - s.callLocIdx = 143; s.pc = 75; return s.tmp_0; - case 75: + s.callLocIdx = 202; s.pc = 90; return s.tmp_0; + case 90: r0 = s.retval; s.tmp_0 = Sprite_ay__P2206_mk(s); - s.tmp_0.arg0 = globals.mySprite___4229; + s.tmp_0.arg0 = globals.mySprite___28017; s.tmp_0.arg1 = 500; - s.callLocIdx = 144; s.pc = 76; return s.tmp_0; - case 76: + s.callLocIdx = 203; s.pc = 91; return s.tmp_0; + case 91: r0 = s.retval; s.tmp_0 = sprites_create__P2118_mk(s); - r0 = pxsim.image.ofBuffer(_hex7155); + r0 = pxsim.image.ofBuffer(_hex28491); s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.player2___4224; - s.callLocIdx = 145; s.pc = 77; return s.tmp_0; - case 77: + s.tmp_0.arg1 = globals.player2___27997; + s.callLocIdx = 204; s.pc = 92; return s.tmp_0; + case 92: r0 = s.retval; - globals.mySprite4___4228 = (r0); + globals.mySprite4___28068 = (r0); s.tmp_0 = controller_Controller_moveSprite__P1994_mk(s); s.tmp_0.arg0 = globals.player2___1964; - s.tmp_0.arg1 = globals.mySprite4___4228; + s.tmp_0.arg1 = globals.mySprite4___28068; s.tmp_0.arg2 = 100; s.tmp_0.arg3 = 100; - s.callLocIdx = 146; s.pc = 78; return s.tmp_0; - case 78: + s.callLocIdx = 205; s.pc = 93; return s.tmp_0; + case 93: r0 = s.retval; s.tmp_0 = scene_setBackgroundImage__P2719_mk(s); - r0 = pxsim.image.ofBuffer(_hex7162); + r0 = pxsim.image.ofBuffer(_hex28498); s.tmp_0.arg0 = r0; - s.callLocIdx = 147; s.pc = 79; return s.tmp_0; - case 79: + s.callLocIdx = 206; s.pc = 94; return s.tmp_0; + case 94: r0 = s.retval; s.tmp_0 = tiles_setCurrentTilemap__P2600_mk(s); s.tmp_1 = helpers_getTilemapByName__P3121_mk(s); s.tmp_1.arg0 = "level1"; - s.callLocIdx = 148; s.pc = 81; return s.tmp_1; - case 81: + s.callLocIdx = 207; s.pc = 96; return s.tmp_1; + case 96: r0 = s.retval; s.tmp_0.arg0 = r0; - s.callLocIdx = 149; s.pc = 80; return s.tmp_0; - case 80: + s.callLocIdx = 208; s.pc = 95; return s.tmp_0; + case 95: r0 = s.retval; s.tmp_0 = Sprite_setStayInScreen__P2258_mk(s); - s.tmp_0.arg0 = globals.mySprite___4229; + s.tmp_0.arg0 = globals.mySprite___28017; s.tmp_0.arg1 = true; - s.callLocIdx = 150; s.pc = 82; return s.tmp_0; - case 82: + s.callLocIdx = 209; s.pc = 97; return s.tmp_0; + case 97: r0 = s.retval; s.tmp_0 = sprites_create__P2118_mk(s); - r0 = pxsim.image.ofBuffer(_hex7171); + r0 = pxsim.image.ofBuffer(_hex28508); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = globals.Enemy___2324; - s.callLocIdx = 151; s.pc = 83; return s.tmp_0; - case 83: + s.callLocIdx = 210; s.pc = 98; return s.tmp_0; + case 98: r0 = s.retval; - globals.mySprite2___4235 = (r0); + globals.mySprite2___28505 = (r0); s.tmp_0 = statusbars_create__P4211_mk(s); s.tmp_0.arg0 = 100; s.tmp_0.arg1 = 4; s.tmp_0.arg2 = globals.EnemyHealth___4154; - s.callLocIdx = 152; s.pc = 84; return s.tmp_0; - case 84: + s.callLocIdx = 211; s.pc = 99; return s.tmp_0; + case 99: r0 = s.retval; - globals.statusbar___4227 = (r0); + globals.statusbar___28063 = (r0); s.tmp_0 = Sprite_ay__P2206_mk(s); - s.tmp_0.arg0 = globals.mySprite2___4235; + s.tmp_0.arg0 = globals.mySprite2___28505; s.tmp_0.arg1 = 500; - s.callLocIdx = 153; s.pc = 85; return s.tmp_0; - case 85: + s.callLocIdx = 212; s.pc = 100; return s.tmp_0; + case 100: r0 = s.retval; s.tmp_0 = Sprite_vx__P2200_mk(s); - s.tmp_0.arg0 = globals.mySprite2___4235; - s.tmp_0.arg1 = globals.speed___4232; - s.callLocIdx = 154; s.pc = 86; return s.tmp_0; - case 86: + s.tmp_0.arg0 = globals.mySprite2___28505; + s.tmp_0.arg1 = globals.speed___28455; + s.callLocIdx = 213; s.pc = 101; return s.tmp_0; + case 101: r0 = s.retval; s.tmp_0 = sprites_create__P2118_mk(s); - r0 = pxsim.image.ofBuffer(_hex7184); + r0 = pxsim.image.ofBuffer(_hex28522); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = globals.Player___2321; - s.callLocIdx = 155; s.pc = 87; return s.tmp_0; - case 87: + s.callLocIdx = 214; s.pc = 102; return s.tmp_0; + case 102: r0 = s.retval; - globals.mySprite3___4236 = (r0); + globals.mySprite3___28519 = (r0); s.tmp_0 = Sprite_setPosition__P2250_mk(s); - s.tmp_0.arg0 = globals.mySprite3___4236; + s.tmp_0.arg0 = globals.mySprite3___28519; s.tmp_0.arg1 = 106; s.tmp_0.arg2 = 15; - s.callLocIdx = 156; s.pc = 88; return s.tmp_0; - case 88: + s.callLocIdx = 215; s.pc = 103; return s.tmp_0; + case 103: r0 = s.retval; s.tmp_0 = StatusBarSprite_attachToSprite__P4161_mk(s); - s.tmp_0.arg0 = globals.statusbar___4227; - s.tmp_0.arg1 = globals.mySprite3___4236; + s.tmp_0.arg0 = globals.statusbar___28063; + s.tmp_0.arg1 = globals.mySprite3___28519; s.tmp_0.arg2 = undefined; s.tmp_0.arg3 = undefined; - s.callLocIdx = 157; s.pc = 89; return s.tmp_0; - case 89: + s.callLocIdx = 216; s.pc = 104; return s.tmp_0; + case 104: r0 = s.retval; s.tmp_0 = StatusBarSprite_max__P4160_mk(s); - s.tmp_0.arg0 = globals.statusbar___4227; - s.tmp_0.arg1 = 500; - s.callLocIdx = 158; s.pc = 90; return s.tmp_0; - case 90: + s.tmp_0.arg0 = globals.statusbar___28063; + s.tmp_0.arg1 = 300; + s.callLocIdx = 217; s.pc = 105; return s.tmp_0; + case 105: r0 = s.retval; s.tmp_0 = StatusBarSprite_value__P4158_mk(s); - s.tmp_0.arg0 = globals.statusbar___4227; - s.tmp_0.arg1 = 500; - s.callLocIdx = 159; s.pc = 91; return s.tmp_0; - case 91: + s.tmp_0.arg0 = globals.statusbar___28063; + s.tmp_0.arg1 = 300; + s.callLocIdx = 218; s.pc = 106; return s.tmp_0; + case 106: r0 = s.retval; - s.tmp_0 = game_onUpdateInterval__P2812_mk(s); - s.tmp_0.arg0 = 1; - s.tmp_0.arg1 = inline__P7198; - s.callLocIdx = 168; s.pc = 92; return s.tmp_0; - case 92: + globals.tempo___28536 = (160); + r0 = (globals.tempo___28536 * 2); + globals.tempo2___28539 = (r0); + s.tmp_0 = music_setVolume__P1620_mk(s); + s.tmp_0.arg0 = 255; + s.callLocIdx = 219; s.pc = 107; return s.tmp_0; + case 107: r0 = s.retval; - s.tmp_0 = forever__P1927_mk(s); - s.tmp_0.arg0 = inline__P7244; - s.callLocIdx = 183; s.pc = 93; return s.tmp_0; - case 93: + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1626_VT); + s.tmp_0 = r0; + s.tmp_1 = music_Melody_constructor__P1629_mk(s); + s.tmp_1.arg0 = s.tmp_0; + if ((globals.tempo___28536) && (globals.tempo___28536).vtable) { + setupResume(s, 109); + pxsim_String__stringConv(globals.tempo___28536); + checkResumeConsumed(); + return; + } else { s.retval = (globals.tempo___28536) + ""; } + case 109: r0 = s.retval; - s.tmp_0 = game_onUpdateInterval__P2812_mk(s); - s.tmp_0.arg0 = 500; - s.tmp_0.arg1 = inline__P7297; - s.callLocIdx = 190; s.pc = 94; return s.tmp_0; - case 94: + s.tmp_4 = r0; + r0 = pxsim_String__concat("@0,50,0,0 ~5 c8-", s.tmp_4); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 110); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 110: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -_main___P24186.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"main.ts","functionName":"
","argumentNames":[]} -_main___P24186.continuations = [ 41,42,43,44 ] - -function _main___P24186_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: _main___P24186, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, -} } - -const _hex4355 = pxsim.BufferMethods.createBufferFromHex("1f00210023002500270029002c002e003100340037003a003e004100450049004e00520057005c00620068006e0075007b0083008b0093009c00a500af00b900c400d000dc00e900f70006011501260137014a015d01720188019f01b801d201ee010b022a024b026e029302ba02e40210033f037003a403dc03170455049704dd0427057505c80520067d06e0064907b8072d08a9082d09b9094d0aea0a900b400cfa0cc00d910e6f0f5a1053115b1272139a14d41520178018f519801b231dde1e") -const _hex10424 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") -const _hex10426 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") -const _hex18267 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") -const _hex4436 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") -const _hex4974 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") -const _hex4976 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") -const _hex4978 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") -const _hex4980 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex4982 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex4984 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex4986 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex4988 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex4990 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex4992 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex4994 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex6779 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex6783 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex6787 = pxsim.BufferMethods.createBufferFromHex("8704100010000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff") -const _hex6791 = pxsim.BufferMethods.createBufferFromHex("87041000100000007777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777") -const _hex7144 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000ff0f00000000fffffffe000000f0efefefee0f0000f0ee2f4fe44ffe00efee2f4feddeed0feffe2eef44deedffeffefebfd1e4feffefeff2fedf2442ffffe2f24edd24520f2fe2f24edd2e520ff0e2e2effeffff0000ff2eef0f0000000000ffff000000000000000000000000") -const _hex7155 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000044aa44040000004000a0a0aa0000000444444404040040400000004040004040404444a04a0040aa400040404a00404a400040404a00a0aa40004040a000404040444440aa004040000000a040000004444444a40400004000a0a04a0000000044a44404000000000000000000000000000000000000") -const _hex7162 = pxsim.BufferMethods.createBufferFromHex("8704a0007800000099999999999999999999999999111111111111ddddddddddddddddddddbdbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999999999991119111111111111d1ddddddddddddddddddbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999999999191111111111111111ddd1d1ddddddddddddddbbbdbbbbbbbbbbbb777777777777777777777777777777777777777777777799999999999999999999191111111111111111ddddddddddddddddddddbdbdbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999999999999991911111111111111111111d1ddddddddddddddbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777779999999999999999999999111111111111111111111111b1bbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999999111111111111111111d1ddbddbbbbbbbbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777777999999999999999999999919111111111111111111d1ddbddbbbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999999911111111111111d11dd11dddbdbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999991911111111111111d1ddddddddbdbbbbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999991911111111111111d11ddd1dddbdbbbbbbbbbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999999999999999191111111111111111ddddddddbdbbbbbbbbbbbbbbbbbbbbbbbb7bbb7777777777777777777777777777777777777777777799999999999999991911191111111111111111ddd1ddddbdbbbddbdbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999911119111111111111111111dd1ddddbdbbbbbbbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777777799999999999999991111111111111111111111ddd1ddddddddddddddddbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777799999999999999991111111111111111111111ddd1ddddddddddddddddddbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999919911111111111111111111111ddddddddddddddddbbbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777779999999999991111191111111111111111dddddddddddddddddddddbbbbdbdbbbbbbbbbb77b77777777777777777777777777777777777777777777799999999991911119111111111111111d1dddddddddddddddddddddbbbbdbdbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999991911111111111111111111dddd1dd1ddddddddddddddbbbbbbbdbbbbbbbbbbbb7b7777777777777777777777777777777777777777777799999999991911111111111111111111dd1d1dddddddddddddddddbbddbbbdbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999191111111111111111111111ddddddddddddddddddddddbbbbbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777799999999111111111111111111111111d11d1dddddddddddddddddddbdbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777779999999911111111111111111111111111111111d1ddddddddddbbbbbbbbbbbbbbbbbbbb7bb77777777777777777777777777777777777777777777799999999111111111111111111111111111111111111ddddddbdbbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999111111111111111111111111111111111111ddddddddddddddddbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999191111111111111111111111111111ddddddd1ddddddddddddddbbbbbbbddbbdbbbb77777777777777777777777777777777777777777777999999999999111111111111111111111111d1ddddddddddddddddddddbdbbbbbbddbbbd7b77777777777777777777777777777777777777777777779999999999191111111111111111111111d1ddddddddddddddddddddddddddbbbbddbbbdbb7777777777777777777777777777777777777777777777999999999911111111111111111111111111d1ddddddddddddddddddddddbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999991111111111111111111111111111ddddddddddddddddddddbdbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999191111111111111111111111111111d1ddddddddddddddddddbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999919111111111111111111111111111111d1ddddddddddddddddddbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999999919111111111111111111111111111111111111b1bbdbbbbbbdbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999991911111911111111111111111111d1ddddddddbdbbbbbbbbbbbbbbbbbbbb77bb777777777777777777777777777777777777777777779999999999999911911111111111111111111111d1ddddddddbdbbbbbbbbbbbbbbbbbddb7b7777777777777777777777777777777777777777777777999999999999999999111111111111111111111111ddddddddbdbbdbbbbbbdbbbbbbbbbbbb77777777777777777777777777777777777777777777779999999999999999991111111111111111111111d1ddddddddbdbbbbbbbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999999999111111111111111111111111d11dddddddddddbdbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777779999999999999919111111111111111111111111111dddddddddddddddddddbbbbbbbbbb7bb7777777777777777777777777777777777777777777779999999999999919111111111111111111111111d1ddddddddddddddddddddbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999911111111111111ddddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999911111111111111ddd1ddddddddddddbbdbdbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999119199111111ddd1ddddddddddbbbbdbbbbbbbbdbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999999999999999911111111ddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999991911111111ddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999991911111111ddddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777777999999999999999999999911911111ddddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999999999991911dd1dddd1d1ddddddddddddddddddddddbdbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999999999911ddddddddddddddddddddddddddddddddbdbbbbbbbbbb77777777777777777777777777777777777777777777779999999999999999999999999919111111111111d1ddddddddddddddddddddddddddbdbb7b7777777777777777777777777777777777777777777777999999999999999999999999991911111111111111d1ddddddddddbdbbbbbbbbbbbbbbbb7bbb77777777777777777777777777777777777777777777999999999999999999999999991911111111d1ddddddddddddddddbdbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999999999911111111d1d11d1dddddbdbbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999999999999911111111d1d11d1dddbbbbbbbbbbbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999999999999999999991111111111d1ddddbdbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999999191111111111d11dd1bdbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999999191111111111d1ddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbb77b7777777777777777777777777777777777777777777779999999999999999999999991911111111111111ddddddbbbbbbbbbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777779999999999999999999999111911111111d1ddddddddddddbdbbbbbbbbbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999999999999919119911111111ddddddddddddddddddddbdbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999991911111111111111111111d1ddddddddddddbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999999999999991911111111111111111111d1dddd1ddd11bddbdbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999991911111111111111111111dddddd1dd11dbdbbbbbbbbbbbbbbbb7bb77777777777777777777777777777777777777777777799999999999999999999991111111111111111111111d1dd1dd11dddddddbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999999111111111111111111d1ddddddddddddddddbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999919111111111111111111ddddddddddddddddddddddddddbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999919111111111111111111d1ddddddddddddddddbbbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999999999999999991911111111111111111111d1ddddddddbdbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777779999999999999999999999991119111111ddddd1dd1dddddddddddbbbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777779999999999999999999999999919111111ddddddddddddddddddddbbbdbbbdbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999999999999999999919111111dddddddddddddddd1dddb1bbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777779999999999999999999999999919111111ddddd1dd1dddddddddddbddbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777779999999999999999999999999999111111ddddddddddddddddddddbdbbbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777799999999999999999999999999999911111111ddddddddddddddddbdddbbbbbbbbbbbbbb77bb7777777777777777777777777777777777777777777799999999999999999999999999999911111111111111d1ddddddddbddbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999999999999999999999999911111111111111d1ddddddddbdbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777779999999999999999999999999999d9ddddddddddddddddddddbdbbbbbbbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999999999999999999999d1ddd1d1ddddddddddddddbdbbbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777777799999999999999999999999999d1ddddd1dddd1dddddddddddbbbbbbbbbbbbbbbbbbbbbb7bb77777777777777777777777777777777777777777777799999999999999999999999999d9ddddddddddddddddddddbdbbbdbdbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999999999999999d9ddddddddddddddddddddbdbbbbdbbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777779999999999999999999999999911d1ddddddddddddddddddddbbbdbdbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777779999999999999999999999111911d1ddddddddddddddddddddddddddddbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999999999999919111111111111111111111111ddddddddddddddbdbbbbbbbbbbbbbb777777777777777777777777777777777777777777779999999999999999999919111111111111111111111111ddddddddddddddbdbbbbbbbbbbbbbb777777777777777777777777777777777777777777779999999999999999999919111111111111111111111111111111ddddddbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999999999999999991111111111111111ddddddddddddddddbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777777799999999999999999999999911111111111111ddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999999999991911111111ddddddddddddddddddddbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777779999999999999999999999111111d1ddddddddddddddddddddddddbdbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999999999999999191111ddddddddddddddddddddddddddddddddbbbbbbbbbbbbbb7bbb7777777777777777777777777777777777777777777799999999999999999999191111ddddddddddddddddddddddddddddddddddbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999999999191111d1ddddddddddddddddddddddddddddddddddddddddbbbbbb77777777777777777777777777777777777777777777779999999999999999191119111111d1ddddddddddddddddddddddddddddddbdbbbbbbbbbbbb7b7777777777777777777777777777777777777777777799999999999999991111911111111111ddddddddddddddddddddddddddbbbddbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999991111111111111111111111ddddddddddddddddddddbdbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999991111111111111111111111d1ddddddddddddddddddbdbdbbbbbbbbbb77b77777777777777777777777777777777777777777777799999999999919911111111111111111111111ddd1d1ddddddddddddddbbbdbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999999911111911111111111111111111ddddddddddddddddddddbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999919111191111111111111111111111111d1ddddddddddddddbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999919111111111111111111111111111111d1ddbdbbbbbbbbbbbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999191111111111111111111111111111111111b1bbbbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999991911111111111111111111111111111111d1ddbddbbbbbbbbbbbbbbbbbbbbbbb7bb77777777777777777777777777777777777777777777799999999111111111111111111111111111111ddddddddbdbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999991111111111111111111111111111d1ddddddddbddbbbbdbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999991111111111111111111111111111d11ddd1dddbdbbbbbbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999111111111111111111111111111111ddddddddbdbbbdbbdbbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999191111111111111111111111111111ddd1ddddbdbbbddbdbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777777799999999999911111111111111111111111111ddddddddbdbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999919111111111111111111111111111dd1ddddbdbbbbbbbbbbbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777799999999991111111111111111111111111111ddd1ddddddddddddddddddbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999991111111111111111111111111111ddddddddddddddddbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777779999999999191111111111111111111111dddddddddddddddddddddbbbbdbdbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999191111111111111111111111dddddddddddddddddddddbbbbdbdbbbbbbbbbb77bb7777777777777777777777777777777777777777777799999999999919111111111111111111d1ddddddddddddddddddddbbbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999999919111119111111111111dd1d1dddddddddddddddddbbddbbbdbbbbbbbbbbbb777777777777777777777777777777777777777777777799999999999999119111111111111111ddddddd1ddddddddddddddbbbbbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777799999999999999999911111111111111d11d1dddddddddddddddddbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777779999999999999999991111111111111111111111d1ddddddddddbbbbbbbbbbbbbbbbbbbb7bb77777777777777777777777777777777777777777777799999999999999991111111111111111111111111111ddddddddbbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999191111111111111111111111111111ddddddddddddddddddbbbbbdbbbdbbbb777777777777777777777777777777777777777777779999999999999919111111111111111111111111d1ddddddddddddddddddbbbbbbbddbbdbb7777777777777777777777777777777777777777777777999999999999999911111111111111111111d1ddddddddddddddddddddddbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999999999111111111111111111d1ddddddddddddddddddddddddddbbbbddbbbdbbbb777777777777777777777777777777777777777777779999999999999999991191991111111111d1ddddddddddddddddddddddddbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999999999991111111111111111ddddddddddddddddddddbdbbbbbdddbdbb7b77777777777777777777777777777777777777777777779999999999999999999919111111111111111111d1ddddddddddddddddddbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999991911111111111111111111d1ddddddddddddddddbdbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999999999991191111111111111111111111111d1bdbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777777799999999999999999999999999191111111111111111ddddddbdbbbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777779999999999999999999999999999111111111111d11dddd1ddbdbbbbbbbbbbbbbbbbbdbb7bbb77777777777777777777777777777777777777777777999999999999999999999999991911111111111111ddddddddbdbbbbbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777779999999999999999999999999919111111111111111dddddddbdbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777779999999999999999999999999919111111111111d11dddddddddbdbbbbbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999999999999999999999111111111111d1ddddddddddddbdbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777779999999999999999999999999999111111111111d1ddddddddddddddddddddbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999999991111ddddddddddddddddddddddddddddddddbbbbbbbbbb77b777777777777777777777777777777777777777777777999999999999999999999999191111ddddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777777999999999999999999999999191111ddd1ddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999999999999999999191111ddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999911191111ddd11dddddddbdbbbbbbdbbdbdbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999999999999991911991111ddddddddddddddddbbbbbbbbbbbdbbdbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999991911111111dd1dddddd1ddddddbbbbbbbbbbbbbbbbbbbbbbbbbb7bb777777777777777777777777777777777777777777777999999999999999999991911111111dd1dddd1d1ddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999991911111111ddddddddddddddddddddddddddddddddbdbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999911111111ddddddddddddddddddddddddddddddddddddbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999999111111111111111111d1ddddddddddbdbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777777999999999999999999999919111111111111d1ddddddddddddddddbdbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999999919111111111111d1d11d1dddddbdbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999919111111111111d1d11d1dddbbbbbbbbbbbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999999999999999999111911111111d1ddddbdbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999999991911111111d11dd1bdbbbbbbbbbbbbbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777777999999999999999999999999991911111111d1ddddbdbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999999999999999999991911111111d1ddddddddbbbbbbbbbbbbbbbbbbbbbbbbbb77bb777777777777777777777777777777777777777777779999999999999999999999999999111111d1ddddddddddddbdbbbbbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777779999999999999999999999999999991111d1ddddddddddddbdbbbbbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777777799999999999999999999999999999911111111111111d1dd1ddd1dbdbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999999999999999999999999111111111111d1dddd1ddd11bdbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999999999999999111111111111d1ddddddddddbdbbbbbbbbbbbbbbbb7bb777777777777777777777777777777777777777777777") -const _hex7171 = pxsim.BufferMethods.createBufferFromHex("870418001800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f0ff00000000000000000000c0b100000000000000ffff0f1ffb000000000000ffddbdfc1fb10000000000f01b11ddbd1ffb0000000000f01111bd1cccf10f000000001f1111f11fbdff0f000000001f1111d111fbffff000000001f1111d111b1ffff000000001f1111f11ffbffff00000000f01111bd1ccdb10f00000000f01b11ddbd1ffb000000000000ffddbdfc1fb100000000000000ffff0f1ffb00000000000000000000cfb100000000000000000000f0ff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7184 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") - - - - -function control___screen_inline__P4425(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - case 1: - r0 = pxsim_numops_toBoolDecr(true); - if (!r0) { step = 4; continue; } - globals.__updated___4422 = (false); - s.tmp_0 = pause__P413_mk(s); - s.tmp_0.arg0 = 200; - s.callLocIdx = 2; s.pc = 5; return s.tmp_0; - case 5: + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, " c8 c c c c c @0,250,0,0 c"); + s.tmp_1.arg1 = r0; + s.callLocIdx = 220; s.pc = 108; return s.tmp_1; + case 108: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals.__updated___4422); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + globals.hihat___28542 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1626_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_2 = control___screen_update__P1838_mk(s); - s.callLocIdx = 3; s.pc = 6; return s.tmp_2; - case 6: + s.tmp_1 = music_Melody_constructor__P1629_mk(s); + s.tmp_1.arg0 = s.tmp_0; + if ((globals.tempo2___28539) && (globals.tempo2___28539).vtable) { + setupResume(s, 112); + pxsim_String__stringConv(globals.tempo2___28539); + checkResumeConsumed(); + return; + } else { s.retval = (globals.tempo2___28539) + ""; } + case 112: r0 = s.retval; - globals.__updated___4422 = (true); - case 2: - case 3: - { step = 1; continue; } - case 4: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -control___screen_inline__P4425.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"inline","argumentNames":[]} - -function control___screen_inline__P4425_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: control___screen_inline__P4425, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, -} } - - - - - -function _screen_internal_inline__P4445(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = pxsim_pxtcore.updateScreen(globals.screen___1877); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -_screen_internal_inline__P4445.info = {"start":1122,"length":26,"line":32,"column":33,"endLine":32,"endColumn":59,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":[]} - -function _screen_internal_inline__P4445_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: _screen_internal_inline__P4445, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, -} } - - - - - -function _screen_internal_inline__P4450(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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_pxtcore.updateStats(s.arg0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -_screen_internal_inline__P4450.info = {"start":1185,"length":56,"line":33,"column":35,"endLine":35,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":["msg"]} - -function _screen_internal_inline__P4450_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: _screen_internal_inline__P4450, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function info_inline__P4583(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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.infoState___4579); - if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___4581); - s.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___4581 = (r0); - case 1: - case 2: - r0 = pxsim_pxtrt.mkMap(); + s.tmp_8 = r0; + r0 = pxsim_String__concat("@0,75,0,50 ~16 g1-", s.tmp_8); + s.tmp_7 = r0; + if ((s.tmp_7) && (s.tmp_7).vtable) { + setupResume(s, 113); + pxsim_String__stringConv(s.tmp_7); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_7) + ""; } + case 113: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_String__concat(s.tmp_6, " g R g "); + s.tmp_5 = r0; + if ((s.tmp_5) && (s.tmp_5).vtable) { + setupResume(s, 114); + pxsim_String__stringConv(s.tmp_5); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_5) + ""; } + case 114: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_4, "@10,75,0,0 ~4 g5 @0,75,0,50 ~16 g1 R g g R g R"); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 115); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 115: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, "@10,75,0,0 ~4 g5 R @0,75,0,50 ~16 g1 R"); + s.tmp_1.arg1 = r0; + s.callLocIdx = 221; s.pc = 111; return s.tmp_1; + case 111: + r0 = s.retval; + globals.drums___28554 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1626_VT); s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___4579); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "scene", s.arg0); - r0 = pxsim_Array__push(globals.infoStateStack___4581, s.tmp_0); - globals.infoState___4579 = (undefined); - case 3: - case 4: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -info_inline__P4583.info = {"start":2248,"length":259,"line":83,"column":29,"endLine":92,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["oldScene"]} - -function info_inline__P4583_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: info_inline__P4583, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function info_inline__P4598(s) { -let r0 = s.r0, 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___4599 = undefined; - s.nextState___4608 = undefined; - s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 22; s.pc = 7; return s.tmp_0; - case 7: + s.tmp_1 = music_Melody_constructor__P1629_mk(s); + s.tmp_1.arg0 = s.tmp_0; + if ((globals.tempo___28536) && (globals.tempo___28536).vtable) { + setupResume(s, 117); + pxsim_String__stringConv(globals.tempo___28536); + checkResumeConsumed(); + return; + } else { s.retval = (globals.tempo___28536) + ""; } + case 117: r0 = s.retval; - s.scene___4599 = (r0); - globals.infoState___4579 = (undefined); - s.tmp_0 = r0 = globals.infoStateStack___4581; - 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___4581); - 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___4581); - s.nextState___4608 = (r0); - s.tmp_2 = if_scene_1_mk(s); - s.tmp_2.arg0 = s.nextState___4608; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "scene"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["scene"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["scene"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 23; s.pc = 8; return s.tmp_2; } - } - case 8: + s.tmp_4 = r0; + r0 = pxsim_String__concat("@0,75,50,50 ~15 e1-", s.tmp_4); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 118); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 118: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, " e e e e e e e# e e e e e b a# a"); + s.tmp_1.arg1 = r0; + s.callLocIdx = 222; s.pc = 116; return s.tmp_1; + case 116: r0 = s.retval; + globals.b1___28574 = (s.tmp_0); + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, 0); + r0 = pxsim_Array__push(s.tmp_0, 0); + r0 = pxsim_Array__push(s.tmp_0, 0); + globals.positions___28588 = (s.tmp_0); + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, 1); + r0 = pxsim_Array__push(s.tmp_0, 1); + r0 = pxsim_Array__push(s.tmp_0, 2); + globals.lengths___28593 = (s.tmp_0); + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, 200); + r0 = pxsim_Array__push(s.tmp_0, 200); + r0 = pxsim_Array__push(s.tmp_0, 200); + globals.volumes___28598 = (s.tmp_0); + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, globals.hihat___28542); + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_1 == s.scene___4599); + r0 = pxsim_Array__push(s.tmp_1, s.tmp_0); + r0 = pxsim_Array__mk(); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_2, globals.drums___28554); + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = pxsim_Array__mk(); + s.tmp_3 = r0; + r0 = pxsim_Array__push(s.tmp_3, globals.b1___28574); + r0 = pxsim_Array__push(s.tmp_1, s.tmp_3); + globals.tracks___28601 = (s.tmp_1); + globals.tempo3___28609 = (180); + r0 = (globals.tempo3___28609 * 2); + globals.tempo4___28612 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1626_VT); 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___4608; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "state"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["state"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["state"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 24; s.pc = 9; return s.tmp_3; } - } - case 9: + s.tmp_1 = music_Melody_constructor__P1629_mk(s); + s.tmp_1.arg0 = s.tmp_0; + if ((globals.tempo3___28609) && (globals.tempo3___28609).vtable) { + setupResume(s, 120); + pxsim_String__stringConv(globals.tempo3___28609); + checkResumeConsumed(); + return; + } else { s.retval = (globals.tempo3___28609) + ""; } + case 120: r0 = s.retval; - globals.infoState___4579 = (r0); - { step = 4; continue; } - case 3: - r0 = pxsim_Array__push(globals.infoStateStack___4581, s.nextState___4608); - case 4: - case 5: - case 6: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -info_inline__P4598.info = {"start":2539,"length":376,"line":94,"column":28,"endLine":105,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} - -function info_inline__P4598_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: info_inline__P4598, depth: s.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___4599: undefined, - nextState___4608: undefined, -} } - - - - - -function myTiles_inline__P6795(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_1 = helpers_stringTrim__P123_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 72; s.pc = 13; return s.tmp_1; - case 13: + s.tmp_4 = r0; + r0 = pxsim_String__concat("@0,50,0,0 ~5 c8-", s.tmp_4); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 121); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 121: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, " c8 c c c c c @0,250,0,0 c"); + s.tmp_1.arg1 = r0; + s.callLocIdx = 223; s.pc = 119; return s.tmp_1; + case 119: r0 = s.retval; + globals.hihat2___28614 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1626_VT); s.tmp_0 = r0; - r0 = pxsim_pxtcore.switch_eq("level2", s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq("level2", s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq("level3", s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq("level3", s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq("level1", s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq("level1", s.tmp_0); - if (r0) { step = 6; continue; } - r0 = pxsim_pxtcore.switch_eq("level4", s.tmp_0); - if (r0) { step = 7; continue; } - r0 = pxsim_pxtcore.switch_eq("level4", s.tmp_0); - if (r0) { step = 8; continue; } - r0 = pxsim_pxtcore.switch_eq("level5", s.tmp_0); - if (r0) { step = 9; continue; } - r0 = pxsim_pxtcore.switch_eq("level5", s.tmp_0); - if (r0) { step = 10; continue; } - r0 = s.tmp_0; - { step = 11; continue; } - case 1: - case 2: - r0 = pxsim_Array__mk(); + s.tmp_1 = music_Melody_constructor__P1629_mk(s); + s.tmp_1.arg0 = s.tmp_0; + if ((globals.tempo4___28612) && (globals.tempo4___28612).vtable) { + setupResume(s, 123); + pxsim_String__stringConv(globals.tempo4___28612); + checkResumeConsumed(); + return; + } else { s.retval = (globals.tempo4___28612) + ""; } + case 123: + r0 = s.retval; + s.tmp_8 = r0; + r0 = pxsim_String__concat("@0,75,0,50 ~16 g1-", s.tmp_8); + s.tmp_7 = r0; + if ((s.tmp_7) && (s.tmp_7).vtable) { + setupResume(s, 124); + pxsim_String__stringConv(s.tmp_7); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_7) + ""; } + case 124: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_String__concat(s.tmp_6, " g R g "); + s.tmp_5 = r0; + if ((s.tmp_5) && (s.tmp_5).vtable) { + setupResume(s, 125); + pxsim_String__stringConv(s.tmp_5); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_5) + ""; } + case 125: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_4, "@10,75,0,0 ~4 g5 @0,75,0,50 ~16 g1 R g g R g R"); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 126); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 126: + r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_2, globals.transparency16___4238); - s.tmp_3 = tiles_createTilemap__P2598_mk(s); - s.tmp_3.arg0 = _hex6802; - r0 = pxsim.image.ofBuffer(_hex6804); - s.tmp_3.arg1 = r0; - s.tmp_3.arg2 = s.tmp_2; - s.tmp_3.arg3 = 4; - s.callLocIdx = 73; s.pc = 14; return s.tmp_3; - case 14: + r0 = pxsim_String__concat(s.tmp_2, "@10,75,0,0 ~4 g5 R @0,75,0,50 ~16 g1 R"); + s.tmp_1.arg1 = r0; + s.callLocIdx = 224; s.pc = 122; return s.tmp_1; + case 122: + r0 = s.retval; + globals.drums2___28626 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1626_VT); + s.tmp_0 = r0; + s.tmp_1 = music_Melody_constructor__P1629_mk(s); + s.tmp_1.arg0 = s.tmp_0; + if ((globals.tempo3___28609) && (globals.tempo3___28609).vtable) { + setupResume(s, 128); + pxsim_String__stringConv(globals.tempo3___28609); + checkResumeConsumed(); + return; + } else { s.retval = (globals.tempo3___28609) + ""; } + case 128: r0 = s.retval; - { step = 12; continue; } - case 3: - case 4: - r0 = pxsim_Array__mk(); s.tmp_4 = r0; - r0 = pxsim_Array__push(s.tmp_4, globals.transparency16___4238); - s.tmp_5 = tiles_createTilemap__P2598_mk(s); - s.tmp_5.arg0 = _hex6810; - r0 = pxsim.image.ofBuffer(_hex6812); - s.tmp_5.arg1 = r0; - s.tmp_5.arg2 = s.tmp_4; - s.tmp_5.arg3 = 4; - s.callLocIdx = 74; s.pc = 15; return s.tmp_5; - case 15: + r0 = pxsim_String__concat("@0,75,50,50 ~15 e1-", s.tmp_4); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 129); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 129: r0 = s.retval; - { step = 12; continue; } - case 5: - case 6: + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, " e e e e e e e# e e e e e b a# a"); + s.tmp_1.arg1 = r0; + s.callLocIdx = 225; s.pc = 127; return s.tmp_1; + case 127: + r0 = s.retval; + globals.b2___28646 = (s.tmp_0); + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, globals.hihat2___28614); + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_0); + r0 = pxsim_Array__mk(); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_2, globals.drums2___28626); + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); r0 = pxsim_Array__mk(); + s.tmp_3 = r0; + r0 = pxsim_Array__push(s.tmp_3, globals.b2___28646); + r0 = pxsim_Array__push(s.tmp_1, s.tmp_3); + globals.tracks2___28658 = (s.tmp_1); + globals.beat3___28666 = (0); + globals.tempo5___28668 = (210); + r0 = (globals.tempo5___28668 * 2); + globals.tempo6___28671 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1626_VT); + s.tmp_0 = r0; + s.tmp_1 = music_Melody_constructor__P1629_mk(s); + s.tmp_1.arg0 = s.tmp_0; + if ((globals.tempo5___28668) && (globals.tempo5___28668).vtable) { + setupResume(s, 131); + pxsim_String__stringConv(globals.tempo5___28668); + checkResumeConsumed(); + return; + } else { s.retval = (globals.tempo5___28668) + ""; } + case 131: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat("@0,50,0,0 ~5 c8-", s.tmp_4); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 132); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 132: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, " c8 c c c c c @0,250,0,0 c"); + s.tmp_1.arg1 = r0; + s.callLocIdx = 226; s.pc = 130; return s.tmp_1; + case 130: + r0 = s.retval; + globals.hihat3___28673 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1626_VT); + s.tmp_0 = r0; + s.tmp_1 = music_Melody_constructor__P1629_mk(s); + s.tmp_1.arg0 = s.tmp_0; + if ((globals.tempo6___28671) && (globals.tempo6___28671).vtable) { + setupResume(s, 134); + pxsim_String__stringConv(globals.tempo6___28671); + checkResumeConsumed(); + return; + } else { s.retval = (globals.tempo6___28671) + ""; } + case 134: + r0 = s.retval; + s.tmp_8 = r0; + r0 = pxsim_String__concat("@0,75,0,50 ~16 g1-", s.tmp_8); + s.tmp_7 = r0; + if ((s.tmp_7) && (s.tmp_7).vtable) { + setupResume(s, 135); + pxsim_String__stringConv(s.tmp_7); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_7) + ""; } + case 135: + r0 = s.retval; s.tmp_6 = r0; - r0 = pxsim_Array__push(s.tmp_6, globals.transparency16___4238); - r0 = pxsim_Array__push(s.tmp_6, globals.tile1___4241); - s.tmp_7 = tiles_createTilemap__P2598_mk(s); - s.tmp_7.arg0 = _hex6818; - r0 = pxsim.image.ofBuffer(_hex6820); - s.tmp_7.arg1 = r0; - s.tmp_7.arg2 = s.tmp_6; - s.tmp_7.arg3 = 4; - s.callLocIdx = 75; s.pc = 16; return s.tmp_7; - case 16: + r0 = pxsim_String__concat(s.tmp_6, " g R g "); + s.tmp_5 = r0; + if ((s.tmp_5) && (s.tmp_5).vtable) { + setupResume(s, 136); + pxsim_String__stringConv(s.tmp_5); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_5) + ""; } + case 136: r0 = s.retval; - { step = 12; continue; } - case 7: - case 8: + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_4, "@10,75,0,0 ~4 g5 @0,75,0,50 ~16 g1 R g g R g R"); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 137); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 137: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, "@10,75,0,0 ~4 g5 R @0,75,0,50 ~16 g1 R"); + s.tmp_1.arg1 = r0; + s.callLocIdx = 227; s.pc = 133; return s.tmp_1; + case 133: + r0 = s.retval; + globals.drums3___28685 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1626_VT); + s.tmp_0 = r0; + s.tmp_1 = music_Melody_constructor__P1629_mk(s); + s.tmp_1.arg0 = s.tmp_0; + if ((globals.tempo5___28668) && (globals.tempo5___28668).vtable) { + setupResume(s, 139); + pxsim_String__stringConv(globals.tempo5___28668); + checkResumeConsumed(); + return; + } else { s.retval = (globals.tempo5___28668) + ""; } + case 139: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat("@0,75,50,50 ~15 e1-", s.tmp_4); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 140); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 140: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, " e e e e e e e# e e e e e b a# a"); + s.tmp_1.arg1 = r0; + s.callLocIdx = 228; s.pc = 138; return s.tmp_1; + case 138: + r0 = s.retval; + globals.b3___28705 = (s.tmp_0); + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, globals.hihat3___28673); + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_0); + r0 = pxsim_Array__mk(); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_2, globals.drums3___28685); + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); r0 = pxsim_Array__mk(); + s.tmp_3 = r0; + r0 = pxsim_Array__push(s.tmp_3, globals.b3___28705); + r0 = pxsim_Array__push(s.tmp_1, s.tmp_3); + globals.tracks3___28717 = (s.tmp_1); + globals.beat4___28725 = (0); + globals.tempo7___28727 = (240); + r0 = (globals.tempo7___28727 * 2); + globals.tempo8___28730 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1626_VT); + s.tmp_0 = r0; + s.tmp_1 = music_Melody_constructor__P1629_mk(s); + s.tmp_1.arg0 = s.tmp_0; + if ((globals.tempo7___28727) && (globals.tempo7___28727).vtable) { + setupResume(s, 142); + pxsim_String__stringConv(globals.tempo7___28727); + checkResumeConsumed(); + return; + } else { s.retval = (globals.tempo7___28727) + ""; } + case 142: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat("@0,50,0,0 ~5 c8-", s.tmp_4); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 143); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 143: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, " c8 c c c c c @0,250,0,0 c"); + s.tmp_1.arg1 = r0; + s.callLocIdx = 229; s.pc = 141; return s.tmp_1; + case 141: + r0 = s.retval; + globals.hihat4___28732 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1626_VT); + s.tmp_0 = r0; + s.tmp_1 = music_Melody_constructor__P1629_mk(s); + s.tmp_1.arg0 = s.tmp_0; + if ((globals.tempo8___28730) && (globals.tempo8___28730).vtable) { + setupResume(s, 145); + pxsim_String__stringConv(globals.tempo8___28730); + checkResumeConsumed(); + return; + } else { s.retval = (globals.tempo8___28730) + ""; } + case 145: + r0 = s.retval; s.tmp_8 = r0; - r0 = pxsim_Array__push(s.tmp_8, globals.transparency16___4238); - r0 = pxsim_Array__push(s.tmp_8, globals.tile3___4240); - s.tmp_9 = tiles_createTilemap__P2598_mk(s); - s.tmp_9.arg0 = _hex6827; - r0 = pxsim.image.ofBuffer(_hex6829); - s.tmp_9.arg1 = r0; - s.tmp_9.arg2 = s.tmp_8; - s.tmp_9.arg3 = 4; - s.callLocIdx = 76; s.pc = 17; return s.tmp_9; - case 17: + r0 = pxsim_String__concat("@0,75,0,50 ~16 g1-", s.tmp_8); + s.tmp_7 = r0; + if ((s.tmp_7) && (s.tmp_7).vtable) { + setupResume(s, 146); + pxsim_String__stringConv(s.tmp_7); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_7) + ""; } + case 146: r0 = s.retval; - { step = 12; continue; } - case 9: - case 10: + s.tmp_6 = r0; + r0 = pxsim_String__concat(s.tmp_6, " g R g "); + s.tmp_5 = r0; + if ((s.tmp_5) && (s.tmp_5).vtable) { + setupResume(s, 147); + pxsim_String__stringConv(s.tmp_5); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_5) + ""; } + case 147: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_4, "@10,75,0,0 ~4 g5 @0,75,0,50 ~16 g1 R g g R g R"); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 148); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 148: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, "@10,75,0,0 ~4 g5 R @0,75,0,50 ~16 g1 R"); + s.tmp_1.arg1 = r0; + s.callLocIdx = 230; s.pc = 144; return s.tmp_1; + case 144: + r0 = s.retval; + globals.drums4___28744 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1626_VT); + s.tmp_0 = r0; + s.tmp_1 = music_Melody_constructor__P1629_mk(s); + s.tmp_1.arg0 = s.tmp_0; + if ((globals.tempo7___28727) && (globals.tempo7___28727).vtable) { + setupResume(s, 150); + pxsim_String__stringConv(globals.tempo7___28727); + checkResumeConsumed(); + return; + } else { s.retval = (globals.tempo7___28727) + ""; } + case 150: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat("@0,75,50,50 ~15 e1-", s.tmp_4); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 151); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 151: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, " e e e e e e e# e e e e e b a# a"); + s.tmp_1.arg1 = r0; + s.callLocIdx = 231; s.pc = 149; return s.tmp_1; + case 149: + r0 = s.retval; + globals.b4___28764 = (s.tmp_0); r0 = pxsim_Array__mk(); - s.tmp_10 = r0; - r0 = pxsim_Array__push(s.tmp_10, globals.transparency16___4238); - s.tmp_11 = tiles_createTilemap__P2598_mk(s); - s.tmp_11.arg0 = _hex6836; - r0 = pxsim.image.ofBuffer(_hex6838); - s.tmp_11.arg1 = r0; - s.tmp_11.arg2 = s.tmp_10; - s.tmp_11.arg3 = 4; - s.callLocIdx = 77; s.pc = 18; return s.tmp_11; - case 18: + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, globals.hihat4___28732); + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_0); + r0 = pxsim_Array__mk(); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_2, globals.drums4___28744); + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = pxsim_Array__mk(); + s.tmp_3 = r0; + r0 = pxsim_Array__push(s.tmp_3, globals.b4___28764); + r0 = pxsim_Array__push(s.tmp_1, s.tmp_3); + globals.tracks4___28776 = (s.tmp_1); + globals.playing___28784 = (true); + s.tmp_0 = game_onUpdate__P2811_mk(s); + s.tmp_0.arg0 = inline__P28786; + s.callLocIdx = 240; s.pc = 152; return s.tmp_0; + case 152: r0 = s.retval; - { step = 12; continue; } - case 11: - r0 = null; - case 12: + s.tmp_0 = game_onUpdateInterval__P2812_mk(s); + r0 = (60000 / globals.tempo___28536); + s.tmp_1 = r0; + r0 = (s.tmp_1 * 8); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = inline__P28838; + s.callLocIdx = 242; s.pc = 153; return s.tmp_0; + case 153: + r0 = s.retval; + s.tmp_0 = forever__P1927_mk(s); + s.tmp_0.arg0 = inline__P28882; + s.callLocIdx = 268; s.pc = 154; return s.tmp_0; + case 154: + r0 = s.retval; + s.tmp_0 = game_onUpdateInterval__P2812_mk(s); + s.tmp_0.arg0 = 100; + s.tmp_0.arg1 = inline__P28976; + s.callLocIdx = 287; s.pc = 155; return s.tmp_0; + case 155: + r0 = s.retval; + s.tmp_0 = game_onUpdateInterval__P2812_mk(s); + r0 = (60000 / globals.tempo3___28609); + s.tmp_1 = r0; + r0 = (s.tmp_1 * 8); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = inline__P29058; + s.callLocIdx = 289; s.pc = 156; return s.tmp_0; + case 156: + r0 = s.retval; + s.tmp_0 = game_onUpdateInterval__P2812_mk(s); + r0 = (60000 / globals.tempo5___28668); + s.tmp_1 = r0; + r0 = (s.tmp_1 * 8); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = inline__P29108; + s.callLocIdx = 291; s.pc = 157; return s.tmp_0; + case 157: + r0 = s.retval; + s.tmp_0 = game_onUpdateInterval__P2812_mk(s); + r0 = (60000 / globals.tempo7___28727); + s.tmp_1 = r0; + r0 = (s.tmp_1 * 8); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = inline__P29158; + s.callLocIdx = 293; s.pc = 158; return s.tmp_0; + case 158: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -myTiles_inline__P6795.info = {"start":515,"length":4817,"line":11,"column":40,"endLine":98,"endColumn":5,"fileName":"tilemap.g.ts","functionName":"inline","argumentNames":["name"]} +_main___P30613.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"main.ts","functionName":"
","argumentNames":[]} +_main___P30613.continuations = [ 42,43,44,45,109,110,112,113,114,115,117,118,120,121,123,124,125,126,128,129,131,132,134,135,136,137,139,140,142,143,145,146,147,148,150,151 ] -function myTiles_inline__P6795_mk(s) { +function _main___P30613_mk(s) { checkStack(s.depth); return { - parent: s, fn: myTiles_inline__P6795, depth: s.depth + 1, + parent: s, fn: _main___P30613, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1821,27 +2098,39 @@ function myTiles_inline__P6795_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - arg0: undefined, } } -const _hex6802 = pxsim.BufferMethods.createBufferFromHex("1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex6804 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex6810 = pxsim.BufferMethods.createBufferFromHex("1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex6812 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex6818 = pxsim.BufferMethods.createBufferFromHex("0a000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001010101010101010101010101010101010101010101010101010101010101010101010101010101") -const _hex6820 = pxsim.BufferMethods.createBufferFromHex("87040a000a0000000200000200000000020000020000000002000002000000000200000200000000020000020000000002000002000000000200000200000000020000020000000002000002000000000200000200000000") -const _hex6827 = pxsim.BufferMethods.createBufferFromHex("0a000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001010101010101010101010101010101010101010101010101010101010101010101010101010101") -const _hex6829 = pxsim.BufferMethods.createBufferFromHex("87040a000a0000000200000200000000020000020000000002000002000000000200000200000000020000020000000002000002000000000200000200000000020000020000000002000002000000000200000200000000") -const _hex6836 = pxsim.BufferMethods.createBufferFromHex("1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex6838 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex4395 = pxsim.BufferMethods.createBufferFromHex("1f00210023002500270029002c002e003100340037003a003e004100450049004e00520057005c00620068006e0075007b0083008b0093009c00a500af00b900c400d000dc00e900f70006011501260137014a015d01720188019f01b801d201ee010b022a024b026e029302ba02e40210033f037003a403dc03170455049704dd0427057505c80520067d06e0064907b8072d08a9082d09b9094d0aea0a900b400cfa0cc00d910e6f0f5a1053115b1272139a14d41520178018f519801b231dde1e") +const _hex12022 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") +const _hex12024 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") +const _hex20221 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") +const _hex4476 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") +const _hex5014 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") +const _hex5016 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") +const _hex5018 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") +const _hex5020 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex5022 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex5024 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex5026 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex5028 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex5030 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex5032 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex5034 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex6819 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex6823 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex6827 = pxsim.BufferMethods.createBufferFromHex("8704100010000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff") +const _hex6831 = pxsim.BufferMethods.createBufferFromHex("87041000100000007777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777") +const _hex28461 = pxsim.BufferMethods.createBufferFromHex("8704a000780000009999999999999999696966999999666666bb4b44444444444444464444efdbefffffffffdfbbbbbbcbcdbcbbbbbbccddbbbbbbbbccccbbbcbddbddd49999999999999999999999999999666666664b44444444444444344444fffeffffffffffdfbdbbbbcbbdbbbbbbdbddbcbbbbbbbbccccccdcbdd4d4dd999999999999999999699999999966666666464b444444444444444444ffffffffffffffcfbdbbbbbcbbbbbbbbbbcdbbbbbbbbbbccccccdcebdbdddd9999999999999999999999999999696666664b464444444444444444e4eeffffffffffffcfddbbcbdcbbbbbbccbdcbbbbbbbbbcbccccccdcebd4dddd999999999999999969999999999969666666664bb44444444444d4ddebfeffffffffffffcfdfcdcbdcbbccbbdcbcccbbbbbbbbcbccccccdced33dddd9999999999999999999996999969666666666644644664464444d4edeeffffffffffffffffbccbcbdcbbccbbdbbbbcbbbbbbbbcbcccccccc4ddddbdd9999992922222222222222999969666666662222666644644444d4edefeffeffffffffffffbbcbcbdcbccccbdbbbccbbbbbbbbcbccccccbcb4dddddd9929222222222222222222229299666666662222b46b44444444ddddfedffdffffffffffffcfcbcbbcbccccbdbbbccbbccbbbbcbccccccbc44d4dddd99292222222222222222222222226266662b222244444444d4ddddebeeefffffffffffffffffcbccbbbbcccbdcbbcbbbcccbbbbbccccccbc4bd4ddd4992922229299992222922222222222222222224244444444d4ddddb4ebeefffffffffffffcffccbcbbbbcccbbcbbbbbbbcbbbbbbcccbccbc44dddddd992922229999992222929929222222222222224244444444d4ddd3ddeefeffffffffffffffffccccbbbbcccbbcbbbbbbbbbbbbbbcccbccbc444bdd4499992222929999222222999999292222222222424444444444dddd4de4feffffffffffffffffccccbbbbcccbbcbbbbbbbbbbbbbbcccbccbb4bd4dd4499992922229929222222929999662622222222424444444444dddd4dddfeffffffffffffffcfccccbbbbbccbbcbbbbcbbcbbbbbbcbbbccbb44dddd449999992222922222222222999966292222b644444444ffff44dd443d44feffffffffffffffcfccccbcbbbcbbccbbbbcbbbbbbbbbcbbbccbb44dddddd9999992922222222292222922922222262664b44644644ffffddd44debffffffffffffffffcfbccbccbbbcbbccbbbbcbbbbbbbbbcbcccc4b44dddddd9999992922222222992922222222222266666b44644644d4f34fdded4effffffffffffffffccbccbccbbbcbbccbbbbcbbbbbbbbbcbcccc4bd4ddddd49999999929222299992922222222226266b6b644644644d44bfdffffffffffffffffffffffccbbccccbbbbbbccbbbbcbbbbbbbbbcbcccc4bd44ddddd999999999999996996992922226266666666664b4464d4fffffffffdffffffffffffffffcfccccccccbbbbbbccbbbbcbbbbbbbbbcbccbcbb444444dd99999999999999699999999999996966ddddbd64664444df344446fd44feffffffffffffcfcccccccbbcbbbbcbbbbbcbbbbbbbbbcbccbc4bdbdddd3499999999999999999969996922229266bdcbcb4b4b44443434f4ffdf44ffffffffffffffcccccbbcbbccbbbbcbbbbbcbbbbbbbbbcbccbcbb34d4dddd999999999999999999992922222222b2bdcbcbcc4c64464bffffdfdd44ffffffffffffcfccccccbcccccbbbbcbbbbbccbbbbbbbbcbccbcbb34d4dddd99999999999999999929222222222222b2cbbbbccc444644ff44d44444feffffffcfbfcbccccccbbcccbbcbbcbbcbbccbcbbbbbbbbccbcbbd4dddddd9999999999999929222222222229222222cbbbbccbccddddcdbbcbccccccccccccccccbcbcbbccbccbbbbbbbcbbcbcccbcbbbbbbdbccbc4bdb4dd4dd9999999999992922222222929996292222b2bbbcbcccbdbcbbbbbbccccccccccccccccbbccbbccbccbbcccbbcbccccccbcbbbbbbdbccbc4bd4dddddd9999999999292222222292999996992922f2bbbcbcccbbccbbbcbbbbcbbbbbbbcbccbcbbcccbcccccbbccccbcbccccccbcbbbbbbdbccbbbbd4dddddd9999999999222222929999999969999922c2cbbcbbccbbbbbbbcccbccccbbccbccccbcbbcbbccbccccbcbccbcccbccccbcbbbbbbdbccbbbbd4dddddd9999999922222292999999999999992622c2bbbcbbcccbbcbbbbbbbbbbcbbcbbbcbbcbbcbbbccbccccccbccbbccbccbbbcbbbbbbdbbcbb4bd4dddddd9999992922229299996999999999962222c2cbccbccccbbcbbbbbbbbbbbbbbbbbbbbcbcbbccccbccbcccbccbbcccccbbbbbbbbbbcbbcbbbbd4dddddd9999992922229999999999999999292222cbcbbcbcccbbbbccbbccccccccbbcbbcbbbccbcccbcbccccccbbcbbcccccbbbbbbbbbbcdbcbb4bd3dddddd99999929229299969999999999992222b2cbcbbcbbccbbbbcbcbccccccccbbccbcbbbcbbbbcbcbccccccbbcbbcccccbbccbbbbbbcdbcbbbbd4dddddd99999929229299996996999999292222b9bbbbbcbbccbbccbbcbbcccccccbbccbbbbbbcbbcbbcbccbcccbcccbcccbccbccbbbbbbcdbcbbbbe4dbdddd99999929229299996996999929222292b9b6bbbccbccbbbcbbcbccccccccbbbbbbccbbbbbcbbcbccccccbcccccccbcccccbbbbbbcbbcbb4b44dddddd99999999222299996996662922222299bdcbcbbcccccccbccbbcccccccccbbbbbbcbbcbbbbbbcbccbbcbbcccccccbcccbcbbbbbbcbbcbb4bddd4dd4d99999999222292996996262222229299bdcbccbcccddbbbbcbbcbbbbbbbbccbbbbcbbcbbbccbcccccbccccccccccbcccbbbbbbbbcbbceb4edddddddd999999992922229922222222229299b9bbcbbbcc4cddcbccbbbbbbbbbbbbccbbcbbcbbcbbccccbcccbccccccccccbcccbbbbbbbbcbbccb4edddddddd99999999992222222222222292999969b9bbcbbcf4bdccccccbbbcbbbcbbbcbbccbbbbcbbcbcccbbcbccccccbcccbbcccccbbcbbcbbbccdcdddddddd9999999999222222222222c2ccbbbb996b464444ffbdcc44ccbbcccbbcbcbbbbcbbbbbbbbbbbccbbcbccccccbccccbcccccbbbbbcbbbccdcdddddddd999999999999222222ccbcccccbbcb6c4b4444444fbbccc4bbbbbccbbbbcbbcbccccccccccccbccccbcccccccccccbbccccbbbbbbbbbcc4bdddd4ddd999999999999d9ddcbcbbcccbccccbbc2922444b64bbccccbbbbbbcbbbbbccccccccccccccccbccccbccccccbccccbbccccbbbbbbbbbbc4bddddd3dd9999999999ddbdcbcccbbcccbcbbcbcc2222bbccccccccccbbbbbbcbbbccccccccccccccccccbccccbcccccccccccbccbccbbbbbbbcbbcdddddddddd99999999ddbdcc222222b2ccbcbbcccc2222bccbccccccbbcccbbccbcbccbbbbbbbbbbbbbbbbbbcccbccccccccccccccbccbbbbbbbcbdc44d4dddddd99999999cdcc2222222222ccbcbccc2222c2bcbbbbbbcbbbbbcbbcbbccccccccccccccccccccbccccbccbcccccccccccbccbbbbbbbcbbb4bdddddddd99999999b92b222222222222bcbc2c2222b2bbbbbcbbcbcbbcbbbbcbbcbbbbbbbbbbbbbbbbbbbbcccbccbbccccccccccbccbbbbbbbccbbdddddddddd9999999929222222cc222222222b222222cbbbbbbcbbbbcbbcbbbbcbccccccccccccccccccccbccccbccbbccccccccccbccbbbbbbbccbbdddddddddd99999999292222bbcbcb222222222222bbcbbbbbbbbbbbbbbbcbbcccbbbbbbbbbbbbbbbbbbbbbbcccbcccbccccccccccbccbbcbbbbccbbbbdddddddd99999999222292b9cbccbc22222222c2cbbccccccccccbbbbbcbbcccccccccccccccccccccccbccccbcccbccccccccccbccbbcbbbbbcbb4bdddddddd9999999922229999c9ccbccb2222c2bccfcccccccccccccccccbbbccbbbbbbbbbbbbbbbbbbbbbbcccbcccbcccccccccccccbbcbbcbbcbbdddddddddd999999992292999969bbbccbccbbbb69dbbbcbcc4444ddbcbbbbbbcbccccccccccccccccccccbccccbcccccccccccccccccbbcbbcbbcbb3bdddddddd99999999999999999999bbbb666666f6dbbbcb4c444434bdbbbbbbbbccbcbbbbbbbbbbbbbbbbbbcbbbcbccccccccccccccccbcbbcbbcbbbbdddddddd99999999999999999999b6bb66666666ddbccc4444b4d4cccbbbccbbcbccccccccccccccccccccccccccbcccccccccbcccccbcbbcbbbbbdbddddd4dd99999999999999999999996666666666bd22c2fb4fb4ddcccbbcccbbbbcccccccccccccccccccccccccccccccccccbccccccbbbbcccbbbd3ddddd4dd999999999999996999696666666666662222c2444f44ddccccbcccbbcbbcbbcbccccccccccccccccccccccccbcccbcccccccbbbbccccbbdbdddd44dd999999999999222222926666666666262222c24c44dd4fccbbbbbbbbcbccbbbbbbbbcbcbbbbbbbccccccccccccccbcccccccbbbbccccbbd4dddddddd999999992922222222222222666666222222cbecb4ffffcccbbbcbbcbbbbbbbbcbbbccccbcbbbbcbccccccccccccbcccccccbbbbccccbbd4dddddddd9999999922222222222222222222222222b2bbccdcddfdcccbbbcbbcbbbbccbbcbbbcccbbbcbcccbccccccccccccbcccccccbbbbbcccbbd4dddddddd99999929222222992922222222222222b2bcbbbbbcbbbbccccbcccccccbccbbbbbbbbbbbbbbbbbccccccccccccccbcccccccbbbbbcccbbdddddddddd9999992922929999d9cdcb2222222222b6ccbcbbbbbbbbcccbcbcccccccccbbcbbcbbcbbbbbbbbcbcccccccbccccbcccccccbbcbbcbcbbddd4dddddd9999992922999999d9bb22b2bbcbcccccbcccccbccccccccbbcbbccccccccbbcbccbbcbbbcbbbbcbcccccccbcccbbcccccccbbcbccbcbbdddddddddd999999999999992922222222222222b2bbbbbbbbcbccccbccccbccccccccbbbbcccbbccbbcbbcbccbccbcccbcccbbcccbcccbbbbcbbcbb44ddd4dddd99999999999922222222222222222222b2bbbbbcbbbbcbbbccbbccccccccbbbbccbbbbcbbcbbcbccbccccccbcccbbcccbcccbbbbcbbcbb44dd3dd4dd9999999999292222222222222222222222b2bbbbbbbbcbbcbcbbbbbbbbbbbbccbbbbbbcbbbbbcbcccccccccbcccbccccbcccbbbbcbbcbb44dddddddd9999999999222222922d22bcbccb2c222222bbbbcbbccbcbbccbbcbccbccbbcbbcbbbcbbbbbbcccccccccccbcccbccccbcccbbbbcbbcbbdbdddddddd9999999929222299992922b2bcccbc2c2222cbbcbbbbcbbbbcccbcbcbcccbbbbccbbbcbbbbbbcccccccccccbcccbccccbcccbbbbcbbbbbdbdddddddd9999999922229299992922c2ccccbccb2222cbbcbbbbbbcbbcbbbbcbbcbbbbccbbcbbcbbbbccccccccccbcccccccccccbcccbbbbcbbbbbdbdddddddd999999992222999999d922c2cccbcccbbbbbcbcccccccccccccccccccccccbccbbcbbbbbbbccccccccccbcccccccccccbcccbbbbcbbbbbd34bdddddd9999999922929999d9dd22b2ccbbccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccbcccbbbbcccbbcd4dddddddd9999999999999999b9cd22c2ccbb6666cb4c4444f44fd4dddddddddd4dddddffcccccccccccccccccccccccccccbccccbcccbbbbbbbbbc444d44dddd9999999999999999b9cbcbbccb6b66666bbb4444f44fd4ddddd4fdff4dddddffcfccccccccccbcccccccccccccccccccbcccbbbbbbcbcc4bdddddddd9999999999999999b9bbcbbccb66666666bb444444ffd44ddd4dffffdfddddfdffcfbccccccccccccccccccccccccccbbcccbbbbbbccccdbdddddddd99999999999999699969666666666666b6664644444fd43dddddfdddffffffffffffccccccccccccbccccccccccccccbbbccbbbbbbccccdddddddddd99999999999999999969666666666666b66b44444464d44d4dddddddfffffdffffffccbcccccccccccccccccccccccccbbccbbcbbbcccbdd4ddddddd99999999999999999999996699666666b6b4444464664dd44dddddddddddddfdffffccbbccccccccccccccbcccccccccccbcbbcbbbcccbdbdddddddd99999999999999999969996966666666b6b4b4b64444ddddddddddddddddddffffffcfbcbbcccccbccccccccccccccccccbbbbcbbbcccbdbdddddddd99999999999999999622222222626666b6b4b4464444d4ddddddddddddddddffffffcfccbbcbccbcccccccccbcccccccccbbbbcbbbbcbbdcdddddddd99999999999922929922222222222222b2464b44444634dddddddddddd4dfdffffffffffcccccccbccccccccccccccccccbbbbcbbbbcbbbbdddddddd9999999999992292992222222222222262464b4444444df44fddddddddffffffffffffcfcccbcccccccccccbbcccccccbcbcbbcbbcbcbb34dddddddd999999999999229269999996262222226246b44444664bfdffffffffffffffffffffffbfcccbcccccccccccbbcccccccbbccbbcbccbcbb34dddddddd9999999999999999969999969969666666b6bb64444434ddffffffffffffffffffffffcfcccccccccccccbccbcccccccbcccbbcbccbcbbdbdddddddd999999999999999999999999996666f66666b6444644f4ffffffffffffffffffffffffcfcccccccccccccbccbcccccccbcccbbcbcbbcbbdbdddddddd999999999999999999699969669666f6ff6fffffffffffffdfddddffffffffffffffffcfcbccccccccccccccbcccccccbcccbbcccbbcbb4bd4dddddd999999999999999999996966966666666666b62242f4ffdfddd4ddddddddffffffffffffccccccccccbcccccbccbccccbcbcbbcccbbcbb44d4dddddd999999999999999999292222226966669666262242f43fdb4dddddddddddfdffffffffffcfccccccccccccbcbbccccccbcbbbbcccbbcbb44dddddddd9999999999999999292222222299666666662222f24f44ddddddddddddddddffffffffffcfcccccccccccbbccbccccccbcbbcbbccbbcbb4bd4dddddd99999999999999222222222222666666666622224f4444ddddddd4ddddddddffffffffffcfcccccccccccccccbccccccbcbbcbbccbbbbbdb44d4dddd9999999999992922222222222266666666262222444b44dddddddddd4dddddfdffffffffcccbccccccbcccccccccccccbbbbcbbccbbbbbd34dd4dddd99999999999929222292222292966666262222b2464444fdffdddddd4dd4ddfdffffffffbccbccccccccccccccccccccbbbbccbccbbbbbd4dddddddd99999999999929229922222296666666262222bb6bbbb4d4ffdfdddddddd4dfcffffffffbccbccccccccccbcccccccccbbbbccbcccbbbb44dddddddd99999999999999992222226296666666222262bb6b4bb4ddddffffddddddddfcffffffffcfcfccbcccccccccccccccccbbbbccbbcbbbbb44dddddddd99999999999999992222222299696622222266b6bbbb6bdd4dddffffddddbbfdffffffffffcccccbccccccccccccccccbbbbccbbbbbbbb3bddddddd499999999999996992222222222226622226266b6bb6bbbd3ddddddffffffffffffffffffcfbbcccbcccccccccbccccccbbbbccbbbbbbbb44dddd4ddd9999999999999999292222222222222222666666466bd6ddddddffffffffffffffffffffffbfccbbbcccccccccccbcccbbbbccbbbbbbbb44d4dddddd9999999999999999999999222222222262666666b66b4b3ddd4ddfddddffffffffffffffffbcbcbbbcccbcccccccbcccbbbbccbbbbbbbb44d4dddddd9999999999999999999999999922222266666666666bd6dbddddddddddddfdffffffffffffbfbcbbbcccccccccccbcccbbbbccbbbbbbbb44ddddd4dd9999999999999999999699699699666666666666666696ddddddddddddddddfdffffffffffcfccbbccccccccccccbcccbbbbccbbbbbbbb44dddddddd9999999999999999999999699622222262666666b66666ddddddddddddddddfbffffffffffffbcbbcbcccccccbccbcccbbbbbcbbbbbbbb44dddddddd9999999999999999999929222222222262666666666666ddddddddddddbddbfdffffffffffffcfbccbcccccccbccbcccbbbbbcbbbbbbbb4bdddddddd999999999999999999292222222222226266666666bb44ddddddddd4dddddcfdffffffffffffcfbccccccccccbccccbcbbbbbcbbbbbbbb44dddddddd9999999999999999222222222222222262666666b6f44fbbddddddddffffffffffffffffffffbfcccccbcccccbccccbcbbbbbcbbbbbbbbebdbdddddd96999999999999292222229222222222666666666bff4fddddddfdffffffffffffffffffffffcfcccccbccbccbbbccbcbbcbbcbbbbbbbb4edddddddd96999999999999222222929922226266666666f6ff6f44d4d4ddfddfddddddfdffffffffffffcfcbbcbbbbcbbcbbccbcbbcbbcbbbbbbbbe4d4dddddd96999999999999222299996922226666666666f6bb4444d4d4dddddddd4dddf4ffffffffffffcfcbbcbbbbcbbcbbccbcbbcbbcbbbbbbcb44dddddddd96999999999999229299999922929666666666f64b6444d6d4d6ddddddddddffffffffffffffcfbbbbbbbbcbbcbbccbcbbcbbcbbbbbbcb4edddddddd96999999999999999999699622226666666666f6bfb4d4dddddbddddddddfdffffffffffffffffcbccbbbbcbbcbbcbbcbbcbbcbbbbbbccecd3dddddd9699999999999999999999992222626666666666ff4fd4ddddddddddddddffffffffffffffffffbbccbbbbcbbcbbcbbcbbcbbcbbbbbbccccdddddddd9999999999999999999999992922226266666666ffffffffffffffffffffffffffffffffffffffbfcbbcbccbbcbbcbbcbbcbbcbbbbbbccbcdddddddd999999999999999999999999692222222266666666ffffffffffffffffffffffffffffffffffffbccbccbcbbccbbcbbcbbcbbcbbbbbbccccd3dddddd9999999999999999999999999929222222666666b644ffffffffffffffffffffffffffffffffffbccbccbccbcbbccbbcbbcbbcbbbbcbccecd4d4dddd9699999999999999999999999969222222666666b6f4ffffffffffffffffffffffffffffffffffbccbccbccbcbbbcbbcbbcbbcbbbbcbccecdbdddddd9999999999999999999999999969662262666666b6ff4f44ddffffffffffffffffffffffffffffbccbccbcccccbbcbbcbbcbbcbcbbcbccec33dd4ddd9999999999999999999969999999666666ffffffff6f6d64ddddddddddfdffffffffffffffffffbcbbcbbbccccbbcbbcbbcbccbcbbcbcbccdbdddddd9999999999999999999969229299666666f66f66f6b63dd4ddddddddddddfdffffffffffffffffccdbcbbbccbcbbccbcbbcbccbcbbcbcbccdbdddddd99999999999999999999992292996666666666666f46db4d4d44ddddddddffffffffffffffffffcfbdcbbbccbcbbccbcbbcbccbcbbcbcbccdddddddd99999999999999992922222222226266666666ff664b4b444b44ddddffffffffffffffffffffffcfbbccbbcbbccbccbcbbbbccbcbbcbccccbdd4dddd999999999999992222222222222222666666f66f66bbbb44b4b4ddfdffffffffffffffffffffffcfbbccbbcbbccbccbcbbbbccbcbbccccbcbdd4dddd996999999999992222222222222222626666666666b6d4db4d44ddddddfdffffffffffffffffffcfbbbcbbcbbbcbccbcbbbbccbcbbccccccbc4dd44d99999999999999222292662262292222666666666666444dddd4ddddddffffffffffffffffffffffccbcbbccbbccccbcbbbbccbbbbccccccdcdddd4d99999999999999999999962262662222626666666666d4ddddddddddddffffffffffffffffffffffcfbcbbccbbcccbbcbbbbccbbbbccccccbcdddddd99999999999999999999992262962622226666b66666dbddddddddffffffffffffffffffffffffffccbcbbbbbbcccbbcbbbbccbbbbccccccbcdddddd9999999999999999999929229269262222666666666666ddddd4ddddffffffffffffffffffffffffccbcbbbbbbccccbcbbbbccbbbbcbccccdcdddddd99999999999999969999262292696626226266666666dbddddddddffffffffffffffffffffffffffccbbbbbbbbccccccbbbbccbbbbbbcbccdcdddddd99999999999999999999262299696626226266666666f6ffffddfdffffffffffffffffffffffffffcfbcbbbbcbbcccccbbbbccbbbbbbcbccdbdd4dd4999999999999999999692622999666662262666666ffffffffffffffffffffffffffffffffffffffcfbcbbbbcbbcccccbbbbccbbbbbbcbccbbdddddd9999999999999999996629229999662622626666666f6bd4ddfdffffffffffffffffffffffffffffbccccbbbccbbcccbbcbbccbbbbbbcbccbcdddddd999999999999999999692922996966222262666666666696d6ddfdffffffffffffffffffffffffcfbbcccbbbccbcbbcbbcbbccbbbbbbcbccbcdbdddd999999999999996999669669666666222266666666666bd6d6ddfdffffffffffffffffffffffffffbbbbccbbccbcbbcbbcbbbbbbbbbbccccbcdddddd999999999999999999666696696666226266666666bb6bd9ddddffffffffffffffffffffffffffcfbbbbccbbccbcbbbbbcbbbbbbbbbbccccbcdbdddd999969999999999999999999996966f6666666666646ddddddfdffffffffffffffffffffffffffcfbbbbccbcccccbbbbbcbbbbbbbbbbccccbcdddddd999999999999999999999999696966f6ff666666664bfbffffffffffffffffffffffffffffffffccbbbbccccccccbbbbbcbbbbbbbbbbbbccccdddddd99699999999999999999996996666666ff666666bbbbbdddfdffffffffffffffffffffffffffffffbbbbcbccccccbbbbccbbbbbbbbbbbbccbcdddddd99999699999999999999999696666666f66f666646644bfdffffffffffffffffffffffffffffcfccbcbbbbccccccbbbbccbbbbbbbbbbbbccccdddddd99999999999999999999999999ffffff66f66fb6464bf3ffffffffffffffffffffffffffffffcfccbcccbbcccbccbbbbccbbbbbbbbbbbbccccdbdddd999969999999999999999969ff6f66f6ff66ffbf44ffffffffffffffffffffffffffffffffffffccccccbcccccccbbbbbbbbbbbbbbbbbbccccdddddd9999999999999999999999699f696666f66fffffffffffffffffffffffffffffffffffffcfccffccccccbccbccbbbbcbccbbbbbbbbbbbbccbcdbdddd9999999999999999999996696666666666ffffffffffffffffffffffffffffffffffffffdcbdbccbccccbccbccbbbbcbccbbbbbbbbbbcbccbc3bdddd999999999999999999999999996666666666666644ffffffffffffffffffffffffffffccbdbbbbcbbcccbccbccbcbbcbccbbbbbbbbbbcbccbb3ddddd999999999999999999999996996666666666664bf4ffffffffffffffffffffffffffffdcbcbbccbbbbcbbcbbccbcbbcbccbbbbbbbbbbcbbcbb4ddddd999999999999999999999996696666666666666bffffffffffffffffffffffffffffffbbbbcbbccbbbcbbcbbccbcbbcbccbbbbbbbbbbcbbcbbddd3dd999999999969999699999996696666ff6666b6ffffffffffffffffffffffffffffffcfbbbbbcbbcbbccbbcbbcbbcbbcbccbbbbbbbbbbcbccbbbddbdd999999999999999999996996696666ffffffffffffffffffffffffffffffffffffffcfccbbcccccbbccbccbbcbbcbbbbccbcbbbbbbbbcbccbb4bdddd9999999999999999699966966669666666fff6fffffffffffffffffffffffffffffffccccccccccbbccbccbbbbccbbbbccbcbbbbbbbbcbccbbdbd4dd99999999999999999999699669666666f66ff6ffffffffffffffffffffffffffffffccccccccccccbcbbccbbbbccbbbbccbcbbbbbbbbbbccbb3b4ddd999999999999999969996696696666666666ffffffffffffffffffffffffffffffdfccccccccccccbcbbccbbbbccbbbbccbbbbbbbbbbbbccbbdbdddd9999999999999999999699666666666666f6ffffffffffffffffffffffffffffffbfbbccbbbbcbccbbbbcbbbbbcbbbbbbcbbbbbbbbbbcbccbbdb4ddd9999999999999999996996666666666666ffffffffffffffffffffffffffffffffccbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcbbbbbbbbbbcbccbb4b44dd9999999999999999996999696666666666ffffffffffffffffffffffffffffffffccbcbbbbbbbbcbbbbbbbbbbbbbbbbbbcbbbbbbbbbbcbccbbbbdddd99999999999999999669996666666666f6ffffffffffffffffffffffffffffffffcbbcbbbbbbbbccbbbbbbbbbbbbbbbbccbcbbbbbbbbcbccbbbbdddd99999999999999999669996666666666f6ffffffffffffffffffffffffffffffcfccbcbbbbbbccbcbbbbbbbbbbbbbbbbccbcbbbbbbbbcbccbbdbdddd99999999999999999999666666666666ffffffffffffffffffffffffffffffffdfbbcbbbbbcbccbbbbbbbbcbbbbbbbbbccbbbbbbbbbbcbcbbb4bdddd999999999999996996696666666666f6ffffffffffffffffffffffffffffffffdcbbcbbbcbccbbbbcbbbcbccbcbbbbbbccbbbbbbbbbbcbcbbc4bd4dd999999999999999969969666666666f6ffffffffffffffffffffffffffffffcfbfbbcbcccbbbcbbcccbccccbbcbbbbbbccbbbbbbbbbbcbcbbcbb44dd999999999969999999699966666666ffffffffffffffffffffffffffffffffcfbcbbcbccbcccccccbcccccbbbbbbbbbbccbbbbbbbbbbcccbbc3bd4449999999999999999999996666666f6ffffffffffffffffffffffffffffffffdfcbccbbcbccccccbbbbccccbbbbbbbbbbccbbbbbbbbbbcccbbcdbd4dd9999999999999996969966666666ffffffffffffffffffffffffffffffffffbfccccbccbccccccbbbbcbcccbbcbbbbbbccbbbbbbcbbccccbbcdb44dd99999699999999999999666666f6ffffffffffffffffffffffffffffffffffbfcbcccccccbccbbbbbbcbcccbbcbbbbbbccbbbbbbcbbcccbbbbbb44dd99999699696669999969666666f6ffffffffffffffffffffffffffffdfddccbbbbccccbccbccbbbbbbcbccccbcbbbbbbccbbbbbbccbbccbbbbbbd4dd99699699999699999999666666ffffffffffffffffffffffffffffcfccccccbbbbbbbbbbbbcbbcbbbcbbccccbbbbbbbbccbbbbbbccccbcbbbbccdddd996966669999969999996966f6ffffffffffffffffffffffffcfccccccccccbfbbcbbbbbbbbbcccbbcbbbbccbbbbbbbbccbbbbbbbcccbcbbbbbcdddd999966999999999999996966f6ffffffffffffffffffffffccccccccccccccbccbccbcccbbbbccccbcbbbbcbbbbbbbbbccbbbbcbccccbcbbbbbbdddd999966999999996696996966ffffffffffffffffffffcfccccccccccccccccbccbccccccbcbbbcccbbbbcbbcbbbbbbbbccbbbbcbccccbcbbbbbbdddd999999999969999666996666ffffffffffffffffffffcccccccccccccccfcccccbccccccccccccbcbbbbcbccbcbbbbbbccbbbbcbccccbcbbbbbbdddd") +const _hex28480 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000ff0f00000000fffffffe000000f0efefefee0f0000f0ee2f4fe44ffe00efee2f4feddeed0feffe2eef44deedffeffefebfd1e4feffefeff2fedf2442ffffe2f24edd24520f2fe2f24edd2e520ff0e2e2effeffff0000ff2eef0f0000000000ffff000000000000000000000000") +const _hex28491 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000044aa44040000004000a0a0aa0000000444444404040040400000004040004040404444a04a0040aa400040404a00404a400040404a00a0aa40004040a000404040444440aa004040000000a040000004444444a40400004000a0a04a0000000044a44404000000000000000000000000000000000000") +const _hex28498 = pxsim.BufferMethods.createBufferFromHex("8704a0007800000099999999999999999999999999111111111111ddddddddddddddddddddbdbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999999999991119111111111111d1ddddddddddddddddddbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999999999191111111111111111ddd1d1ddddddddddddddbbbdbbbbbbbbbbbb777777777777777777777777777777777777777777777799999999999999999999191111111111111111ddddddddddddddddddddbdbdbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999999999999991911111111111111111111d1ddddddddddddddbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777779999999999999999999999111111111111111111111111b1bbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999999111111111111111111d1ddbddbbbbbbbbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777777999999999999999999999919111111111111111111d1ddbddbbbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999999911111111111111d11dd11dddbdbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999991911111111111111d1ddddddddbdbbbbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999991911111111111111d11ddd1dddbdbbbbbbbbbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999999999999999191111111111111111ddddddddbdbbbbbbbbbbbbbbbbbbbbbbbb7bbb7777777777777777777777777777777777777777777799999999999999991911191111111111111111ddd1ddddbdbbbddbdbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999911119111111111111111111dd1ddddbdbbbbbbbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777777799999999999999991111111111111111111111ddd1ddddddddddddddddbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777799999999999999991111111111111111111111ddd1ddddddddddddddddddbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999919911111111111111111111111ddddddddddddddddbbbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777779999999999991111191111111111111111dddddddddddddddddddddbbbbdbdbbbbbbbbbb77b77777777777777777777777777777777777777777777799999999991911119111111111111111d1dddddddddddddddddddddbbbbdbdbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999991911111111111111111111dddd1dd1ddddddddddddddbbbbbbbdbbbbbbbbbbbb7b7777777777777777777777777777777777777777777799999999991911111111111111111111dd1d1dddddddddddddddddbbddbbbdbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999191111111111111111111111ddddddddddddddddddddddbbbbbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777799999999111111111111111111111111d11d1dddddddddddddddddddbdbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777779999999911111111111111111111111111111111d1ddddddddddbbbbbbbbbbbbbbbbbbbb7bb77777777777777777777777777777777777777777777799999999111111111111111111111111111111111111ddddddbdbbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999111111111111111111111111111111111111ddddddddddddddddbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999191111111111111111111111111111ddddddd1ddddddddddddddbbbbbbbddbbdbbbb77777777777777777777777777777777777777777777999999999999111111111111111111111111d1ddddddddddddddddddddbdbbbbbbddbbbd7b77777777777777777777777777777777777777777777779999999999191111111111111111111111d1ddddddddddddddddddddddddddbbbbddbbbdbb7777777777777777777777777777777777777777777777999999999911111111111111111111111111d1ddddddddddddddddddddddbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999991111111111111111111111111111ddddddddddddddddddddbdbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999191111111111111111111111111111d1ddddddddddddddddddbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999919111111111111111111111111111111d1ddddddddddddddddddbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999999919111111111111111111111111111111111111b1bbdbbbbbbdbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999991911111911111111111111111111d1ddddddddbdbbbbbbbbbbbbbbbbbbbb77bb777777777777777777777777777777777777777777779999999999999911911111111111111111111111d1ddddddddbdbbbbbbbbbbbbbbbbbddb7b7777777777777777777777777777777777777777777777999999999999999999111111111111111111111111ddddddddbdbbdbbbbbbdbbbbbbbbbbbb77777777777777777777777777777777777777777777779999999999999999991111111111111111111111d1ddddddddbdbbbbbbbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999999999111111111111111111111111d11dddddddddddbdbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777779999999999999919111111111111111111111111111dddddddddddddddddddbbbbbbbbbb7bb7777777777777777777777777777777777777777777779999999999999919111111111111111111111111d1ddddddddddddddddddddbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999911111111111111ddddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999911111111111111ddd1ddddddddddddbbdbdbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999119199111111ddd1ddddddddddbbbbdbbbbbbbbdbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999999999999999911111111ddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999991911111111ddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999991911111111ddddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777777999999999999999999999911911111ddddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999999999991911dd1dddd1d1ddddddddddddddddddddddbdbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999999999911ddddddddddddddddddddddddddddddddbdbbbbbbbbbb77777777777777777777777777777777777777777777779999999999999999999999999919111111111111d1ddddddddddddddddddddddddddbdbb7b7777777777777777777777777777777777777777777777999999999999999999999999991911111111111111d1ddddddddddbdbbbbbbbbbbbbbbbb7bbb77777777777777777777777777777777777777777777999999999999999999999999991911111111d1ddddddddddddddddbdbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999999999911111111d1d11d1dddddbdbbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999999999999911111111d1d11d1dddbbbbbbbbbbbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999999999999999999991111111111d1ddddbdbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999999191111111111d11dd1bdbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999999191111111111d1ddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbb77b7777777777777777777777777777777777777777777779999999999999999999999991911111111111111ddddddbbbbbbbbbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777779999999999999999999999111911111111d1ddddddddddddbdbbbbbbbbbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999999999999919119911111111ddddddddddddddddddddbdbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999991911111111111111111111d1ddddddddddddbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999999999999991911111111111111111111d1dddd1ddd11bddbdbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999991911111111111111111111dddddd1dd11dbdbbbbbbbbbbbbbbbb7bb77777777777777777777777777777777777777777777799999999999999999999991111111111111111111111d1dd1dd11dddddddbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999999111111111111111111d1ddddddddddddddddbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999919111111111111111111ddddddddddddddddddddddddddbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999919111111111111111111d1ddddddddddddddddbbbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999999999999999991911111111111111111111d1ddddddddbdbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777779999999999999999999999991119111111ddddd1dd1dddddddddddbbbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777779999999999999999999999999919111111ddddddddddddddddddddbbbdbbbdbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999999999999999999919111111dddddddddddddddd1dddb1bbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777779999999999999999999999999919111111ddddd1dd1dddddddddddbddbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777779999999999999999999999999999111111ddddddddddddddddddddbdbbbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777799999999999999999999999999999911111111ddddddddddddddddbdddbbbbbbbbbbbbbb77bb7777777777777777777777777777777777777777777799999999999999999999999999999911111111111111d1ddddddddbddbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999999999999999999999999911111111111111d1ddddddddbdbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777779999999999999999999999999999d9ddddddddddddddddddddbdbbbbbbbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999999999999999999999d1ddd1d1ddddddddddddddbdbbbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777777799999999999999999999999999d1ddddd1dddd1dddddddddddbbbbbbbbbbbbbbbbbbbbbb7bb77777777777777777777777777777777777777777777799999999999999999999999999d9ddddddddddddddddddddbdbbbdbdbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999999999999999d9ddddddddddddddddddddbdbbbbdbbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777779999999999999999999999999911d1ddddddddddddddddddddbbbdbdbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777779999999999999999999999111911d1ddddddddddddddddddddddddddddbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999999999999919111111111111111111111111ddddddddddddddbdbbbbbbbbbbbbbb777777777777777777777777777777777777777777779999999999999999999919111111111111111111111111ddddddddddddddbdbbbbbbbbbbbbbb777777777777777777777777777777777777777777779999999999999999999919111111111111111111111111111111ddddddbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999999999999999991111111111111111ddddddddddddddddbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777777799999999999999999999999911111111111111ddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999999999991911111111ddddddddddddddddddddbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777779999999999999999999999111111d1ddddddddddddddddddddddddbdbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999999999999999191111ddddddddddddddddddddddddddddddddbbbbbbbbbbbbbb7bbb7777777777777777777777777777777777777777777799999999999999999999191111ddddddddddddddddddddddddddddddddddbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999999999191111d1ddddddddddddddddddddddddddddddddddddddddbbbbbb77777777777777777777777777777777777777777777779999999999999999191119111111d1ddddddddddddddddddddddddddddddbdbbbbbbbbbbbb7b7777777777777777777777777777777777777777777799999999999999991111911111111111ddddddddddddddddddddddddddbbbddbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999991111111111111111111111ddddddddddddddddddddbdbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999991111111111111111111111d1ddddddddddddddddddbdbdbbbbbbbbbb77b77777777777777777777777777777777777777777777799999999999919911111111111111111111111ddd1d1ddddddddddddddbbbdbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999999911111911111111111111111111ddddddddddddddddddddbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999919111191111111111111111111111111d1ddddddddddddddbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999919111111111111111111111111111111d1ddbdbbbbbbbbbbbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999191111111111111111111111111111111111b1bbbbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999991911111111111111111111111111111111d1ddbddbbbbbbbbbbbbbbbbbbbbbbb7bb77777777777777777777777777777777777777777777799999999111111111111111111111111111111ddddddddbdbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999991111111111111111111111111111d1ddddddddbddbbbbdbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999991111111111111111111111111111d11ddd1dddbdbbbbbbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999111111111111111111111111111111ddddddddbdbbbdbbdbbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999191111111111111111111111111111ddd1ddddbdbbbddbdbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777777799999999999911111111111111111111111111ddddddddbdbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999919111111111111111111111111111dd1ddddbdbbbbbbbbbbbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777799999999991111111111111111111111111111ddd1ddddddddddddddddddbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999991111111111111111111111111111ddddddddddddddddbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777779999999999191111111111111111111111dddddddddddddddddddddbbbbdbdbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999191111111111111111111111dddddddddddddddddddddbbbbdbdbbbbbbbbbb77bb7777777777777777777777777777777777777777777799999999999919111111111111111111d1ddddddddddddddddddddbbbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777777799999999999919111119111111111111dd1d1dddddddddddddddddbbddbbbdbbbbbbbbbbbb777777777777777777777777777777777777777777777799999999999999119111111111111111ddddddd1ddddddddddddddbbbbbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777799999999999999999911111111111111d11d1dddddddddddddddddbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777779999999999999999991111111111111111111111d1ddddddddddbbbbbbbbbbbbbbbbbbbb7bb77777777777777777777777777777777777777777777799999999999999991111111111111111111111111111ddddddddbbbbbbbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999191111111111111111111111111111ddddddddddddddddddbbbbbdbbbdbbbb777777777777777777777777777777777777777777779999999999999919111111111111111111111111d1ddddddddddddddddddbbbbbbbddbbdbb7777777777777777777777777777777777777777777777999999999999999911111111111111111111d1ddddddddddddddddddddddbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999999999111111111111111111d1ddddddddddddddddddddddddddbbbbddbbbdbbbb777777777777777777777777777777777777777777779999999999999999991191991111111111d1ddddddddddddddddddddddddbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999999999991111111111111111ddddddddddddddddddddbdbbbbbdddbdbb7b77777777777777777777777777777777777777777777779999999999999999999919111111111111111111d1ddddddddddddddddddbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999991911111111111111111111d1ddddddddddddddddbdbbbbbbbbbbbbbb7777777777777777777777777777777777777777777799999999999999999999991191111111111111111111111111d1bdbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777777799999999999999999999999999191111111111111111ddddddbdbbbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777779999999999999999999999999999111111111111d11dddd1ddbdbbbbbbbbbbbbbbbbbdbb7bbb77777777777777777777777777777777777777777777999999999999999999999999991911111111111111ddddddddbdbbbbbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777779999999999999999999999999919111111111111111dddddddbdbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777779999999999999999999999999919111111111111d11dddddddddbdbbbbbbbbbbbbbbbbbbbb7b777777777777777777777777777777777777777777779999999999999999999999999999111111111111d1ddddddddddddbdbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777779999999999999999999999999999111111111111d1ddddddddddddddddddddbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999999991111ddddddddddddddddddddddddddddddddbbbbbbbbbb77b777777777777777777777777777777777777777777777999999999999999999999999191111ddddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777777999999999999999999999999191111ddd1ddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999999999999999999191111ddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999911191111ddd11dddddddbdbbbbbbdbbdbdbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999999999999991911991111ddddddddddddddddbbbbbbbbbbbdbbdbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999991911111111dd1dddddd1ddddddbbbbbbbbbbbbbbbbbbbbbbbbbb7bb777777777777777777777777777777777777777777777999999999999999999991911111111dd1dddd1d1ddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999991911111111ddddddddddddddddddddddddddddddddbdbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999911111111ddddddddddddddddddddddddddddddddddddbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999999111111111111111111d1ddddddddddbdbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777777999999999999999999999919111111111111d1ddddddddddddddddbdbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999999919111111111111d1d11d1dddddbdbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999919111111111111d1d11d1dddbbbbbbbbbbbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999999999999999999111911111111d1ddddbdbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb77777777777777777777777777777777777777777777999999999999999999999999991911111111d11dd1bdbbbbbbbbbbbbbbbbbbbbbbbbbbbb7b7777777777777777777777777777777777777777777777999999999999999999999999991911111111d1ddddbdbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999999999999999999991911111111d1ddddddddbbbbbbbbbbbbbbbbbbbbbbbbbb77bb777777777777777777777777777777777777777777779999999999999999999999999999111111d1ddddddddddddbdbbbbbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777779999999999999999999999999999991111d1ddddddddddddbdbbbbbbbbbbbbbbbbbbbbbbbb777777777777777777777777777777777777777777777799999999999999999999999999999911111111111111d1dd1ddd1dbdbbbbbbbbbbbbbbbbbb7b77777777777777777777777777777777777777777777999999999999999999999999999999111111111111d1dddd1ddd11bdbbbbbbbbbbbbbbbbbb7777777777777777777777777777777777777777777777999999999999999999999999999999111111111111d1ddddddddddbdbbbbbbbbbbbbbbbb7bb777777777777777777777777777777777777777777777") +const _hex28508 = pxsim.BufferMethods.createBufferFromHex("870418001800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f0ff00000000000000000000c0b100000000000000ffff0f1ffb000000000000ffddbdfc1fb10000000000f01b11ddbd1ffb0000000000f01111bd1cccf10f000000001f1111f11fbdff0f000000001f1111d111fbffff000000001f1111d111b1ffff000000001f1111f11ffbffff00000000f01111bd1ccdb10f00000000f01b11ddbd1ffb000000000000ffddbdfc1fb100000000000000ffff0f1ffb00000000000000000000cfb100000000000000000000f0ff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex28522 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -function myTiles_inline__P6844(s) { +function control___screen_inline__P4465(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1851,70 +2140,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_1 = helpers_stringTrim__P123_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 79; s.pc = 10; return s.tmp_1; - case 10: + case 1: + r0 = pxsim_numops_toBoolDecr(true); + if (!r0) { step = 4; continue; } + globals.__updated___4462 = (false); + s.tmp_0 = pause__P413_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___4462); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_pxtcore.switch_eq("transparency16", s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq("myTile0", s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq("tile2", s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq("myTile1", s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq("tile3", s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq("myTile", s.tmp_0); - if (r0) { step = 6; continue; } - r0 = pxsim_pxtcore.switch_eq("tile1", s.tmp_0); - if (r0) { step = 7; continue; } - r0 = s.tmp_0; - { step = 8; continue; } - case 1: - r0 = globals.transparency16___4238; - { step = 9; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_2 = control___screen_update__P1838_mk(s); + s.callLocIdx = 3; s.pc = 6; return s.tmp_2; + case 6: + r0 = s.retval; + globals.__updated___4462 = (true); case 2: case 3: - r0 = globals.tile2___4239; - { step = 9; continue; } + { step = 1; continue; } case 4: - case 5: - r0 = globals.tile3___4240; - { step = 9; continue; } - case 6: - case 7: - r0 = globals.tile1___4241; - { step = 9; continue; } - case 8: - r0 = null; - case 9: + r0 = undefined; return leave(s, r0) default: oops() } } } -myTiles_inline__P6844.info = {"start":5372,"length":361,"line":100,"column":37,"endLine":111,"endColumn":5,"fileName":"tilemap.g.ts","functionName":"inline","argumentNames":["name"]} +control___screen_inline__P4465.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"inline","argumentNames":[]} -function myTiles_inline__P6844_mk(s) { +function control___screen_inline__P4465_mk(s) { checkStack(s.depth); return { - parent: s, fn: myTiles_inline__P6844, depth: s.depth + 1, + parent: s, fn: control___screen_inline__P4465, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, + tmp_2: undefined, } } -function inline__P6862(s) { +function _screen_internal_inline__P4485(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1924,41 +2194,25 @@ 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; - } - s.tmp_0 = Sprite_setPosition__P2250_mk(s); - s.tmp_0.arg0 = globals.mySprite___4229; - r0 = pxsim.Math_.randomRange(0, 160); - s.tmp_0.arg1 = r0; - r0 = pxsim.Math_.randomRange(160, 0); - s.tmp_0.arg2 = r0; - s.callLocIdx = 84; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = pxsim_pxtcore.updateScreen(globals.screen___1877); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P6862.info = {"start":177,"length":90,"line":4,"column":61,"endLine":6,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","location"]} +_screen_internal_inline__P4485.info = {"start":1122,"length":26,"line":32,"column":33,"endLine":32,"endColumn":59,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":[]} -function inline__P6862_mk(s) { +function _screen_internal_inline__P4485_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P6862, depth: s.depth + 1, + parent: s, fn: _screen_internal_inline__P4485, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, - arg1: undefined, } } -function inline__P6876(s) { +function _screen_internal_inline__P4490(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1968,56 +2222,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_1 = Sprite_isHittingTile__P2262_mk(s); - s.tmp_1.arg0 = globals.mySprite___4229; - s.tmp_1.arg1 = 3; - s.callLocIdx = 86; 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_2 = Sprite_vy__P2202_mk(s); - s.tmp_3 = r0 = globals.mySprite___4229; - s.tmp_2.arg0 = r0; - s.tmp_5 = Sprite_vy__P2201_mk(s); - s.tmp_5.arg0 = s.tmp_3; - s.callLocIdx = 87; s.pc = 5; return s.tmp_5; - case 5: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 + -150); - s.tmp_2.arg1 = r0; - s.callLocIdx = 88; s.pc = 4; return s.tmp_2; - case 4: - r0 = s.retval; - globals.Facing___4231 = (0); - case 1: - case 2: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_pxtcore.updateStats(s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P6876.info = {"start":322,"length":129,"line":7,"column":53,"endLine":12,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +_screen_internal_inline__P4490.info = {"start":1185,"length":56,"line":33,"column":35,"endLine":35,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":["msg"]} -function inline__P6876_mk(s) { +function _screen_internal_inline__P4490_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P6876, depth: s.depth + 1, + parent: s, fn: _screen_internal_inline__P4490, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, + arg0: undefined, } } -function inline__P6891(s) { +function info_inline__P4623(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2029,69 +2257,49 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_1 = controller_Controller_isPressed__P2000_mk(s); - s.tmp_1.arg0 = globals.player2___1964; - s.tmp_1.arg1 = 6; - s.callLocIdx = 90; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals.infoState___4619); + if (!r0) { step = 3; continue; } + r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___4621); + s.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 = StatusBarSprite_value__P4158_mk(s); - s.tmp_3 = r0 = globals.statusbar___4227; - s.tmp_2.arg0 = r0; - s.tmp_5 = StatusBarSprite_value__P4157_mk(s); - s.tmp_5.arg0 = s.tmp_3; - s.callLocIdx = 91; s.pc = 5; return s.tmp_5; - case 5: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 + -1); - s.tmp_2.arg1 = r0; - s.callLocIdx = 92; s.pc = 4; return s.tmp_2; - case 4: - r0 = s.retval; - s.tmp_0 = Sprite_setPosition__P2250_mk(s); - s.tmp_0.arg0 = globals.mySprite4___4228; - r0 = pxsim.Math_.randomRange(0, 160); - s.tmp_0.arg1 = r0; - r0 = pxsim.Math_.randomRange(160, 0); - s.tmp_0.arg2 = r0; - s.callLocIdx = 93; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; + r0 = pxsim_Array__mk(); + globals.infoStateStack___4621 = (r0); case 1: case 2: + r0 = pxsim_pxtrt.mkMap(); + s.tmp_0 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___4619); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "scene", s.arg0); + r0 = pxsim_Array__push(globals.infoStateStack___4621, s.tmp_0); + globals.infoState___4619 = (undefined); + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P6891.info = {"start":509,"length":194,"line":13,"column":56,"endLine":18,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","otherSprite"]} +info_inline__P4623.info = {"start":2248,"length":259,"line":83,"column":29,"endLine":92,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["oldScene"]} -function inline__P6891_mk(s) { +function info_inline__P4623_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P6891, depth: s.depth + 1, + parent: s, fn: info_inline__P4623, depth: s.depth + 1, pc: 0, retval: undefined, 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__P6914(s) { +function info_inline__P4638(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2101,44 +2309,88 @@ 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; - } - s.tmp_0 = Sprite_destroy__P2269_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = globals.fire___3066; - s.tmp_0.arg2 = 500; - s.callLocIdx = 95; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = info_changeLifeBy__P2410_mk(s); - s.tmp_0.arg0 = -1; - s.callLocIdx = 96; s.pc = 2; return s.tmp_0; - case 2: + s.scene___4639 = undefined; + s.nextState___4648 = undefined; + s.tmp_0 = game_currentScene__P2792_mk(s); + s.callLocIdx = 22; s.pc = 7; return s.tmp_0; + case 7: r0 = s.retval; + s.scene___4639 = (r0); + globals.infoState___4619 = (undefined); + s.tmp_0 = r0 = globals.infoStateStack___4621; + 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___4621); + 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___4621); + s.nextState___4648 = (r0); + s.tmp_2 = if_scene_1_mk(s); + s.tmp_2.arg0 = s.nextState___4648; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "scene"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["scene"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["scene"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 23; s.pc = 8; return s.tmp_2; } + } + case 8: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 == s.scene___4639); + 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___4648; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "state"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["state"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["state"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 24; s.pc = 9; return s.tmp_3; } + } + case 9: + r0 = s.retval; + globals.infoState___4619 = (r0); + { step = 4; continue; } + case 3: + r0 = pxsim_Array__push(globals.infoStateStack___4621, s.nextState___4648); + case 4: + case 5: + case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P6914.info = {"start":759,"length":103,"line":19,"column":54,"endLine":22,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","otherSprite"]} +info_inline__P4638.info = {"start":2539,"length":376,"line":94,"column":28,"endLine":105,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} -function inline__P6914_mk(s) { +function info_inline__P4638_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P6914, depth: s.depth + 1, + parent: s, fn: info_inline__P4638, 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, + tmp_3: undefined, + scene___4639: undefined, + nextState___4648: undefined, } } -function inline__P6927(s) { +function myTiles_inline__P6835(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2150,39 +2402,248 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = Sprite_setPosition__P2250_mk(s); - s.tmp_0.arg0 = globals.mySprite___4229; - r0 = pxsim.Math_.randomRange(0, 160); - s.tmp_0.arg1 = r0; - r0 = pxsim.Math_.randomRange(160, 0); - s.tmp_0.arg2 = r0; - s.callLocIdx = 99; s.pc = 1; return s.tmp_0; + s.tmp_1 = helpers_stringTrim__P123_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 78; s.pc = 21; return s.tmp_1; + case 21: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_pxtcore.switch_eq("level2", s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq("level2", s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq("level3", s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq("level3", s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq("level1", s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq("level1", s.tmp_0); + if (r0) { step = 6; continue; } + r0 = pxsim_pxtcore.switch_eq("level4", s.tmp_0); + if (r0) { step = 7; continue; } + r0 = pxsim_pxtcore.switch_eq("level4", s.tmp_0); + if (r0) { step = 8; continue; } + r0 = pxsim_pxtcore.switch_eq("level5", s.tmp_0); + if (r0) { step = 9; continue; } + r0 = pxsim_pxtcore.switch_eq("level5", s.tmp_0); + if (r0) { step = 10; continue; } + r0 = pxsim_pxtcore.switch_eq("level6", s.tmp_0); + if (r0) { step = 11; continue; } + r0 = pxsim_pxtcore.switch_eq("level6", s.tmp_0); + if (r0) { step = 12; continue; } + r0 = pxsim_pxtcore.switch_eq("level7", s.tmp_0); + if (r0) { step = 13; continue; } + r0 = pxsim_pxtcore.switch_eq("level7", s.tmp_0); + if (r0) { step = 14; continue; } + r0 = pxsim_pxtcore.switch_eq("level8", s.tmp_0); + if (r0) { step = 15; continue; } + r0 = pxsim_pxtcore.switch_eq("level8", s.tmp_0); + if (r0) { step = 16; continue; } + r0 = pxsim_pxtcore.switch_eq("level9", s.tmp_0); + if (r0) { step = 17; continue; } + r0 = pxsim_pxtcore.switch_eq("level9", s.tmp_0); + if (r0) { step = 18; continue; } + r0 = s.tmp_0; + { step = 19; continue; } case 1: + case 2: + r0 = pxsim_Array__mk(); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_2, globals.transparency16___4278); + s.tmp_3 = tiles_createTilemap__P2598_mk(s); + s.tmp_3.arg0 = _hex6842; + r0 = pxsim.image.ofBuffer(_hex6844); + s.tmp_3.arg1 = r0; + s.tmp_3.arg2 = s.tmp_2; + s.tmp_3.arg3 = 4; + s.callLocIdx = 79; s.pc = 22; return s.tmp_3; + case 22: r0 = s.retval; - r0 = undefined; + { step = 20; continue; } + case 3: + case 4: + r0 = pxsim_Array__mk(); + s.tmp_4 = r0; + r0 = pxsim_Array__push(s.tmp_4, globals.transparency16___4278); + s.tmp_5 = tiles_createTilemap__P2598_mk(s); + s.tmp_5.arg0 = _hex6850; + r0 = pxsim.image.ofBuffer(_hex6852); + s.tmp_5.arg1 = r0; + s.tmp_5.arg2 = s.tmp_4; + s.tmp_5.arg3 = 4; + s.callLocIdx = 80; s.pc = 23; return s.tmp_5; + case 23: + r0 = s.retval; + { step = 20; continue; } + case 5: + case 6: + r0 = pxsim_Array__mk(); + s.tmp_6 = r0; + r0 = pxsim_Array__push(s.tmp_6, globals.transparency16___4278); + r0 = pxsim_Array__push(s.tmp_6, globals.tile1___4281); + s.tmp_7 = tiles_createTilemap__P2598_mk(s); + s.tmp_7.arg0 = _hex6858; + r0 = pxsim.image.ofBuffer(_hex6860); + s.tmp_7.arg1 = r0; + s.tmp_7.arg2 = s.tmp_6; + s.tmp_7.arg3 = 4; + s.callLocIdx = 81; s.pc = 24; return s.tmp_7; + case 24: + r0 = s.retval; + { step = 20; continue; } + case 7: + case 8: + r0 = pxsim_Array__mk(); + s.tmp_8 = r0; + r0 = pxsim_Array__push(s.tmp_8, globals.transparency16___4278); + r0 = pxsim_Array__push(s.tmp_8, globals.tile3___4280); + s.tmp_9 = tiles_createTilemap__P2598_mk(s); + s.tmp_9.arg0 = _hex6867; + r0 = pxsim.image.ofBuffer(_hex6869); + s.tmp_9.arg1 = r0; + s.tmp_9.arg2 = s.tmp_8; + s.tmp_9.arg3 = 4; + s.callLocIdx = 82; s.pc = 25; return s.tmp_9; + case 25: + r0 = s.retval; + { step = 20; continue; } + case 9: + case 10: + r0 = pxsim_Array__mk(); + s.tmp_10 = r0; + r0 = pxsim_Array__push(s.tmp_10, globals.transparency16___4278); + s.tmp_11 = tiles_createTilemap__P2598_mk(s); + s.tmp_11.arg0 = _hex6876; + r0 = pxsim.image.ofBuffer(_hex6878); + s.tmp_11.arg1 = r0; + s.tmp_11.arg2 = s.tmp_10; + s.tmp_11.arg3 = 4; + s.callLocIdx = 83; s.pc = 26; return s.tmp_11; + case 26: + r0 = s.retval; + { step = 20; continue; } + case 11: + case 12: + r0 = pxsim_Array__mk(); + s.tmp_12 = r0; + r0 = pxsim_Array__push(s.tmp_12, globals.transparency16___4278); + s.tmp_13 = tiles_createTilemap__P2598_mk(s); + s.tmp_13.arg0 = _hex6884; + r0 = pxsim.image.ofBuffer(_hex6886); + s.tmp_13.arg1 = r0; + s.tmp_13.arg2 = s.tmp_12; + s.tmp_13.arg3 = 4; + s.callLocIdx = 84; s.pc = 27; return s.tmp_13; + case 27: + r0 = s.retval; + { step = 20; continue; } + case 13: + case 14: + r0 = pxsim_Array__mk(); + s.tmp_14 = r0; + r0 = pxsim_Array__push(s.tmp_14, globals.transparency16___4278); + s.tmp_15 = tiles_createTilemap__P2598_mk(s); + s.tmp_15.arg0 = _hex6892; + r0 = pxsim.image.ofBuffer(_hex6894); + s.tmp_15.arg1 = r0; + s.tmp_15.arg2 = s.tmp_14; + s.tmp_15.arg3 = 4; + s.callLocIdx = 85; s.pc = 28; return s.tmp_15; + case 28: + r0 = s.retval; + { step = 20; continue; } + case 15: + case 16: + r0 = pxsim_Array__mk(); + s.tmp_16 = r0; + r0 = pxsim_Array__push(s.tmp_16, globals.transparency16___4278); + s.tmp_17 = tiles_createTilemap__P2598_mk(s); + s.tmp_17.arg0 = _hex6900; + r0 = pxsim.image.ofBuffer(_hex6902); + s.tmp_17.arg1 = r0; + s.tmp_17.arg2 = s.tmp_16; + s.tmp_17.arg3 = 4; + s.callLocIdx = 86; s.pc = 29; return s.tmp_17; + case 29: + r0 = s.retval; + { step = 20; continue; } + case 17: + case 18: + r0 = pxsim_Array__mk(); + s.tmp_18 = r0; + r0 = pxsim_Array__push(s.tmp_18, globals.transparency16___4278); + s.tmp_19 = tiles_createTilemap__P2598_mk(s); + s.tmp_19.arg0 = _hex6908; + r0 = pxsim.image.ofBuffer(_hex6910); + s.tmp_19.arg1 = r0; + s.tmp_19.arg2 = s.tmp_18; + s.tmp_19.arg3 = 4; + s.callLocIdx = 87; s.pc = 30; return s.tmp_19; + case 30: + r0 = s.retval; + { step = 20; continue; } + case 19: + r0 = null; + case 20: return leave(s, r0) default: oops() } } } -inline__P6927.info = {"start":924,"length":90,"line":23,"column":60,"endLine":25,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","location"]} +myTiles_inline__P6835.info = {"start":515,"length":9573,"line":11,"column":40,"endLine":174,"endColumn":5,"fileName":"tilemap.g.ts","functionName":"inline","argumentNames":["name"]} -function inline__P6927_mk(s) { +function myTiles_inline__P6835_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P6927, depth: s.depth + 1, + parent: s, fn: myTiles_inline__P6835, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, + tmp_16: undefined, + tmp_17: undefined, + tmp_18: undefined, + tmp_19: undefined, arg0: undefined, - arg1: undefined, } } +const _hex6842 = pxsim.BufferMethods.createBufferFromHex("1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex6844 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex6850 = pxsim.BufferMethods.createBufferFromHex("1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex6852 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex6858 = pxsim.BufferMethods.createBufferFromHex("0a000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001010101010101010101010101010101010101010101010101010101010101010101010101010101") +const _hex6860 = pxsim.BufferMethods.createBufferFromHex("87040a000a0000000200000200000000020000020000000002000002000000000200000200000000020000020000000002000002000000000200000200000000020000020000000002000002000000000200000200000000") +const _hex6867 = pxsim.BufferMethods.createBufferFromHex("0a000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001010101010101010101010101010101010101010101010101010101010101010101010101010101") +const _hex6869 = pxsim.BufferMethods.createBufferFromHex("87040a000a0000000200000200000000020000020000000002000002000000000200000200000000020000020000000002000002000000000200000200000000020000020000000002000002000000000200000200000000") +const _hex6876 = pxsim.BufferMethods.createBufferFromHex("1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex6878 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex6884 = pxsim.BufferMethods.createBufferFromHex("1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex6886 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex6892 = pxsim.BufferMethods.createBufferFromHex("1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex6894 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex6900 = pxsim.BufferMethods.createBufferFromHex("1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex6902 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex6908 = pxsim.BufferMethods.createBufferFromHex("1000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex6910 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -function inline__P6939(s) { +function myTiles_inline__P6916(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2192,94 +2653,70 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.Facing___4231 == 1); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_1 = helpers_stringTrim__P123_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 89; s.pc = 10; return s.tmp_1; + case 10: + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = sprites_createProjectileFromSprite__P2123_mk(s); - r0 = pxsim.image.ofBuffer(_hex6946); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = globals.mySprite___4229; - s.tmp_1.arg2 = 200; - s.tmp_1.arg3 = 0; - s.callLocIdx = 101; s.pc = 5; return s.tmp_1; + r0 = pxsim_pxtcore.switch_eq("transparency16", s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq("myTile0", s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq("tile2", s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq("myTile1", s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq("tile3", s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq("myTile", s.tmp_0); + if (r0) { step = 6; continue; } + r0 = pxsim_pxtcore.switch_eq("tile1", s.tmp_0); + if (r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } + case 1: + r0 = globals.transparency16___4278; + { step = 9; continue; } + case 2: + case 3: + r0 = globals.tile2___4279; + { step = 9; continue; } + case 4: case 5: - r0 = s.retval; - globals.projectile___4226 = (r0); - s.tmp_0 = Sprite_startEffect__P2254_mk(s); - s.tmp_0.arg0 = globals.projectile___4226; - s.tmp_0.arg1 = globals.halo___3069; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 102; s.pc = 6; return s.tmp_0; + r0 = globals.tile3___4280; + { step = 9; continue; } case 6: - r0 = s.retval; - { step = 4; continue; } - case 1: - r0 = (globals.Facing___4231 == -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = sprites_createProjectileFromSprite__P2123_mk(s); - r0 = pxsim.image.ofBuffer(_hex6959); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = globals.mySprite___4229; - s.tmp_1.arg2 = -200; - s.tmp_1.arg3 = 0; - s.callLocIdx = 103; s.pc = 7; return s.tmp_1; case 7: - r0 = s.retval; - globals.projectile___4226 = (r0); - s.tmp_0 = Sprite_startEffect__P2254_mk(s); - s.tmp_0.arg0 = globals.projectile___4226; - s.tmp_0.arg1 = globals.halo___3069; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 104; s.pc = 8; return s.tmp_0; + r0 = globals.tile1___4281; + { step = 9; continue; } case 8: - r0 = s.retval; - { step = 3; continue; } - case 2: - s.tmp_0 = sprites_createProjectileFromSprite__P2123_mk(s); - r0 = pxsim.image.ofBuffer(_hex6970); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.mySprite___4229; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = -200; - s.callLocIdx = 105; s.pc = 9; return s.tmp_0; + r0 = null; case 9: - r0 = s.retval; - globals.projectile___4226 = (r0); - s.tmp_0 = Sprite_startEffect__P2254_mk(s); - s.tmp_0.arg0 = globals.projectile___4226; - s.tmp_0.arg1 = globals.halo___3069; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 106; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - case 3: - case 4: - r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P6939.info = {"start":1068,"length":2667,"line":26,"column":52,"endLine":88,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +myTiles_inline__P6916.info = {"start":10128,"length":361,"line":176,"column":37,"endLine":187,"endColumn":5,"fileName":"tilemap.g.ts","functionName":"inline","argumentNames":["name"]} -function inline__P6939_mk(s) { +function myTiles_inline__P6916_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P6939, depth: s.depth + 1, + parent: s, fn: myTiles_inline__P6916, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + arg0: undefined, } } -const _hex6946 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000044444404000000400000004000000004444444040400404000000040400040404044444040004040400040404000404040004040400040404000404040004040404444404000404000000040400000044444440404000040000000400000000044444404000000000000000000000000000000000000") -const _hex6959 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000044444404000000400000004000000004444444040400404000000040400040404044444040004040400040404000404040004040400040404000404040004040404444404000404000000040400000044444440404000040000000400000000044444404000000000000000000000000000000000000") -const _hex6970 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000044444404000000400000004000000004444444040400404000000040400040404044444040004040400040404000404040004040400040404000404040004040404444404000404000000040400000044444440404000040000000400000000044444404000000000000000000000000000000000000") -function inline__P6982(s) { +function inline__P28012(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2289,44 +2726,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tiles_placeOnTile__P2609_mk(s); - s.tmp_0.arg0 = globals.mySprite___4229; - s.tmp_1 = Sprite_tilemapLocation__P2265_mk(s); - s.tmp_1.arg0 = globals.mySprite4___4228; - s.callLocIdx = 108; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + s.tmp_0 = Sprite_setPosition__P2250_mk(s); + s.tmp_0.arg0 = globals.mySprite___28017; + r0 = pxsim.Math_.randomRange(0, 160); s.tmp_0.arg1 = r0; - s.callLocIdx = 109; s.pc = 1; return s.tmp_0; + r0 = pxsim.Math_.randomRange(160, 0); + s.tmp_0.arg2 = r0; + s.callLocIdx = 97; s.pc = 1; return s.tmp_0; case 1: - r0 = s.retval; - s.tmp_0 = Sprite_startEffect__P2254_mk(s); - s.tmp_0.arg0 = globals.mySprite4___4228; - s.tmp_0.arg1 = globals.halo___3069; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 110; s.pc = 3; return s.tmp_0; - case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P6982.info = {"start":3821,"length":116,"line":89,"column":84,"endLine":92,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +inline__P28012.info = {"start":317,"length":90,"line":7,"column":61,"endLine":9,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","location"]} -function inline__P6982_mk(s) { +function inline__P28012_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P6982, depth: s.depth + 1, + parent: s, fn: inline__P28012, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, + arg0: undefined, + arg1: undefined, } } -function inline__P6995(s) { +function inline__P28026(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2336,57 +2770,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.count2___4230 >= 55); + s.tmp_1 = Sprite_isHittingTile__P2262_mk(s); + s.tmp_1.arg0 = globals.mySprite___28017; + s.tmp_1.arg1 = 3; + s.callLocIdx = 99; 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 = 1; continue; } - s.tmp_1 = Sprite_vy__P2202_mk(s); - s.tmp_2 = r0 = globals.mySprite___4229; - s.tmp_1.arg0 = r0; - s.tmp_4 = Sprite_vy__P2201_mk(s); - s.tmp_4.arg0 = s.tmp_2; - s.callLocIdx = 112; s.pc = 4; return s.tmp_4; - case 4: + if (!r0) { step = 3; continue; } + s.tmp_2 = Sprite_vy__P2202_mk(s); + s.tmp_3 = r0 = globals.mySprite___28017; + s.tmp_2.arg0 = r0; + s.tmp_5 = Sprite_vy__P2201_mk(s); + s.tmp_5.arg0 = s.tmp_3; + s.callLocIdx = 100; s.pc = 7; return s.tmp_5; + case 7: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 + -500); - s.tmp_1.arg1 = r0; - s.callLocIdx = 113; s.pc = 3; return s.tmp_1; - case 3: + s.tmp_4 = r0; + r0 = (s.tmp_4 + -150); + s.tmp_2.arg1 = r0; + s.callLocIdx = 101; s.pc = 6; return s.tmp_2; + case 6: r0 = s.retval; - s.tmp_0 = Sprite_startEffect__P2254_mk(s); - s.tmp_0.arg0 = globals.mySprite___4229; - s.tmp_0.arg1 = globals.fire___3066; - s.tmp_0.arg2 = 1500; - s.callLocIdx = 114; s.pc = 5; return s.tmp_0; - case 5: + globals.Facing___28037 = (0); + r0 = (globals.Soundeffects___28041 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = music_playSoundEffect__P1772_mk(s); + s.tmp_2 = music_createSoundEffect__P1773_mk(s); + s.tmp_2.arg0 = 4; + s.tmp_2.arg1 = 1; + s.tmp_2.arg2 = 4209; + s.tmp_2.arg3 = 255; + s.tmp_2.arg4 = 0; + s.tmp_2.arg5 = 500; + s.tmp_2.arg6 = 1; + s.tmp_2.arg7 = 1; + s.callLocIdx = 102; s.pc = 9; return s.tmp_2; + case 9: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 1; + s.callLocIdx = 103; s.pc = 8; return s.tmp_1; + case 8: r0 = s.retval; - globals.count2___4230 = (0); case 1: case 2: + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P6995.info = {"start":3995,"length":141,"line":93,"column":56,"endLine":99,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +inline__P28026.info = {"start":462,"length":365,"line":10,"column":53,"endLine":18,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function inline__P6995_mk(s) { +function inline__P28026_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P6995, depth: s.depth + 1, + parent: s, fn: inline__P28026, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, } } -function inline__P7012(s) { +function inline__P28052(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2396,39 +2853,79 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - globals.Facing___4231 = (-1); - r0 = pxsim_Array__mk(); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + s.tmp_1 = controller_Controller_isPressed__P2000_mk(s); + s.tmp_1.arg0 = globals.player2___1964; + s.tmp_1.arg1 = 6; + s.callLocIdx = 105; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim.image.ofBuffer(_hex7020); - s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - r0 = pxsim.image.ofBuffer(_hex7022); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); - r0 = pxsim.image.ofBuffer(_hex7024); - s.tmp_3 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_3); - r0 = pxsim.image.ofBuffer(_hex7026); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_2 = StatusBarSprite_value__P4158_mk(s); + s.tmp_3 = r0 = globals.statusbar___28063; + s.tmp_2.arg0 = r0; + s.tmp_5 = StatusBarSprite_value__P4157_mk(s); + s.tmp_5.arg0 = s.tmp_3; + s.callLocIdx = 106; s.pc = 7; return s.tmp_5; + case 7: + r0 = s.retval; s.tmp_4 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_4); - s.tmp_5 = animation_runImageAnimation__P3172_mk(s); - s.tmp_5.arg0 = globals.mySprite___4229; - s.tmp_5.arg1 = s.tmp_0; - s.tmp_5.arg2 = 100; - s.tmp_5.arg3 = true; - s.callLocIdx = 116; s.pc = 1; return s.tmp_5; - case 1: + r0 = (s.tmp_4 + -1); + s.tmp_2.arg1 = r0; + s.callLocIdx = 107; s.pc = 6; return s.tmp_2; + case 6: + r0 = s.retval; + s.tmp_0 = Sprite_setPosition__P2250_mk(s); + s.tmp_0.arg0 = globals.mySprite4___28068; + r0 = pxsim.Math_.randomRange(0, 160); + s.tmp_0.arg1 = r0; + r0 = pxsim.Math_.randomRange(160, 0); + s.tmp_0.arg2 = r0; + s.callLocIdx = 108; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + r0 = (globals.Soundeffects___28041 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = music_playSoundEffect__P1772_mk(s); + s.tmp_2 = music_createSoundEffect__P1773_mk(s); + s.tmp_2.arg0 = 1; + s.tmp_2.arg1 = 200; + s.tmp_2.arg2 = 1; + s.tmp_2.arg3 = 255; + s.tmp_2.arg4 = 0; + s.tmp_2.arg5 = 100; + s.tmp_2.arg6 = 0; + s.tmp_2.arg7 = 1; + s.callLocIdx = 109; s.pc = 10; return s.tmp_2; + case 10: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 1; + s.callLocIdx = 110; s.pc = 9; return s.tmp_1; + case 9: r0 = s.retval; + case 1: + case 2: + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P7012.info = {"start":4193,"length":2793,"line":100,"column":55,"endLine":176,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +inline__P28052.info = {"start":885,"length":429,"line":19,"column":56,"endLine":27,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","otherSprite"]} -function inline__P7012_mk(s) { +function inline__P28052_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7012, depth: s.depth + 1, + parent: s, fn: inline__P28052, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2436,17 +2933,15 @@ function inline__P7012_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + arg0: undefined, + arg1: undefined, } } -const _hex7020 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000ffff0000000000ff2eef0f000000f0e2e2effeffff002fe2f24edd2e520fffe2f24edd24520fefeff2fedf2442ffeffefebfd1e4feffeffe2eef44deedffefee2f4feddeed0ff0ee2f4fe44ffe00f0efefefee0f000000fffffffe000000000000ff0f00000000000000000000000000000000000000") -const _hex7022 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000f0ff0f00000000f0eff2fe00f00f002f2efeeefffffff0222eefd4ed52fff02f2eefd44d52fff0fe2eefffedfe0ff0eeefff1bdeed0ff0eeeff24edeed0ff0eefef2d44efeff00effef244feffff00fffefeee0ef00f00f0ffffef0f0000000000f0ff00000000000000000000000000000000000000") -const _hex7024 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000ffff0000000000ff2eef0f000000f0e2e2effeffff002fe2f24edd2e520fffe2f24edd24520fefeff2fedf2442ffeffefebfd1e4feffeffe2eef44deedffefee2f4feddeed0ff0ee2f4fe44ffe00f0efefefee0f000000fffffffe000000000000ff0f00000000000000000000000000000000000000") -const _hex7026 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000f0ff0f00000000f0eff2fe00f00f002f2efeeefffffff0222eefd4ed52fff02f2eefd44d52fff0fe2eefff4d420ff0eeefff1b4d420ff0eeeff24ee4fe0ff0eefef2d4deedff00effef244deedff00fffefeee4efe0f00f0ffffef0f0000000000f0ff00000000000000000000000000000000000000") -function inline__P7030(s) { +function inline__P28085(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2461,132 +2956,65 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = StatusBarSprite_value__P4158_mk(s); - s.tmp_1 = r0 = globals.statusbar___4227; - s.tmp_0.arg0 = r0; - s.tmp_3 = StatusBarSprite_value__P4157_mk(s); - s.tmp_3.arg0 = s.tmp_1; - s.callLocIdx = 118; s.pc = 2; return s.tmp_3; - case 2: + s.tmp_0 = Sprite_destroy__P2269_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = globals.fire___3066; + s.tmp_0.arg2 = 500; + s.callLocIdx = 112; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 + -1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 119; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_0 = info_changeLifeBy__P2410_mk(s); + s.tmp_0.arg0 = -1; + s.callLocIdx = 113; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P7030.info = {"start":7047,"length":60,"line":177,"column":59,"endLine":179,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","otherSprite"]} - -function inline__P7030_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P7030, depth: s.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__P7042(s) { -let r0 = s.r0, 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_Array__mk(); + r0 = (globals.Soundeffects___28041 == 1); s.tmp_0 = r0; - r0 = pxsim.image.ofBuffer(_hex7047); - s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - s.tmp_2 = animation_runImageAnimation__P3172_mk(s); - s.tmp_2.arg0 = globals.mySprite___4229; - s.tmp_2.arg1 = s.tmp_0; - s.tmp_2.arg2 = 100; - s.tmp_2.arg3 = true; - s.callLocIdx = 121; s.pc = 1; return s.tmp_2; - case 1: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = music_playSoundEffect__P1772_mk(s); + s.tmp_2 = music_createSoundEffect__P1773_mk(s); + s.tmp_2.arg0 = 1; + s.tmp_2.arg1 = 200; + s.tmp_2.arg2 = 330; + s.tmp_2.arg3 = 255; + s.tmp_2.arg4 = 0; + s.tmp_2.arg5 = 100; + s.tmp_2.arg6 = 0; + s.tmp_2.arg7 = 1; + s.callLocIdx = 114; s.pc = 6; return s.tmp_2; + case 6: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P7042.info = {"start":7166,"length":764,"line":180,"column":57,"endLine":204,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} - -function inline__P7042_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P7042, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, -} } - -const _hex7047 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000ff0f00000000fffffffe000000f0efefefee0f0000f0ee2f4fe44ffe00efee2f4feddeed0feffe2eef44deedffeffefebfd1e4feffefeff2fedf2442ffffe2f24edd24520f2fe2f24edd2e520ff0e2e2effeffff0000ff2eef0f0000000000ffff000000000000000000000000") - - - - -function inline__P7051(s) { -let r0 = s.r0, 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_Array__mk(); - s.tmp_0 = r0; - r0 = pxsim.image.ofBuffer(_hex7056); - s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - s.tmp_2 = animation_runImageAnimation__P3172_mk(s); - s.tmp_2.arg0 = globals.mySprite___4229; - s.tmp_2.arg1 = s.tmp_0; - s.tmp_2.arg2 = 100; - s.tmp_2.arg3 = true; - s.callLocIdx = 123; s.pc = 1; return s.tmp_2; - case 1: + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 1; + s.callLocIdx = 115; 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__P7051.info = {"start":7988,"length":764,"line":205,"column":56,"endLine":229,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +inline__P28085.info = {"start":1370,"length":328,"line":28,"column":54,"endLine":34,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","otherSprite"]} -function inline__P7051_mk(s) { +function inline__P28085_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7051, depth: s.depth + 1, + parent: s, fn: inline__P28085, 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, } } -const _hex7056 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000ffff0000000000ff2eef0f000000f0e2e2effeffff002fe2f24edd2e520fffe2f24edd24520fefeff2fedf2442ffeffefebfd1e4feffeffe2eef44deedffefee2f4feddeed0ff0ee2f4fe44ffe00f0efefefee0f000000fffffffe000000000000ff0f00000000000000000000000000000000000000") -function inline__P7061(s) { +function inline__P28106(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2602,24 +3030,24 @@ switch (step) { s.lambdaArgs = null; } s.tmp_0 = Sprite_setPosition__P2250_mk(s); - s.tmp_0.arg0 = globals.mySprite4___4228; + s.tmp_0.arg0 = globals.mySprite___28017; r0 = pxsim.Math_.randomRange(0, 160); s.tmp_0.arg1 = r0; r0 = pxsim.Math_.randomRange(160, 0); s.tmp_0.arg2 = r0; - s.callLocIdx = 126; s.pc = 1; return s.tmp_0; + s.callLocIdx = 118; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P7061.info = {"start":8816,"length":91,"line":230,"column":62,"endLine":232,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","location"]} +inline__P28106.info = {"start":1760,"length":90,"line":35,"column":60,"endLine":37,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","location"]} -function inline__P7061_mk(s) { +function inline__P28106_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7061, depth: s.depth + 1, + parent: s, fn: inline__P28106, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -2630,7 +3058,7 @@ function inline__P7061_mk(s) { -function inline__P7072(s) { +function inline__P28118(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2640,36 +3068,167 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = game_over__P2802_mk(s); - s.tmp_0.arg0 = true; - s.tmp_0.arg1 = undefined; - s.callLocIdx = 128; s.pc = 1; return s.tmp_0; - case 1: + r0 = (globals.Facing___28037 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_1 = sprites_createProjectileFromSprite__P2123_mk(s); + r0 = pxsim.image.ofBuffer(_hex28126); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = globals.mySprite___28017; + s.tmp_1.arg2 = 200; + s.tmp_1.arg3 = 0; + s.callLocIdx = 120; s.pc = 11; return s.tmp_1; + case 11: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P7072.info = {"start":8954,"length":41,"line":233,"column":45,"endLine":235,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["status"]} - -function inline__P7072_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P7072, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, + globals.projectile___28122 = (r0); + s.tmp_0 = Sprite_startEffect__P2254_mk(s); + s.tmp_0.arg0 = globals.projectile___28122; + s.tmp_0.arg1 = globals.halo___3069; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 121; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + r0 = (globals.Soundeffects___28041 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = music_playSoundEffect__P1772_mk(s); + s.tmp_2 = music_createSoundEffect__P1773_mk(s); + s.tmp_2.arg0 = 3; + s.tmp_2.arg1 = 3228; + s.tmp_2.arg2 = 1; + s.tmp_2.arg3 = 255; + s.tmp_2.arg4 = 0; + s.tmp_2.arg5 = 200; + s.tmp_2.arg6 = 2; + s.tmp_2.arg7 = 1; + s.callLocIdx = 122; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 1; + s.callLocIdx = 123; s.pc = 13; return s.tmp_1; + case 13: + r0 = s.retval; + case 1: + case 2: + { step = 10; continue; } + case 3: + r0 = (globals.Facing___28037 == -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.tmp_1 = sprites_createProjectileFromSprite__P2123_mk(s); + r0 = pxsim.image.ofBuffer(_hex28147); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = globals.mySprite___28017; + s.tmp_1.arg2 = -200; + s.tmp_1.arg3 = 0; + s.callLocIdx = 124; s.pc = 15; return s.tmp_1; + case 15: + r0 = s.retval; + globals.projectile___28122 = (r0); + s.tmp_0 = Sprite_startEffect__P2254_mk(s); + s.tmp_0.arg0 = globals.projectile___28122; + s.tmp_0.arg1 = globals.halo___3069; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 125; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + r0 = (globals.Soundeffects___28041 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_1 = music_playSoundEffect__P1772_mk(s); + s.tmp_2 = music_createSoundEffect__P1773_mk(s); + s.tmp_2.arg0 = 3; + s.tmp_2.arg1 = 3228; + s.tmp_2.arg2 = 1; + s.tmp_2.arg3 = 255; + s.tmp_2.arg4 = 0; + s.tmp_2.arg5 = 200; + s.tmp_2.arg6 = 2; + s.tmp_2.arg7 = 1; + s.callLocIdx = 126; s.pc = 18; return s.tmp_2; + case 18: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 1; + s.callLocIdx = 127; s.pc = 17; return s.tmp_1; + case 17: + r0 = s.retval; + case 4: + case 5: + { step = 9; continue; } + case 6: + s.tmp_0 = sprites_createProjectileFromSprite__P2123_mk(s); + r0 = pxsim.image.ofBuffer(_hex28166); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = globals.mySprite___28017; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = -200; + s.callLocIdx = 128; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + globals.projectile___28122 = (r0); + s.tmp_0 = Sprite_startEffect__P2254_mk(s); + s.tmp_0.arg0 = globals.projectile___28122; + s.tmp_0.arg1 = globals.halo___3069; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 129; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + r0 = (globals.Soundeffects___28041 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_1 = music_playSoundEffect__P1772_mk(s); + s.tmp_2 = music_createSoundEffect__P1773_mk(s); + s.tmp_2.arg0 = 3; + s.tmp_2.arg1 = 3228; + s.tmp_2.arg2 = 1; + s.tmp_2.arg3 = 255; + s.tmp_2.arg4 = 0; + s.tmp_2.arg5 = 200; + s.tmp_2.arg6 = 2; + s.tmp_2.arg7 = 1; + s.callLocIdx = 130; s.pc = 22; return s.tmp_2; + case 22: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 1; + s.callLocIdx = 131; s.pc = 21; return s.tmp_1; + case 21: + r0 = s.retval; + case 7: + case 8: + case 9: + case 10: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P28118.info = {"start":1904,"length":3378,"line":38,"column":52,"endLine":109,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} + +function inline__P28118_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P28118, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, } } +const _hex28126 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000044444404000000400000004000000004444444040400404000000040400040404044444040004040400040404000404040004040400040404000404040004040404444404000404000000040400000044444440404000040000000400000000044444404000000000000000000000000000000000000") +const _hex28147 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000044444404000000400000004000000004444444040400404000000040400040404044444040004040400040404000404040004040400040404000404040004040404444404000404000000040400000044444440404000040000000400000000044444404000000000000000000000000000000000000") +const _hex28166 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000044444404000000400000004000000004444444040400404000000040400040404044444040004040400040404000404040004040400040404000404040004040404444404000404000000040400000044444440404000040000000400000000044444404000000000000000000000000000000000000") -function inline__P7080(s) { +function inline__P28186(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2679,41 +3238,69 @@ 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; - } - s.tmp_0 = Sprite_setPosition__P2250_mk(s); - s.tmp_0.arg0 = globals.mySprite4___4228; - r0 = pxsim.Math_.randomRange(0, 160); + s.tmp_0 = tiles_placeOnTile__P2609_mk(s); + s.tmp_0.arg0 = globals.mySprite___28017; + s.tmp_1 = Sprite_tilemapLocation__P2265_mk(s); + s.tmp_1.arg0 = globals.mySprite4___28068; + s.callLocIdx = 133; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; s.tmp_0.arg1 = r0; - r0 = pxsim.Math_.randomRange(160, 0); - s.tmp_0.arg2 = r0; - s.callLocIdx = 131; s.pc = 1; return s.tmp_0; - case 1: + s.callLocIdx = 134; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = Sprite_startEffect__P2254_mk(s); + s.tmp_0.arg0 = globals.mySprite4___28068; + s.tmp_0.arg1 = globals.halo___3069; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 135; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + r0 = (globals.Soundeffects___28041 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = music_playSoundEffect__P1772_mk(s); + s.tmp_2 = music_createSoundEffect__P1773_mk(s); + s.tmp_2.arg0 = 0; + s.tmp_2.arg1 = 1600; + s.tmp_2.arg2 = 1; + s.tmp_2.arg3 = 255; + s.tmp_2.arg4 = 0; + s.tmp_2.arg5 = 300; + s.tmp_2.arg6 = 0; + s.tmp_2.arg7 = 2; + s.callLocIdx = 136; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 1; + s.callLocIdx = 137; s.pc = 6; return s.tmp_1; + case 6: r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P7080.info = {"start":9058,"length":91,"line":236,"column":61,"endLine":238,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","location"]} +inline__P28186.info = {"start":5368,"length":342,"line":110,"column":84,"endLine":116,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function inline__P7080_mk(s) { +function inline__P28186_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7080, depth: s.depth + 1, + parent: s, fn: inline__P28186, 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, } } -function inline__P7093(s) { +function inline__P28206(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2723,34 +3310,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + r0 = (globals.count2___28209 >= 55); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = (globals.Soundeffects___28041 == 1); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 1; continue; } + s.tmp_2 = music_playSoundEffect__P1772_mk(s); + s.tmp_3 = music_createSoundEffect__P1773_mk(s); + s.tmp_3.arg0 = 4; + s.tmp_3.arg1 = 1; + s.tmp_3.arg2 = 4209; + s.tmp_3.arg3 = 255; + s.tmp_3.arg4 = 0; + s.tmp_3.arg5 = 800; + s.tmp_3.arg6 = 1; + s.tmp_3.arg7 = 1; + s.callLocIdx = 139; s.pc = 6; return s.tmp_3; + case 6: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 1; + s.callLocIdx = 140; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; + case 1: + case 2: + s.tmp_0 = Sprite_vy__P2202_mk(s); + s.tmp_1 = r0 = globals.mySprite___28017; + s.tmp_0.arg0 = r0; + s.tmp_3 = Sprite_vy__P2201_mk(s); + s.tmp_3.arg0 = s.tmp_1; + s.callLocIdx = 141; s.pc = 8; return s.tmp_3; + case 8: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 + -500); + s.tmp_0.arg1 = r0; + s.callLocIdx = 142; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; s.tmp_0 = Sprite_startEffect__P2254_mk(s); - s.tmp_0.arg0 = globals.mySprite___4229; - s.tmp_0.arg1 = globals.halo___3069; + s.tmp_0.arg0 = globals.mySprite___28017; + s.tmp_0.arg1 = globals.fire___3066; s.tmp_0.arg2 = 1500; - s.callLocIdx = 133; s.pc = 1; return s.tmp_0; - case 1: + s.callLocIdx = 143; s.pc = 9; return s.tmp_0; + case 9: r0 = s.retval; - r0 = (globals.count___4233 + 1); - globals.count___4233 = (r0); + globals.count2___28209 = (0); + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P7093.info = {"start":9204,"length":75,"line":239,"column":53,"endLine":242,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +inline__P28206.info = {"start":5768,"length":377,"line":117,"column":56,"endLine":126,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function inline__P7093_mk(s) { +function inline__P28206_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7093, depth: s.depth + 1, + parent: s, fn: inline__P28206, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, } } -function inline__P7105(s) { +function inline__P28232(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2760,39 +3393,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - globals.Facing___4231 = (1); + globals.Facing___28037 = (-1); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim.image.ofBuffer(_hex7111); + r0 = pxsim.image.ofBuffer(_hex28240); s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - r0 = pxsim.image.ofBuffer(_hex7113); + r0 = pxsim.image.ofBuffer(_hex28242); s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); - r0 = pxsim.image.ofBuffer(_hex7115); + r0 = pxsim.image.ofBuffer(_hex28244); s.tmp_3 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_3); - r0 = pxsim.image.ofBuffer(_hex7117); + r0 = pxsim.image.ofBuffer(_hex28246); s.tmp_4 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_4); s.tmp_5 = animation_runImageAnimation__P3172_mk(s); - s.tmp_5.arg0 = globals.mySprite___4229; + s.tmp_5.arg0 = globals.mySprite___28017; s.tmp_5.arg1 = s.tmp_0; s.tmp_5.arg2 = 100; s.tmp_5.arg3 = true; - s.callLocIdx = 135; s.pc = 1; return s.tmp_5; + s.callLocIdx = 145; s.pc = 1; return s.tmp_5; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P7105.info = {"start":9337,"length":2792,"line":243,"column":56,"endLine":319,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +inline__P28232.info = {"start":6202,"length":2793,"line":127,"column":55,"endLine":203,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function inline__P7105_mk(s) { +function inline__P28232_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7105, depth: s.depth + 1, + parent: s, fn: inline__P28232, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2802,15 +3435,15 @@ function inline__P7105_mk(s) { tmp_5: undefined, } } -const _hex7111 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000ff0f00000000fffffffe000000f0efefefee0f0000f0ee2f4fe44ffe00efee2f4feddeed0feffe2eef44deedffeffefebfd1e4feffefeff2fedf2442ffffe2f24edd24520f2fe2f24edd2e520ff0e2e2effeffff0000ff2eef0f0000000000ffff000000000000000000000000") -const _hex7113 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000f0ff00000000f0ffffef0f000000fffefeee0ef00f00effef244fefffff0eefef2d44efefff0eeeff24edeed0ff0eeefff1bdeed0ff0fe2eefffedfe0ff02f2eefd44d52fff0222eefd4ed52ff002f2efeeeffffff00f0eff2fe00f00f0000f0ff0f0000000000000000000000") -const _hex7115 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000ff0f00000000fffffffe000000f0efefefee0f0000f0ee2f4fe44ffe00efee2f4feddeed0feffe2eef44deedffeffefebfd1e4feffefeff2fedf2442ffffe2f24edd24520f2fe2f24edd2e520ff0e2e2effeffff0000ff2eef0f0000000000ffff000000000000000000000000") -const _hex7117 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000f0ff00000000f0ffffef0f000000fffefeee4efe0f00effef244deedfff0eefef2d4deedfff0eeeff24ee4fe0ff0eeefff1b4d420ff0fe2eefff4d420ff02f2eefd44d52fff0222eefd4ed52ff002f2efeeeffffff00f0eff2fe00f00f0000f0ff0f0000000000000000000000") +const _hex28240 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000ffff0000000000ff2eef0f000000f0e2e2effeffff002fe2f24edd2e520fffe2f24edd24520fefeff2fedf2442ffeffefebfd1e4feffeffe2eef44deedffefee2f4feddeed0ff0ee2f4fe44ffe00f0efefefee0f000000fffffffe000000000000ff0f00000000000000000000000000000000000000") +const _hex28242 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000f0ff0f00000000f0eff2fe00f00f002f2efeeefffffff0222eefd4ed52fff02f2eefd44d52fff0fe2eefffedfe0ff0eeefff1bdeed0ff0eeeff24edeed0ff0eefef2d44efeff00effef244feffff00fffefeee0ef00f00f0ffffef0f0000000000f0ff00000000000000000000000000000000000000") +const _hex28244 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000ffff0000000000ff2eef0f000000f0e2e2effeffff002fe2f24edd2e520fffe2f24edd24520fefeff2fedf2442ffeffefebfd1e4feffeffe2eef44deedffefee2f4feddeed0ff0ee2f4fe44ffe00f0efefefee0f000000fffffffe000000000000ff0f00000000000000000000000000000000000000") +const _hex28246 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000f0ff0f00000000f0eff2fe00f00f002f2efeeefffffff0222eefd4ed52fff02f2eefd44d52fff0fe2eefff4d420ff0eeefff1b4d420ff0eeeff24ee4fe0ff0eefef2d4deedff00effef244deedff00fffefeee4efe0f00f0ffffef0f0000000000f0ff00000000000000000000000000000000000000") -function inline__P7121(s) { +function inline__P28250(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2825,17 +3458,59 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } + s.tmp_0 = StatusBarSprite_value__P4158_mk(s); + s.tmp_1 = r0 = globals.statusbar___28063; + s.tmp_0.arg0 = r0; + s.tmp_3 = StatusBarSprite_value__P4157_mk(s); + s.tmp_3.arg0 = s.tmp_1; + s.callLocIdx = 147; s.pc = 4; return s.tmp_3; + case 4: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 + -1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 148; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = (globals.Soundeffects___28041 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = music_playSoundEffect__P1772_mk(s); + s.tmp_2 = music_createSoundEffect__P1773_mk(s); + s.tmp_2.arg0 = 1; + s.tmp_2.arg1 = 330; + s.tmp_2.arg2 = 1; + s.tmp_2.arg3 = 255; + s.tmp_2.arg4 = 0; + s.tmp_2.arg5 = 300; + s.tmp_2.arg6 = 0; + s.tmp_2.arg7 = 0; + s.callLocIdx = 149; s.pc = 6; return s.tmp_2; + case 6: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 1; + s.callLocIdx = 150; 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__P7121.info = {"start":12189,"length":36,"line":320,"column":58,"endLine":322,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","otherSprite"]} +inline__P28250.info = {"start":9056,"length":284,"line":204,"column":59,"endLine":209,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","otherSprite"]} -function inline__P7121_mk(s) { +function inline__P28250_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7121, depth: s.depth + 1, + parent: s, fn: inline__P28250, depth: s.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, } } @@ -2844,7 +3519,7 @@ function inline__P7121_mk(s) { -function inline__P7127(s) { +function inline__P28270(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2854,34 +3529,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = Sprite_startEffect__P2254_mk(s); - s.tmp_0.arg0 = globals.mySprite___4229; - s.tmp_0.arg1 = globals.halo___3069; - s.tmp_0.arg2 = 1500; - s.callLocIdx = 138; s.pc = 1; return s.tmp_0; + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim.image.ofBuffer(_hex28275); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + s.tmp_2 = animation_runImageAnimation__P3172_mk(s); + s.tmp_2.arg0 = globals.mySprite___28017; + s.tmp_2.arg1 = s.tmp_0; + s.tmp_2.arg2 = 100; + s.tmp_2.arg3 = true; + s.callLocIdx = 152; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; - r0 = (globals.count2___4230 + 1); - globals.count2___4230 = (r0); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P7127.info = {"start":12283,"length":76,"line":323,"column":56,"endLine":326,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +inline__P28270.info = {"start":9399,"length":764,"line":210,"column":57,"endLine":234,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function inline__P7127_mk(s) { +function inline__P28270_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7127, depth: s.depth + 1, + parent: s, fn: inline__P28270, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, } } +const _hex28275 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000ff0f00000000fffffffe000000f0efefefee0f0000f0ee2f4fe44ffe00efee2f4feddeed0feffe2eef44deedffeffefebfd1e4feffefeff2fedf2442ffffe2f24edd24520f2fe2f24edd2e520ff0e2e2effeffff0000ff2eef0f0000000000ffff000000000000000000000000") -function inline__P7198(s) { +function inline__P28279(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2891,122 +3573,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_1 = Sprite_isHittingTile__P2262_mk(s); - s.tmp_1.arg0 = globals.mySprite2___4235; - s.tmp_1.arg1 = 2; - s.callLocIdx = 160; s.pc = 13; return s.tmp_1; - case 13: - r0 = s.retval; + r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = (globals.phase___4234 < 10); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 1; continue; } - globals.speed___4232 = (-100); - { step = 4; continue; } + r0 = pxsim.image.ofBuffer(_hex28284); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + s.tmp_2 = animation_runImageAnimation__P3172_mk(s); + s.tmp_2.arg0 = globals.mySprite___28017; + s.tmp_2.arg1 = s.tmp_0; + s.tmp_2.arg2 = 100; + s.tmp_2.arg3 = false; + s.callLocIdx = 154; s.pc = 1; return s.tmp_2; case 1: - r0 = (globals.phase___4234 >= 11); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - globals.speed___4232 = (-200); - case 2: - case 3: - case 4: - s.tmp_0 = Sprite_vx__P2200_mk(s); - s.tmp_0.arg0 = globals.mySprite2___4235; - s.tmp_0.arg1 = globals.speed___4232; - s.callLocIdx = 161; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - s.tmp_0 = Sprite_vy__P2202_mk(s); - s.tmp_1 = r0 = globals.mySprite2___4235; - s.tmp_0.arg0 = r0; - s.tmp_3 = Sprite_vy__P2201_mk(s); - s.tmp_3.arg0 = s.tmp_1; - s.callLocIdx = 162; s.pc = 16; return s.tmp_3; - case 16: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 + -220); - s.tmp_0.arg1 = r0; - s.callLocIdx = 163; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - r0 = (globals.phase___4234 + 1); - globals.phase___4234 = (r0); - case 5: - case 6: - s.tmp_1 = Sprite_isHittingTile__P2262_mk(s); - s.tmp_1.arg0 = globals.mySprite2___4235; - s.tmp_1.arg1 = 0; - s.callLocIdx = 164; s.pc = 17; return s.tmp_1; - case 17: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - r0 = (globals.phase___4234 < 10); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 7; continue; } - globals.speed___4232 = (100); - { step = 10; continue; } - case 7: - r0 = (globals.phase___4234 >= 11); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - globals.speed___4232 = (200); - case 8: - case 9: - case 10: - s.tmp_0 = Sprite_vx__P2200_mk(s); - s.tmp_0.arg0 = globals.mySprite2___4235; - s.tmp_0.arg1 = globals.speed___4232; - s.callLocIdx = 165; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; - s.tmp_0 = Sprite_vy__P2202_mk(s); - s.tmp_1 = r0 = globals.mySprite2___4235; - s.tmp_0.arg0 = r0; - s.tmp_3 = Sprite_vy__P2201_mk(s); - s.tmp_3.arg0 = s.tmp_1; - s.callLocIdx = 166; s.pc = 20; return s.tmp_3; - case 20: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 + -220); - s.tmp_0.arg1 = r0; - s.callLocIdx = 167; s.pc = 19; return s.tmp_0; - case 19: r0 = s.retval; - case 11: - case 12: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P7198.info = {"start":35619,"length":521,"line":555,"column":25,"endLine":575,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +inline__P28279.info = {"start":10221,"length":765,"line":235,"column":56,"endLine":259,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function inline__P7198_mk(s) { +function inline__P28279_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7198, depth: s.depth + 1, + parent: s, fn: inline__P28279, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, } } +const _hex28284 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000ffff0000000000ff2eef0f000000f0e2e2effeffff002fe2f24edd2e520fffe2f24edd24520fefeff2fedf2442ffeffefebfd1e4feffeffe2eef44deedffefee2f4feddeed0ff0ee2f4fe44ffe00f0efefefee0f000000fffffffe000000000000ff0f00000000000000000000000000000000000000") -function inline__P7244(s) { +function inline__P28289(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3016,153 +3617,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.count___4233 == 55); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_1 = Sprite_setPosition__P2250_mk(s); - s.tmp_1.arg0 = globals.mySprite___4229; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + s.tmp_0 = Sprite_setPosition__P2250_mk(s); + s.tmp_0.arg0 = globals.mySprite4___28068; r0 = pxsim.Math_.randomRange(0, 160); - s.tmp_1.arg1 = r0; + s.tmp_0.arg1 = r0; r0 = pxsim.Math_.randomRange(160, 0); - s.tmp_1.arg2 = r0; - s.callLocIdx = 169; s.pc = 13; return s.tmp_1; - case 13: - r0 = s.retval; - s.tmp_1 = Math_percentChance__P2845_mk(s); - s.tmp_1.arg0 = 10; - s.callLocIdx = 170; s.pc = 14; return s.tmp_1; - case 14: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = tiles_placeOnTile__P2609_mk(s); - s.tmp_2.arg0 = globals.mySprite___4229; - s.tmp_3 = Sprite_tilemapLocation__P2265_mk(s); - s.tmp_3.arg0 = globals.mySprite4___4228; - s.callLocIdx = 171; s.pc = 16; return s.tmp_3; - case 16: - r0 = s.retval; - s.tmp_2.arg1 = r0; - s.callLocIdx = 172; s.pc = 15; return s.tmp_2; - case 15: - r0 = s.retval; + s.tmp_0.arg2 = r0; + s.callLocIdx = 157; s.pc = 1; return s.tmp_0; case 1: - case 2: - globals.count___4233 = (0); - case 3: - case 4: - r0 = (globals.phase___4234 >= 5); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_1 = Sprite_ay__P2206_mk(s); - s.tmp_1.arg0 = globals.mySprite2___4235; - s.tmp_1.arg1 = -500; - s.callLocIdx = 173; s.pc = 17; return s.tmp_1; - case 17: - r0 = s.retval; - case 5: - case 6: - r0 = (globals.phase___4234 == 10); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_1 = scene_cameraShake__P2723_mk(s); - s.tmp_1.arg0 = 4; - s.tmp_1.arg1 = 500; - s.callLocIdx = 174; s.pc = 18; return s.tmp_1; - case 18: - r0 = s.retval; - s.tmp_0 = scene_setBackgroundImage__P2719_mk(s); - r0 = pxsim.image.ofBuffer(_hex7270); - s.tmp_0.arg0 = r0; - s.callLocIdx = 175; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - r0 = (globals.phase___4234 + 1); - globals.phase___4234 = (r0); - case 7: - case 8: - r0 = (globals.phase___4234 == 21); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - s.tmp_1 = scene_cameraShake__P2723_mk(s); - s.tmp_1.arg0 = 4; - s.tmp_1.arg1 = 500; - s.callLocIdx = 176; s.pc = 20; return s.tmp_1; - case 20: - r0 = s.retval; - s.tmp_0 = scene_setBackgroundImage__P2719_mk(s); - r0 = pxsim.image.ofBuffer(_hex7280); - s.tmp_0.arg0 = r0; - s.callLocIdx = 177; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - s.tmp_0 = tiles_setCurrentTilemap__P2600_mk(s); - s.tmp_1 = helpers_getTilemapByName__P3121_mk(s); - s.tmp_1.arg0 = "level4"; - s.callLocIdx = 178; s.pc = 23; return s.tmp_1; - case 23: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.callLocIdx = 179; s.pc = 22; return s.tmp_0; - case 22: - r0 = s.retval; - r0 = (globals.phase___4234 + 1); - globals.phase___4234 = (r0); - case 9: - case 10: - r0 = (globals.phase___4234 == 31); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.tmp_1 = Sprite_destroy__P2269_mk(s); - s.tmp_1.arg0 = globals.mySprite___4229; - s.tmp_1.arg1 = globals.blizzard___3072; - s.tmp_1.arg2 = 500; - s.callLocIdx = 180; s.pc = 24; return s.tmp_1; - case 24: - r0 = s.retval; - s.tmp_0 = pause__P413_mk(s); - s.tmp_0.arg0 = 1000; - s.callLocIdx = 181; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.tmp_0 = game_over__P2802_mk(s); - s.tmp_0.arg0 = false; - s.tmp_0.arg1 = undefined; - s.callLocIdx = 182; s.pc = 26; return s.tmp_0; - case 26: r0 = s.retval; - case 11: - case 12: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P7244.info = {"start":36150,"length":42259,"line":576,"column":8,"endLine":845,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +inline__P28289.info = {"start":11050,"length":91,"line":260,"column":62,"endLine":262,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","location"]} -function inline__P7244_mk(s) { +function inline__P28289_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7244, depth: s.depth + 1, + parent: s, fn: inline__P28289, depth: s.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, } } -const _hex7270 = pxsim.BufferMethods.createBufferFromHex("8704a0007800000099999999999999999999999999999999999999dddddddddddddddddddddddddddddd777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999dddddddddddddddddddddddddd7d77777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999d9dddddddddddddddddddddd7d7777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999d9dddddddddddddddddddd7d777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999d9dddddddddddddddddd7d7777777777777777777777777777777777777777777777777777777777779999999999999999999999999999999999999999dddddddddddddddddd777777777777777777777777777777777777777777777777777777777777779999999999999999999999999999999999999999d9dddddddddddddddd77777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999797777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999797777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999977777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999997977777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999dddddddd7777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999dddddddddd77777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999dddddddddd7d777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999dddddddddd7d777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999dddddddddddd777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999dddddddddddd7777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999d9dddddddddddd7777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999d9dddddddddddd7777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999d9dddddddddd7d777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999d9dddddddddddddd7777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999d9dddddddddddddddddd7777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999dddddddddddddddddd7d77777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999d9dddddddddddddddd7d7777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999d9dddddddddddddddd7d7777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999dddddddddddddddddd7d7777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999dddddddddddddddddd7d77777777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999d9dddddddddddddddddd7d77777777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999d9dddddddddddddddddddd77777777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999d9dddddddddddddddddddd77777777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999dddddddddddddddddddddddd777777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999dddddddddddddddddddddddddddd7d777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999dddddddddddddddddddddddddddd7d777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999d9dddddddddddddddddddddddddddd77777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999d9dddddddddddddddddddddddddd77777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999dddddddddddddddddddddd7777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999999999999999dddddddddddddd7777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999999999999999dddddddddddddd7d777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999dddddddddddddddd7d777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999dddddddddddddddddd777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999dddddddddddddddddd777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999d9dddddddddddddddd7d777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999999999999999dddddddddddddddddddd7d77777777777777777777777777777777777799999999999999999999999999999999999999999999999999999999999999d9dddddddddddddddddddd7777777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999dddddddddddddd7777777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999dddddddddddddd7777777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999dddddddddddddd7d77777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999dddddddddddddd7d77777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999dddddddddddddd7d77777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999dddddddddddddd7d77777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999dddddddddddddd7d77777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999dddddddddddddd7d77777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999dddddddddddddd7d77777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999d9dddddddddddd7d777777777777777777777777777777777799999999999999999999999999999999999999999999999999999999999999999999d9dddddddddddddd7d77777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999dddddddddddddddddddd7d77777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999dddddddddddddddddddddddddd7d7777777777777777777777777777777777999999999999999999999999999999999999999999999999999999d9dddddddddddddddddddddddddddddd7777777777777777777777777777777777999999999999999999999999999999999999999999999999999999dddddddddddddddddddddddddddddddd77777777777777777777777777777777779999999999999999999999999999999999999999999999999999d9dddddddddddddddddddddddddddddddd77777777777777777777777777777777779999999999999999999999999999999999999999999999999999d9dddddddddddddddddddddddddddddddd7777777777777777777777777777777777999999999999999999999999999999999999999999999999999999dddddddddddddddddddddddddddddddd7777777777777777777777777777777777999999999999999999999999999999999999999999999999999999dddddddddddddddddddddddddddddddd7777777777777777777777777777777777999999999999999999999999999999999999999999999999999999dddddddddddddddddddddddddddddd7d7777777777777777777777777777777777999999999999999999999999999999999999999999999999999999dddddddddddddddddddddddddddddd777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999d9dddddddddddddddddddd7d777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999d9dddddddddddddddd7d777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999999999dddddddddddddd7d77777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999999999dddddddddddddd77777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999dddddddddddddddd777777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999999999d9dddddddddddddd7d7777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999d9dddddddddddddddd7d7777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999dddddddddddddddddd7d77777777777777777777777777777777777777777777777777999999999999999999999999999999999999dddddddddddddddddddddddddddddddd7d77777777777777777777777777777777777777777777777777999999999999999999999999999999d9dddddddddddddddddddddddddddddddddddd7d777777777777777777777777777777777777777777777777779999999999999999999999999999dddddddddddddddddddddddddddddddddddddddd7d7777777777777777777777777777777777777777777777777799999999999999999999999999d9dddddddddddddddddddddddddddddddddddddddd7d7777777777777777777777777777777777777777777777777799999999999999999999999999d9dddddddddddddddddddddddddddddddddddddddd7d777777777777777777777777777777777777777777777777779999999999999999999999999999dddddddddddddddddddddddddddddddddddddddd7777777777777777777777777777777777777777777777777777999999999999999999999999999999dddddddddddddddddddddddddddddddddddd7d777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999dddddddddddddddddddddddddddd77777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999dddddddddddddddddddd7d7777777777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999d9dddddddddddddd7777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999d9dddddddd7777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999997777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999977777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999977777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999977777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999997977777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999997977777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999997977777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999997977777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999dd7d777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999d9dd7d777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999dddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999dddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999dddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999dddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999dddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999dddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999dddd7777777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999d9dddddd7777777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999dddddddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddd7d777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddddd777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddddddddddddddddddd7777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddddddddddddddddddddddd777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddddddddddddddddddddddddd7777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddddddddddddddddddddddddd777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999dddddddddddddddddddddddddddddd777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999dddddddddddddddddddddddddddddd7777777777777777777777777777777777777777777777777777") -const _hex7280 = pxsim.BufferMethods.createBufferFromHex("8704a00078000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9f99999999b99999f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff99999999bbebbbddbb9999f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9f999999bbbdbbbbbbbbbb9b9996f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9f999d99b9bbbbbbbbbbbbbbdb9d996999ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9f99999d99b9dbbbbbbbbbbbbbbbbbbb9969f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9fdd9d99999999bbbbbbbbbbbbbbbbbbbb999996f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd9dd9999999999b9bbbccbccbcbbbbbbbbbb999996ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfbb99999999996666bbbccbccbcbbcbbcbbbbdb966999ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfbbbb99996666666666e6bbcbccbbccbbbccbbbbbebcc69f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbdbb9d999966669d6d6666ccccccbbccbbcccbbcccbbcc9c96ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9fbbbbdb99999999dddd9999c6ccccccccccccccccccbbcbcc69f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbdbbbbdd696696d9dddd666666cccccccccccccccccccccccb9c96ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfbb9bbb6d66666666d6dd969999c9ccccccccccccccccccccbccc6cf9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbfbbd9bb6d9666669669dd666696c9ccccccccbccc9966c69699cccc96ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbd9b99dd6666969966666666669699ccccbcbbcc666666666669966c69f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfbb9999dd6696996666666666666699c6bcbb6666996666666966666696f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf9b99d66d666666666696696666666666bb66666666966666996669666696ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbd9b69d69966666666666666666666666666666666b66d6666666696666666ffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfdd9966d96666669669666666666666666666666666b66b6666666666996699f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffdf9d696666666666666666666666666666666666666666bb6d6666666699699696ffffffffffffffffffffffffffffffffffffffffffffffffffffff6969666666666666666666666666668668666666666666bb6b6666666666999699ffffffffffffffffffffffffffffffffffffffffffffffffffffff996696666666666666dd66886888668668886866886886b8bb6d66669666669969ffffffffffffffffffffffffffffffffffffffffffffffffffffffd66d66666666666686686688688886688688686688668688bd6b66666669666699f9ffffffffffffffffffffffffffffffffffffffffffffffffff9fd66d696666688668886866688888886888888888888886886ddb6666666d6d6696f9ffffffffffffffffffffffffffffffffffffffffffffffffff9fdd6666668668886866868888888888888888868888888888d8bd6b66d66d6d669696ffffffffffffffffffffffffffffffffffffffffffffffffff9fbd6b6666886868668888888888888888888688888866868888b6bb6d66dd6d666691ffffffffffffffffffffffffffffffffffffffffffffffffffd9bbd66d6666868888886686886866868888868888888888888888bbdb66dd66666611ffffffffffffffffffffffffffffffffffffffffffffffffffd9bbbd66888668868868666686888888668888888888888888888888bbdd8868666666ffffffffffffffffffffffffffffffffffffffffffffffffffbd6bbb88888888888888868888888886888888888888888888886666b6dd8866666611f9ffffffffffffffffffffffffffffffffffffffffffffffffbd6b6d888888888888b8bbbbbd8b888888888888888888668888888888888888868811f9ffffffffffffffffffffffffffffffffffffffffffffff9fbb66668688888888b8bbddddbdbb8b8888888888888888888888868888888888888818f9ffffffffffffffffffffffffffffffffffffffffffffff9fdd16888688688886b8dbddddbbbbbb8888888888888888888888886888886666888816f9ffffffffffffffffffffffffffffffffffffffffffffffdf6d88888888868888b8ddbbbdbdbbbb888888888888888888886688686688688886886696ffffffffffffffffffffffffffffffffffffffffffffff9f66888888888888b8dbddbbbbbdbbbb8b888d888888888888888868686686686688181196ffffffffffffffffffffffffffffffffffffffffffffff9f8688688888bb88d8dddddbbbbbbbbb8bd88d888888888888888888888866688888881891ffffffffffffffffffffffffffffffffffffffffffffffbf81118888b8bb88d8dddbbddbbbbbbb8bd88d888888888888888888888888688888111891ffffffffffffffffffffffffffffffffffffffffffffffbf86818888cccb88ddddbbbdbbbbbbbb8b88dd8d8888888888888888888888688888811196ffffffffffffffffffffffffffffffffffffffffffffffbf188888c8cbbb88ddddbbbbbbbbbbbb8e88db8d8888888888888888888888888888888196ffffffffffffffffffffffffffffffffffffffffffffffbf1b8188ccbb8bb8ddbdbbbbbbbbbbbb8bd8bbdd8888888888888888888888888888881196ffffffffffffffffffffffffffffffffffffffffffffffbf1c8888cc8c88b8ddbbddbdbbbbbbbb88bdbb8d8888888888888888888888888888881896ffffffffffffffffffffffffffffffffffffffffffffffcfcc1c88cc8b88d8bdbbbbbbbbbbbbbb88b8bb8d8888888888888888888888888888881899ffffffffffffffffffffffffffffffffffffffffffffffffcc8cc8bc8e88bbdddbbbbbbbbbbbbb88d8bd8b88888888888888888888888888888868f9ffffffffffffffffffffffffffffffffffffffffffffffffcc8cc8bc8888b8bddbbbbbbbbbbbbb8b88888d88888888888888888888888888888868f9ffffffffffffffffffffffffffffffffffffffffffffffffcc1cc8bc8b88e8bdbbbbbbbbbbbbbbbb8e888d88888888888888888888888888888866f9ffffffffffffffffffffffffffffffffffffffffffffffffcc8cc8cc8b88b8ddbdbbbbbbbbbbbbbbbb8c8888888888888888888888888888888861ffffffffffffffffffffffffffffffffffffffffffffffffffc9ccc8ccbb88b8debbbbbbbbbbbbbbbbbbbb8888888888888888888888888888881891ffffffffffffffffffffffffffffffffffffffffffffffffffbfcbc88cbc8c88c8bbbbbbbbbbbbbbbbbbbbbbb8bbbbbbbb8c88888888888888888896ffffffffffffffffffffffffffffffffffffffffffffffffff9fcbccbcbbbc88c8bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcbb8b88888888881681f6ffffffffffffffffffffffffffffffffffffffffffffffffff9fccccccbccc88c8bcbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb8b888888881868f9ffffffffffffffffffffffffffffffffffffffffffffffffffffc9ccccbc8888c8bcbbbbbbbbbbbbbbbbbbbbbbbbbbbbcbbcccbcbb888888888868f9ffffffffffffffffffffffffffffffffffffffffffffffffffffb9cccc8c8888c8bcbbbbbbbbbbbbbbbbbbbbcbccbcccccbcccbb8b888888888868ffffffffffffffffffffffffffffffffffffffffffffffffffffffefcccc8c8888d8bcbcbbbbbbbbcbccccbbbbcbcccbcccccccccc8c888888888896ffffffffffffffffffffffffffffffffffffffffffffffffffffff9fcccc8cbb8888ccccccccbcccccccccbbcccccccccccccccccc888888888888f6ffffffffffffffffffffffffffffffffffffffffffffffffffffffffc9cc8bc88c88ccbccccccccbbbcccccccccccccccccccccccc888888d88d68f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffc9cc8bc88cb8cbcccccccccccccccccccccccccccccccccc888888b8db8896ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9fccbc8b8888c8ccccccbccccccccccccccccccccccccc88888888b88e6896ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc6ccbbbceb8bcccccccccccccccccccccccccccccc8c88888888888868f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc9ccccccbcbb88cccccccccccccccccccccccccc888888888888888896ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9fcb88cccccb8bc8cccccccccccccccccccccc8c8888888888888868f6ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc98c88cbccbb88c8cccccccccccccccccccc888888888888888866f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcf6cc8bbcccc8b88cccccccccccccccc8888888888888888886896ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcc86bcbcccbb8888cccccccccc8888888888b8bb8888888866f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9f6cbcb8cccc8b88cccccceb888888888888bbcc8888886896ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc9bc8bc8ccbb88c8ccccbb88888888c8dcddc888986896ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9fccbb88ccbc8888cc8c8888888888c8dc888888bd9bf9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9fbb8bc8cc88888888888888888888888888886696ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc9cc88cc888888888888888888888888886696ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6966868888888888888888888888886896f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff696686888888888888888888886896f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff99668688888888bb8888686696ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9f9966666666bb6b6696f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9f9999999999f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff") -function inline__P7297(s) { +function inline__P28300(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3172,87 +3661,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = sprites_createProjectileFromSprite__P2123_mk(s); - r0 = pxsim.image.ofBuffer(_hex7301); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.mySprite2___4235; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = 200; - s.callLocIdx = 184; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - globals.projectile2___4225 = (r0); - s.tmp_0 = Sprite_setKind__P2249_mk(s); - s.tmp_0.arg0 = globals.projectile2___4225; - s.tmp_0.arg1 = globals.pro2___4223; - s.callLocIdx = 185; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_1 = Math_percentChance__P2845_mk(s); - s.tmp_1.arg0 = 10; - s.callLocIdx = 186; s.pc = 7; return s.tmp_1; - case 7: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = (globals.phase___4234 >= 5); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 1; continue; } - s.tmp_3 = sprites_createProjectileFromSprite__P2123_mk(s); - r0 = pxsim.image.ofBuffer(_hex7312); - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = globals.mySprite2___4235; - s.tmp_3.arg2 = 0; - s.tmp_3.arg3 = 200; - s.callLocIdx = 187; s.pc = 8; return s.tmp_3; - case 8: - r0 = s.retval; - globals.projectile2___4225 = (r0); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = game_over__P2802_mk(s); + s.tmp_0.arg0 = true; + s.tmp_0.arg1 = undefined; + s.callLocIdx = 159; s.pc = 1; return s.tmp_0; case 1: - case 2: - s.tmp_0 = scaling_scaleByPixels__P4221_mk(s); - s.tmp_0.arg0 = globals.projectile2___4225; - s.tmp_0.arg1 = 100; - s.tmp_0.arg2 = 3; - s.tmp_0.arg3 = 0; - s.tmp_0.arg4 = 0; - s.callLocIdx = 188; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.tmp_0 = Sprite_setKind__P2249_mk(s); - s.tmp_0.arg0 = globals.projectile2___4225; - s.tmp_0.arg1 = globals.pro2___4223; - s.callLocIdx = 189; s.pc = 10; return s.tmp_0; - case 10: r0 = s.retval; - case 3: - case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P7297.info = {"start":78438,"length":1903,"line":846,"column":27,"endLine":890,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +inline__P28300.info = {"start":11188,"length":41,"line":263,"column":45,"endLine":265,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["status"]} -function inline__P7297_mk(s) { +function inline__P28300_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7297, depth: s.depth + 1, + parent: s, fn: inline__P28300, depth: s.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 _hex7301 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202233230000202233111131020010111111111102002022331111310200000020323323000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7312 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202233230000202233111131020010111111111102002022331111310200000020323323000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -function scaling_scaleByPixels__P4221(s) { +function inline__P28308(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3262,130 +3700,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sx___7342 = undefined; - s.sy___7343 = undefined; - s.imgW___7347 = undefined; - s.newW___7351 = undefined; - s.imgH___7363 = undefined; - s.newH___7367 = 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 = r0 = s.arg2; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_0 = Sprite_setPosition__P2250_mk(s); + s.tmp_0.arg0 = globals.mySprite4___28068; + r0 = pxsim.Math_.randomRange(0, 160); + s.tmp_0.arg1 = r0; + r0 = pxsim.Math_.randomRange(160, 0); + s.tmp_0.arg2 = r0; + s.callLocIdx = 162; s.pc = 1; return s.tmp_0; case 1: - r0 = 2; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - s.arg2 = (s.tmp_1); - s.tmp_0 = r0 = s.arg3; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = 0; - case 4: - // jmp value (already in r0) - s.tmp_1 = r0; - s.arg3 = (s.tmp_1); - r0 = (s.arg4 == null); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = (s.arg2 === 3); - s.arg4 = (r0); - case 5: - case 6: - r0 = (s.arg2 & 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = s.arg0.fields["_image"]; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_1); - s.imgW___7347 = (r0); - s.tmp_1 = Sprite_width__P2238_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 1819; s.pc = 11; return s.tmp_1; - case 11: - r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 + s.arg1); - s.newW___7351 = (r0); - r0 = (s.newW___7351 / s.imgW___7347); - s.sx___7342 = (r0); - case 7: - case 8: - r0 = (s.arg2 & 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = s.arg0.fields["_image"]; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_1); - s.imgH___7363 = (r0); - s.tmp_1 = Sprite_height__P2239_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 1821; s.pc = 12; return s.tmp_1; - case 12: - r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 + s.arg1); - s.newH___7367 = (r0); - r0 = (s.newH___7367 / s.imgH___7363); - s.sy___7343 = (r0); - case 9: - case 10: - s.tmp_0 = Sprite_setScaleCore__P2272_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.sx___7342; - s.tmp_0.arg2 = s.sy___7343; - s.tmp_0.arg3 = s.arg3; - s.tmp_0.arg4 = s.arg4; - s.callLocIdx = 1822; s.pc = 13; return s.tmp_0; - case 13: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scaling_scaleByPixels__P4221.info = {"start":3468,"length":832,"line":88,"column":4,"endLine":110,"endColumn":5,"fileName":"pxt_modules/sprite-scaling/scaling.ts","functionName":"scaleByPixels","argumentNames":["sprite","value","direction","anchor","proportional"]} +inline__P28308.info = {"start":11292,"length":91,"line":266,"column":61,"endLine":268,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","location"]} -function scaling_scaleByPixels__P4221_mk(s) { +function inline__P28308_mk(s) { checkStack(s.depth); return { - parent: s, fn: scaling_scaleByPixels__P4221, depth: s.depth + 1, + parent: s, fn: inline__P28308, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - sx___7342: undefined, - sy___7343: undefined, - imgW___7347: undefined, - newW___7351: undefined, - imgH___7363: undefined, - newH___7367: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function Sprite_setScaleCore__P2272(s) { +function inline__P28320(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3395,309 +3744,120 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hasSx___7391 = undefined; - s.hasSy___7395 = undefined; - s.oldW___7399 = undefined; - s.oldH___7401 = undefined; - s.oldSx___7404 = undefined; - s.ratio___7412 = undefined; - s.oldSy___7421 = undefined; - s.ratio___7429 = undefined; - s.newW___7442 = undefined; - s.diff___7444 = undefined; - s.diffOver2___7448 = undefined; - s.newH___7470 = undefined; - s.diff___7472 = undefined; - s.diffOver2___7476 = 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, Sprite__C2182_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg3; - r0 = pxsim_numops_toBool(s.tmp_0); + s.tmp_0 = Sprite_startEffect__P2254_mk(s); + s.tmp_0.arg0 = globals.mySprite___28017; + s.tmp_0.arg1 = globals.halo___3069; + s.tmp_0.arg2 = 1500; + s.callLocIdx = 164; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = (globals.count___28326 + 1); + globals.count___28326 = (r0); + r0 = (globals.Soundeffects___28041 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - s.arg3 = (s.tmp_1); - r0 = (s.arg1 != null); - s.hasSx___7391 = (r0); - r0 = (s.arg2 != null); - s.hasSy___7395 = (r0); - s.tmp_0 = Sprite_width__P2238_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 532; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - s.oldW___7399 = (r0); - s.tmp_0 = Sprite_height__P2239_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 533; s.pc = 28; return s.tmp_0; - case 28: - r0 = s.retval; - s.oldH___7401 = (r0); - r0 = pxsim_numops_toBoolDecr(s.hasSx___7391); - if (!r0) { step = 7; continue; } - s.tmp_0 = Sprite_sx__P2211_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 534; s.pc = 29; return s.tmp_0; - case 29: - r0 = s.retval; - s.oldSx___7404 = (r0); - s.tmp_0 = Sprite_sx__P2212_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 535; s.pc = 30; return s.tmp_0; - case 30: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.hasSy___7395); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = s.arg4; - case 4: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 5; continue; } - r0 = (s.arg1 / s.oldSx___7404); - s.ratio___7412 = (r0); - s.tmp_0 = Sprite_sy__P2214_mk(s); - s.tmp_1 = r0 = s.arg0; - s.tmp_0.arg0 = r0; - s.tmp_3 = Sprite_sy__P2213_mk(s); - s.tmp_3.arg0 = s.tmp_1; - s.callLocIdx = 536; s.pc = 32; return s.tmp_3; - case 32: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * s.ratio___7412); - s.tmp_0.arg1 = r0; - s.callLocIdx = 537; s.pc = 31; return s.tmp_0; - case 31: - r0 = s.retval; + s.tmp_1 = music_playSoundEffect__P1772_mk(s); + s.tmp_2 = music_createSoundEffect__P1773_mk(s); + s.tmp_2.arg0 = 4; + s.tmp_2.arg1 = 687; + s.tmp_2.arg2 = 1043; + s.tmp_2.arg3 = 255; + s.tmp_2.arg4 = 0; + s.tmp_2.arg5 = 50; + s.tmp_2.arg6 = 0; + s.tmp_2.arg7 = 0; + s.callLocIdx = 165; s.pc = 5; return s.tmp_2; case 5: - case 6: - case 7: - case 8: - r0 = pxsim_numops_toBoolDecr(s.hasSy___7395); - if (!r0) { step = 13; continue; } - s.tmp_0 = Sprite_sy__P2213_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 538; s.pc = 33; return s.tmp_0; - case 33: - r0 = s.retval; - s.oldSy___7421 = (r0); - s.tmp_0 = Sprite_sy__P2214_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 539; s.pc = 34; return s.tmp_0; - case 34: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.hasSx___7391); - 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 = 9; continue; } - r0 = s.tmp_0; - { step = 10; continue; } - case 9: - r0 = s.arg4; - case 10: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 11; continue; } - r0 = (s.arg2 / s.oldSy___7421); - s.ratio___7429 = (r0); - s.tmp_0 = Sprite_sx__P2212_mk(s); - s.tmp_1 = r0 = s.arg0; - s.tmp_0.arg0 = r0; - s.tmp_3 = Sprite_sx__P2211_mk(s); - s.tmp_3.arg0 = s.tmp_1; - s.callLocIdx = 540; s.pc = 36; return s.tmp_3; - case 36: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * s.ratio___7429); - s.tmp_0.arg1 = r0; - s.callLocIdx = 541; s.pc = 35; return s.tmp_0; - case 35: - r0 = s.retval; - case 11: - case 12: - case 13: - case 14: - r0 = (s.arg3 & 6); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 19; continue; } - s.tmp_1 = Sprite_width__P2238_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 542; s.pc = 37; return s.tmp_1; - case 37: - r0 = s.retval; - s.newW___7442 = (r0); - r0 = (s.newW___7442 - s.oldW___7399); - s.diff___7444 = (r0); - r0 = (s.diff___7444 / 2); - s.diffOver2___7448 = (r0); - r0 = (s.arg3 & 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - s.tmp_1 = Sprite_x__P2196_mk(s); - s.tmp_2 = r0 = s.arg0; - s.tmp_1.arg0 = r0; - s.tmp_4 = Sprite_x__P2195_mk(s); - s.tmp_4.arg0 = s.tmp_2; - s.callLocIdx = 543; s.pc = 39; return s.tmp_4; - case 39: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 + s.diffOver2___7448); - s.tmp_1.arg1 = r0; - s.callLocIdx = 544; s.pc = 38; return s.tmp_1; - case 38: - r0 = s.retval; - case 15: - case 16: - r0 = (s.arg3 & 4); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 17; continue; } - s.tmp_1 = Sprite_x__P2196_mk(s); - s.tmp_2 = r0 = s.arg0; - s.tmp_1.arg0 = r0; - s.tmp_4 = Sprite_x__P2195_mk(s); - s.tmp_4.arg0 = s.tmp_2; - s.callLocIdx = 545; s.pc = 41; return s.tmp_4; - case 41: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 - s.diffOver2___7448); - s.tmp_1.arg1 = r0; - s.callLocIdx = 546; s.pc = 40; return s.tmp_1; - case 40: r0 = s.retval; - case 17: - case 18: - case 19: - case 20: - r0 = (s.arg3 & 9); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 25; continue; } - s.tmp_1 = Sprite_height__P2239_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 547; s.pc = 42; return s.tmp_1; - case 42: - r0 = s.retval; - s.newH___7470 = (r0); - r0 = (s.newH___7470 - s.oldH___7401); - s.diff___7472 = (r0); - r0 = (s.diff___7472 / 2); - s.diffOver2___7476 = (r0); - r0 = (s.arg3 & 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 21; continue; } - s.tmp_1 = Sprite_y__P2198_mk(s); - s.tmp_2 = r0 = s.arg0; s.tmp_1.arg0 = r0; - s.tmp_4 = Sprite_y__P2197_mk(s); - s.tmp_4.arg0 = s.tmp_2; - s.callLocIdx = 548; s.pc = 44; return s.tmp_4; - case 44: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 + s.diffOver2___7476); - s.tmp_1.arg1 = r0; - s.callLocIdx = 549; s.pc = 43; return s.tmp_1; - case 43: + s.tmp_1.arg1 = 1; + s.callLocIdx = 166; s.pc = 4; return s.tmp_1; + case 4: r0 = s.retval; - case 21: - case 22: - r0 = (s.arg3 & 8); + case 1: + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P28320.info = {"start":11438,"length":298,"line":269,"column":53,"endLine":275,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} + +function inline__P28320_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P28320, 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__P28341(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + globals.Facing___28037 = (1); + r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 23; continue; } - s.tmp_1 = Sprite_y__P2198_mk(s); - s.tmp_2 = r0 = s.arg0; - s.tmp_1.arg0 = r0; - s.tmp_4 = Sprite_y__P2197_mk(s); - s.tmp_4.arg0 = s.tmp_2; - s.callLocIdx = 550; s.pc = 46; return s.tmp_4; - case 46: - r0 = s.retval; + r0 = pxsim.image.ofBuffer(_hex28347); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + r0 = pxsim.image.ofBuffer(_hex28349); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); + r0 = pxsim.image.ofBuffer(_hex28351); s.tmp_3 = r0; - r0 = (s.tmp_3 - s.diffOver2___7476); - s.tmp_1.arg1 = r0; - s.callLocIdx = 551; s.pc = 45; return s.tmp_1; - case 45: + r0 = pxsim_Array__push(s.tmp_0, s.tmp_3); + r0 = pxsim.image.ofBuffer(_hex28353); + s.tmp_4 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_4); + s.tmp_5 = animation_runImageAnimation__P3172_mk(s); + s.tmp_5.arg0 = globals.mySprite___28017; + s.tmp_5.arg1 = s.tmp_0; + s.tmp_5.arg2 = 100; + s.tmp_5.arg3 = true; + s.callLocIdx = 168; s.pc = 1; return s.tmp_5; + case 1: r0 = s.retval; - case 23: - case 24: - case 25: - case 26: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_setScaleCore__P2272.info = {"start":31133,"length":1383,"line":979,"column":4,"endLine":1019,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setScaleCore","argumentNames":["this","sx","sy","anchor","proportional"]} +inline__P28341.info = {"start":11794,"length":2792,"line":276,"column":56,"endLine":352,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function Sprite_setScaleCore__P2272_mk(s) { +function inline__P28341_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setScaleCore__P2272, depth: s.depth + 1, + parent: s, fn: inline__P28341, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - hasSx___7391: undefined, - hasSy___7395: undefined, - oldW___7399: undefined, - oldH___7401: undefined, - oldSx___7404: undefined, - ratio___7412: undefined, - oldSy___7421: undefined, - ratio___7429: undefined, - newW___7442: undefined, - diff___7444: undefined, - diffOver2___7448: undefined, - newH___7470: undefined, - diff___7472: undefined, - diffOver2___7476: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, + tmp_5: undefined, } } +const _hex28347 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000ff0f00000000fffffffe000000f0efefefee0f0000f0ee2f4fe44ffe00efee2f4feddeed0feffe2eef44deedffeffefebfd1e4feffefeff2fedf2442ffffe2f24edd24520f2fe2f24edd2e520ff0e2e2effeffff0000ff2eef0f0000000000ffff000000000000000000000000") +const _hex28349 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000f0ff00000000f0ffffef0f000000fffefeee0ef00f00effef244fefffff0eefef2d44efefff0eeeff24edeed0ff0eeefff1bdeed0ff0fe2eefffedfe0ff02f2eefd44d52fff0222eefd4ed52ff002f2efeeeffffff00f0eff2fe00f00f0000f0ff0f0000000000000000000000") +const _hex28351 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000ff0f00000000fffffffe000000f0efefefee0f0000f0ee2f4fe44ffe00efee2f4feddeed0feffe2eef44deedffeffefebfd1e4feffefeff2fedf2442ffffe2f24edd24520f2fe2f24edd2e520ff0e2e2effeffff0000ff2eef0f0000000000ffff000000000000000000000000") +const _hex28353 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000f0ff00000000f0ffffef0f000000fffefeee4efe0f00effef244deedfff0eefef2d4deedfff0eeeff24ee4fe0ff0eeefff1b4d420ff0fe2eefff4d420ff02f2eefd44d52fff0222eefd4ed52ff002f2efeeeffffff00f0eff2fe00f00f0000f0ff0f0000000000000000000000") -function Sprite_sy__P2214(s) { +function inline__P28357(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3707,73 +3867,56 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.y___7592 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - s.tmp_0 = Sprite_y__P2197_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 400; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.y___7592 = (r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P130_mk(s); - s.tmp_3.arg0 = 0; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 401; s.pc = 2; return s.tmp_3; - case 2: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_sy"] = (s.tmp_1); - s.tmp_0 = Sprite__C2182_v5_1_mk(s); + s.tmp_0 = Sprite_destroy__P2269_mk(s); s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, Sprite__C2182_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.recalcSize; - s.pc = 3; return s.tmp_0; + s.tmp_0.arg1 = globals.fire___3066; + s.tmp_0.arg2 = 500; + s.callLocIdx = 170; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = Sprite_top__P2245_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.y___7592; - s.tmp_4 = Sprite_height__P2239_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 403; s.pc = 5; return s.tmp_4; + r0 = (globals.Soundeffects___28041 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = music_playSoundEffect__P1772_mk(s); + s.tmp_2 = music_createSoundEffect__P1773_mk(s); + s.tmp_2.arg0 = 2; + s.tmp_2.arg1 = 330; + s.tmp_2.arg2 = 1; + s.tmp_2.arg3 = 255; + s.tmp_2.arg4 = 0; + s.tmp_2.arg5 = 300; + s.tmp_2.arg6 = 0; + s.tmp_2.arg7 = 0; + s.callLocIdx = 171; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 / 2); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 404; s.pc = 4; return s.tmp_0; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 1; + s.callLocIdx = 172; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_sy__P2214.info = {"start":5879,"length":158,"line":214,"column":4,"endLine":219,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"sy","argumentNames":["this","v"]} +inline__P28357.info = {"start":14646,"length":296,"line":353,"column":58,"endLine":358,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","otherSprite"]} -function Sprite_sy__P2214_mk(s) { +function inline__P28357_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_sy__P2214, depth: s.depth + 1, + parent: s, fn: inline__P28357, depth: s.depth + 1, pc: 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___7592: undefined, arg0: undefined, arg1: undefined, } } @@ -3782,7 +3925,7 @@ function Sprite_sy__P2214_mk(s) { -function Sprite_recalcSize__P4522(s) { +function inline__P28374(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3794,78 +3937,68 @@ 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__C2182_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["_image"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_4); - s.tmp_3 = r0; - s.tmp_6 = Sprite_sx__P2211_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 420; s.pc = 1; return s.tmp_6; - case 1: + s.tmp_0 = Sprite_destroy__P2269_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = globals.fire___3066; + s.tmp_0.arg2 = 500; + s.callLocIdx = 174; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_3 * s.tmp_5); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_7 = r0; - r0 = (s.tmp_7 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_width"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["_image"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_4); - s.tmp_3 = r0; - s.tmp_6 = Sprite_sy__P2213_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 422; s.pc = 2; return s.tmp_6; - case 2: + s.tmp_0 = info_changeLifeBy__P2410_mk(s); + s.tmp_0.arg0 = -10; + s.callLocIdx = 175; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_3 * s.tmp_5); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_7 = r0; - r0 = (s.tmp_7 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_height"] = (s.tmp_1); - s.tmp_0 = Sprite_resetHitbox__P2234_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 424; s.pc = 3; return s.tmp_0; - case 3: + r0 = (globals.Soundeffects___28041 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = music_playSoundEffect__P1772_mk(s); + s.tmp_2 = music_createSoundEffect__P1773_mk(s); + s.tmp_2.arg0 = 3; + s.tmp_2.arg1 = 200; + s.tmp_2.arg2 = 330; + s.tmp_2.arg3 = 255; + s.tmp_2.arg4 = 0; + s.tmp_2.arg5 = 400; + s.tmp_2.arg6 = 3; + s.tmp_2.arg7 = 1; + s.callLocIdx = 176; s.pc = 6; return s.tmp_2; + case 6: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 1; + s.callLocIdx = 177; s.pc = 5; return s.tmp_1; + case 5: r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_recalcSize__P4522.info = {"start":9982,"length":178,"line":363,"column":4,"endLine":367,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"recalcSize","argumentNames":["this"]} +inline__P28374.info = {"start":14998,"length":329,"line":359,"column":54,"endLine":365,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","otherSprite"]} -function Sprite_recalcSize__P4522_mk(s) { +function inline__P28374_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_recalcSize__P4522, depth: s.depth + 1, + parent: s, fn: inline__P28374, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, arg0: undefined, + arg1: undefined, } } -function Sprite_resetHitbox__P2234(s) { +function inline__P28394(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3875,40 +4008,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - r0 = (s.arg0).fields["_hitbox"] = (null); - s.tmp_0 = Sprite__C2182_v4_1_mk(s); - s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, Sprite__C2182_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.setHitbox; - s.pc = 1; return s.tmp_0; + s.tmp_0 = Sprite_startEffect__P2254_mk(s); + s.tmp_0.arg0 = globals.mySprite___28017; + s.tmp_0.arg1 = globals.halo___3069; + s.tmp_0.arg2 = 1500; + s.callLocIdx = 179; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; + r0 = (globals.count2___28209 + 10); + globals.count2___28209 = (r0); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_resetHitbox__P2234.info = {"start":9580,"length":76,"line":342,"column":4,"endLine":345,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"resetHitbox","argumentNames":["this"]} +inline__P28394.info = {"start":15385,"length":77,"line":366,"column":56,"endLine":369,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function Sprite_resetHitbox__P2234_mk(s) { +function inline__P28394_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_resetHitbox__P2234, depth: s.depth + 1, + parent: s, fn: inline__P28394, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, } } -function Sprite_setHitbox__P2235(s) { +function inline__P28405(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3920,53 +4047,68 @@ 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__C2182_VT)) failedCast(r0); - r0 = s.arg0.fields["_hitbox"]; + s.tmp_0 = info_changeLifeBy__P2410_mk(s); + s.tmp_0.arg0 = 1; + s.callLocIdx = 181; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = Sprite_destroy__P2269_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = globals.fire___3066; + s.tmp_0.arg2 = 500; + s.callLocIdx = 182; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = (globals.Soundeffects___28041 == 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = game_Hitbox_updateIfInvalid__P2065_mk(s); - r0 = s.arg0.fields["_hitbox"]; + s.tmp_1 = music_playSoundEffect__P1772_mk(s); + s.tmp_2 = music_createSoundEffect__P1773_mk(s); + s.tmp_2.arg0 = 3; + s.tmp_2.arg1 = 1; + s.tmp_2.arg2 = 5000; + s.tmp_2.arg3 = 255; + s.tmp_2.arg4 = 0; + s.tmp_2.arg5 = 500; + s.tmp_2.arg6 = 0; + s.tmp_2.arg7 = 0; + s.callLocIdx = 183; s.pc = 6; return s.tmp_2; + case 6: + r0 = s.retval; s.tmp_1.arg0 = r0; - s.callLocIdx = 418; s.pc = 3; return s.tmp_1; - case 3: + s.tmp_1.arg1 = 1; + s.callLocIdx = 184; s.pc = 5; return s.tmp_1; + case 5: r0 = s.retval; - { step = 2; continue; } case 1: - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = game_calculateHitBox__P2067_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 419; s.pc = 4; return s.tmp_2; - case 4: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_hitbox"] = (s.tmp_1); case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_setHitbox__P2235.info = {"start":9662,"length":173,"line":347,"column":4,"endLine":353,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]} +inline__P28405.info = {"start":15518,"length":320,"line":370,"column":54,"endLine":376,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","otherSprite"]} -function Sprite_setHitbox__P2235_mk(s) { +function inline__P28405_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setHitbox__P2235, depth: s.depth + 1, + parent: s, fn: inline__P28405, 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 game_calculateHitBox__P2067(s) { +function inline__P28423(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3976,215 +4118,70 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___7647 = undefined; - s.minX___7650 = undefined; - s.minY___7654 = undefined; - s.maxX___7658 = undefined; - s.maxY___7660 = undefined; - s.c___7662 = undefined; - s.fxc___7663 = undefined; - s.r___7670 = undefined; - s.fxr___7671 = undefined; - s.width___7735 = undefined; - s.height___7743 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0.fields["_hitbox"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - s.tmp_1 = game_Hitbox_isValid__P2063_mk(s); - r0 = s.arg0.fields["_hitbox"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 326; s.pc = 12; return s.tmp_1; - case 12: - r0 = s.retval; - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - r0 = s.arg0.fields["_hitbox"]; - { step = 11; continue; } + s.tmp_0 = info_changeLifeBy__P2410_mk(s); + s.tmp_0.arg0 = 1; + s.callLocIdx = 186; s.pc = 3; return s.tmp_0; case 3: + r0 = s.retval; + s.tmp_0 = Sprite_destroy__P2269_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = globals.fire___3066; + s.tmp_0.arg2 = 500; + s.callLocIdx = 187; s.pc = 4; return s.tmp_0; case 4: - r0 = s.arg0.fields["_image"]; - s.i___7647 = (r0); - r0 = pxsim_ImageMethods.width(s.i___7647); - s.tmp_0 = r0; - r0 = (s.tmp_0 * 256); - s.tmp_1 = r0; - r0 = (s.tmp_1 | 0); - s.minX___7650 = (r0); - r0 = pxsim_ImageMethods.height(s.i___7647); - s.tmp_0 = r0; - r0 = (s.tmp_0 * 256); - s.tmp_1 = r0; - r0 = (s.tmp_1 | 0); - s.minY___7654 = (r0); - s.maxX___7658 = (0); - s.maxY___7660 = (0); - s.c___7662 = (0); - s.fxc___7663 = (0); - case 5: - s.tmp_1 = r0 = s.c___7662; - r0 = pxsim_ImageMethods.width(s.i___7647); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = s.retval; + r0 = (globals.Soundeffects___28041 == 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - s.r___7670 = (0); - s.fxr___7671 = (0); + if (!r0) { step = 1; continue; } + s.tmp_1 = music_playSoundEffect__P1772_mk(s); + s.tmp_2 = music_createSoundEffect__P1773_mk(s); + s.tmp_2.arg0 = 3; + s.tmp_2.arg1 = 1; + s.tmp_2.arg2 = 5000; + s.tmp_2.arg3 = 255; + s.tmp_2.arg4 = 0; + s.tmp_2.arg5 = 500; + s.tmp_2.arg6 = 0; + s.tmp_2.arg7 = 0; + s.callLocIdx = 188; s.pc = 6; return s.tmp_2; case 6: - s.tmp_1 = r0 = s.r___7670; - r0 = pxsim_ImageMethods.height(s.i___7647); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = pxsim_ImageMethods.getPixel(s.i___7647, s.c___7662, s.r___7670); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 7; continue; } - s.tmp_4 = Fx_min__P166_mk(s); - s.tmp_4.arg0 = s.minX___7650; - s.tmp_4.arg1 = s.fxc___7663; - s.callLocIdx = 330; s.pc = 13; return s.tmp_4; - case 13: - r0 = s.retval; - s.minX___7650 = (r0); - s.tmp_0 = Fx_min__P166_mk(s); - s.tmp_0.arg0 = s.minY___7654; - s.tmp_0.arg1 = s.fxr___7671; - s.callLocIdx = 331; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - s.minY___7654 = (r0); - s.tmp_0 = Fx_max__P167_mk(s); - s.tmp_0.arg0 = s.maxX___7658; - s.tmp_0.arg1 = s.fxc___7663; - s.callLocIdx = 332; s.pc = 15; return s.tmp_0; - case 15: r0 = s.retval; - s.maxX___7658 = (r0); - s.tmp_0 = Fx_max__P167_mk(s); - s.tmp_0.arg0 = s.maxY___7660; - s.tmp_0.arg1 = s.fxr___7671; - s.callLocIdx = 333; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - s.maxY___7660 = (r0); - case 7: - case 8: - r0 = (s.r___7670 + 1); - s.r___7670 = (r0); - r0 = (s.fxr___7671 + 256); - s.tmp_0 = r0; - s.fxr___7671 = (r0); - r0 = s.tmp_0; - { step = 6; continue; } - case 9: - r0 = (s.c___7662 + 1); - s.c___7662 = (r0); - r0 = (s.fxc___7663 + 256); - s.tmp_0 = r0; - s.fxc___7663 = (r0); - r0 = s.tmp_0; - { step = 5; continue; } - case 10: - r0 = s.arg0.fields["_sx"]; - s.tmp_0 = r0; - r0 = pxsim.Math_.imul(s.minX___7650, s.tmp_0); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - s.minX___7650 = (r0); - r0 = s.arg0.fields["_sy"]; - s.tmp_0 = r0; - r0 = pxsim.Math_.imul(s.minY___7654, s.tmp_0); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - s.minY___7654 = (r0); - r0 = s.arg0.fields["_sx"]; - s.tmp_0 = r0; - r0 = pxsim.Math_.imul(s.maxX___7658, s.tmp_0); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - s.maxX___7658 = (r0); - r0 = s.arg0.fields["_sy"]; - s.tmp_0 = r0; - r0 = pxsim.Math_.imul(s.maxY___7660, s.tmp_0); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - s.maxY___7660 = (r0); - r0 = (s.maxX___7658 - s.minX___7650); - s.tmp_0 = r0; - r0 = s.arg0.fields["_sx"]; - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.width___7735 = (r0); - r0 = (s.maxY___7660 - s.minY___7654); - s.tmp_0 = r0; - r0 = s.arg0.fields["_sy"]; - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.height___7743 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C2051_VT); - s.tmp_0 = r0; - s.tmp_1 = game_Hitbox_constructor__P2058_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.width___7735; - s.tmp_1.arg3 = s.height___7743; - r0 = (s.minX___7650 & -256); - s.tmp_1.arg4 = r0; - r0 = (s.minY___7654 & -256); - s.tmp_1.arg5 = r0; - s.callLocIdx = 346; s.pc = 17; return s.tmp_1; - case 17: + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 1; + s.callLocIdx = 189; s.pc = 5; return s.tmp_1; + case 5: r0 = s.retval; - r0 = s.tmp_0; - case 11: + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -game_calculateHitBox__P2067.info = {"start":3223,"length":1086,"line":103,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/game/hitbox.ts","functionName":"calculateHitBox","argumentNames":["s"]} +inline__P28423.info = {"start":15895,"length":320,"line":377,"column":55,"endLine":383,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":["sprite","otherSprite"]} -function game_calculateHitBox__P2067_mk(s) { +function inline__P28423_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_calculateHitBox__P2067, depth: s.depth + 1, + parent: s, fn: inline__P28423, depth: s.depth + 1, pc: 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___7647: undefined, - minX___7650: undefined, - minY___7654: undefined, - maxX___7658: undefined, - maxY___7660: undefined, - c___7662: undefined, - fxc___7663: undefined, - r___7670: undefined, - fxr___7671: undefined, - width___7735: undefined, - height___7743: undefined, arg0: undefined, + arg1: undefined, } } -function game_Hitbox_isValid__P2063(s) { +function inline__P28786(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4194,43 +4191,122 @@ 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, game_Hitbox__C2051_VT)) failedCast(r0); - r0 = s.arg0.fields["hash"]; + s.tmp_1 = Sprite_isHittingTile__P2262_mk(s); + s.tmp_1.arg0 = globals.mySprite2___28505; + s.tmp_1.arg1 = 2; + s.callLocIdx = 232; s.pc = 13; return s.tmp_1; + case 13: + r0 = s.retval; s.tmp_0 = r0; - s.tmp_2 = Sprite_calcDimensionalHash__P2233_mk(s); - r0 = s.arg0.fields["parent"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 279; s.pc = 1; return s.tmp_2; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = (globals.phase___28453 < 10); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 1; continue; } + globals.speed___28455 = (-100); + { step = 4; continue; } case 1: + r0 = (globals.phase___28453 >= 11); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + globals.speed___28455 = (-200); + case 2: + case 3: + case 4: + s.tmp_0 = Sprite_vx__P2200_mk(s); + s.tmp_0.arg0 = globals.mySprite2___28505; + s.tmp_0.arg1 = globals.speed___28455; + s.callLocIdx = 233; s.pc = 14; return s.tmp_0; + case 14: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0 === s.tmp_1); + s.tmp_0 = Sprite_vy__P2202_mk(s); + s.tmp_1 = r0 = globals.mySprite2___28505; + s.tmp_0.arg0 = r0; + s.tmp_3 = Sprite_vy__P2201_mk(s); + s.tmp_3.arg0 = s.tmp_1; + s.callLocIdx = 234; s.pc = 16; return s.tmp_3; + case 16: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 + -400); + s.tmp_0.arg1 = r0; + s.callLocIdx = 235; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + r0 = (globals.phase___28453 + 1); + globals.phase___28453 = (r0); + case 5: + case 6: + s.tmp_1 = Sprite_isHittingTile__P2262_mk(s); + s.tmp_1.arg0 = globals.mySprite2___28505; + s.tmp_1.arg1 = 0; + s.callLocIdx = 236; s.pc = 17; return s.tmp_1; + case 17: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + r0 = (globals.phase___28453 < 10); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 7; continue; } + globals.speed___28455 = (100); + { step = 10; continue; } + case 7: + r0 = (globals.phase___28453 >= 11); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + globals.speed___28455 = (200); + case 8: + case 9: + case 10: + s.tmp_0 = Sprite_vx__P2200_mk(s); + s.tmp_0.arg0 = globals.mySprite2___28505; + s.tmp_0.arg1 = globals.speed___28455; + s.callLocIdx = 237; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + s.tmp_0 = Sprite_vy__P2202_mk(s); + s.tmp_1 = r0 = globals.mySprite2___28505; + s.tmp_0.arg0 = r0; + s.tmp_3 = Sprite_vy__P2201_mk(s); + s.tmp_3.arg0 = s.tmp_1; + s.callLocIdx = 238; s.pc = 20; return s.tmp_3; + case 20: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 + -400); + s.tmp_0.arg1 = r0; + s.callLocIdx = 239; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + case 11: + case 12: + r0 = undefined; return leave(s, r0) default: oops() } } } -game_Hitbox_isValid__P2063.info = {"start":935,"length":89,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"isValid","argumentNames":["this"]} +inline__P28786.info = {"start":62189,"length":521,"line":792,"column":14,"endLine":812,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function game_Hitbox_isValid__P2063_mk(s) { +function inline__P28786_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_isValid__P2063, depth: s.depth + 1, + parent: s, fn: inline__P28786, 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, + tmp_3: undefined, } } -function Sprite_calcDimensionalHash__P2233(s) { +function inline__P28838(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4240,40 +4316,82 @@ 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__C2182_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.revision(s.tmp_2); + s.track___28842 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.playing___28784); s.tmp_1 = r0; - r0 = s.arg0.fields["_width"]; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 9; continue; } + case 1: + case 2: + s.track___28842 = (0); + case 3: + r0 = (s.track___28842 <= 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.tmp_3 = r0 = globals.beat___28451; + r0 = pxsim_Array__getAt(globals.lengths___28593, s.track___28842); s.tmp_4 = r0; - r0 = (8 + 8); - s.tmp_5 = r0; - r0 = (s.tmp_4 >> s.tmp_5); + r0 = (s.tmp_3 % s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_2 == 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 6; continue; } + s.tmp_5 = music_Melody_play__P1633_mk(s); + r0 = pxsim_Array__getAt(globals.tracks___28601, s.track___28842); + s.tmp_6 = r0; + r0 = pxsim_Array__getAt(globals.positions___28588, s.track___28842); + s.tmp_7 = r0; + r0 = pxsim_Array__getAt(s.tmp_6, s.tmp_7); + s.tmp_5.arg0 = r0; + r0 = pxsim_Array__getAt(globals.volumes___28598, s.track___28842); + s.tmp_5.arg1 = r0; + s.callLocIdx = 241; s.pc = 10; return s.tmp_5; + case 10: + r0 = s.retval; + s.tmp_0 = r0 = globals.positions___28588; + s.tmp_1 = r0 = s.track___28842; + r0 = pxsim_Array__getAt(s.tmp_0, s.track___28842); s.tmp_3 = r0; - r0 = (s.tmp_1 + s.tmp_3); + r0 = (s.tmp_3 + 1); + s.tmp_2 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.tmp_2); + r0 = pxsim_Array__getAt(globals.positions___28588, s.track___28842); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(globals.tracks___28601, s.track___28842); + 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 = s.arg0.fields["_height"]; - s.tmp_7 = r0; - r0 = (16 + 8); - s.tmp_8 = r0; - r0 = (s.tmp_7 >> s.tmp_8); - s.tmp_6 = r0; - r0 = (s.tmp_0 + s.tmp_6); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array_.setAt(globals.positions___28588, s.track___28842, 0); + case 4: + case 5: + case 6: + case 7: + r0 = (s.track___28842 + 1); + s.track___28842 = (r0); + { step = 3; continue; } + case 8: + r0 = (globals.beat___28451 + 1); + globals.beat___28451 = (r0); + case 9: + r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_calcDimensionalHash__P2233.info = {"start":9436,"length":138,"line":338,"column":4,"endLine":340,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"calcDimensionalHash","argumentNames":["this"]} +inline__P28838.info = {"start":62757,"length":360,"line":813,"column":45,"endLine":827,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function Sprite_calcDimensionalHash__P2233_mk(s) { +function inline__P28838_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_calcDimensionalHash__P2233, depth: s.depth + 1, + parent: s, fn: inline__P28838, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4283,15 +4401,14 @@ function Sprite_calcDimensionalHash__P2233_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tmp_8: undefined, - arg0: undefined, + track___28842: undefined, } } -function Fx_toIntShifted__P156(s) { +function inline__P28882(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4301,36 +4418,267 @@ 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; - } - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 + 8); + r0 = (globals.count___28326 == 55); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_1 = Sprite_setPosition__P2250_mk(s); + s.tmp_1.arg0 = globals.mySprite___28017; + r0 = pxsim.Math_.randomRange(0, 160); + s.tmp_1.arg1 = r0; + r0 = pxsim.Math_.randomRange(160, 0); + s.tmp_1.arg2 = r0; + s.callLocIdx = 243; s.pc = 21; return s.tmp_1; + case 21: + r0 = s.retval; + s.tmp_1 = Math_percentChance__P2845_mk(s); + s.tmp_1.arg0 = 10; + s.callLocIdx = 244; s.pc = 22; return s.tmp_1; + case 22: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = tiles_placeOnTile__P2609_mk(s); + s.tmp_2.arg0 = globals.mySprite___28017; + s.tmp_3 = Sprite_tilemapLocation__P2265_mk(s); + s.tmp_3.arg0 = globals.mySprite4___28068; + s.callLocIdx = 245; s.pc = 24; return s.tmp_3; + case 24: + r0 = s.retval; + s.tmp_2.arg1 = r0; + s.callLocIdx = 246; s.pc = 23; return s.tmp_2; + case 23: + r0 = s.retval; + case 1: + case 2: + r0 = (globals.Soundeffects___28041 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_1 = music_playSoundEffect__P1772_mk(s); + s.tmp_2 = music_createSoundEffect__P1773_mk(s); + s.tmp_2.arg0 = 2; + s.tmp_2.arg1 = 687; + s.tmp_2.arg2 = 1043; + s.tmp_2.arg3 = 255; + s.tmp_2.arg4 = 0; + s.tmp_2.arg5 = 500; + s.tmp_2.arg6 = 0; + s.tmp_2.arg7 = 0; + s.callLocIdx = 247; s.pc = 26; return s.tmp_2; + case 26: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 1; + s.callLocIdx = 248; s.pc = 25; return s.tmp_1; + case 25: + r0 = s.retval; + case 3: + case 4: + globals.count___28326 = (0); + case 5: + case 6: + r0 = (globals.phase___28453 == 5); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_1 = Sprite_ay__P2206_mk(s); + s.tmp_1.arg0 = globals.mySprite2___28505; + s.tmp_1.arg1 = -500; + s.callLocIdx = 249; s.pc = 27; return s.tmp_1; + case 27: + r0 = s.retval; + globals.playing___28784 = (false); + s.tmp_0 = music_stopAllSounds__P1625_mk(s); + s.callLocIdx = 250; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; + globals.playing2___28445 = (true); + case 7: + case 8: + r0 = (globals.phase___28453 == 10); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + globals.playing2___28445 = (false); + s.tmp_0 = music_stopAllSounds__P1625_mk(s); + s.callLocIdx = 251; s.pc = 29; return s.tmp_0; + case 29: + r0 = s.retval; + globals.playing3___28447 = (true); + r0 = (globals.Soundeffects___28041 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + s.tmp_1 = music_playSoundEffect__P1772_mk(s); + s.tmp_2 = music_createSoundEffect__P1773_mk(s); + s.tmp_2.arg0 = 1; + s.tmp_2.arg1 = 1; + s.tmp_2.arg2 = 1; + s.tmp_2.arg3 = 255; + s.tmp_2.arg4 = 0; + s.tmp_2.arg5 = 500; + s.tmp_2.arg6 = 1; + s.tmp_2.arg7 = 0; + s.callLocIdx = 252; s.pc = 31; return s.tmp_2; + case 31: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 1; + s.callLocIdx = 253; s.pc = 30; return s.tmp_1; + case 30: + r0 = s.retval; + case 9: + case 10: + s.tmp_0 = scene_cameraShake__P2723_mk(s); + s.tmp_0.arg0 = 4; + s.tmp_0.arg1 = 500; + s.callLocIdx = 254; s.pc = 32; return s.tmp_0; + case 32: + r0 = s.retval; + s.tmp_0 = scene_setBackgroundImage__P2719_mk(s); + r0 = pxsim.image.ofBuffer(_hex28930); + s.tmp_0.arg0 = r0; + s.callLocIdx = 255; s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + r0 = (globals.phase___28453 + 1); + globals.phase___28453 = (r0); + case 11: + case 12: + r0 = (globals.phase___28453 == 21); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + globals.playing3___28447 = (false); + s.tmp_0 = music_stopAllSounds__P1625_mk(s); + s.callLocIdx = 256; s.pc = 34; return s.tmp_0; + case 34: + r0 = s.retval; + globals.playing4___28449 = (true); + r0 = (globals.Soundeffects___28041 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + s.tmp_1 = music_playSoundEffect__P1772_mk(s); + s.tmp_2 = music_createSoundEffect__P1773_mk(s); + s.tmp_2.arg0 = 1; + s.tmp_2.arg1 = 1; + s.tmp_2.arg2 = 1; + s.tmp_2.arg3 = 255; + s.tmp_2.arg4 = 0; + s.tmp_2.arg5 = 500; + s.tmp_2.arg6 = 1; + s.tmp_2.arg7 = 0; + s.callLocIdx = 257; s.pc = 36; return s.tmp_2; + case 36: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 1; + s.callLocIdx = 258; s.pc = 35; return s.tmp_1; + case 35: + r0 = s.retval; + case 13: + case 14: + s.tmp_0 = scene_cameraShake__P2723_mk(s); + s.tmp_0.arg0 = 4; + s.tmp_0.arg1 = 500; + s.callLocIdx = 259; s.pc = 37; return s.tmp_0; + case 37: + r0 = s.retval; + s.tmp_0 = scene_setBackgroundImage__P2719_mk(s); + r0 = pxsim.image.ofBuffer(_hex28951); + s.tmp_0.arg0 = r0; + s.callLocIdx = 260; s.pc = 38; return s.tmp_0; + case 38: + r0 = s.retval; + s.tmp_0 = tiles_setCurrentTilemap__P2600_mk(s); + s.tmp_1 = helpers_getTilemapByName__P3121_mk(s); + s.tmp_1.arg0 = "level4"; + s.callLocIdx = 261; s.pc = 40; return s.tmp_1; + case 40: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.callLocIdx = 262; s.pc = 39; return s.tmp_0; + case 39: + r0 = s.retval; + r0 = (globals.phase___28453 + 1); + globals.phase___28453 = (r0); + case 15: + case 16: + r0 = (globals.phase___28453 == 31); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 19; continue; } + r0 = (globals.Soundeffects___28041 == 1); s.tmp_1 = r0; - r0 = (s.tmp_0 >> s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 17; continue; } + s.tmp_2 = music_playSoundEffect__P1772_mk(s); + s.tmp_3 = music_createSoundEffect__P1773_mk(s); + s.tmp_3.arg0 = 0; + s.tmp_3.arg1 = 3900; + s.tmp_3.arg2 = 3500; + s.tmp_3.arg3 = 255; + s.tmp_3.arg4 = 0; + s.tmp_3.arg5 = 10; + s.tmp_3.arg6 = 0; + s.tmp_3.arg7 = 0; + s.callLocIdx = 263; s.pc = 42; return s.tmp_3; + case 42: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 1; + s.callLocIdx = 264; s.pc = 41; return s.tmp_2; + case 41: + r0 = s.retval; + case 17: + case 18: + s.tmp_0 = Sprite_destroy__P2269_mk(s); + s.tmp_0.arg0 = globals.mySprite___28017; + s.tmp_0.arg1 = globals.blizzard___3072; + s.tmp_0.arg2 = 500; + s.callLocIdx = 265; s.pc = 43; return s.tmp_0; + case 43: + r0 = s.retval; + s.tmp_0 = pause__P413_mk(s); + s.tmp_0.arg0 = 1000; + s.callLocIdx = 266; s.pc = 44; return s.tmp_0; + case 44: + r0 = s.retval; + s.tmp_0 = game_over__P2802_mk(s); + s.tmp_0.arg0 = false; + s.tmp_0.arg1 = undefined; + s.callLocIdx = 267; s.pc = 45; return s.tmp_0; + case 45: + r0 = s.retval; + case 19: + case 20: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_toIntShifted__P156.info = {"start":404,"length":102,"line":17,"column":4,"endLine":19,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toIntShifted","argumentNames":["a","n"]} +inline__P28882.info = {"start":63127,"length":43443,"line":828,"column":8,"endLine":1118,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function Fx_toIntShifted__P156_mk(s) { +function inline__P28882_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toIntShifted__P156, depth: s.depth + 1, + parent: s, fn: inline__P28882, 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, } } +const _hex28930 = pxsim.BufferMethods.createBufferFromHex("8704a0007800000099999999999999999999999999999999999999dddddddddddddddddddddddddddddd777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999dddddddddddddddddddddddddd7d77777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999d9dddddddddddddddddddddd7d7777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999d9dddddddddddddddddddd7d777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999d9dddddddddddddddddd7d7777777777777777777777777777777777777777777777777777777777779999999999999999999999999999999999999999dddddddddddddddddd777777777777777777777777777777777777777777777777777777777777779999999999999999999999999999999999999999d9dddddddddddddddd77777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999797777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999797777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999977777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999997977777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999dddddddd7777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999dddddddddd77777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999dddddddddd7d777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999dddddddddd7d777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999dddddddddddd777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999dddddddddddd7777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999d9dddddddddddd7777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999d9dddddddddddd7777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999d9dddddddddd7d777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999d9dddddddddddddd7777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999d9dddddddddddddddddd7777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999dddddddddddddddddd7d77777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999d9dddddddddddddddd7d7777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999d9dddddddddddddddd7d7777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999dddddddddddddddddd7d7777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999dddddddddddddddddd7d77777777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999d9dddddddddddddddddd7d77777777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999d9dddddddddddddddddddd77777777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999d9dddddddddddddddddddd77777777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999dddddddddddddddddddddddd777777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999dddddddddddddddddddddddddddd7d777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999dddddddddddddddddddddddddddd7d777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999d9dddddddddddddddddddddddddddd77777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999d9dddddddddddddddddddddddddd77777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999dddddddddddddddddddddd7777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999999999999999dddddddddddddd7777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999999999999999dddddddddddddd7d777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999dddddddddddddddd7d777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999dddddddddddddddddd777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999dddddddddddddddddd777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999999999d9dddddddddddddddd7d777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999999999999999dddddddddddddddddddd7d77777777777777777777777777777777777799999999999999999999999999999999999999999999999999999999999999d9dddddddddddddddddddd7777777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999dddddddddddddd7777777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999dddddddddddddd7777777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999dddddddddddddd7d77777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999dddddddddddddd7d77777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999dddddddddddddd7d77777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999dddddddddddddd7d77777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999dddddddddddddd7d77777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999dddddddddddddd7d77777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999dddddddddddddd7d77777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999999999d9dddddddddddd7d777777777777777777777777777777777799999999999999999999999999999999999999999999999999999999999999999999d9dddddddddddddd7d77777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999999999dddddddddddddddddddd7d77777777777777777777777777777777779999999999999999999999999999999999999999999999999999999999dddddddddddddddddddddddddd7d7777777777777777777777777777777777999999999999999999999999999999999999999999999999999999d9dddddddddddddddddddddddddddddd7777777777777777777777777777777777999999999999999999999999999999999999999999999999999999dddddddddddddddddddddddddddddddd77777777777777777777777777777777779999999999999999999999999999999999999999999999999999d9dddddddddddddddddddddddddddddddd77777777777777777777777777777777779999999999999999999999999999999999999999999999999999d9dddddddddddddddddddddddddddddddd7777777777777777777777777777777777999999999999999999999999999999999999999999999999999999dddddddddddddddddddddddddddddddd7777777777777777777777777777777777999999999999999999999999999999999999999999999999999999dddddddddddddddddddddddddddddddd7777777777777777777777777777777777999999999999999999999999999999999999999999999999999999dddddddddddddddddddddddddddddd7d7777777777777777777777777777777777999999999999999999999999999999999999999999999999999999dddddddddddddddddddddddddddddd777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999d9dddddddddddddddddddd7d777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999d9dddddddddddddddd7d777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999999999dddddddddddddd7d77777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999999999dddddddddddddd77777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999999999dddddddddddddddd777777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999999999d9dddddddddddddd7d7777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999d9dddddddddddddddd7d7777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999dddddddddddddddddd7d77777777777777777777777777777777777777777777777777999999999999999999999999999999999999dddddddddddddddddddddddddddddddd7d77777777777777777777777777777777777777777777777777999999999999999999999999999999d9dddddddddddddddddddddddddddddddddddd7d777777777777777777777777777777777777777777777777779999999999999999999999999999dddddddddddddddddddddddddddddddddddddddd7d7777777777777777777777777777777777777777777777777799999999999999999999999999d9dddddddddddddddddddddddddddddddddddddddd7d7777777777777777777777777777777777777777777777777799999999999999999999999999d9dddddddddddddddddddddddddddddddddddddddd7d777777777777777777777777777777777777777777777777779999999999999999999999999999dddddddddddddddddddddddddddddddddddddddd7777777777777777777777777777777777777777777777777777999999999999999999999999999999dddddddddddddddddddddddddddddddddddd7d777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999dddddddddddddddddddddddddddd77777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999dddddddddddddddddddd7d7777777777777777777777777777777777777777777777777777779999999999999999999999999999999999999999999999d9dddddddddddddd7777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999999999d9dddddddd7777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999997777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999999777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999979777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999977777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999977777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999999977777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999997977777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999997977777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999997977777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999997977777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999999999dd7d777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999d9dd7d777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999dddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999dddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999dddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999dddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999dddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999dddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999999999dddd7777777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999d9dddddd7777777777777777777777777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999dddddddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddd77777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddd7d777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddddd777777777777777777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddddddddddddddddddd7777777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddddddddddddddddddddddd777777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddddddddddddddddddddddddd7777777777777777777777777777777777777777777777777777999999999999999999999999999999999999d9dddddddddddddddddddddddddddddd777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999dddddddddddddddddddddddddddddd777777777777777777777777777777777777777777777777777799999999999999999999999999999999999999dddddddddddddddddddddddddddddd7777777777777777777777777777777777777777777777777777") +const _hex28951 = pxsim.BufferMethods.createBufferFromHex("8704a00078000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9f99999999b99999f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff99999999bbebbbddbb9999f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9f999999bbbdbbbbbbbbbb9b9996f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9f999d99b9bbbbbbbbbbbbbbdb9d996999ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9f99999d99b9dbbbbbbbbbbbbbbbbbbb9969f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9fdd9d99999999bbbbbbbbbbbbbbbbbbbb999996f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd9dd9999999999b9bbbccbccbcbbbbbbbbbb999996ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfbb99999999996666bbbccbccbcbbcbbcbbbbdb966999ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfbbbb99996666666666e6bbcbccbbccbbbccbbbbbebcc69f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbdbb9d999966669d6d6666ccccccbbccbbcccbbcccbbcc9c96ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9fbbbbdb99999999dddd9999c6ccccccccccccccccccbbcbcc69f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbdbbbbdd696696d9dddd666666cccccccccccccccccccccccb9c96ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfbb9bbb6d66666666d6dd969999c9ccccccccccccccccccccbccc6cf9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbfbbd9bb6d9666669669dd666696c9ccccccccbccc9966c69699cccc96ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbd9b99dd6666969966666666669699ccccbcbbcc666666666669966c69f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfbb9999dd6696996666666666666699c6bcbb6666996666666966666696f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf9b99d66d666666666696696666666666bb66666666966666996669666696ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbd9b69d69966666666666666666666666666666666b66d6666666696666666ffffffffffffffffffffffffffffffffffffffffffffffffffffffffdfdd9966d96666669669666666666666666666666666b66b6666666666996699f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffdf9d696666666666666666666666666666666666666666bb6d6666666699699696ffffffffffffffffffffffffffffffffffffffffffffffffffffff6969666666666666666666666666668668666666666666bb6b6666666666999699ffffffffffffffffffffffffffffffffffffffffffffffffffffff996696666666666666dd66886888668668886866886886b8bb6d66669666669969ffffffffffffffffffffffffffffffffffffffffffffffffffffffd66d66666666666686686688688886688688686688668688bd6b66666669666699f9ffffffffffffffffffffffffffffffffffffffffffffffffff9fd66d696666688668886866688888886888888888888886886ddb6666666d6d6696f9ffffffffffffffffffffffffffffffffffffffffffffffffff9fdd6666668668886866868888888888888888868888888888d8bd6b66d66d6d669696ffffffffffffffffffffffffffffffffffffffffffffffffff9fbd6b6666886868668888888888888888888688888866868888b6bb6d66dd6d666691ffffffffffffffffffffffffffffffffffffffffffffffffffd9bbd66d6666868888886686886866868888868888888888888888bbdb66dd66666611ffffffffffffffffffffffffffffffffffffffffffffffffffd9bbbd66888668868868666686888888668888888888888888888888bbdd8868666666ffffffffffffffffffffffffffffffffffffffffffffffffffbd6bbb88888888888888868888888886888888888888888888886666b6dd8866666611f9ffffffffffffffffffffffffffffffffffffffffffffffffbd6b6d888888888888b8bbbbbd8b888888888888888888668888888888888888868811f9ffffffffffffffffffffffffffffffffffffffffffffff9fbb66668688888888b8bbddddbdbb8b8888888888888888888888868888888888888818f9ffffffffffffffffffffffffffffffffffffffffffffff9fdd16888688688886b8dbddddbbbbbb8888888888888888888888886888886666888816f9ffffffffffffffffffffffffffffffffffffffffffffffdf6d88888888868888b8ddbbbdbdbbbb888888888888888888886688686688688886886696ffffffffffffffffffffffffffffffffffffffffffffff9f66888888888888b8dbddbbbbbdbbbb8b888d888888888888888868686686686688181196ffffffffffffffffffffffffffffffffffffffffffffff9f8688688888bb88d8dddddbbbbbbbbb8bd88d888888888888888888888866688888881891ffffffffffffffffffffffffffffffffffffffffffffffbf81118888b8bb88d8dddbbddbbbbbbb8bd88d888888888888888888888888688888111891ffffffffffffffffffffffffffffffffffffffffffffffbf86818888cccb88ddddbbbdbbbbbbbb8b88dd8d8888888888888888888888688888811196ffffffffffffffffffffffffffffffffffffffffffffffbf188888c8cbbb88ddddbbbbbbbbbbbb8e88db8d8888888888888888888888888888888196ffffffffffffffffffffffffffffffffffffffffffffffbf1b8188ccbb8bb8ddbdbbbbbbbbbbbb8bd8bbdd8888888888888888888888888888881196ffffffffffffffffffffffffffffffffffffffffffffffbf1c8888cc8c88b8ddbbddbdbbbbbbbb88bdbb8d8888888888888888888888888888881896ffffffffffffffffffffffffffffffffffffffffffffffcfcc1c88cc8b88d8bdbbbbbbbbbbbbbb88b8bb8d8888888888888888888888888888881899ffffffffffffffffffffffffffffffffffffffffffffffffcc8cc8bc8e88bbdddbbbbbbbbbbbbb88d8bd8b88888888888888888888888888888868f9ffffffffffffffffffffffffffffffffffffffffffffffffcc8cc8bc8888b8bddbbbbbbbbbbbbb8b88888d88888888888888888888888888888868f9ffffffffffffffffffffffffffffffffffffffffffffffffcc1cc8bc8b88e8bdbbbbbbbbbbbbbbbb8e888d88888888888888888888888888888866f9ffffffffffffffffffffffffffffffffffffffffffffffffcc8cc8cc8b88b8ddbdbbbbbbbbbbbbbbbb8c8888888888888888888888888888888861ffffffffffffffffffffffffffffffffffffffffffffffffffc9ccc8ccbb88b8debbbbbbbbbbbbbbbbbbbb8888888888888888888888888888881891ffffffffffffffffffffffffffffffffffffffffffffffffffbfcbc88cbc8c88c8bbbbbbbbbbbbbbbbbbbbbbb8bbbbbbbb8c88888888888888888896ffffffffffffffffffffffffffffffffffffffffffffffffff9fcbccbcbbbc88c8bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcbb8b88888888881681f6ffffffffffffffffffffffffffffffffffffffffffffffffff9fccccccbccc88c8bcbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb8b888888881868f9ffffffffffffffffffffffffffffffffffffffffffffffffffffc9ccccbc8888c8bcbbbbbbbbbbbbbbbbbbbbbbbbbbbbcbbcccbcbb888888888868f9ffffffffffffffffffffffffffffffffffffffffffffffffffffb9cccc8c8888c8bcbbbbbbbbbbbbbbbbbbbbcbccbcccccbcccbb8b888888888868ffffffffffffffffffffffffffffffffffffffffffffffffffffffefcccc8c8888d8bcbcbbbbbbbbcbccccbbbbcbcccbcccccccccc8c888888888896ffffffffffffffffffffffffffffffffffffffffffffffffffffff9fcccc8cbb8888ccccccccbcccccccccbbcccccccccccccccccc888888888888f6ffffffffffffffffffffffffffffffffffffffffffffffffffffffffc9cc8bc88c88ccbccccccccbbbcccccccccccccccccccccccc888888d88d68f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffc9cc8bc88cb8cbcccccccccccccccccccccccccccccccccc888888b8db8896ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9fccbc8b8888c8ccccccbccccccccccccccccccccccccc88888888b88e6896ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc6ccbbbceb8bcccccccccccccccccccccccccccccc8c88888888888868f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc9ccccccbcbb88cccccccccccccccccccccccccc888888888888888896ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9fcb88cccccb8bc8cccccccccccccccccccccc8c8888888888888868f6ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc98c88cbccbb88c8cccccccccccccccccccc888888888888888866f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcf6cc8bbcccc8b88cccccccccccccccc8888888888888888886896ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcc86bcbcccbb8888cccccccccc8888888888b8bb8888888866f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9f6cbcb8cccc8b88cccccceb888888888888bbcc8888886896ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc9bc8bc8ccbb88c8ccccbb88888888c8dcddc888986896ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9fccbb88ccbc8888cc8c8888888888c8dc888888bd9bf9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9fbb8bc8cc88888888888888888888888888886696ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc9cc88cc888888888888888888888888886696ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6966868888888888888888888888886896f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff696686888888888888888888886896f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff99668688888888bb8888686696ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9f9966666666bb6b6696f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9f9999999999f9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff") -function game_Hitbox_constructor__P2058(s) { +function inline__P28976(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4340,57 +4688,216 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C2051_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Sprite_calcDimensionalHash__P2233_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 270; s.pc = 1; return s.tmp_2; + s.tmp_1 = Math_percentChance__P2845_mk(s); + s.tmp_1.arg0 = 40; + s.callLocIdx = 269; s.pc = 15; return s.tmp_1; + case 15: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = (globals.Soundeffects___28041 == 1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 1; continue; } + s.tmp_3 = music_playSoundEffect__P1772_mk(s); + s.tmp_4 = music_createSoundEffect__P1773_mk(s); + s.tmp_4.arg0 = 3; + s.tmp_4.arg1 = 1088; + s.tmp_4.arg2 = 1; + s.tmp_4.arg3 = 130; + s.tmp_4.arg4 = 0; + s.tmp_4.arg5 = 200; + s.tmp_4.arg6 = 2; + s.tmp_4.arg7 = 1; + s.callLocIdx = 270; s.pc = 17; return s.tmp_4; + case 17: + r0 = s.retval; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = 1; + s.callLocIdx = 271; s.pc = 16; return s.tmp_3; + case 16: + r0 = s.retval; case 1: + case 2: + s.tmp_0 = sprites_createProjectileFromSprite__P2123_mk(s); + r0 = pxsim.image.ofBuffer(_hex28989); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = globals.mySprite2___28505; + r0 = pxsim.Math_.randomRange(-100, 100); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 200; + s.callLocIdx = 272; s.pc = 18; return s.tmp_0; + case 18: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["hash"] = (s.tmp_1); - r0 = (s.arg0).fields["parent"] = (s.arg1); - r0 = (s.arg0).fields["width"] = (s.arg2); - r0 = (s.arg0).fields["height"] = (s.arg3); - r0 = (s.arg0).fields["ox"] = (s.arg4); - r0 = (s.arg0).fields["oy"] = (s.arg5); + globals.projectile2___28443 = (r0); + s.tmp_0 = Sprite_setKind__P2249_mk(s); + s.tmp_0.arg0 = globals.projectile2___28443; + s.tmp_0.arg1 = globals.pro2___27994; + s.callLocIdx = 273; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + s.tmp_1 = Math_percentChance__P2845_mk(s); + s.tmp_1.arg0 = 10; + s.callLocIdx = 274; 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 = 5; continue; } + r0 = (globals.Soundeffects___28041 == 1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + s.tmp_3 = music_playSoundEffect__P1772_mk(s); + s.tmp_4 = music_createSoundEffect__P1773_mk(s); + s.tmp_4.arg0 = 3; + s.tmp_4.arg1 = 1088; + s.tmp_4.arg2 = 1; + s.tmp_4.arg3 = 255; + s.tmp_4.arg4 = 0; + s.tmp_4.arg5 = 200; + s.tmp_4.arg6 = 2; + s.tmp_4.arg7 = 1; + s.callLocIdx = 275; s.pc = 22; return s.tmp_4; + case 22: + r0 = s.retval; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = 1; + s.callLocIdx = 276; s.pc = 21; return s.tmp_3; + case 21: + r0 = s.retval; + case 3: + case 4: + s.tmp_0 = sprites_createProjectileFromSprite__P2123_mk(s); + r0 = pxsim.image.ofBuffer(_hex29010); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = globals.mySprite2___28505; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = 200; + s.callLocIdx = 277; s.pc = 23; return s.tmp_0; + case 23: + r0 = s.retval; + globals.projectile3___28441 = (r0); + s.tmp_0 = Sprite_destroy__P2269_mk(s); + s.tmp_0.arg0 = globals.projectile2___28443; + s.tmp_0.arg1 = globals.hearts___3063; + s.tmp_0.arg2 = 500; + s.callLocIdx = 278; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.tmp_0 = scaling_scaleByPixels__P4221_mk(s); + s.tmp_0.arg0 = globals.projectile2___28443; + s.tmp_0.arg1 = 10; + s.tmp_0.arg2 = 3; + s.tmp_0.arg3 = 0; + s.tmp_0.arg4 = 0; + s.callLocIdx = 279; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.tmp_0 = Sprite_setKind__P2249_mk(s); + s.tmp_0.arg0 = globals.projectile2___28443; + s.tmp_0.arg1 = globals.heal___28003; + s.callLocIdx = 280; s.pc = 26; return s.tmp_0; + case 26: + r0 = s.retval; + case 5: + case 6: + s.tmp_1 = Math_percentChance__P2845_mk(s); + s.tmp_1.arg0 = 10; + s.callLocIdx = 281; s.pc = 27; return s.tmp_1; + case 27: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + r0 = (globals.phase___28453 >= 5); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 9; continue; } + r0 = (globals.Soundeffects___28041 == 1); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 7; continue; } + s.tmp_4 = music_playSoundEffect__P1772_mk(s); + s.tmp_5 = music_createSoundEffect__P1773_mk(s); + s.tmp_5.arg0 = 4; + s.tmp_5.arg1 = 464; + s.tmp_5.arg2 = 286; + s.tmp_5.arg3 = 255; + s.tmp_5.arg4 = 255; + s.tmp_5.arg5 = 400; + s.tmp_5.arg6 = 2; + s.tmp_5.arg7 = 2; + s.callLocIdx = 282; s.pc = 29; return s.tmp_5; + case 29: + r0 = s.retval; + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = 1; + s.callLocIdx = 283; s.pc = 28; return s.tmp_4; + case 28: + r0 = s.retval; + case 7: + case 8: + s.tmp_0 = sprites_createProjectileFromSprite__P2123_mk(s); + r0 = pxsim.image.ofBuffer(_hex29037); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = globals.mySprite2___28505; + r0 = pxsim.Math_.randomRange(-100, 100); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 200; + s.callLocIdx = 284; s.pc = 30; return s.tmp_0; + case 30: + r0 = s.retval; + globals.projectile2___28443 = (r0); + s.tmp_0 = Sprite_setKind__P2249_mk(s); + s.tmp_0.arg0 = globals.projectile2___28443; + s.tmp_0.arg1 = globals.pro3___28006; + s.callLocIdx = 285; s.pc = 31; return s.tmp_0; + case 31: + r0 = s.retval; + s.tmp_0 = scaling_scaleByPixels__P4221_mk(s); + s.tmp_0.arg0 = globals.projectile2___28443; + s.tmp_0.arg1 = 100; + s.tmp_0.arg2 = 3; + s.tmp_0.arg3 = 0; + s.tmp_0.arg4 = 0; + s.callLocIdx = 286; s.pc = 32; return s.tmp_0; + case 32: + r0 = s.retval; + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: r0 = undefined; return leave(s, r0) default: oops() } } } -game_Hitbox_constructor__P2058.info = {"start":173,"length":288,"line":9,"column":8,"endLine":16,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"inline","argumentNames":["this","parent","width","height","ox","oy"]} +inline__P28976.info = {"start":106599,"length":4047,"line":1119,"column":27,"endLine":1197,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function game_Hitbox_constructor__P2058_mk(s) { +function inline__P28976_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_constructor__P2058, depth: s.depth + 1, + parent: s, fn: inline__P28976, 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, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, } } +const _hex28989 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202233230000202233111131020010111111111102002022331111310200000020323323000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex29010 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000ff0f0000000000f033f30f00000000f03333ff00000000f033b3fb0f000000003fb3bb0f000000f033b3fb0f000000f01333ff00000000f033f30f0000000000ff0f000000000000000000000000000000000000000000000000000000") +const _hex29037 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202233230000202233111131020010111111111102002022331111310200000020323323000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -function Fx_floor__P168(s) { +function inline__P29058(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4400,29 +4907,99 @@ 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 & -256); + s.track___29062 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.playing2___28445); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 9; continue; } + case 1: + case 2: + s.track___29062 = (0); + case 3: + r0 = (s.track___29062 <= 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.tmp_3 = r0 = globals.beat2___28439; + r0 = pxsim_Array__getAt(globals.lengths___28593, s.track___29062); + 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_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 6; continue; } + s.tmp_5 = music_Melody_play__P1633_mk(s); + r0 = pxsim_Array__getAt(globals.tracks2___28658, s.track___29062); + s.tmp_6 = r0; + r0 = pxsim_Array__getAt(globals.positions___28588, s.track___29062); + s.tmp_7 = r0; + r0 = pxsim_Array__getAt(s.tmp_6, s.tmp_7); + s.tmp_5.arg0 = r0; + r0 = pxsim_Array__getAt(globals.volumes___28598, s.track___29062); + s.tmp_5.arg1 = r0; + s.callLocIdx = 288; s.pc = 10; return s.tmp_5; + case 10: + r0 = s.retval; + s.tmp_0 = r0 = globals.positions___28588; + s.tmp_1 = r0 = s.track___29062; + r0 = pxsim_Array__getAt(s.tmp_0, s.track___29062); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 1); + s.tmp_2 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.tmp_2); + r0 = pxsim_Array__getAt(globals.positions___28588, s.track___29062); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(globals.tracks2___28658, s.track___29062); + 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 = 4; continue; } + r0 = pxsim_Array_.setAt(globals.positions___28588, s.track___29062, 0); + case 4: + case 5: + case 6: + case 7: + r0 = (s.track___29062 + 1); + s.track___29062 = (r0); + { step = 3; continue; } + case 8: + r0 = (globals.beat2___28439 + 1); + globals.beat2___28439 = (r0); + case 9: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_floor__P168.info = {"start":1919,"length":103,"line":62,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"floor","argumentNames":["v"]} +inline__P29058.info = {"start":110694,"length":389,"line":1198,"column":46,"endLine":1212,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function Fx_floor__P168_mk(s) { +function inline__P29058_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_floor__P168, depth: s.depth + 1, + parent: s, fn: inline__P29058, 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, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + track___29062: undefined, } } -function Fx_max__P167(s) { +function inline__P29108(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4432,44 +5009,99 @@ 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.track___29112 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.playing3___28447); + s.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; - { step = 3; continue; } - { step = 2; continue; } + { step = 9; continue; } case 1: - r0 = s.arg1; - { step = 3; continue; } case 2: - r0 = undefined; + s.track___29112 = (0); case 3: + r0 = (s.track___29112 <= 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.tmp_3 = r0 = globals.beat3___28666; + r0 = pxsim_Array__getAt(globals.lengths___28593, s.track___29112); + 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_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 6; continue; } + s.tmp_5 = music_Melody_play__P1633_mk(s); + r0 = pxsim_Array__getAt(globals.tracks3___28717, s.track___29112); + s.tmp_6 = r0; + r0 = pxsim_Array__getAt(globals.positions___28588, s.track___29112); + s.tmp_7 = r0; + r0 = pxsim_Array__getAt(s.tmp_6, s.tmp_7); + s.tmp_5.arg0 = r0; + r0 = pxsim_Array__getAt(globals.volumes___28598, s.track___29112); + s.tmp_5.arg1 = r0; + s.callLocIdx = 290; s.pc = 10; return s.tmp_5; + case 10: + r0 = s.retval; + s.tmp_0 = r0 = globals.positions___28588; + s.tmp_1 = r0 = s.track___29112; + r0 = pxsim_Array__getAt(s.tmp_0, s.track___29112); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 1); + s.tmp_2 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.tmp_2); + r0 = pxsim_Array__getAt(globals.positions___28588, s.track___29112); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(globals.tracks3___28717, s.track___29112); + 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 = 4; continue; } + r0 = pxsim_Array_.setAt(globals.positions___28588, s.track___29112, 0); + case 4: + case 5: + case 6: + case 7: + r0 = (s.track___29112 + 1); + s.track___29112 = (r0); + { step = 3; continue; } + case 8: + r0 = (globals.beat3___28666 + 1); + globals.beat3___28666 = (r0); + case 9: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_max__P167.info = {"start":1797,"length":117,"line":56,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"max","argumentNames":["a","b"]} +inline__P29108.info = {"start":111131,"length":389,"line":1213,"column":46,"endLine":1227,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function Fx_max__P167_mk(s) { +function inline__P29108_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_max__P167, depth: s.depth + 1, + parent: s, fn: inline__P29108, 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, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + track___29112: undefined, } } -function Fx_min__P166(s) { +function inline__P29158(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4479,44 +5111,99 @@ 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.track___29162 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.playing4___28449); + s.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; - { step = 3; continue; } - { step = 2; continue; } + { step = 9; continue; } case 1: - r0 = s.arg1; - { step = 3; continue; } case 2: - r0 = undefined; + s.track___29162 = (0); case 3: + r0 = (s.track___29162 <= 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.tmp_3 = r0 = globals.beat4___28725; + r0 = pxsim_Array__getAt(globals.lengths___28593, s.track___29162); + 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_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 6; continue; } + s.tmp_5 = music_Melody_play__P1633_mk(s); + r0 = pxsim_Array__getAt(globals.tracks4___28776, s.track___29162); + s.tmp_6 = r0; + r0 = pxsim_Array__getAt(globals.positions___28588, s.track___29162); + s.tmp_7 = r0; + r0 = pxsim_Array__getAt(s.tmp_6, s.tmp_7); + s.tmp_5.arg0 = r0; + r0 = pxsim_Array__getAt(globals.volumes___28598, s.track___29162); + s.tmp_5.arg1 = r0; + s.callLocIdx = 292; s.pc = 10; return s.tmp_5; + case 10: + r0 = s.retval; + s.tmp_0 = r0 = globals.positions___28588; + s.tmp_1 = r0 = s.track___29162; + r0 = pxsim_Array__getAt(s.tmp_0, s.track___29162); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 1); + s.tmp_2 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.tmp_2); + r0 = pxsim_Array__getAt(globals.positions___28588, s.track___29162); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(globals.tracks4___28776, s.track___29162); + 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 = 4; continue; } + r0 = pxsim_Array_.setAt(globals.positions___28588, s.track___29162, 0); + case 4: + case 5: + case 6: + case 7: + r0 = (s.track___29162 + 1); + s.track___29162 = (r0); + { step = 3; continue; } + case 8: + r0 = (globals.beat4___28725 + 1); + globals.beat4___28725 = (r0); + case 9: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_min__P166.info = {"start":1675,"length":117,"line":50,"column":4,"endLine":55,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"min","argumentNames":["a","b"]} +inline__P29158.info = {"start":111568,"length":389,"line":1228,"column":46,"endLine":1242,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} -function Fx_min__P166_mk(s) { +function inline__P29158_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_min__P166, depth: s.depth + 1, + parent: s, fn: inline__P29158, 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, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + track___29162: undefined, } } -function Fx_mul__P160(s) { +function scaling_scaleByPixels__P4221(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4526,34 +5213,130 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.sx___8103 = undefined; + s.sy___8104 = undefined; + s.imgW___8108 = undefined; + s.newW___8112 = undefined; + s.imgH___8124 = undefined; + s.newH___8128 = 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); + 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 = 2; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + s.arg2 = (s.tmp_1); + s.tmp_0 = r0 = s.arg3; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + r0 = 0; + case 4: + // jmp value (already in r0) + s.tmp_1 = r0; + s.arg3 = (s.tmp_1); + r0 = (s.arg4 == null); s.tmp_0 = r0; - r0 = (s.tmp_0 >> 8); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = (s.arg2 === 3); + s.arg4 = (r0); + case 5: + case 6: + r0 = (s.arg2 & 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = s.arg0.fields["_image"]; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_1); + s.imgW___8108 = (r0); + s.tmp_1 = Sprite_width__P2238_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1916; s.pc = 11; return s.tmp_1; + case 11: + r0 = s.retval; + s.tmp_0 = r0; + r0 = (s.tmp_0 + s.arg1); + s.newW___8112 = (r0); + r0 = (s.newW___8112 / s.imgW___8108); + s.sx___8103 = (r0); + case 7: + case 8: + r0 = (s.arg2 & 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = s.arg0.fields["_image"]; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_1); + s.imgH___8124 = (r0); + s.tmp_1 = Sprite_height__P2239_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1918; s.pc = 12; return s.tmp_1; + case 12: + r0 = s.retval; + s.tmp_0 = r0; + r0 = (s.tmp_0 + s.arg1); + s.newH___8128 = (r0); + r0 = (s.newH___8128 / s.imgH___8124); + s.sy___8104 = (r0); + case 9: + case 10: + s.tmp_0 = Sprite_setScaleCore__P2272_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.sx___8103; + s.tmp_0.arg2 = s.sy___8104; + s.tmp_0.arg3 = s.arg3; + s.tmp_0.arg4 = s.arg4; + s.callLocIdx = 1919; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_mul__P160.info = {"start":872,"length":133,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"mul","argumentNames":["a","b"]} +scaling_scaleByPixels__P4221.info = {"start":3468,"length":832,"line":88,"column":4,"endLine":110,"endColumn":5,"fileName":"pxt_modules/sprite-scaling/scaling.ts","functionName":"scaleByPixels","argumentNames":["sprite","value","direction","anchor","proportional"]} -function Fx_mul__P160_mk(s) { +function scaling_scaleByPixels__P4221_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_mul__P160, depth: s.depth + 1, + parent: s, fn: scaling_scaleByPixels__P4221, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + sx___8103: undefined, + sy___8104: undefined, + imgW___8108: undefined, + newW___8112: undefined, + imgH___8124: undefined, + newH___8128: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function Fx_sub__P159(s) { +function Sprite_setScaleCore__P2272(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4563,31 +5346,309 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.hasSx___8152 = undefined; + s.hasSy___8156 = undefined; + s.oldW___8160 = undefined; + s.oldH___8162 = undefined; + s.oldSx___8165 = undefined; + s.ratio___8173 = undefined; + s.oldSy___8182 = undefined; + s.ratio___8190 = undefined; + s.newW___8203 = undefined; + s.diff___8205 = undefined; + s.diffOver2___8209 = undefined; + s.newH___8231 = undefined; + s.diff___8233 = undefined; + s.diffOver2___8237 = 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 - s.arg1); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg3; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = 0; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + s.arg3 = (s.tmp_1); + r0 = (s.arg1 != null); + s.hasSx___8152 = (r0); + r0 = (s.arg2 != null); + s.hasSy___8156 = (r0); + s.tmp_0 = Sprite_width__P2238_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 566; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + s.oldW___8160 = (r0); + s.tmp_0 = Sprite_height__P2239_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 567; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; + s.oldH___8162 = (r0); + r0 = pxsim_numops_toBoolDecr(s.hasSx___8152); + if (!r0) { step = 7; continue; } + s.tmp_0 = Sprite_sx__P2211_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 568; s.pc = 29; return s.tmp_0; + case 29: + r0 = s.retval; + s.oldSx___8165 = (r0); + s.tmp_0 = Sprite_sx__P2212_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 569; s.pc = 30; return s.tmp_0; + case 30: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.hasSy___8156); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + r0 = s.arg4; + case 4: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 5; continue; } + r0 = (s.arg1 / s.oldSx___8165); + s.ratio___8173 = (r0); + s.tmp_0 = Sprite_sy__P2214_mk(s); + s.tmp_1 = r0 = s.arg0; + s.tmp_0.arg0 = r0; + s.tmp_3 = Sprite_sy__P2213_mk(s); + s.tmp_3.arg0 = s.tmp_1; + s.callLocIdx = 570; s.pc = 32; return s.tmp_3; + case 32: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 * s.ratio___8173); + s.tmp_0.arg1 = r0; + s.callLocIdx = 571; s.pc = 31; return s.tmp_0; + case 31: + r0 = s.retval; + case 5: + case 6: + case 7: + case 8: + r0 = pxsim_numops_toBoolDecr(s.hasSy___8156); + if (!r0) { step = 13; continue; } + s.tmp_0 = Sprite_sy__P2213_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 572; s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + s.oldSy___8182 = (r0); + s.tmp_0 = Sprite_sy__P2214_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 573; s.pc = 34; return s.tmp_0; + case 34: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.hasSx___8152); + 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 = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } + case 9: + r0 = s.arg4; + case 10: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 11; continue; } + r0 = (s.arg2 / s.oldSy___8182); + s.ratio___8190 = (r0); + s.tmp_0 = Sprite_sx__P2212_mk(s); + s.tmp_1 = r0 = s.arg0; + s.tmp_0.arg0 = r0; + s.tmp_3 = Sprite_sx__P2211_mk(s); + s.tmp_3.arg0 = s.tmp_1; + s.callLocIdx = 574; s.pc = 36; return s.tmp_3; + case 36: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 * s.ratio___8190); + s.tmp_0.arg1 = r0; + s.callLocIdx = 575; s.pc = 35; return s.tmp_0; + case 35: + r0 = s.retval; + case 11: + case 12: + case 13: + case 14: + r0 = (s.arg3 & 6); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 19; continue; } + s.tmp_1 = Sprite_width__P2238_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 576; s.pc = 37; return s.tmp_1; + case 37: + r0 = s.retval; + s.newW___8203 = (r0); + r0 = (s.newW___8203 - s.oldW___8160); + s.diff___8205 = (r0); + r0 = (s.diff___8205 / 2); + s.diffOver2___8209 = (r0); + r0 = (s.arg3 & 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + s.tmp_1 = Sprite_x__P2196_mk(s); + s.tmp_2 = r0 = s.arg0; + s.tmp_1.arg0 = r0; + s.tmp_4 = Sprite_x__P2195_mk(s); + s.tmp_4.arg0 = s.tmp_2; + s.callLocIdx = 577; s.pc = 39; return s.tmp_4; + case 39: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 + s.diffOver2___8209); + s.tmp_1.arg1 = r0; + s.callLocIdx = 578; s.pc = 38; return s.tmp_1; + case 38: + r0 = s.retval; + case 15: + case 16: + r0 = (s.arg3 & 4); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 17; continue; } + s.tmp_1 = Sprite_x__P2196_mk(s); + s.tmp_2 = r0 = s.arg0; + s.tmp_1.arg0 = r0; + s.tmp_4 = Sprite_x__P2195_mk(s); + s.tmp_4.arg0 = s.tmp_2; + s.callLocIdx = 579; s.pc = 41; return s.tmp_4; + case 41: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 - s.diffOver2___8209); + s.tmp_1.arg1 = r0; + s.callLocIdx = 580; s.pc = 40; return s.tmp_1; + case 40: + r0 = s.retval; + case 17: + case 18: + case 19: + case 20: + r0 = (s.arg3 & 9); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 25; continue; } + s.tmp_1 = Sprite_height__P2239_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 581; s.pc = 42; return s.tmp_1; + case 42: + r0 = s.retval; + s.newH___8231 = (r0); + r0 = (s.newH___8231 - s.oldH___8162); + s.diff___8233 = (r0); + r0 = (s.diff___8233 / 2); + s.diffOver2___8237 = (r0); + r0 = (s.arg3 & 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 21; continue; } + s.tmp_1 = Sprite_y__P2198_mk(s); + s.tmp_2 = r0 = s.arg0; + s.tmp_1.arg0 = r0; + s.tmp_4 = Sprite_y__P2197_mk(s); + s.tmp_4.arg0 = s.tmp_2; + s.callLocIdx = 582; s.pc = 44; return s.tmp_4; + case 44: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 + s.diffOver2___8237); + s.tmp_1.arg1 = r0; + s.callLocIdx = 583; s.pc = 43; return s.tmp_1; + case 43: + r0 = s.retval; + case 21: + case 22: + r0 = (s.arg3 & 8); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 23; continue; } + s.tmp_1 = Sprite_y__P2198_mk(s); + s.tmp_2 = r0 = s.arg0; + s.tmp_1.arg0 = r0; + s.tmp_4 = Sprite_y__P2197_mk(s); + s.tmp_4.arg0 = s.tmp_2; + s.callLocIdx = 584; s.pc = 46; return s.tmp_4; + case 46: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 - s.diffOver2___8237); + s.tmp_1.arg1 = r0; + s.callLocIdx = 585; s.pc = 45; return s.tmp_1; + case 45: + r0 = s.retval; + case 23: + case 24: + case 25: + case 26: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_sub__P159.info = {"start":749,"length":118,"line":26,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"sub","argumentNames":["a","b"]} +Sprite_setScaleCore__P2272.info = {"start":31133,"length":1383,"line":979,"column":4,"endLine":1019,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setScaleCore","argumentNames":["this","sx","sy","anchor","proportional"]} -function Fx_sub__P159_mk(s) { +function Sprite_setScaleCore__P2272_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_sub__P159, depth: s.depth + 1, + parent: s, fn: Sprite_setScaleCore__P2272, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + hasSx___8152: undefined, + hasSy___8156: undefined, + oldW___8160: undefined, + oldH___8162: undefined, + oldSx___8165: undefined, + ratio___8173: undefined, + oldSy___8182: undefined, + ratio___8190: undefined, + newW___8203: undefined, + diff___8205: undefined, + diffOver2___8209: undefined, + newH___8231: undefined, + diff___8233: undefined, + diffOver2___8237: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function Fx_add__P157(s) { +function Sprite_sy__P2214(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4597,22 +5658,73 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.y___8353 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 + s.arg1); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_0 = Sprite_y__P2197_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 434; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.y___8353 = (r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = Math_max__P130_mk(s); + s.tmp_3.arg0 = 0; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 435; s.pc = 2; return s.tmp_3; + case 2: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_sy"] = (s.tmp_1); + s.tmp_0 = Sprite__C2182_v5_1_mk(s); + s.tmp_0.arg0 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, Sprite__C2182_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.recalcSize; + s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = Sprite_top__P2245_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.y___8353; + s.tmp_4 = Sprite_height__P2239_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 437; s.pc = 5; return s.tmp_4; + case 5: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 / 2); + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 438; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_add__P157.info = {"start":511,"length":118,"line":20,"column":4,"endLine":22,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"add","argumentNames":["a","b"]} +Sprite_sy__P2214.info = {"start":5879,"length":158,"line":214,"column":4,"endLine":219,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"sy","argumentNames":["this","v"]} -function Fx_add__P157_mk(s) { +function Sprite_sy__P2214_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_add__P157, depth: s.depth + 1, + parent: s, fn: Sprite_sy__P2214, depth: s.depth + 1, pc: 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___8353: undefined, arg0: undefined, arg1: undefined, } } @@ -4621,7 +5733,7 @@ function Fx_add__P157_mk(s) { -function game_Hitbox_updateIfInvalid__P2065(s) { +function Sprite_recalcSize__P4562(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4631,147 +5743,72 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.newHitBox___7844 = undefined; - s.oMinX___7849 = undefined; - s.oMinY___7852 = undefined; - s.oMaxX___7855 = undefined; - s.oMaxY___7861 = undefined; - s.nMinX___7867 = undefined; - s.nMinY___7870 = undefined; - s.nMaxX___7873 = undefined; - s.nMaxY___7879 = undefined; - s.xDiff___7885 = undefined; - s.yDiff___7896 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C2051_VT)) failedCast(r0); - s.tmp_1 = game_Hitbox_isValid__P2063_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 284; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 7; continue; } + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["_image"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_4); + s.tmp_3 = r0; + s.tmp_6 = Sprite_sx__P2211_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 454; s.pc = 1; return s.tmp_6; case 1: - case 2: - s.tmp_2 = game_calculateHitBox__P2067_mk(s); - r0 = s.arg0.fields["parent"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 285; s.pc = 9; return s.tmp_2; - case 9: - r0 = s.retval; - s.newHitBox___7844 = (r0); - r0 = s.arg0.fields["ox"]; - s.oMinX___7849 = (r0); - r0 = s.arg0.fields["oy"]; - s.oMinY___7852 = (r0); - r0 = s.arg0.fields["width"]; - s.tmp_0 = r0; - r0 = (s.oMinX___7849 + s.tmp_0); - s.oMaxX___7855 = (r0); - r0 = s.arg0.fields["height"]; - s.tmp_0 = r0; - r0 = (s.oMinY___7852 + s.tmp_0); - s.oMaxY___7861 = (r0); - r0 = s.newHitBox___7844.fields["ox"]; - s.nMinX___7867 = (r0); - r0 = s.newHitBox___7844.fields["oy"]; - s.nMinY___7870 = (r0); - r0 = s.newHitBox___7844.fields["width"]; - s.tmp_0 = r0; - r0 = (s.nMinX___7867 + s.tmp_0); - s.nMaxX___7873 = (r0); - r0 = s.newHitBox___7844.fields["height"]; - s.tmp_0 = r0; - r0 = (s.nMinY___7870 + s.tmp_0); - s.nMaxY___7879 = (r0); - s.tmp_1 = Fx_abs__P165_mk(s); - r0 = (s.oMinX___7849 - s.nMinX___7867); - s.tmp_1.arg0 = r0; - s.callLocIdx = 291; s.pc = 10; return s.tmp_1; - case 10: - r0 = s.retval; - s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P165_mk(s); - r0 = (s.oMaxX___7855 - s.nMaxX___7873); - s.tmp_3.arg0 = r0; - s.callLocIdx = 293; s.pc = 11; return s.tmp_3; - case 11: r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_3 * s.tmp_5); s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - s.xDiff___7885 = (r0); - s.tmp_1 = Fx_abs__P165_mk(s); - r0 = (s.oMinY___7852 - s.nMinY___7870); - s.tmp_1.arg0 = r0; - s.callLocIdx = 296; s.pc = 12; return s.tmp_1; - case 12: - r0 = s.retval; - s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P165_mk(s); - r0 = (s.oMaxY___7861 - s.nMaxY___7879); - s.tmp_3.arg0 = r0; - s.callLocIdx = 298; s.pc = 13; return s.tmp_3; - case 13: + r0 = (s.tmp_2 * 256); + s.tmp_7 = r0; + r0 = (s.tmp_7 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_width"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["_image"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_4); + s.tmp_3 = r0; + s.tmp_6 = Sprite_sy__P2213_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 456; s.pc = 2; return s.tmp_6; + case 2: r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_3 * s.tmp_5); s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - s.yDiff___7896 = (r0); - r0 = (s.xDiff___7885 > 512); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = (s.arg0).fields["ox"] = (s.nMinX___7867); - r0 = s.newHitBox___7844.fields["width"]; - s.tmp_0 = r0; - r0 = (s.arg0).fields["width"] = (s.tmp_0); + r0 = (s.tmp_2 * 256); + s.tmp_7 = r0; + r0 = (s.tmp_7 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_height"] = (s.tmp_1); + s.tmp_0 = Sprite_resetHitbox__P2234_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 458; s.pc = 3; return s.tmp_0; case 3: - case 4: - r0 = (s.yDiff___7896 > 512); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = (s.arg0).fields["oy"] = (s.nMinY___7870); - r0 = s.newHitBox___7844.fields["height"]; - s.tmp_0 = r0; - r0 = (s.arg0).fields["height"] = (s.tmp_0); - case 5: - case 6: - r0 = s.newHitBox___7844.fields["hash"]; - s.tmp_0 = r0; - r0 = (s.arg0).fields["hash"] = (s.tmp_0); - case 7: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -game_Hitbox_updateIfInvalid__P2065.info = {"start":1188,"length":1317,"line":48,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"updateIfInvalid","argumentNames":["this"]} +Sprite_recalcSize__P4562.info = {"start":9982,"length":178,"line":363,"column":4,"endLine":367,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"recalcSize","argumentNames":["this"]} -function game_Hitbox_updateIfInvalid__P2065_mk(s) { +function Sprite_recalcSize__P4562_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_updateIfInvalid__P2065, depth: s.depth + 1, + parent: s, fn: Sprite_recalcSize__P4562, depth: s.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___7844: undefined, - oMinX___7849: undefined, - oMinY___7852: undefined, - oMaxX___7855: undefined, - oMaxY___7861: undefined, - nMinX___7867: undefined, - nMinY___7870: undefined, - nMaxX___7873: undefined, - nMaxY___7879: undefined, - xDiff___7885: undefined, - yDiff___7896: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, arg0: undefined, } } @@ -4779,7 +5816,7 @@ function game_Hitbox_updateIfInvalid__P2065_mk(s) { -function Fx_abs__P165(s) { +function Sprite_resetHitbox__P2234(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4793,30 +5830,86 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (s.arg0 < 0); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + r0 = (s.arg0).fields["_hitbox"] = (null); + s.tmp_0 = Sprite__C2182_v4_1_mk(s); + s.tmp_0.arg0 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, Sprite__C2182_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.setHitbox; + s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +Sprite_resetHitbox__P2234.info = {"start":9580,"length":76,"line":342,"column":4,"endLine":345,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"resetHitbox","argumentNames":["this"]} + +function Sprite_resetHitbox__P2234_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_resetHitbox__P2234, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_setHitbox__P2235(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C2182_VT)) failedCast(r0); + r0 = s.arg0.fields["_hitbox"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = (0 - s.arg0); - { step = 3; continue; } + s.tmp_1 = game_Hitbox_updateIfInvalid__P2065_mk(s); + r0 = s.arg0.fields["_hitbox"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 452; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; { step = 2; continue; } case 1: - r0 = s.arg0; - { step = 3; continue; } + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = game_calculateHitBox__P2067_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 453; s.pc = 4; return s.tmp_2; + case 4: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_hitbox"] = (s.tmp_1); case 2: r0 = undefined; - case 3: return leave(s, r0) default: oops() } } } -Fx_abs__P165.info = {"start":1506,"length":164,"line":44,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"abs","argumentNames":["a"]} +Sprite_setHitbox__P2235.info = {"start":9662,"length":173,"line":347,"column":4,"endLine":353,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]} -function Fx_abs__P165_mk(s) { +function Sprite_setHitbox__P2235_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_abs__P165, depth: s.depth + 1, + parent: s, fn: Sprite_setHitbox__P2235, 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, } } @@ -4824,7 +5917,7 @@ function Fx_abs__P165_mk(s) { -function Sprite_top__P2245(s) { +function game_calculateHitBox__P2067(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4834,62 +5927,215 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___7502 = undefined; + s.i___8408 = undefined; + s.minX___8411 = undefined; + s.minY___8415 = undefined; + s.maxX___8419 = undefined; + s.maxY___8421 = undefined; + s.c___8423 = undefined; + s.fxc___8424 = undefined; + s.r___8431 = undefined; + s.fxr___8432 = undefined; + s.width___8496 = undefined; + s.height___8504 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 436; s.pc = 1; return s.tmp_0; + r0 = s.arg0.fields["_hitbox"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + s.tmp_1 = game_Hitbox_isValid__P2063_mk(s); + r0 = s.arg0.fields["_hitbox"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 360; s.pc = 12; return s.tmp_1; + case 12: r0 = s.retval; - r0 = r0.fields["physicsEngine"]; - s.physics___7502 = (r0); - s.tmp_0 = PhysicsEngine__C2352_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___7502; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = 0; - 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 = s.arg0.fields["_hitbox"]; + { step = 11; continue; } + case 3: + case 4: + r0 = s.arg0.fields["_image"]; + s.i___8408 = (r0); + r0 = pxsim_ImageMethods.width(s.i___8408); + s.tmp_0 = r0; + r0 = (s.tmp_0 * 256); s.tmp_1 = r0; - r0 = s.arg0.fields["_y"]; + r0 = (s.tmp_1 | 0); + s.minX___8411 = (r0); + r0 = pxsim_ImageMethods.height(s.i___8408); + s.tmp_0 = r0; + r0 = (s.tmp_0 * 256); + s.tmp_1 = r0; + r0 = (s.tmp_1 | 0); + s.minY___8415 = (r0); + s.maxX___8419 = (0); + s.maxY___8421 = (0); + s.c___8423 = (0); + s.fxc___8424 = (0); + case 5: + s.tmp_1 = r0 = s.c___8423; + r0 = pxsim_ImageMethods.width(s.i___8408); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 10; continue; } + s.r___8431 = (0); + s.fxr___8432 = (0); + case 6: + s.tmp_1 = r0 = s.r___8431; + r0 = pxsim_ImageMethods.height(s.i___8408); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = pxsim_ImageMethods.getPixel(s.i___8408, s.c___8423, s.r___8431); s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); - s.tmp_0.arg3 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2352_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 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 7; continue; } + s.tmp_4 = Fx_min__P166_mk(s); + s.tmp_4.arg0 = s.minX___8411; + s.tmp_4.arg1 = s.fxc___8424; + s.callLocIdx = 364; s.pc = 13; return s.tmp_4; + case 13: r0 = s.retval; - r0 = undefined; + s.minX___8411 = (r0); + s.tmp_0 = Fx_min__P166_mk(s); + s.tmp_0.arg0 = s.minY___8415; + s.tmp_0.arg1 = s.fxr___8432; + s.callLocIdx = 365; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.minY___8415 = (r0); + s.tmp_0 = Fx_max__P167_mk(s); + s.tmp_0.arg0 = s.maxX___8419; + s.tmp_0.arg1 = s.fxc___8424; + s.callLocIdx = 366; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + s.maxX___8419 = (r0); + s.tmp_0 = Fx_max__P167_mk(s); + s.tmp_0.arg0 = s.maxY___8421; + s.tmp_0.arg1 = s.fxr___8432; + s.callLocIdx = 367; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + s.maxY___8421 = (r0); + case 7: + case 8: + r0 = (s.r___8431 + 1); + s.r___8431 = (r0); + r0 = (s.fxr___8432 + 256); + s.tmp_0 = r0; + s.fxr___8432 = (r0); + r0 = s.tmp_0; + { step = 6; continue; } + case 9: + r0 = (s.c___8423 + 1); + s.c___8423 = (r0); + r0 = (s.fxc___8424 + 256); + s.tmp_0 = r0; + s.fxc___8424 = (r0); + r0 = s.tmp_0; + { step = 5; continue; } + case 10: + r0 = s.arg0.fields["_sx"]; + s.tmp_0 = r0; + r0 = pxsim.Math_.imul(s.minX___8411, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + s.minX___8411 = (r0); + r0 = s.arg0.fields["_sy"]; + s.tmp_0 = r0; + r0 = pxsim.Math_.imul(s.minY___8415, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + s.minY___8415 = (r0); + r0 = s.arg0.fields["_sx"]; + s.tmp_0 = r0; + r0 = pxsim.Math_.imul(s.maxX___8419, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + s.maxX___8419 = (r0); + r0 = s.arg0.fields["_sy"]; + s.tmp_0 = r0; + r0 = pxsim.Math_.imul(s.maxY___8421, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + s.maxY___8421 = (r0); + r0 = (s.maxX___8419 - s.minX___8411); + s.tmp_0 = r0; + r0 = s.arg0.fields["_sx"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.width___8496 = (r0); + r0 = (s.maxY___8421 - s.minY___8415); + s.tmp_0 = r0; + r0 = s.arg0.fields["_sy"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.height___8504 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C2051_VT); + s.tmp_0 = r0; + s.tmp_1 = game_Hitbox_constructor__P2058_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.width___8496; + s.tmp_1.arg3 = s.height___8504; + r0 = (s.minX___8411 & -256); + s.tmp_1.arg4 = r0; + r0 = (s.minY___8415 & -256); + s.tmp_1.arg5 = r0; + s.callLocIdx = 380; s.pc = 17; return s.tmp_1; + case 17: + r0 = s.retval; + r0 = s.tmp_0; + case 11: return leave(s, r0) default: oops() } } } -Sprite_top__P2245.info = {"start":11687,"length":256,"line":421,"column":4,"endLine":431,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this","value"]} +game_calculateHitBox__P2067.info = {"start":3223,"length":1086,"line":103,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/game/hitbox.ts","functionName":"calculateHitBox","argumentNames":["s"]} -function Sprite_top__P2245_mk(s) { +function game_calculateHitBox__P2067_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_top__P2245, depth: s.depth + 1, + parent: s, fn: game_calculateHitBox__P2067, depth: s.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___7502: undefined, + tmp_4: undefined, + i___8408: undefined, + minX___8411: undefined, + minY___8415: undefined, + maxX___8419: undefined, + maxY___8421: undefined, + c___8423: undefined, + fxc___8424: undefined, + r___8431: undefined, + fxr___8432: undefined, + width___8496: undefined, + height___8504: undefined, arg0: undefined, - arg1: undefined, } } -function PhysicsEngine_moveSprite__P2356(s) { +function game_Hitbox_isValid__P2063(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4901,35 +6147,41 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C2352_VT)) failedCast(r0); - r0 = undefined; + if (!checkSubtype(r0, game_Hitbox__C2051_VT)) failedCast(r0); + r0 = s.arg0.fields["hash"]; + s.tmp_0 = r0; + s.tmp_2 = Sprite_calcDimensionalHash__P2233_mk(s); + r0 = s.arg0.fields["parent"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 313; s.pc = 1; return s.tmp_2; + case 1: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0 === s.tmp_1); return leave(s, r0) default: oops() } } } -PhysicsEngine_moveSprite__P2356.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"]} +game_Hitbox_isValid__P2063.info = {"start":935,"length":89,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"isValid","argumentNames":["this"]} -function PhysicsEngine_moveSprite__P2356_mk(s) { +function game_Hitbox_isValid__P2063_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_moveSprite__P2356, depth: s.depth + 1, + parent: s, fn: game_Hitbox_isValid__P2063, 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 Sprite_top__P2244(s) { +function Sprite_calcDimensionalHash__P2233(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4945,21 +6197,44 @@ switch (step) { } r0 = s.arg0; if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - r0 = s.arg0.fields["_y"]; + r0 = s.arg0.fields["_image"]; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.revision(s.tmp_2); + s.tmp_1 = r0; + r0 = s.arg0.fields["_width"]; + s.tmp_4 = r0; + r0 = (8 + 8); + s.tmp_5 = r0; + r0 = (s.tmp_4 >> s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_1 + s.tmp_3); s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = s.arg0.fields["_height"]; + s.tmp_7 = r0; + r0 = (16 + 8); + s.tmp_8 = r0; + r0 = (s.tmp_7 >> s.tmp_8); + s.tmp_6 = r0; + r0 = (s.tmp_0 + s.tmp_6); + return leave(s, r0) default: oops() } } } -Sprite_top__P2244.info = {"start":11544,"length":53,"line":416,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this"]} -Sprite_top__P2244.isGetter = true; +Sprite_calcDimensionalHash__P2233.info = {"start":9436,"length":138,"line":338,"column":4,"endLine":340,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"calcDimensionalHash","argumentNames":["this"]} -function Sprite_top__P2244_mk(s) { +function Sprite_calcDimensionalHash__P2233_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_top__P2244, depth: s.depth + 1, + parent: s, fn: Sprite_calcDimensionalHash__P2233, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -4967,7 +6242,7 @@ function Sprite_top__P2244_mk(s) { -function Fx_toFloat__P173(s) { +function Fx_toIntShifted__P156(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4979,27 +6254,34 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 / 256); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 + 8); + s.tmp_1 = r0; + r0 = (s.tmp_0 >> s.tmp_1); return leave(s, r0) default: oops() } } } -Fx_toFloat__P173.info = {"start":2470,"length":81,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]} +Fx_toIntShifted__P156.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_toFloat__P173_mk(s) { +function Fx_toIntShifted__P156_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toFloat__P173, depth: s.depth + 1, + parent: s, fn: Fx_toIntShifted__P156, 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 Math_max__P130(s) { +function game_Hitbox_constructor__P2058(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5012,38 +6294,54 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = (s.arg0 >= s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } r0 = s.arg0; - { step = 3; continue; } + if (!checkSubtype(r0, game_Hitbox__C2051_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Sprite_calcDimensionalHash__P2233_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 304; s.pc = 1; return s.tmp_2; case 1: - case 2: - r0 = s.arg1; - case 3: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["hash"] = (s.tmp_1); + r0 = (s.arg0).fields["parent"] = (s.arg1); + r0 = (s.arg0).fields["width"] = (s.arg2); + r0 = (s.arg0).fields["height"] = (s.arg3); + r0 = (s.arg0).fields["ox"] = (s.arg4); + r0 = (s.arg0).fields["oy"] = (s.arg5); + r0 = undefined; return leave(s, r0) default: oops() } } } -Math_max__P130.info = {"start":16614,"length":105,"line":558,"column":4,"endLine":561,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"max","argumentNames":["a","b"]} +game_Hitbox_constructor__P2058.info = {"start":173,"length":288,"line":9,"column":8,"endLine":16,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"inline","argumentNames":["this","parent","width","height","ox","oy"]} -function Math_max__P130_mk(s) { +function game_Hitbox_constructor__P2058_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_max__P130, depth: s.depth + 1, + parent: s, fn: game_Hitbox_constructor__P2058, 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 Sprite_sy__P2213(s) { +function Fx_floor__P168(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5057,23 +6355,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - r0 = s.arg0.fields["_sy"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = (s.arg0 & -256); + return leave(s, r0) default: oops() } } } -Sprite_sy__P2213.info = {"start":5719,"length":61,"line":209,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"sy","argumentNames":["this"]} -Sprite_sy__P2213.isGetter = true; +Fx_floor__P168.info = {"start":1919,"length":103,"line":62,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"floor","argumentNames":["v"]} -function Sprite_sy__P2213_mk(s) { +function Fx_floor__P168_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_sy__P2213, depth: s.depth + 1, + parent: s, fn: Fx_floor__P168, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -5081,7 +6373,7 @@ function Sprite_sy__P2213_mk(s) { -function Sprite_sx__P2212(s) { +function Fx_max__P167(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5091,73 +6383,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x___7952 = undefined; 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, Sprite__C2182_VT)) failedCast(r0); - s.tmp_0 = Sprite_x__P2195_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 394; s.pc = 1; return s.tmp_0; + { step = 3; continue; } + { step = 2; continue; } case 1: - r0 = s.retval; - s.x___7952 = (r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P130_mk(s); - s.tmp_3.arg0 = 0; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 395; s.pc = 2; return s.tmp_3; + r0 = s.arg1; + { step = 3; continue; } 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["_sx"] = (s.tmp_1); - s.tmp_0 = Sprite__C2182_v5_1_mk(s); - s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, Sprite__C2182_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.recalcSize; - s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = Sprite_left__P2241_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.x___7952; - s.tmp_4 = Sprite_width__P2238_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 397; s.pc = 5; return s.tmp_4; - case 5: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 / 2); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 398; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; r0 = undefined; + case 3: return leave(s, r0) default: oops() } } } -Sprite_sx__P2212.info = {"start":5447,"length":158,"line":201,"column":4,"endLine":206,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"sx","argumentNames":["this","v"]} +Fx_max__P167.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 Sprite_sx__P2212_mk(s) { +function Fx_max__P167_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_sx__P2212, depth: s.depth + 1, + parent: s, fn: Fx_max__P167, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - x___7952: undefined, arg0: undefined, arg1: undefined, } } @@ -5166,7 +6420,7 @@ function Sprite_sx__P2212_mk(s) { -function Sprite_left__P2241(s) { +function Fx_min__P166(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5176,53 +6430,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___7565 = undefined; 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, Sprite__C2182_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 428; s.pc = 1; return s.tmp_0; + { step = 3; continue; } + { step = 2; continue; } case 1: - r0 = s.retval; - r0 = r0.fields["physicsEngine"]; - s.physics___7565 = (r0); - s.tmp_0 = PhysicsEngine__C2352_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___7565; - s.tmp_0.arg1 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = s.arg0.fields["_x"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = 0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2352_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.moveSprite; - s.pc = 2; return s.tmp_0; + r0 = s.arg1; + { step = 3; continue; } case 2: - r0 = s.retval; r0 = undefined; + case 3: return leave(s, r0) default: oops() } } } -Sprite_left__P2241.info = {"start":10853,"length":257,"line":391,"column":4,"endLine":401,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this","value"]} +Fx_min__P166.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 Sprite_left__P2241_mk(s) { +function Fx_min__P166_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_left__P2241, depth: s.depth + 1, + parent: s, fn: Fx_min__P166, depth: s.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___7565: undefined, arg0: undefined, arg1: undefined, } } @@ -5231,7 +6467,7 @@ function Sprite_left__P2241_mk(s) { -function Sprite_left__P2240(s) { +function Fx_mul__P160(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5243,33 +6479,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__C2182_VT)) failedCast(r0); - r0 = s.arg0.fields["_x"]; + r0 = pxsim.Math_.imul(s.arg0, s.arg1); s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = (s.tmp_0 >> 8); + return leave(s, r0) default: oops() } } } -Sprite_left__P2240.info = {"start":10709,"length":53,"line":386,"column":4,"endLine":388,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this"]} -Sprite_left__P2240.isGetter = true; +Fx_mul__P160.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 Sprite_left__P2240_mk(s) { +function Fx_mul__P160_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_left__P2240, depth: s.depth + 1, + parent: s, fn: Fx_mul__P160, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function Sprite_sx__P2211(s) { +function Fx_sub__P159(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5281,33 +6516,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__C2182_VT)) failedCast(r0); - r0 = s.arg0.fields["_sx"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = (s.arg0 - s.arg1); + return leave(s, r0) default: oops() } } } -Sprite_sx__P2211.info = {"start":5287,"length":61,"line":196,"column":4,"endLine":198,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"sx","argumentNames":["this"]} -Sprite_sx__P2211.isGetter = true; +Fx_sub__P159.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 Sprite_sx__P2211_mk(s) { +function Fx_sub__P159_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_sx__P2211, depth: s.depth + 1, + parent: s, fn: Fx_sub__P159, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function Sprite_y__P2198(s) { +function Fx_add__P157(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5322,40 +6553,17 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P2245_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - s.tmp_4 = Sprite_height__P2239_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 377; s.pc = 2; return s.tmp_4; - case 2: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 / 2); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 378; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = (s.arg0 + s.arg1); return leave(s, r0) default: oops() } } } -Sprite_y__P2198.info = {"start":3081,"length":65,"line":126,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this","v"]} +Fx_add__P157.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_y__P2198_mk(s) { +function Fx_add__P157_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_y__P2198, depth: s.depth + 1, + parent: s, fn: Fx_add__P157, depth: s.depth + 1, pc: 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, } } @@ -5364,7 +6572,7 @@ function Sprite_y__P2198_mk(s) { -function Sprite_y__P2197(s) { +function game_Hitbox_updateIfInvalid__P2065(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5374,39 +6582,147 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.newHitBox___8605 = undefined; + s.oMinX___8610 = undefined; + s.oMinY___8613 = undefined; + s.oMaxX___8616 = undefined; + s.oMaxY___8622 = undefined; + s.nMinX___8628 = undefined; + s.nMinY___8631 = undefined; + s.nMaxX___8634 = undefined; + s.nMaxY___8640 = undefined; + s.xDiff___8646 = undefined; + s.yDiff___8657 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - r0 = s.arg0.fields["_y"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_height"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 << 8); - s.tmp_4 = r0; - r0 = pxsim.Math_.idiv(s.tmp_4, 512); + if (!checkSubtype(r0, game_Hitbox__C2051_VT)) failedCast(r0); + s.tmp_1 = game_Hitbox_isValid__P2063_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 318; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 7; continue; } + case 1: + case 2: + s.tmp_2 = game_calculateHitBox__P2067_mk(s); + r0 = s.arg0.fields["parent"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 319; s.pc = 9; return s.tmp_2; + case 9: + r0 = s.retval; + s.newHitBox___8605 = (r0); + r0 = s.arg0.fields["ox"]; + s.oMinX___8610 = (r0); + r0 = s.arg0.fields["oy"]; + s.oMinY___8613 = (r0); + r0 = s.arg0.fields["width"]; + s.tmp_0 = r0; + r0 = (s.oMinX___8610 + s.tmp_0); + s.oMaxX___8616 = (r0); + r0 = s.arg0.fields["height"]; + s.tmp_0 = r0; + r0 = (s.oMinY___8613 + s.tmp_0); + s.oMaxY___8622 = (r0); + r0 = s.newHitBox___8605.fields["ox"]; + s.nMinX___8628 = (r0); + r0 = s.newHitBox___8605.fields["oy"]; + s.nMinY___8631 = (r0); + r0 = s.newHitBox___8605.fields["width"]; + s.tmp_0 = r0; + r0 = (s.nMinX___8628 + s.tmp_0); + s.nMaxX___8634 = (r0); + r0 = s.newHitBox___8605.fields["height"]; + s.tmp_0 = r0; + r0 = (s.nMinY___8631 + s.tmp_0); + s.nMaxY___8640 = (r0); + s.tmp_1 = Fx_abs__P165_mk(s); + r0 = (s.oMinX___8610 - s.nMinX___8628); + s.tmp_1.arg0 = r0; + s.callLocIdx = 325; s.pc = 10; return s.tmp_1; + case 10: + r0 = s.retval; + s.tmp_0 = r0; + s.tmp_3 = Fx_abs__P165_mk(s); + r0 = (s.oMaxX___8616 - s.nMaxX___8634); + s.tmp_3.arg0 = r0; + s.callLocIdx = 327; s.pc = 11; return s.tmp_3; + case 11: + r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); + r0 = (s.tmp_0 + s.tmp_2); + s.xDiff___8646 = (r0); + s.tmp_1 = Fx_abs__P165_mk(s); + r0 = (s.oMinY___8613 - s.nMinY___8631); + s.tmp_1.arg0 = r0; + s.callLocIdx = 330; s.pc = 12; return s.tmp_1; + case 12: + r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + s.tmp_3 = Fx_abs__P165_mk(s); + r0 = (s.oMaxY___8622 - s.nMaxY___8640); + s.tmp_3.arg0 = r0; + s.callLocIdx = 332; s.pc = 13; return s.tmp_3; + case 13: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_0 + s.tmp_2); + s.yDiff___8657 = (r0); + r0 = (s.xDiff___8646 > 512); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = (s.arg0).fields["ox"] = (s.nMinX___8628); + r0 = s.newHitBox___8605.fields["width"]; + s.tmp_0 = r0; + r0 = (s.arg0).fields["width"] = (s.tmp_0); + case 3: + case 4: + r0 = (s.yDiff___8657 > 512); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = (s.arg0).fields["oy"] = (s.nMinY___8631); + r0 = s.newHitBox___8605.fields["height"]; + s.tmp_0 = r0; + r0 = (s.arg0).fields["height"] = (s.tmp_0); + case 5: + case 6: + r0 = s.newHitBox___8605.fields["hash"]; + s.tmp_0 = r0; + r0 = (s.arg0).fields["hash"] = (s.tmp_0); + case 7: + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_y__P2197.info = {"start":2893,"length":100,"line":121,"column":4,"endLine":123,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this"]} -Sprite_y__P2197.isGetter = true; +game_Hitbox_updateIfInvalid__P2065.info = {"start":1188,"length":1317,"line":48,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"updateIfInvalid","argumentNames":["this"]} -function Sprite_y__P2197_mk(s) { +function game_Hitbox_updateIfInvalid__P2065_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_y__P2197, depth: s.depth + 1, + parent: s, fn: game_Hitbox_updateIfInvalid__P2065, depth: s.depth + 1, pc: 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___8605: undefined, + oMinX___8610: undefined, + oMinY___8613: undefined, + oMaxX___8616: undefined, + oMaxY___8622: undefined, + nMinX___8628: undefined, + nMinY___8631: undefined, + nMaxX___8634: undefined, + nMaxY___8640: undefined, + xDiff___8646: undefined, + yDiff___8657: undefined, arg0: undefined, } } @@ -5414,7 +6730,7 @@ function Sprite_y__P2197_mk(s) { -function Fx_div__P162(s) { +function Fx_abs__P165(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5426,32 +6742,40 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 << 8); + r0 = (s.arg0 < 0); s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.arg1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = (0 - s.arg0); + { step = 3; continue; } + { step = 2; continue; } + case 1: + r0 = s.arg0; + { step = 3; continue; } + case 2: + r0 = undefined; + case 3: return leave(s, r0) default: oops() } } } -Fx_div__P162.info = {"start":1145,"length":129,"line":35,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"div","argumentNames":["a","b"]} +Fx_abs__P165.info = {"start":1506,"length":164,"line":44,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"abs","argumentNames":["a"]} -function Fx_div__P162_mk(s) { +function Fx_abs__P165_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_div__P162, depth: s.depth + 1, + parent: s, fn: Fx_abs__P165, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function Sprite_x__P2196(s) { +function Sprite_top__P2245(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5461,6 +6785,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.physics___8263 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -5468,38 +6793,45 @@ switch (step) { } r0 = s.arg0; if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P2241_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - s.tmp_4 = Sprite_width__P2238_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 372; s.pc = 2; return s.tmp_4; - case 2: + s.tmp_0 = game_currentScene__P2792_mk(s); + s.callLocIdx = 470; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 / 2); + r0 = r0.fields["physicsEngine"]; + s.physics___8263 = (r0); + s.tmp_0 = PhysicsEngine__C2352_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___8263; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = 0; + r0 = (s.arg1 * 256); s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 373; s.pc = 1; return s.tmp_0; - case 1: + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = s.arg0.fields["_y"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0.arg3 = r0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2352_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.moveSprite; + s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_x__P2196.info = {"start":2724,"length":65,"line":115,"column":4,"endLine":117,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this","v"]} +Sprite_top__P2245.info = {"start":11687,"length":256,"line":421,"column":4,"endLine":431,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this","value"]} -function Sprite_x__P2196_mk(s) { +function Sprite_top__P2245_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_x__P2196, depth: s.depth + 1, + parent: s, fn: Sprite_top__P2245, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, + physics___8263: undefined, arg0: undefined, arg1: undefined, } } @@ -5508,7 +6840,7 @@ function Sprite_x__P2196_mk(s) { -function Sprite_x__P2195(s) { +function PhysicsEngine_moveSprite__P2356(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5520,45 +6852,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - r0 = s.arg0.fields["_x"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_width"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 << 8); - s.tmp_4 = r0; - r0 = pxsim.Math_.idiv(s.tmp_4, 512); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, PhysicsEngine__C2352_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_x__P2195.info = {"start":2537,"length":99,"line":110,"column":4,"endLine":112,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this"]} -Sprite_x__P2195.isGetter = true; +PhysicsEngine_moveSprite__P2356.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 Sprite_x__P2195_mk(s) { +function PhysicsEngine_moveSprite__P2356_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_x__P2195, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_moveSprite__P2356, depth: s.depth + 1, pc: 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_height__P2239(s) { +function Sprite_top__P2244(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5574,19 +6896,19 @@ switch (step) { } r0 = s.arg0; if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - r0 = s.arg0.fields["_height"]; + r0 = s.arg0.fields["_y"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_height__P2239.info = {"start":10541,"length":61,"line":380,"column":4,"endLine":382,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"height","argumentNames":["this"]} -Sprite_height__P2239.isGetter = true; +Sprite_top__P2244.info = {"start":11544,"length":53,"line":416,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this"]} +Sprite_top__P2244.isGetter = true; -function Sprite_height__P2239_mk(s) { +function Sprite_top__P2244_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_height__P2239, depth: s.depth + 1, + parent: s, fn: Sprite_top__P2244, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -5596,7 +6918,7 @@ function Sprite_height__P2239_mk(s) { -function Sprite_width__P2238(s) { +function Fx_toFloat__P173(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5610,23 +6932,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - r0 = s.arg0.fields["_width"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = (s.arg0 / 256); + return leave(s, r0) default: oops() } } } -Sprite_width__P2238.info = {"start":10374,"length":59,"line":375,"column":4,"endLine":377,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"width","argumentNames":["this"]} -Sprite_width__P2238.isGetter = true; +Fx_toFloat__P173.info = {"start":2470,"length":81,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]} -function Sprite_width__P2238_mk(s) { +function Fx_toFloat__P173_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_width__P2238, depth: s.depth + 1, + parent: s, fn: Fx_toFloat__P173, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -5634,7 +6950,7 @@ function Sprite_width__P2238_mk(s) { -function Sprite_image__P2231(s) { +function Math_max__P130(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5646,30 +6962,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, Sprite__C2182_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; - return leaveAccessor(s, r0) + { step = 3; continue; } + case 1: + case 2: + r0 = s.arg1; + case 3: + return leave(s, r0) default: oops() } } } -Sprite_image__P2231.info = {"start":9023,"length":54,"line":322,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"image","argumentNames":["this"]} -Sprite_image__P2231.isGetter = true; +Math_max__P130.info = {"start":16614,"length":105,"line":558,"column":4,"endLine":561,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"max","argumentNames":["a","b"]} -function Sprite_image__P2231_mk(s) { +function Math_max__P130_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_image__P2231, depth: s.depth + 1, + parent: s, fn: Math_max__P130, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function Sprite_setKind__P2249(s) { +function Sprite_sy__P2213(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5679,153 +7004,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.spritesByKind___7990 = undefined; - s.overlapMap___8019 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - r0 = (s.arg1 == undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.arg0.fields["_kind"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === s.arg1); - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - { step = 15; continue; } - case 3: - case 4: - s.tmp_3 = game_currentScene__P2792_mk(s); - s.callLocIdx = 443; s.pc = 16; return s.tmp_3; - case 16: - r0 = s.retval; - r0 = r0.fields["spritesByKind"]; - s.spritesByKind___7990 = (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___7990, 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__P2311_mk(s); - r0 = s.arg0.fields["_kind"]; - s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___7990, s.tmp_5); - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.arg0; - s.callLocIdx = 444; 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___7990, 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__C2304_VT); - s.tmp_4 = r0; - s.tmp_5 = sprites_SpriteSet_constructor__P2306_mk(s); - s.tmp_5.arg0 = s.tmp_4; - s.callLocIdx = 445; s.pc = 18; return s.tmp_5; - case 18: - r0 = s.retval; - r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___7990, s.arg1, s.tmp_4); - case 9: - case 10: - s.tmp_0 = sprites_SpriteSet_add__P2309_mk(s); - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___7990, s.arg1); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 446; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - case 11: - case 12: - s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 447; s.pc = 20; return s.tmp_0; - case 20: - r0 = s.retval; - r0 = r0.fields["overlapMap"]; - s.overlapMap___8019 = (r0); - r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___8019, s.arg1); - 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.fields["_sy"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - s.tmp_3 = r0 = s.overlapMap___8019; - s.tmp_4 = r0 = s.arg1; - r0 = pxsim_Array__mk(); - s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_3, s.tmp_4, s.tmp_5); - case 13: - case 14: - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___8019, 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) + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -Sprite_setKind__P2249.info = {"start":12841,"length":663,"line":464,"column":4,"endLine":484,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setKind","argumentNames":["this","value"]} +Sprite_sy__P2213.info = {"start":5719,"length":61,"line":209,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"sy","argumentNames":["this"]} +Sprite_sy__P2213.isGetter = true; -function Sprite_setKind__P2249_mk(s) { +function Sprite_sy__P2213_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setKind__P2249, depth: s.depth + 1, + parent: s, fn: Sprite_sy__P2213, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - spritesByKind___7990: undefined, - overlapMap___8019: undefined, arg0: undefined, - arg1: undefined, } } -function sprites_SpriteSet_remove__P2311(s) { +function Sprite_sx__P2212(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5835,49 +7042,73 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___8067 = undefined; + s.x___8713 = 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__C2304_VT)) failedCast(r0); - r0 = s.arg0.fields["_sprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_0, s.arg1, undefined); - s.i___8067 = (r0); - r0 = (s.i___8067 > -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_arraySplice__P100_mk(s); - r0 = s.arg0.fields["_sprites"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___8067; - s.tmp_1.arg2 = 1; - s.callLocIdx = 631; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - r0 = true; - { step = 3; continue; } + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_0 = Sprite_x__P2195_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 428; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + s.x___8713 = (r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = Math_max__P130_mk(s); + s.tmp_3.arg0 = 0; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 429; s.pc = 2; return s.tmp_3; case 2: - r0 = false; + 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["_sx"] = (s.tmp_1); + s.tmp_0 = Sprite__C2182_v5_1_mk(s); + s.tmp_0.arg0 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, Sprite__C2182_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.recalcSize; + s.pc = 3; return s.tmp_0; case 3: + r0 = s.retval; + s.tmp_0 = Sprite_left__P2241_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.x___8713; + s.tmp_4 = Sprite_width__P2238_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 431; s.pc = 5; return s.tmp_4; + case 5: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 / 2); + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 432; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_remove__P2311.info = {"start":1827,"length":235,"line":66,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"remove","argumentNames":["this","sprite"]} +Sprite_sx__P2212.info = {"start":5447,"length":158,"line":201,"column":4,"endLine":206,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"sx","argumentNames":["this","v"]} -function sprites_SpriteSet_remove__P2311_mk(s) { +function Sprite_sx__P2212_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_remove__P2311, depth: s.depth + 1, + parent: s, fn: Sprite_sx__P2212, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - i___8067: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + x___8713: undefined, arg0: undefined, arg1: undefined, } } @@ -5886,7 +7117,7 @@ function sprites_SpriteSet_remove__P2311_mk(s) { -function helpers_arraySplice__P100(s) { +function Sprite_left__P2241(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5896,55 +7127,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___8087 = undefined; + s.physics___8326 = 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; } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P2792_mk(s); + s.callLocIdx = 462; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + r0 = r0.fields["physicsEngine"]; + s.physics___8326 = (r0); + s.tmp_0 = PhysicsEngine__C2352_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___8326; + s.tmp_0.arg1 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = s.arg0.fields["_x"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2352_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: - s.i___8087 = (0); - case 3: - r0 = (s.i___8087 < 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___8087 + 1); - s.i___8087 = (r0); - { step = 3; continue; } - case 4: - case 5: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arraySplice__P100.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"]} +Sprite_left__P2241.info = {"start":10853,"length":257,"line":391,"column":4,"endLine":401,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this","value"]} -function helpers_arraySplice__P100_mk(s) { +function Sprite_left__P2241_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySplice__P100, depth: s.depth + 1, + parent: s, fn: Sprite_left__P2241, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - i___8087: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + physics___8326: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function sprites_SpriteSet_add__P2309(s) { +function Sprite_left__P2240(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5956,54 +7194,119 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C2304_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + r0 = s.arg0.fields["_x"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = false; - { step = 5; continue; } - case 1: + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_left__P2240.info = {"start":10709,"length":53,"line":386,"column":4,"endLine":388,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this"]} +Sprite_left__P2240.isGetter = true; + +function Sprite_left__P2240_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_left__P2240, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_sx__P2211(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C2182_VT)) failedCast(r0); + r0 = s.arg0.fields["_sx"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_sx__P2211.info = {"start":5287,"length":61,"line":196,"column":4,"endLine":198,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"sx","argumentNames":["this"]} +Sprite_sx__P2211.isGetter = true; + +function Sprite_sx__P2211_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_sx__P2211, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_y__P2198(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P2245_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + s.tmp_4 = Sprite_height__P2239_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 411; s.pc = 2; return s.tmp_4; case 2: - r0 = s.arg0.fields["_sprites"]; - s.tmp_4 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_4, s.arg1, undefined); + r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 > -1); + r0 = (s.tmp_3 / 2); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - r0 = false; - { step = 5; continue; } - case 3: - case 4: - r0 = s.arg0.fields["_sprites"]; - s.tmp_5 = r0; - r0 = pxsim_Array__push(s.tmp_5, s.arg1); - r0 = true; - case 5: + r0 = (s.tmp_1 - s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 412; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_add__P2309.info = {"start":1041,"length":263,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"add","argumentNames":["this","sprite"]} +Sprite_y__P2198.info = {"start":3081,"length":65,"line":126,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this","v"]} -function sprites_SpriteSet_add__P2309_mk(s) { +function Sprite_y__P2198_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_add__P2309, depth: s.depth + 1, + parent: s, fn: Sprite_y__P2198, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -6012,7 +7315,7 @@ function sprites_SpriteSet_add__P2309_mk(s) { -function sprites_SpriteSet_contains__P2312(s) { +function Sprite_y__P2197(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6024,28 +7327,73 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C2304_VT)) failedCast(r0); - r0 = s.arg0.fields["_sprites"]; + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + r0 = s.arg0.fields["_y"]; s.tmp_1 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_1, s.arg1, undefined); + r0 = s.arg0.fields["_height"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 << 8); + s.tmp_4 = r0; + r0 = pxsim.Math_.idiv(s.tmp_4, 512); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); s.tmp_0 = r0; - r0 = (s.tmp_0 > -1); - return leave(s, r0) + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -sprites_SpriteSet_contains__P2312.info = {"start":2172,"length":100,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"contains","argumentNames":["this","sprite"]} +Sprite_y__P2197.info = {"start":2893,"length":100,"line":121,"column":4,"endLine":123,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this"]} +Sprite_y__P2197.isGetter = true; -function sprites_SpriteSet_contains__P2312_mk(s) { +function Sprite_y__P2197_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_contains__P2312, depth: s.depth + 1, + parent: s, fn: Sprite_y__P2197, depth: s.depth + 1, pc: 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 Fx_div__P162(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = (s.arg0 << 8); + s.tmp_0 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, s.arg1); + return leave(s, r0) + default: oops() +} } } +Fx_div__P162.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__P162_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_div__P162, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, arg1: undefined, } } @@ -6054,7 +7402,7 @@ function sprites_SpriteSet_contains__P2312_mk(s) { -function sprites_SpriteSet_constructor__P2306(s) { +function Sprite_x__P2196(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6066,27 +7414,205 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C2304_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_sprites"] = (s.tmp_1); + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P2241_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + s.tmp_4 = Sprite_width__P2238_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 406; s.pc = 2; return s.tmp_4; + case 2: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 / 2); + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 407; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_constructor__P2306.info = {"start":485,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]} +Sprite_x__P2196.info = {"start":2724,"length":65,"line":115,"column":4,"endLine":117,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this","v"]} -function sprites_SpriteSet_constructor__P2306_mk(s) { +function Sprite_x__P2196_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_constructor__P2306, depth: s.depth + 1, + parent: s, fn: Sprite_x__P2196, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Sprite_x__P2195(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C2182_VT)) failedCast(r0); + r0 = s.arg0.fields["_x"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_width"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 << 8); + s.tmp_4 = r0; + r0 = pxsim.Math_.idiv(s.tmp_4, 512); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_x__P2195.info = {"start":2537,"length":99,"line":110,"column":4,"endLine":112,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this"]} +Sprite_x__P2195.isGetter = true; + +function Sprite_x__P2195_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_x__P2195, depth: s.depth + 1, pc: 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 Sprite_height__P2239(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C2182_VT)) failedCast(r0); + r0 = s.arg0.fields["_height"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_height__P2239.info = {"start":10541,"length":61,"line":380,"column":4,"endLine":382,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"height","argumentNames":["this"]} +Sprite_height__P2239.isGetter = true; + +function Sprite_height__P2239_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_height__P2239, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_width__P2238(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C2182_VT)) failedCast(r0); + r0 = s.arg0.fields["_width"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_width__P2238.info = {"start":10374,"length":59,"line":375,"column":4,"endLine":377,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"width","argumentNames":["this"]} +Sprite_width__P2238.isGetter = true; + +function Sprite_width__P2238_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_width__P2238, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_image__P2231(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C2182_VT)) failedCast(r0); + r0 = s.arg0.fields["_image"]; + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_image__P2231.info = {"start":9023,"length":54,"line":322,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"image","argumentNames":["this"]} +Sprite_image__P2231.isGetter = true; + +function Sprite_image__P2231_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_image__P2231, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -6094,7 +7620,7 @@ function sprites_SpriteSet_constructor__P2306_mk(s) { -function blizzard_inline__P8100(s) { +function hearts_inline__P8742(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6104,14 +7630,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.factory___8107 = undefined; - s.src___8118 = undefined; + s.factory___8745 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(SnowFactory__C8103_VT); + r0 = pxsim_pxtcore_mkClassInstance(particles_ShapeFactory__C3001_VT); s.tmp_0 = r0; s.tmp_2 = if_width_1_mk(s); s.tmp_2.arg0 = s.arg0; @@ -6121,7 +7646,7 @@ switch (step) { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["width"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["width"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 48; s.pc = 5; return s.tmp_2; } + else { s.callLocIdx = 42; s.pc = 5; return s.tmp_2; } } case 5: r0 = s.retval; @@ -6136,7 +7661,7 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["width"]; if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["width"]; } else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 49; s.pc = 6; return s.tmp_3; } + else { s.callLocIdx = 43; s.pc = 6; return s.tmp_3; } } case 6: r0 = s.retval; @@ -6146,75 +7671,52 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.tmp_6 = if_height_1_mk(s); - s.tmp_6.arg0 = s.arg0; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "height"); - } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["height"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["height"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 50; s.pc = 7; return s.tmp_6; } - } + s.tmp_5 = particles_ShapeFactory_constructor__P3002_mk(s); + s.tmp_5.arg0 = s.tmp_0; + s.tmp_5.arg1 = s.tmp_4; + s.tmp_5.arg2 = 16; + r0 = pxsim.image.ofBuffer(_hex8753); + s.tmp_5.arg3 = r0; + s.callLocIdx = 44; s.pc = 7; return s.tmp_5; case 7: r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.factory___8745 = (s.tmp_0); + r0 = s.factory___8745.fields["xRange"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 50); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_7 = if_height_1_mk(s); - s.tmp_7.arg0 = s.arg0; - if (!s.tmp_7.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "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 = 51; s.pc = 8; return s.tmp_7; } - } - case 8: - r0 = s.retval; - { step = 4; continue; } + r0 = (s.factory___8745).fields["minLifespan"] = (1000); + r0 = (s.factory___8745).fields["maxLifespan"] = (2000); case 3: - r0 = 16; case 4: - // jmp value (already in r0) - s.tmp_8 = r0; - s.tmp_9 = SnowFactory_constructor__P8106_mk(s); - s.tmp_9.arg0 = s.tmp_0; - s.tmp_9.arg1 = s.tmp_4; - s.tmp_9.arg2 = s.tmp_8; - s.callLocIdx = 52; s.pc = 9; return s.tmp_9; - case 9: + s.tmp_0 = particles_SprayFactory_setSpeed__P2983_mk(s); + s.tmp_0.arg0 = s.factory___8745; + s.tmp_0.arg1 = 90; + s.callLocIdx = 45; s.pc = 8; return s.tmp_0; + case 8: r0 = s.retval; - s.factory___8107 = (s.tmp_0); r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C2939_VT); s.tmp_0 = r0; s.tmp_1 = particles_ParticleSource_constructor__P2944_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___8107; - s.callLocIdx = 53; s.pc = 10; return s.tmp_1; - case 10: - r0 = s.retval; - s.src___8118 = (s.tmp_0); - s.tmp_0 = particles_ParticleSource_setAcceleration__P2948_mk(s); - s.tmp_0.arg0 = s.src___8118; - s.tmp_0.arg1 = -300; - s.tmp_0.arg2 = -100; - s.callLocIdx = 54; s.pc = 11; return s.tmp_0; - case 11: + s.tmp_1.arg3 = s.factory___8745; + s.callLocIdx = 46; s.pc = 9; return s.tmp_1; + case 9: r0 = s.retval; - r0 = s.src___8118; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -blizzard_inline__P8100.info = {"start":11661,"length":960,"line":292,"column":59,"endLine":315,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} +hearts_inline__P8742.info = {"start":7924,"length":580,"line":198,"column":56,"endLine":215,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} -function blizzard_inline__P8100_mk(s) { +function hearts_inline__P8742_mk(s) { checkStack(s.depth); return { - parent: s, fn: blizzard_inline__P8100, depth: s.depth + 1, + parent: s, fn: hearts_inline__P8742, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6222,69 +7724,12 @@ function blizzard_inline__P8100_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - factory___8107: undefined, - src___8118: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function particles_ParticleSource_setAcceleration__P2948(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C2939_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["ax"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg2 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["ay"] = (s.tmp_1); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_ParticleSource_setAcceleration__P2948.info = {"start":6026,"length":113,"line":194,"column":8,"endLine":197,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAcceleration","argumentNames":["this","ax","ay"]} - -function particles_ParticleSource_setAcceleration__P2948_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_ParticleSource_setAcceleration__P2948, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, + factory___8745: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } +const _hex8753 = pxsim.BufferMethods.createBufferFromHex("8704050005000000f00f00000ff00000f0000f000ff00000f00f0000") @@ -6299,8 +7744,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___8151 = undefined; - s.removedSource___8160 = undefined; + s.sources___8775 = undefined; + s.removedSource___8784 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -6313,39 +7758,39 @@ switch (step) { s.tmp_0 = sprites_BaseSprite_constructor__P1940_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.callLocIdx = 1432; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1523; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = particles_init__P5043_mk(s); - s.callLocIdx = 1433; s.pc = 6; return s.tmp_0; + s.tmp_0 = particles_init__P5083_mk(s); + s.callLocIdx = 1524; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = particles_particleSources__P5049_mk(s); - s.callLocIdx = 1434; s.pc = 7; return s.tmp_0; + s.tmp_0 = particles_particleSources__P5089_mk(s); + s.callLocIdx = 1525; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.sources___8151 = (r0); - r0 = pxsim_Array__length(s.sources___8151); + s.sources___8775 = (r0); + r0 = pxsim_Array__length(s.sources___8775); s.tmp_1 = r0; - r0 = (s.tmp_1 >= globals.MAX_SOURCES___5035); + r0 = (s.tmp_1 >= globals.MAX_SOURCES___5075); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = particles_sortSources__P5046_mk(s); - s.tmp_2.arg0 = s.sources___8151; - s.callLocIdx = 1435; s.pc = 8; return s.tmp_2; + s.tmp_2 = particles_sortSources__P5086_mk(s); + s.tmp_2.arg0 = s.sources___8775; + s.callLocIdx = 1526; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; - r0 = pxsim_Array_.removeAt(s.sources___8151, 0); - s.removedSource___8160 = (r0); + r0 = pxsim_Array_.removeAt(s.sources___8775, 0); + s.removedSource___8784 = (r0); s.tmp_0 = particles_ParticleSource_clear__P2954_mk(s); - s.tmp_0.arg0 = s.removedSource___8160; - s.callLocIdx = 1437; s.pc = 9; return s.tmp_0; + s.tmp_0.arg0 = s.removedSource___8784; + s.callLocIdx = 1528; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; s.tmp_0 = particles_ParticleSource_destroy__P2953_mk(s); - s.tmp_0.arg0 = s.removedSource___8160; - s.callLocIdx = 1438; s.pc = 10; return s.tmp_0; + s.tmp_0.arg0 = s.removedSource___8784; + s.callLocIdx = 1529; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; case 1: @@ -6354,20 +7799,20 @@ switch (step) { s.tmp_0 = particles_ParticleSource_setRate__P2956_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 1439; s.pc = 11; return s.tmp_0; + s.callLocIdx = 1530; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; s.tmp_0 = particles_ParticleSource_setAcceleration__P2948_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 0; - s.callLocIdx = 1440; s.pc = 12; return s.tmp_0; + s.callLocIdx = 1531; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; s.tmp_0 = particles_ParticleSource_setAnchor__P2955_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1441; s.pc = 13; return s.tmp_0; + s.callLocIdx = 1532; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; r0 = (s.arg0).fields["lifespan"] = (undefined); @@ -6386,14 +7831,14 @@ switch (step) { s.tmp_2 = particles_ParticleSource_setFactory__P2958_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 1442; s.pc = 14; return s.tmp_2; + s.callLocIdx = 1533; s.pc = 14; return s.tmp_2; case 14: r0 = s.retval; - r0 = pxsim_Array__push(s.sources___8151, s.arg0); + r0 = pxsim_Array__push(s.sources___8775, s.arg0); s.tmp_0 = particles_ParticleSource_enabled__P2952_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = true; - s.callLocIdx = 1443; s.pc = 15; return s.tmp_0; + s.callLocIdx = 1534; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; r0 = undefined; @@ -6410,8 +7855,8 @@ function particles_ParticleSource_constructor__P2944_mk(s) { tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - sources___8151: undefined, - removedSource___8160: undefined, + sources___8775: undefined, + removedSource___8784: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -6422,7 +7867,7 @@ function particles_ParticleSource_constructor__P2944_mk(s) { -function particles_particleSources__P5049(s) { +function particles_particleSources__P5089(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6432,33 +7877,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___8613 = undefined; + s.sources___9243 = undefined; s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1499; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1590; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = r0.fields["particleSources"]; - s.sources___8613 = (r0); - r0 = s.sources___8613; + s.sources___9243 = (r0); + r0 = s.sources___9243; return leave(s, r0) default: oops() } } } -particles_particleSources__P5049.info = {"start":12848,"length":119,"line":421,"column":4,"endLine":424,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]} +particles_particleSources__P5089.info = {"start":12848,"length":119,"line":421,"column":4,"endLine":424,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]} -function particles_particleSources__P5049_mk(s) { +function particles_particleSources__P5089_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_particleSources__P5049, depth: s.depth + 1, + parent: s, fn: particles_particleSources__P5089, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___8613: undefined, + sources___9243: undefined, } } -function particles_sortSources__P5046(s) { +function particles_sortSources__P5086(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6474,20 +7919,20 @@ switch (step) { } s.tmp_0 = helpers_arraySort__P105_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = particles_sortSources_inline__P8458; - s.callLocIdx = 1481; s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = particles_sortSources_inline__P9088; + s.callLocIdx = 1572; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_sortSources__P5046.info = {"start":10026,"length":129,"line":332,"column":4,"endLine":334,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"sortSources","argumentNames":["sources"]} +particles_sortSources__P5086.info = {"start":10026,"length":129,"line":332,"column":4,"endLine":334,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"sortSources","argumentNames":["sources"]} -function particles_sortSources__P5046_mk(s) { +function particles_sortSources__P5086_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_sortSources__P5046, depth: s.depth + 1, + parent: s, fn: particles_sortSources__P5086, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -6497,7 +7942,7 @@ function particles_sortSources__P5046_mk(s) { -function particles_sortSources_inline__P8458(s) { +function particles_sortSources_inline__P9088(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6535,12 +7980,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_sortSources_inline__P8458.info = {"start":10097,"length":50,"line":333,"column":21,"endLine":333,"endColumn":71,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["a","b"]} +particles_sortSources_inline__P9088.info = {"start":10097,"length":50,"line":333,"column":21,"endLine":333,"endColumn":71,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["a","b"]} -function particles_sortSources_inline__P8458_mk(s) { +function particles_sortSources_inline__P9088_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_sortSources_inline__P8458, depth: s.depth + 1, + parent: s, fn: particles_sortSources_inline__P9088, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6588,10 +8033,10 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - s.arg1 = (helpers_arraySort_inline__P8481); + s.arg1 = (helpers_arraySort_inline__P9111); case 3: case 4: - s.tmp_0 = helpers_sortHelper__P4250_mk(s); + s.tmp_0 = helpers_sortHelper__P4290_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 3; s.pc = 5; return s.tmp_0; @@ -6619,7 +8064,7 @@ function helpers_arraySort__P105_mk(s) { -function helpers_arraySort_inline__P8481(s) { +function helpers_arraySort_inline__P9111(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6629,26 +8074,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.aIsUndef___8484 = undefined; - s.bIsUndef___8488 = undefined; - s.aIsNull___8499 = undefined; - s.bIsNull___8503 = undefined; + s.aIsUndef___9114 = undefined; + s.bIsUndef___9118 = undefined; + s.aIsNull___9129 = undefined; + s.bIsNull___9133 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = (s.arg0 === undefined); - s.aIsUndef___8484 = (r0); + s.aIsUndef___9114 = (r0); r0 = (s.arg1 === undefined); - s.bIsUndef___8488 = (r0); - s.tmp_0 = r0 = s.aIsUndef___8484; + s.bIsUndef___9118 = (r0); + s.tmp_0 = r0 = s.aIsUndef___9114; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.bIsUndef___8488; + r0 = s.bIsUndef___9118; case 2: // jmp value (already in r0) s.tmp_1 = r0; @@ -6658,13 +8103,13 @@ switch (step) { { step = 17; continue; } { step = 8; continue; } case 3: - r0 = pxsim_numops_toBoolDecr(s.aIsUndef___8484); + r0 = pxsim_numops_toBoolDecr(s.aIsUndef___9114); if (!r0) { step = 4; continue; } r0 = 1; { step = 17; continue; } { step = 7; continue; } case 4: - r0 = pxsim_numops_toBoolDecr(s.bIsUndef___8488); + r0 = pxsim_numops_toBoolDecr(s.bIsUndef___9118); if (!r0) { step = 5; continue; } r0 = -1; { step = 17; continue; } @@ -6673,16 +8118,16 @@ switch (step) { case 7: case 8: r0 = (s.arg0 === null); - s.aIsNull___8499 = (r0); + s.aIsNull___9129 = (r0); r0 = (s.arg1 === null); - s.bIsNull___8503 = (r0); - s.tmp_0 = r0 = s.aIsNull___8499; + s.bIsNull___9133 = (r0); + s.tmp_0 = r0 = s.aIsNull___9129; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 9; continue; } r0 = s.tmp_0; { step = 10; continue; } case 9: - r0 = s.bIsNull___8503; + r0 = s.bIsNull___9133; case 10: // jmp value (already in r0) s.tmp_1 = r0; @@ -6692,13 +8137,13 @@ switch (step) { { step = 17; continue; } { step = 16; continue; } case 11: - r0 = pxsim_numops_toBoolDecr(s.aIsNull___8499); + r0 = pxsim_numops_toBoolDecr(s.aIsNull___9129); if (!r0) { step = 12; continue; } r0 = 1; { step = 17; continue; } { step = 15; continue; } case 12: - r0 = pxsim_numops_toBoolDecr(s.bIsNull___8503); + r0 = pxsim_numops_toBoolDecr(s.bIsNull___9133); if (!r0) { step = 13; continue; } r0 = -1; { step = 17; continue; } @@ -6737,12 +8182,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_arraySort_inline__P8481.info = {"start":5826,"length":636,"line":209,"column":25,"endLine":224,"endColumn":13,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"inline","argumentNames":["a","b"]} +helpers_arraySort_inline__P9111.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 helpers_arraySort_inline__P8481_mk(s) { +function helpers_arraySort_inline__P9111_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySort_inline__P8481, depth: s.depth + 1, + parent: s, fn: helpers_arraySort_inline__P9111, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6752,10 +8197,10 @@ function helpers_arraySort_inline__P8481_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - aIsUndef___8484: undefined, - bIsUndef___8488: undefined, - aIsNull___8499: undefined, - bIsNull___8503: undefined, + aIsUndef___9114: undefined, + bIsUndef___9118: undefined, + aIsNull___9129: undefined, + bIsNull___9133: undefined, arg0: undefined, arg1: undefined, } } @@ -6764,7 +8209,7 @@ function helpers_arraySort_inline__P8481_mk(s) { -function helpers_sortHelper__P4250(s) { +function helpers_sortHelper__P4290(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6774,9 +8219,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___8538 = undefined; - s.i___8541 = undefined; - s.j___8547 = undefined; + s.len___9168 = undefined; + s.i___9171 = undefined; + s.j___9177 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -6804,28 +8249,28 @@ switch (step) { case 3: case 4: r0 = pxsim_Array__length(s.arg0); - s.len___8538 = (r0); - s.i___8541 = (0); + s.len___9168 = (r0); + s.i___9171 = (0); case 5: - s.tmp_1 = r0 = s.i___8541; - r0 = (s.len___8538 - 1); + s.tmp_1 = r0 = s.i___9171; + r0 = (s.len___9168 - 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___8541 + 1); - s.j___8547 = (r0); + r0 = (s.i___9171 + 1); + s.j___9177 = (r0); case 6: - r0 = (s.j___8547 < s.len___8538); + r0 = (s.j___9177 < s.len___9168); 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___8541); + r0 = pxsim_Array__getAt(s.arg0, s.i___9171); s.tmp_3.arg0 = r0; - r0 = pxsim_Array__getAt(s.arg0, s.j___8547); + r0 = pxsim_Array__getAt(s.arg0, s.j___9177); s.tmp_3.arg1 = r0; setupLambda(s.tmp_3, s.tmp_3.argL); s.callLocIdx = 1; s.pc = 12; return s.tmp_3; @@ -6836,21 +8281,21 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 7; continue; } - s.tmp_4 = helpers_swap__P4249_mk(s); + s.tmp_4 = helpers_swap__P4289_mk(s); s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = s.i___8541; - s.tmp_4.arg2 = s.j___8547; + s.tmp_4.arg1 = s.i___9171; + s.tmp_4.arg2 = s.j___9177; s.callLocIdx = 2; s.pc = 13; return s.tmp_4; case 13: r0 = s.retval; case 7: case 8: - r0 = (s.j___8547 + 1); - s.j___8547 = (r0); + r0 = (s.j___9177 + 1); + s.j___9177 = (r0); { step = 6; continue; } case 9: - r0 = (s.i___8541 + 1); - s.i___8541 = (r0); + r0 = (s.i___9171 + 1); + s.i___9171 = (r0); { step = 5; continue; } case 10: r0 = s.arg0; @@ -6858,21 +8303,21 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_sortHelper__P4250.info = {"start":5176,"length":481,"line":191,"column":4,"endLine":205,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sortHelper","argumentNames":["arr","callbackfn"]} +helpers_sortHelper__P4290.info = {"start":5176,"length":481,"line":191,"column":4,"endLine":205,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sortHelper","argumentNames":["arr","callbackfn"]} -function helpers_sortHelper__P4250_mk(s) { +function helpers_sortHelper__P4290_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_sortHelper__P4250, depth: s.depth + 1, + parent: s, fn: helpers_sortHelper__P4290, depth: s.depth + 1, pc: 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___8538: undefined, - i___8541: undefined, - j___8547: undefined, + len___9168: undefined, + i___9171: undefined, + j___9177: undefined, arg0: undefined, arg1: undefined, } } @@ -6881,7 +8326,7 @@ function helpers_sortHelper__P4250_mk(s) { -function helpers_swap__P4249(s) { +function helpers_swap__P4289(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6891,7 +8336,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.temp___8576 = undefined; + s.temp___9206 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -6899,28 +8344,28 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_Array__getAt(s.arg0, s.arg1); - s.temp___8576 = (r0); + s.temp___9206 = (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___8576); + r0 = pxsim_Array_.setAt(s.arg0, s.arg2, s.temp___9206); r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_swap__P4249.info = {"start":5030,"length":140,"line":185,"column":4,"endLine":189,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"swap","argumentNames":["arr","i","j"]} +helpers_swap__P4289.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__P4249_mk(s) { +function helpers_swap__P4289_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_swap__P4249, depth: s.depth + 1, + parent: s, fn: helpers_swap__P4289, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - temp___8576: undefined, + temp___9206: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -6930,7 +8375,7 @@ function helpers_swap__P4249_mk(s) { -function particles_init__P5043(s) { +function particles_init__P5083(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6940,34 +8385,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___8618 = undefined; + s.scene___9248 = undefined; s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1471; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1562; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.scene___8618 = (r0); - r0 = s.scene___8618.fields["particleSources"]; + s.scene___9248 = (r0); + r0 = s.scene___9248.fields["particleSources"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } { step = 3; continue; } case 1: case 2: - s.tmp_1 = r0 = s.scene___8618; + s.tmp_1 = r0 = s.scene___9248; r0 = pxsim_Array__mk(); s.tmp_2 = r0; r0 = (s.tmp_1).fields["particleSources"] = (s.tmp_2); r0 = pxsim.control.millis(); - globals.lastUpdate___5038 = (r0); + globals.lastUpdate___5078 = (r0); s.tmp_0 = game_onUpdate__P2811_mk(s); - s.tmp_0.arg0 = particles_updateParticles__P5044; - s.callLocIdx = 1472; s.pc = 5; return s.tmp_0; + s.tmp_0.arg0 = particles_updateParticles__P5084; + s.callLocIdx = 1563; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; s.tmp_0 = game_onUpdateInterval__P2812_mk(s); s.tmp_0.arg0 = 250; - s.tmp_0.arg1 = particles_pruneParticles__P5045; - s.callLocIdx = 1473; s.pc = 6; return s.tmp_0; + s.tmp_0.arg1 = particles_pruneParticles__P5085; + s.callLocIdx = 1564; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; case 3: @@ -6975,24 +8420,24 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_init__P5043.info = {"start":9236,"length":276,"line":304,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]} +particles_init__P5083.info = {"start":9236,"length":276,"line":304,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]} -function particles_init__P5043_mk(s) { +function particles_init__P5083_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_init__P5043, depth: s.depth + 1, + parent: s, fn: particles_init__P5083, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - scene___8618: undefined, + scene___9248: undefined, } } -function particles_pruneParticles__P5045(s) { +function particles_pruneParticles__P5085(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7002,26 +8447,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___8633 = undefined; - s.tmp_0 = particles_particleSources__P5049_mk(s); - s.callLocIdx = 1477; s.pc = 3; return s.tmp_0; + s.sources___9263 = undefined; + s.tmp_0 = particles_particleSources__P5089_mk(s); + s.callLocIdx = 1568; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.sources___8633 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___8633); + s.sources___9263 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___9263); if (!r0) { step = 1; continue; } s.tmp_0 = helpers_arrayForEach__P109_mk(s); s.tmp_1 = helpers_arraySlice__P115_mk(s); - s.tmp_1.arg0 = s.sources___8633; + s.tmp_1.arg0 = s.sources___9263; s.tmp_1.arg1 = 0; - r0 = pxsim_Array__length(s.sources___8633); + r0 = pxsim_Array__length(s.sources___9263); s.tmp_1.arg2 = r0; - s.callLocIdx = 1478; s.pc = 5; return s.tmp_1; + s.callLocIdx = 1569; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = particles_pruneParticles_inline__P8642; - s.callLocIdx = 1480; s.pc = 4; return s.tmp_0; + s.tmp_0.arg1 = particles_pruneParticles_inline__P9272; + s.callLocIdx = 1571; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 1: @@ -7030,23 +8475,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_pruneParticles__P5045.info = {"start":9864,"length":156,"line":327,"column":4,"endLine":330,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]} +particles_pruneParticles__P5085.info = {"start":9864,"length":156,"line":327,"column":4,"endLine":330,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]} -function particles_pruneParticles__P5045_mk(s) { +function particles_pruneParticles__P5085_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_pruneParticles__P5045, depth: s.depth + 1, + parent: s, fn: particles_pruneParticles__P5085, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - sources___8633: undefined, + sources___9263: undefined, } } -function particles_pruneParticles_inline__P8642(s) { +function particles_pruneParticles_inline__P9272(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7062,19 +8507,19 @@ switch (step) { } s.tmp_0 = particles_ParticleSource__prune__P2947_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1479; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1570; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_pruneParticles_inline__P8642.info = {"start":9997,"length":15,"line":329,"column":62,"endLine":329,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +particles_pruneParticles_inline__P9272.info = {"start":9997,"length":15,"line":329,"column":62,"endLine":329,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function particles_pruneParticles_inline__P8642_mk(s) { +function particles_pruneParticles_inline__P9272_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_pruneParticles_inline__P8642, depth: s.depth + 1, + parent: s, fn: particles_pruneParticles_inline__P9272, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -7094,9 +8539,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___8405 = undefined; - s.sources___8413 = undefined; - s.current___8427 = undefined; + s.scene___9035 = undefined; + s.sources___9043 = undefined; + s.current___9057 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -7146,35 +8591,35 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 13; continue; } s.tmp_5 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1452; s.pc = 21; return s.tmp_5; + s.callLocIdx = 1543; s.pc = 21; return s.tmp_5; case 21: r0 = s.retval; - s.scene___8405 = (r0); - r0 = pxsim_numops_toBoolDecr(s.scene___8405); + s.scene___9035 = (r0); + r0 = pxsim_numops_toBoolDecr(s.scene___9035); if (!r0) { step = 7; continue; } - r0 = s.scene___8405.fields["allSprites"]; + r0 = s.scene___9035.fields["allSprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); case 7: case 8: - s.tmp_0 = particles_particleSources__P5049_mk(s); - s.callLocIdx = 1453; s.pc = 22; return s.tmp_0; + s.tmp_0 = particles_particleSources__P5089_mk(s); + s.callLocIdx = 1544; s.pc = 22; return s.tmp_0; case 22: r0 = s.retval; - s.sources___8413 = (r0); - s.tmp_0 = r0 = s.sources___8413; + s.sources___9043 = (r0); + s.tmp_0 = r0 = s.sources___9043; 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___8413); + r0 = pxsim_Array__length(s.sources___9043); 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___8413, s.arg0); + r0 = pxsim_Array_.removeElement(s.sources___9043, s.arg0); case 11: case 12: r0 = s.arg0.fields["anchor"]; @@ -7183,35 +8628,35 @@ switch (step) { case 13: case 14: r0 = s.arg0.fields["head"]; - s.current___8427 = (r0); + s.current___9057 = (r0); case 15: - s.tmp_0 = r0 = s.current___8427; + s.tmp_0 = r0 = s.current___9057; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 16; continue; } r0 = s.tmp_0; { step = 17; continue; } case 16: - r0 = s.current___8427.fields["next"]; + r0 = s.current___9057.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___8427.fields["next"]; + r0 = s.current___9057.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___8427.fields["next"]; + r0 = s.current___9057.fields["next"]; r0 = r0.fields["next"]; s.tmp_4 = r0; - r0 = (s.current___8427).fields["next"] = (s.tmp_4); + r0 = (s.current___9057).fields["next"] = (s.tmp_4); { step = 19; continue; } case 18: - r0 = s.current___8427.fields["next"]; - s.current___8427 = (r0); + r0 = s.current___9057.fields["next"]; + s.current___9057 = (r0); case 19: { step = 15; continue; } case 20: @@ -7232,9 +8677,9 @@ function particles_ParticleSource__prune__P2947_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - scene___8405: undefined, - sources___8413: undefined, - current___8427: undefined, + scene___9035: undefined, + sources___9043: undefined, + current___9057: undefined, arg0: undefined, } } @@ -7252,9 +8697,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___8649 = undefined; - s.len___8651 = undefined; - s.i___8685 = undefined; + s.res___9279 = undefined; + s.len___9281 = undefined; + s.i___9315 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -7262,9 +8707,9 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.res___8649 = (r0); + s.res___9279 = (r0); r0 = pxsim_Array__length(s.arg0); - s.len___8651 = (r0); + s.len___9281 = (r0); r0 = (s.arg1 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -7277,7 +8722,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } s.tmp_1 = Math_max__P130_mk(s); - r0 = (s.len___8651 + s.arg1); + r0 = (s.len___9281 + s.arg1); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 0; s.callLocIdx = 10; s.pc = 16; return s.tmp_1; @@ -7287,11 +8732,11 @@ switch (step) { case 2: case 3: case 4: - r0 = (s.arg1 > s.len___8651); + r0 = (s.arg1 > s.len___9281); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = s.res___8649; + r0 = s.res___9279; { step = 15; continue; } case 5: case 6: @@ -7299,40 +8744,40 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 7; continue; } - s.arg2 = (s.len___8651); + s.arg2 = (s.len___9281); { 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___8651 + s.arg2); + r0 = (s.len___9281 + s.arg2); s.arg2 = (r0); case 8: case 9: case 10: - r0 = (s.arg2 > s.len___8651); + r0 = (s.arg2 > s.len___9281); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - s.arg2 = (s.len___8651); + s.arg2 = (s.len___9281); case 11: case 12: - s.i___8685 = (s.arg1); + s.i___9315 = (s.arg1); case 13: - r0 = (s.i___8685 < s.arg2); + r0 = (s.i___9315 < s.arg2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - s.tmp_1 = r0 = s.res___8649; - r0 = pxsim_Array__getAt(s.arg0, s.i___8685); + s.tmp_1 = r0 = s.res___9279; + r0 = pxsim_Array__getAt(s.arg0, s.i___9315); s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___8685 + 1); - s.i___8685 = (r0); + r0 = (s.i___9315 + 1); + s.i___9315 = (r0); { step = 13; continue; } case 14: - r0 = s.res___8649; + r0 = s.res___9279; case 15: return leave(s, r0) default: oops() @@ -7347,9 +8792,9 @@ function helpers_arraySlice__P115_mk(s) { tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - res___8649: undefined, - len___8651: undefined, - i___8685: undefined, + res___9279: undefined, + len___9281: undefined, + i___9315: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -7369,32 +8814,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___8702 = undefined; - s.i___8705 = undefined; + s.len___9332 = undefined; + s.i___9335 = 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___8702 = (r0); - s.i___8705 = (0); + s.len___9332 = (r0); + s.i___9335 = (0); case 1: - r0 = (s.i___8705 < s.len___8702); + r0 = (s.i___9335 < s.len___9332); 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___8705); + r0 = pxsim_Array__getAt(s.arg0, s.i___9335); s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___8705; + s.tmp_1.arg1 = s.i___9335; 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___8705 + 1); - s.i___8705 = (r0); + r0 = (s.i___9335 + 1); + s.i___9335 = (r0); { step = 1; continue; } case 2: r0 = undefined; @@ -7410,8 +8855,8 @@ function helpers_arrayForEach__P109_mk(s) { pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___8702: undefined, - i___8705: undefined, + len___9332: undefined, + i___9335: undefined, arg0: undefined, arg1: undefined, } } @@ -7420,7 +8865,7 @@ function helpers_arrayForEach__P109_mk(s) { -function particles_updateParticles__P5044(s) { +function particles_updateParticles__P5084(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7430,16 +8875,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___8717 = undefined; - s.time___8724 = undefined; - s.dt___8727 = undefined; - s.i___8733 = undefined; - s.tmp_0 = particles_particleSources__P5049_mk(s); - s.callLocIdx = 1474; s.pc = 6; return s.tmp_0; + s.sources___9347 = undefined; + s.time___9354 = undefined; + s.dt___9357 = undefined; + s.i___9363 = undefined; + s.tmp_0 = particles_particleSources__P5089_mk(s); + s.callLocIdx = 1565; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.sources___8717 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___8717); + s.sources___9347 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___9347); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -7448,34 +8893,34 @@ switch (step) { { step = 5; continue; } case 1: case 2: - s.tmp_2 = particles_sortSources__P5046_mk(s); - s.tmp_2.arg0 = s.sources___8717; - s.callLocIdx = 1475; s.pc = 7; return s.tmp_2; + s.tmp_2 = particles_sortSources__P5086_mk(s); + s.tmp_2.arg0 = s.sources___9347; + s.callLocIdx = 1566; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; r0 = pxsim.control.millis(); - s.time___8724 = (r0); - r0 = (s.time___8724 - globals.lastUpdate___5038); - s.dt___8727 = (r0); - globals.lastUpdate___5038 = (s.time___8724); - s.i___8733 = (0); + s.time___9354 = (r0); + r0 = (s.time___9354 - globals.lastUpdate___5078); + s.dt___9357 = (r0); + globals.lastUpdate___5078 = (s.time___9354); + s.i___9363 = (0); case 3: - s.tmp_1 = r0 = s.i___8733; - r0 = pxsim_Array__length(s.sources___8717); + s.tmp_1 = r0 = s.i___9363; + r0 = pxsim_Array__length(s.sources___9347); 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__P2946_mk(s); - r0 = pxsim_Array__getAt(s.sources___8717, s.i___8733); + r0 = pxsim_Array__getAt(s.sources___9347, s.i___9363); s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.dt___8727; - s.callLocIdx = 1476; s.pc = 8; return s.tmp_3; + s.tmp_3.arg1 = s.dt___9357; + s.callLocIdx = 1567; s.pc = 8; return s.tmp_3; case 8: r0 = s.retval; - r0 = (s.i___8733 + 1); - s.i___8733 = (r0); + r0 = (s.i___9363 + 1); + s.i___9363 = (r0); { step = 3; continue; } case 4: case 5: @@ -7483,21 +8928,21 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_updateParticles__P5044.info = {"start":9518,"length":340,"line":313,"column":4,"endLine":325,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]} +particles_updateParticles__P5084.info = {"start":9518,"length":340,"line":313,"column":4,"endLine":325,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]} -function particles_updateParticles__P5044_mk(s) { +function particles_updateParticles__P5084_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_updateParticles__P5044, depth: s.depth + 1, + parent: s, fn: particles_updateParticles__P5084, depth: s.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___8717: undefined, - time___8724: undefined, - dt___8727: undefined, - i___8733: undefined, + sources___9347: undefined, + time___9354: undefined, + dt___9357: undefined, + i___9363: undefined, } } @@ -7514,9 +8959,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___8796 = undefined; - s.current___8815 = undefined; - s.fixedDt___8823 = undefined; + s.p___9426 = undefined; + s.current___9445 = undefined; + s.fixedDt___9453 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -7551,7 +8996,7 @@ switch (step) { r0 = (s.arg0).fields["lifespan"] = (undefined); s.tmp_0 = particles_ParticleSource_destroy__P2953_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1447; s.pc = 28; return s.tmp_0; + s.callLocIdx = 1538; s.pc = 28; return s.tmp_0; case 28: r0 = s.retval; case 1: @@ -7574,7 +9019,7 @@ switch (step) { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["flags"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["flags"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1448; s.pc = 29; return s.tmp_2; } + else { s.callLocIdx = 1539; s.pc = 29; return s.tmp_2; } } case 29: r0 = s.retval; @@ -7597,7 +9042,7 @@ switch (step) { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["flags"]; if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["flags"]; } else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1449; s.pc = 30; return s.tmp_5; } + else { s.callLocIdx = 1540; s.pc = 30; return s.tmp_5; } } case 30: r0 = s.retval; @@ -7624,7 +9069,7 @@ switch (step) { case 12: s.tmp_2 = particles_ParticleSource_enabled__P2951_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 1450; s.pc = 31; return s.tmp_2; + s.callLocIdx = 1541; s.pc = 31; return s.tmp_2; case 31: r0 = s.retval; case 13: @@ -7650,8 +9095,8 @@ switch (step) { s.pc = 32; return s.tmp_0; case 32: r0 = s.retval; - s.p___8796 = (r0); - r0 = pxsim_numops_toBoolDecr(s.p___8796); + s.p___9426 = (r0); + r0 = pxsim_numops_toBoolDecr(s.p___9426); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -7662,8 +9107,8 @@ switch (step) { case 15: r0 = s.arg0.fields["head"]; s.tmp_2 = r0; - r0 = (s.p___8796).fields["next"] = (s.tmp_2); - r0 = (s.arg0).fields["head"] = (s.p___8796); + r0 = (s.p___9426).fields["next"] = (s.tmp_2); + r0 = (s.arg0).fields["head"] = (s.p___9426); { step = 11; continue; } case 16: r0 = s.arg0.fields["head"]; @@ -7678,7 +9123,7 @@ switch (step) { case 17: case 18: r0 = s.arg0.fields["head"]; - s.current___8815 = (r0); + s.current___9445 = (r0); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["_dt"]; s.tmp_2 = r0; @@ -7690,17 +9135,17 @@ switch (step) { r0 = (s.tmp_0 * 256); s.tmp_1 = r0; r0 = (s.tmp_1 | 0); - s.fixedDt___8823 = (r0); - r0 = pxsim_numops_toBoolDecr(s.fixedDt___8823); + s.fixedDt___9453 = (r0); + r0 = pxsim_numops_toBoolDecr(s.fixedDt___9453); if (!r0) { step = 23; continue; } case 19: - r0 = s.current___8815.fields["lifespan"]; + r0 = s.current___9445.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___8815; + s.tmp_2 = r0 = s.current___9445; r0 = s.tmp_2.fields["lifespan"]; s.tmp_4 = r0; r0 = (s.tmp_4 - s.arg1); @@ -7708,8 +9153,8 @@ switch (step) { r0 = (s.tmp_2).fields["lifespan"] = (s.tmp_3); s.tmp_0 = particles_ParticleSource__C2939_v4_3_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.current___8815; - s.tmp_0.arg2 = s.fixedDt___8823; + s.tmp_0.arg1 = s.current___9445; + s.tmp_0.arg2 = s.fixedDt___9453; if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C2939_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.updateParticle; s.pc = 33; return s.tmp_0; @@ -7717,9 +9162,9 @@ switch (step) { r0 = s.retval; case 20: case 21: - r0 = s.current___8815.fields["next"]; + r0 = s.current___9445.fields["next"]; s.tmp_0 = r0; - s.current___8815 = (r0); + s.current___9445 = (r0); r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 22; continue; } { step = 19; continue; } @@ -7728,15 +9173,15 @@ switch (step) { { step = 26; continue; } case 23: case 24: - s.tmp_0 = r0 = s.current___8815; + s.tmp_0 = r0 = s.current___9445; 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___8815.fields["next"]; + r0 = s.current___9445.fields["next"]; s.tmp_0 = r0; - s.current___8815 = (r0); + s.current___9445 = (r0); r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 25; continue; } { step = 24; continue; } @@ -7762,9 +9207,9 @@ function particles_ParticleSource__update__P2946_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - p___8796: undefined, - current___8815: undefined, - fixedDt___8823: undefined, + p___9426: undefined, + current___9445: undefined, + fixedDt___9453: undefined, arg0: undefined, arg1: undefined, } } @@ -7773,7 +9218,7 @@ function particles_ParticleSource__update__P2946_mk(s) { -function particles_ParticleSource_updateParticle__P5040(s) { +function particles_ParticleSource_updateParticle__P5080(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7845,12 +9290,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_updateParticle__P5040.info = {"start":8248,"length":357,"line":277,"column":8,"endLine":285,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticle","argumentNames":["this","p","fixedDt"]} +particles_ParticleSource_updateParticle__P5080.info = {"start":8248,"length":357,"line":277,"column":8,"endLine":285,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticle","argumentNames":["this","p","fixedDt"]} -function particles_ParticleSource_updateParticle__P5040_mk(s) { +function particles_ParticleSource_updateParticle__P5080_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_updateParticle__P5040, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_updateParticle__P5080, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -7911,7 +9356,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___8906 = undefined; + s.p___9536 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -7920,8 +9365,8 @@ switch (step) { r0 = s.arg0; if (!checkSubtype(r0, particles_ParticleFactory__C2975_VT)) failedCast(r0); r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C2920_VT); - s.p___8906 = (r0); - s.tmp_0 = r0 = s.p___8906; + s.p___9536 = (r0); + s.tmp_0 = r0 = s.p___9536; s.tmp_3 = if_x_1_mk(s); s.tmp_3.arg0 = s.arg1; if (!s.tmp_3.arg0.vtable.iface) { @@ -7930,7 +9375,7 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["x"]; if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["x"]; } else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1506; s.pc = 1; return s.tmp_3; } + else { s.callLocIdx = 1597; s.pc = 1; return s.tmp_3; } } case 1: r0 = s.retval; @@ -7940,7 +9385,7 @@ switch (step) { r0 = (s.tmp_4 | 0); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___8906; + s.tmp_0 = r0 = s.p___9536; s.tmp_3 = if_y_1_mk(s); s.tmp_3.arg0 = s.arg1; if (!s.tmp_3.arg0.vtable.iface) { @@ -7949,7 +9394,7 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["y"]; if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["y"]; } else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1508; s.pc = 2; return s.tmp_3; } + else { s.callLocIdx = 1599; s.pc = 2; return s.tmp_3; } } case 2: r0 = s.retval; @@ -7959,10 +9404,10 @@ switch (step) { r0 = (s.tmp_4 | 0); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = (s.p___8906).fields["vx"] = (0); - r0 = (s.p___8906).fields["vy"] = (0); - r0 = (s.p___8906).fields["lifespan"] = (500); - r0 = s.p___8906; + r0 = (s.p___9536).fields["vx"] = (0); + r0 = (s.p___9536).fields["vy"] = (0); + r0 = (s.p___9536).fields["lifespan"] = (500); + r0 = s.p___9536; return leave(s, r0) default: oops() } } } @@ -7978,7 +9423,7 @@ function particles_ParticleFactory_createParticle__P2977_mk(s) { tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - p___8906: undefined, + p___9536: undefined, arg0: undefined, arg1: undefined, } } @@ -7987,7 +9432,7 @@ function particles_ParticleFactory_createParticle__P2977_mk(s) { -function game_onUpdate__P2811(s) { +function MAX_SOURCES_inline__P9219(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7997,54 +9442,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + s.sz___9220 = undefined; + s.tmp_0 = control_ramSize__P346_mk(s); + s.callLocIdx = 32; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.sz___9220 = (r0); + r0 = (s.sz___9220 <= 102400); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 3; continue; } + r0 = 8; + { step = 5; continue; } + { step = 4; continue; } case 1: + r0 = (s.sz___9220 <= 204800); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = 16; + { step = 5; continue; } + { step = 3; continue; } case 2: - s.tmp_2 = control_EventContext_registerFrameHandler__P403_mk(s); - s.tmp_3 = game_eventContext__P2795_mk(s); - s.callLocIdx = 1254; s.pc = 5; return s.tmp_3; - case 5: - r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = 20; - s.tmp_2.arg2 = s.arg0; - s.callLocIdx = 1255; s.pc = 4; return s.tmp_2; - case 4: - r0 = s.retval; + r0 = 50; + { step = 5; continue; } case 3: + case 4: r0 = undefined; + case 5: return leave(s, r0) default: oops() } } } -game_onUpdate__P2811.info = {"start":405,"length":153,"line":15,"column":4,"endLine":18,"endColumn":5,"fileName":"pxt_modules/game/gameutil.ts","functionName":"onUpdate","argumentNames":["a"]} +MAX_SOURCES_inline__P9219.info = {"start":240,"length":217,"line":9,"column":25,"endLine":18,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]} -function game_onUpdate__P2811_mk(s) { +function MAX_SOURCES_inline__P9219_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdate__P2811, depth: s.depth + 1, + parent: s, fn: MAX_SOURCES_inline__P9219, depth: s.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, + sz___9220: undefined, } } -function control_EventContext_registerFrameHandler__P403(s) { +function control_ramSize__P346(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8054,105 +9499,64 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.fn___8946 = undefined; - s.i___8955 = 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__C395_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 = pxsim_pxtcore.getConfig(205, 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_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__P4327_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 62; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = 33554432; case 2: - r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C392_VT); - s.fn___8946 = (r0); - r0 = (s.fn___8946).fields["order"] = (s.arg1); - r0 = (s.fn___8946).fields["handler"] = (s.arg2); - s.i___8955 = (0); - case 3: - s.tmp_1 = r0 = s.i___8955; - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_3 = r0; - r0 = pxsim_Array__length(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_6 = r0; - r0 = pxsim_Array__getAt(s.tmp_6, s.i___8955); - 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___8955, s.fn___8946); - r0 = s.fn___8946; - { step = 7; continue; } - case 4: - case 5: - r0 = (s.i___8955 + 1); - s.i___8955 = (r0); - { step = 3; continue; } - case 6: - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.fn___8946); - r0 = s.fn___8946; - case 7: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameHandler__P403.info = {"start":4862,"length":643,"line":147,"column":8,"endLine":164,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameHandler","argumentNames":["this","order","handler"]} +control_ramSize__P346.info = {"start":4847,"length":100,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"ramSize","argumentNames":[]} -function control_EventContext_registerFrameHandler__P403_mk(s) { +function control_ramSize__P346_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameHandler__P403, depth: s.depth + 1, + parent: s, fn: control_ramSize__P346, depth: s.depth + 1, pc: 0, retval: undefined, 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___8946: undefined, - i___8955: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function control_EventContext_registerFrameCallbacks__P4327(s) { +function control__ramSize__P4332(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + r0 = 33554432; + return leave(s, r0) + default: oops() +} } } +control__ramSize__P4332.info = {"start":4727,"length":60,"line":160,"column":4,"endLine":162,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"_ramSize","argumentNames":[]} + +function control__ramSize__P4332_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control__ramSize__P4332, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, +} } + + + + + +function particles_SprayFactory_constructor__P2980(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8162,55 +9566,56 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.worker___8989 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C395_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; } + if (!checkSubtype(r0, particles_SprayFactory__C2979_VT)) failedCast(r0); + r0 = undefined; + s.tmp_0 = particles_initTrig__P5104_mk(s); + s.callLocIdx = 1604; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + s.tmp_0 = particles_SprayFactory_setSpeed__P2983_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1605; s.pc = 2; return s.tmp_0; case 2: - r0 = s.arg0.fields["frameWorker"]; - s.worker___8989 = (r0); - r0 = pxsim_pxtcore_mkAction(2, control_EventContext_registerFrameCallbacks_inline__P8995); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___8989); - r0 = pxsim.control.runInParallel(s.tmp_0); + r0 = s.retval; + s.tmp_0 = particles_SprayFactory_setDirection__P2984_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + s.callLocIdx = 1606; s.pc = 3; return s.tmp_0; case 3: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameCallbacks__P4327.info = {"start":3668,"length":895,"line":109,"column":8,"endLine":133,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} +particles_SprayFactory_constructor__P2980.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 control_EventContext_registerFrameCallbacks__P4327_mk(s) { +function particles_SprayFactory_constructor__P2980_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameCallbacks__P4327, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_constructor__P2980, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - worker___8989: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function control_EventContext_registerFrameCallbacks_inline__P8995(s) { +function particles_initTrig__P5104(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8220,73 +9625,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.delay___9025 = undefined; - r0 = s.caps[0].fields["runningCallbacks"]; + r0 = pxsim_numops_toBoolDecr(globals.cachedSin___5090); + s.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_mkAction(1, control_EventContext_registerFrameCallbacks_inline__P9001); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.caps[0]); - s.tmp_2 = pauseUntil__P367_mk(s); - s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = undefined; - s.callLocIdx = 56; s.pc = 5; return s.tmp_2; - case 5: - r0 = s.retval; - case 1: - case 2: - r0 = (s.caps[0]).fields["runningCallbacks"] = (true); - r0 = (s.caps[0]).fields["framesInSample"] = (0); - r0 = (s.caps[0]).fields["timeInSample"] = (0); - r0 = (s.caps[0]).fields["deltaTimeMillis"] = (0); - s.tmp_0 = r0 = s.caps[0]; - r0 = pxsim.control.millis(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["prevTimeMillis"] = (s.tmp_1); + s.tmp_2 = particles_cacheSin__P2973_mk(s); + s.tmp_2.arg0 = 100; + s.callLocIdx = 1592; s.pc = 3; return s.tmp_2; 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__P4326_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.callLocIdx = 57; s.pc = 6; return s.tmp_2; - case 6: - r0 = s.retval; - s.delay___9025 = (r0); - s.tmp_0 = pause__P413_mk(s); - s.tmp_0.arg0 = s.delay___9025; - s.callLocIdx = 58; s.pc = 7; return s.tmp_0; - case 7: r0 = s.retval; - { step = 3; continue; } + globals.cachedSin___5090 = (r0); + s.tmp_0 = particles_cacheCos__P2974_mk(s); + s.tmp_0.arg0 = 100; + s.callLocIdx = 1593; s.pc = 4; return s.tmp_0; case 4: - r0 = (s.caps[0]).fields["runningCallbacks"] = (false); + r0 = s.retval; + globals.cachedCos___5091 = (r0); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameCallbacks_inline__P8995.info = {"start":3829,"length":723,"line":113,"column":34,"endLine":132,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +particles_initTrig__P5104.info = {"start":291,"length":155,"line":11,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"initTrig","argumentNames":[]} -function control_EventContext_registerFrameCallbacks_inline__P8995_mk(s) { +function particles_initTrig__P5104_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P8995, depth: s.depth + 1, + parent: s, fn: particles_initTrig__P5104, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - delay___9025: undefined, } } -function control_EventContext_registerFrameCallbacks_inline__P9001(s) { +function particles_cacheCos__P2974(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8296,30 +9675,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["runningCallbacks"]; - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.cos___8913 = undefined; + s.anglePerSlice___8915 = undefined; + s.i___8921 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_Array__mk(); + s.cos___8913 = (r0); + r0 = (6.283185307179586 / s.arg0); + s.anglePerSlice___8915 = (r0); + s.i___8921 = (0); + case 1: + r0 = (s.i___8921 < s.arg0); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = r0 = s.cos___8913; + r0 = (s.i___8921 * s.anglePerSlice___8915); + 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___8921 + 1); + s.i___8921 = (r0); + { step = 1; continue; } + case 2: + r0 = s.cos___8913; return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameCallbacks_inline__P9001.info = {"start":4060,"length":28,"line":117,"column":31,"endLine":117,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +particles_cacheCos__P2974.info = {"start":1005,"length":263,"line":35,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheCos","argumentNames":["slices"]} -function control_EventContext_registerFrameCallbacks_inline__P9001_mk(s) { +function particles_cacheCos__P2974_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P9001, depth: s.depth + 1, + parent: s, fn: particles_cacheCos__P2974, depth: s.depth + 1, pc: 0, retval: undefined, 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___8913: undefined, + anglePerSlice___8915: undefined, + i___8921: undefined, + arg0: undefined, } } -function control_EventContext_runCallbacks__P4326(s) { +function particles_cacheSin__P2973(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8329,255 +9743,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.loopStart___9034 = undefined; - s.f___9047 = undefined; - s.unnamed62___U2 = undefined; - s.unnamed63___U3 = undefined; - s.now___9052 = undefined; - s.runtime___9055 = undefined; - s.realTimeInSample___9074 = undefined; - s.fps___9083 = undefined; - s.delay___9152 = undefined; + s.sin___8939 = undefined; + s.anglePerSlice___8941 = undefined; + s.i___8947 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C395_VT)) failedCast(r0); - r0 = pxsim.control.millis(); - s.loopStart___9034 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["prevTimeMillis"]; - s.tmp_2 = r0; - r0 = (s.loopStart___9034 - s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["deltaTimeMillis"] = (s.tmp_1); - r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___9034); - s.f___9047 = (undefined); - r0 = s.arg0.fields["frameCallbacks"]; - s.unnamed62___U2 = (r0); - s.unnamed63___U3 = (0); + r0 = pxsim_Array__mk(); + s.sin___8939 = (r0); + r0 = (6.283185307179586 / s.arg0); + s.anglePerSlice___8941 = (r0); + s.i___8947 = (0); case 1: - s.tmp_0 = r0 = s.unnamed63___U3; - r0 = pxsim_Array__length(s.unnamed62___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed62___U2, s.unnamed63___U3); - s.f___9047 = (r0); - s.tmp_2 = if_handler_1_mk(s); - s.tmp_2.arg0 = s.f___9047; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 1); - s.callLocIdx = 54; s.pc = 11; return s.tmp_2; - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["handler"]; - if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["handler"], 1); s.callLocIdx = 54; s.pc = 11; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 54; s.pc = 11; return s.tmp_2;; } - else { s.callLocIdx = 54; s.pc = 11; return s.tmp_2; } - } - case 11: - r0 = s.retval; - r0 = (s.unnamed63___U3 + 1); - s.unnamed63___U3 = (r0); - { step = 1; continue; } - case 2: - s.unnamed62___U2 = (undefined); - r0 = pxsim.control.millis(); - s.now___9052 = (r0); - r0 = (s.now___9052 - s.loopStart___9034); - s.runtime___9055 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["timeInSample"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.runtime___9055); - 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 = 9; continue; } - r0 = s.arg0.fields["lastPerfDump"]; - s.tmp_4 = r0; - r0 = (s.now___9052 - s.tmp_4); - s.realTimeInSample___9074 = (r0); - r0 = (s.arg0).fields["lastPerfDump"] = (s.now___9052); - r0 = s.arg0.fields["framesInSample"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["timeInSample"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 / 1000); - s.tmp_1 = r0; - r0 = (s.tmp_0 / s.tmp_1); - s.fps___9083 = (r0); - r0 = pxsim.Math_.round(s.fps___9083); - s.tmp_1 = r0; - if ((s.tmp_1) && (s.tmp_1).vtable) { - setupResume(s, 12); - pxsim_String__stringConv(s.tmp_1); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_1) + ""; } - case 12: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_String__concat("fps:", s.tmp_0); - globals.control_EventContext_lastStats___397 = (r0); - r0 = (s.fps___9083 < 99); + r0 = (s.i___8947 < s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - if ((globals.control_EventContext_lastStats___397) && (globals.control_EventContext_lastStats___397).vtable) { - setupResume(s, 13); - pxsim_String__stringConv(globals.control_EventContext_lastStats___397); - checkResumeConsumed(); - return; - } else { s.retval = (globals.control_EventContext_lastStats___397) + ""; } - case 13: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.fps___9083 * 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, 14); - pxsim_String__stringConv(s.tmp_5); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_5) + ""; } - case 14: - r0 = s.retval; + if (!r0) { step = 2; continue; } + s.tmp_1 = r0 = s.sin___8939; + r0 = (s.i___8947 * s.anglePerSlice___8941); s.tmp_4 = r0; - r0 = pxsim_String__concat(".", s.tmp_4); + r0 = pxsim.Math_.sin(s.tmp_4); s.tmp_3 = r0; - if ((s.tmp_3) && (s.tmp_3).vtable) { - setupResume(s, 15); - pxsim_String__stringConv(s.tmp_3); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_3) + ""; } - case 15: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); - globals.control_EventContext_lastStats___397 = (r0); - case 5: - case 6: - r0 = pxsim.control.profilingEnabled(); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = pxsim_String_.mkEmpty(); - s.tmp_9 = r0; - r0 = (s.fps___9083 * 100); - s.tmp_12 = r0; - r0 = (s.tmp_12 | 0); - s.tmp_11 = r0; - if ((s.tmp_11) && (s.tmp_11).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.tmp_11); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_11) + ""; } - case 16: - r0 = s.retval; - s.tmp_10 = r0; - r0 = pxsim_String__concat(s.tmp_9, s.tmp_10); - s.tmp_8 = r0; - r0 = pxsim_String__concat(s.tmp_8, "/100 fps - "); - s.tmp_7 = r0; - r0 = s.arg0.fields["framesInSample"]; - s.tmp_14 = r0; - if ((s.tmp_14) && (s.tmp_14).vtable) { - setupResume(s, 17); - pxsim_String__stringConv(s.tmp_14); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_14) + ""; } - case 17: - r0 = s.retval; - s.tmp_13 = r0; - r0 = pxsim_String__concat(s.tmp_7, s.tmp_13); - s.tmp_6 = r0; - r0 = pxsim_String__concat(s.tmp_6, " frames ("); + r0 = (s.tmp_3 * 256); s.tmp_5 = r0; - r0 = s.arg0.fields["timeInSample"]; - s.tmp_16 = r0; - if ((s.tmp_16) && (s.tmp_16).vtable) { - setupResume(s, 18); - pxsim_String__stringConv(s.tmp_16); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_16) + ""; } - case 18: - r0 = s.retval; - s.tmp_15 = r0; - r0 = pxsim_String__concat(s.tmp_5, s.tmp_15); - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_4, "ms/"); - s.tmp_3 = r0; - if ((s.realTimeInSample___9074) && (s.realTimeInSample___9074).vtable) { - setupResume(s, 19); - pxsim_String__stringConv(s.realTimeInSample___9074); - checkResumeConsumed(); - return; - } else { s.retval = (s.realTimeInSample___9074) + ""; } - case 19: - r0 = s.retval; - s.tmp_17 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_17); + r0 = (s.tmp_5 | 0); s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_2, "ms)"); - s.tmp_1 = r0; - r0 = pxsim.control.dmesg(s.tmp_1); - r0 = pxsim.control.gc(); - r0 = pxsim_pxtcore.dumpPerfCounters(); - case 7: - case 8: - r0 = (s.arg0).fields["timeInSample"] = (0); - r0 = (s.arg0).fields["framesInSample"] = (0); - case 9: - case 10: - s.tmp_0 = Math_max__P130_mk(s); - s.tmp_0.arg0 = 1; - r0 = (20 - s.runtime___9055); - s.tmp_0.arg1 = r0; - s.callLocIdx = 55; s.pc = 20; return s.tmp_0; - case 20: - r0 = s.retval; - s.delay___9152 = (r0); - r0 = s.delay___9152; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___8947 + 1); + s.i___8947 = (r0); + { step = 1; continue; } + case 2: + r0 = s.sin___8939; return leave(s, r0) default: oops() } } } -control_EventContext_runCallbacks__P4326.info = {"start":2220,"length":1395,"line":75,"column":8,"endLine":106,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]} +particles_cacheSin__P2973.info = {"start":594,"length":263,"line":22,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheSin","argumentNames":["slices"]} -function control_EventContext_runCallbacks__P4326_mk(s) { +function particles_cacheSin__P2973_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_runCallbacks__P4326, depth: s.depth + 1, + parent: s, fn: particles_cacheSin__P2973, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8585,27 +9791,9 @@ function control_EventContext_runCallbacks__P4326_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, - tmp_16: undefined, - tmp_17: undefined, - loopStart___9034: undefined, - f___9047: undefined, - unnamed62___U2: undefined, - unnamed63___U3: undefined, - now___9052: undefined, - runtime___9055: undefined, - realTimeInSample___9074: undefined, - fps___9083: undefined, - delay___9152: undefined, + sin___8939: undefined, + anglePerSlice___8941: undefined, + i___8947: undefined, arg0: undefined, } } @@ -8613,7 +9801,7 @@ function control_EventContext_runCallbacks__P4326_mk(s) { -function pauseUntil__P367(s) { +function particles_SprayFactory_setDirection__P2984(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8626,58 +9814,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 = 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; } + r0 = s.arg0; + if (!checkSubtype(r0, particles_SprayFactory__C2979_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_4 = particles_toRadians__P5109_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 = 1614; s.pc = 1; return s.tmp_4; case 1: - s.tmp_2 = lambda_1_mk(s); - s.tmp_2.argL = s.arg0; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 34; s.pc = 8; return s.tmp_2; - case 8: r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 / globals.angleSlice___5103); + 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__P5109_mk(s); + s.tmp_4.arg0 = s.arg2; + s.callLocIdx = 1615; s.pc = 2; return s.tmp_4; case 2: - // jmp value (already in r0) + r0 = s.retval; 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__P366_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 35; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - case 7: + r0 = (s.tmp_3 / globals.angleSlice___5103); + 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() } } } -pauseUntil__P367.info = {"start":2224,"length":227,"line":73,"column":0,"endLine":77,"endColumn":1,"fileName":"pxt_modules/base/poll.ts","functionName":"pauseUntil","argumentNames":["condition","timeOut"]} +particles_SprayFactory_setDirection__P2984.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 pauseUntil__P367_mk(s) { +function particles_SprayFactory_setDirection__P2984_mk(s) { checkStack(s.depth); return { - parent: s, fn: pauseUntil__P367, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_setDirection__P2984, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8685,15 +9864,17 @@ function pauseUntil__P367_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function control___queuePollEvent__P366(s) { +function particles_toRadians__P5109(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8703,97 +9884,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ev___9174 = 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__C4300_VT); - s.tmp_0 = r0; - s.tmp_1 = control_PollEvent_constructor__P4301_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = 1023; - r0 = pxsim.control.allocateNotifyEvent(); - s.tmp_1.arg2 = r0; - r0 = pxsim.control.millis(); - s.tmp_1.arg3 = r0; - s.tmp_1.arg4 = s.arg0; - s.tmp_1.arg5 = s.arg1; - r0 = pxsim_numops_toBoolDecr(s.arg2); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1.arg6 = r0; - s.callLocIdx = 32; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.ev___9174 = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___4303); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.arg0 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); + s.tmp_3 = Math_abs__P128_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1596; s.pc = 3; return s.tmp_3; + case 3: + r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_2, s.ev___9174); - globals._pollEventQueue___4303 = (s.tmp_2); - r0 = pxsim.control.runInParallel(control_pollEvents__P4304); + r0 = (s.tmp_2 % 360); + s.tmp_1 = r0; + r0 = (360 - s.tmp_1); + s.arg0 = (r0); { step = 2; continue; } case 1: - r0 = pxsim_Array__push(globals._pollEventQueue___4303, s.ev___9174); + r0 = (s.arg0 % 360); + s.arg0 = (r0); case 2: - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 3; continue; } - s.tmp_0 = control_onEvent__P391_mk(s); - r0 = s.ev___9174.fields["eid"]; - s.tmp_0.arg0 = r0; - r0 = s.ev___9174.fields["vid"]; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = 16; - s.callLocIdx = 33; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - { step = 4; continue; } - case 3: - r0 = s.ev___9174.fields["eid"]; - s.tmp_0 = r0; - r0 = s.ev___9174.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; + r0 = (s.arg0 * 0.017453292519943295); return leave(s, r0) default: oops() } } } -control___queuePollEvent__P366.info = {"start":1262,"length":758,"line":39,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"__queuePollEvent","argumentNames":["timeOut","condition","handler"]} +particles_toRadians__P5109.info = {"start":1307,"length":206,"line":45,"column":4,"endLine":52,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"toRadians","argumentNames":["degrees"]} -function control___queuePollEvent__P366_mk(s) { +function particles_toRadians__P5109_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___queuePollEvent__P366, depth: s.depth + 1, + parent: s, fn: particles_toRadians__P5109, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - ev___9174: undefined, + tmp_3: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function control_pollEvents__P4304(s) { +function Math_abs__P128(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8803,139 +9939,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.now___9301 = undefined; - s.i___9304 = undefined; - s.ev___9310 = undefined; - case 1: - r0 = pxsim_Array__length(globals._pollEventQueue___4303); - 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___9301 = (r0); - s.i___9304 = (0); - case 2: - s.tmp_1 = r0 = s.i___9304; - r0 = pxsim_Array__length(globals._pollEventQueue___4303); - 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___4303, s.i___9304); - s.ev___9310 = (r0); - s.tmp_1 = if_condition_1_mk(s); - s.tmp_1.arg0 = s.ev___9310; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "condition"), 1); - s.callLocIdx = 29; s.pc = 13; return s.tmp_1; - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["condition"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["condition"], 1); s.callLocIdx = 29; s.pc = 13; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 29; s.pc = 13; return s.tmp_1;; } - else { s.callLocIdx = 29; s.pc = 13; return s.tmp_1; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; } - 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___9310.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___9310.fields["start"]; - s.tmp_5 = r0; - r0 = (s.now___9301 - s.tmp_5); - s.tmp_4 = r0; - r0 = s.ev___9310.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___9310.fields["eid"]; - s.tmp_9 = r0; - r0 = s.ev___9310.fields["vid"]; - s.tmp_10 = r0; - r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10); - r0 = s.ev___9310.fields["once"]; + r0 = (s.arg0 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_1 = helpers_arraySplice__P100_mk(s); - s.tmp_1.arg0 = globals._pollEventQueue___4303; - s.tmp_1.arg1 = s.i___9304; - s.tmp_1.arg2 = 1; - s.callLocIdx = 30; s.pc = 14; return s.tmp_1; - case 14: - r0 = s.retval; - r0 = (s.i___9304 - 1); - s.i___9304 = (r0); - case 7: - case 8: - case 9: - case 10: - r0 = (s.i___9304 + 1); - s.i___9304 = (r0); + if (!r0) { step = 1; continue; } + r0 = (0 - s.arg0); { step = 2; continue; } - case 11: - s.tmp_0 = pause__P413_mk(s); - s.tmp_0.arg0 = 50; - s.callLocIdx = 31; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - { step = 1; continue; } - case 12: - globals._pollEventQueue___4303 = (undefined); - r0 = undefined; + case 1: + r0 = s.arg0; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -control_pollEvents__P4304.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]} +Math_abs__P128.info = {"start":16120,"length":77,"line":539,"column":4,"endLine":541,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"abs","argumentNames":["x"]} -function control_pollEvents__P4304_mk(s) { +function Math_abs__P128_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_pollEvents__P4304, depth: s.depth + 1, + parent: s, fn: Math_abs__P128, depth: s.depth + 1, pc: 0, retval: undefined, 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___9301: undefined, - i___9304: undefined, - ev___9310: undefined, + arg0: undefined, } } -function control_PollEvent_constructor__P4301(s) { +function particles_ParticleFactory_constructor__P2976(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8947,47 +9986,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.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__C4300_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_ParticleFactory__C2975_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -control_PollEvent_constructor__P4301.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_ParticleFactory_constructor__P2976.info = {"start":1617,"length":78,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this"]} -function control_PollEvent_constructor__P4301_mk(s) { +function particles_ParticleFactory_constructor__P2976_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_PollEvent_constructor__P4301, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_constructor__P2976, 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__P391(s) { +function particles_ParticleSource_setFactory__P2958(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8997,63 +10018,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___9217 = 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__P408_mk(s); - s.callLocIdx = 51; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.ctx___9217 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___9217); - 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__C2939_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } - r0 = pxsim.control.internalOnEvent(s.arg0, s.arg1, s.arg2, s.arg3); - { step = 2; continue; } + r0 = (s.arg0).fields["_factory"] = (s.arg1); case 1: - s.tmp_0 = control_EventContext_registerHandler__P405_mk(s); - s.tmp_0.arg0 = s.ctx___9217; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = s.arg1; - s.tmp_0.arg3 = s.arg2; - s.tmp_0.arg4 = s.arg3; - s.callLocIdx = 52; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -control_onEvent__P391.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_setFactory__P2958.info = {"start":8124,"length":114,"line":272,"column":8,"endLine":275,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setFactory","argumentNames":["this","factory"]} -function control_onEvent__P391_mk(s) { +function particles_ParticleSource_setFactory__P2958_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_onEvent__P391, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setFactory__P2958, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - ctx___9217: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function control_eventContext__P408(s) { +function particles_ParticleSource_setRate__P2956(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9063,42 +10059,43 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___4329); - if (!r0) { step = 1; continue; } - s.tmp_0 = r0 = globals.eventContexts___4329; - r0 = pxsim_Array__length(globals.eventContexts___4329); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C2939_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (1000 / s.arg1); s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); + r0 = pxsim.Math_.ceil(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - { step = 2; continue; } - case 1: + r0 = (s.tmp_0).fields["period"] = (s.tmp_1); + r0 = (s.arg0).fields["timer"] = (0); 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__P408.info = {"start":7094,"length":136,"line":213,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]} +particles_ParticleSource_setRate__P2956.info = {"start":7802,"length":139,"line":259,"column":8,"endLine":262,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRate","argumentNames":["this","particlesPerSecond"]} -function control_eventContext__P408_mk(s) { +function particles_ParticleSource_setRate__P2956_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_eventContext__P408, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRate__P2956, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, + arg0: undefined, + arg1: undefined, } } -function control_EventContext_registerHandler__P405(s) { +function particles_ParticleSource_setAnchor__P2955(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9108,113 +10105,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___9240 = undefined; - s.unnamed68___U1 = undefined; - s.unnamed69___U2 = undefined; - s.hn___9263 = 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__C395_VT)) failedCast(r0); - s.h___9240 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed68___U1 = (r0); - s.unnamed69___U2 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed69___U2; - r0 = pxsim_Array__length(s.unnamed68___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed68___U1, s.unnamed69___U2); - s.h___9240 = (r0); - r0 = s.h___9240.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___9240.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___9240).fields["flags"] = (s.arg4); - r0 = (s.h___9240).fields["handler"] = (s.arg3); - { step = 7; continue; } - case 4: - case 5: - r0 = (s.unnamed69___U2 + 1); - s.unnamed69___U2 = (r0); - { step = 1; continue; } - case 6: - s.unnamed68___U1 = (undefined); - r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C4321_VT); - s.tmp_0 = r0; - s.tmp_1 = control_EventHandler_constructor__P4324_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg1; - s.tmp_1.arg2 = s.arg2; - s.tmp_1.arg3 = s.arg3; - s.tmp_1.arg4 = s.arg4; - s.callLocIdx = 63; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - s.hn___9263 = (s.tmp_0); - r0 = s.arg0.fields["handlers"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.hn___9263); - s.tmp_0 = control_EventHandler_register__P4322_mk(s); - s.tmp_0.arg0 = s.hn___9263; - s.callLocIdx = 64; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - case 7: + if (!checkSubtype(r0, particles_ParticleSource__C2939_VT)) failedCast(r0); + r0 = (s.arg0).fields["anchor"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_registerHandler__P405.info = {"start":5760,"length":525,"line":173,"column":8,"endLine":186,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerHandler","argumentNames":["this","src","value","handler","flags"]} +particles_ParticleSource_setAnchor__P2955.info = {"start":7594,"length":79,"line":251,"column":8,"endLine":253,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAnchor","argumentNames":["this","anchor"]} -function control_EventContext_registerHandler__P405_mk(s) { +function particles_ParticleSource_setAnchor__P2955_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerHandler__P405, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAnchor__P2955, depth: s.depth + 1, pc: 0, retval: undefined, 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___9240: undefined, - unnamed68___U1: undefined, - unnamed69___U2: undefined, - hn___9263: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function control_EventHandler_constructor__P4324(s) { +function particles_ParticleSource_clear__P2954(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9226,41 +10144,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.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C4321_VT)) failedCast(r0); - r0 = (s.arg0).fields["src"] = (s.arg1); - r0 = (s.arg0).fields["value"] = (s.arg2); - r0 = (s.arg0).fields["handler"] = (s.arg3); - r0 = (s.arg0).fields["flags"] = (s.arg4); + if (!checkSubtype(r0, particles_ParticleSource__C2939_VT)) failedCast(r0); + r0 = (s.arg0).fields["head"] = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventHandler_constructor__P4324.info = {"start":786,"length":165,"line":23,"column":8,"endLine":28,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this","src","value","handler","flags"]} +particles_ParticleSource_clear__P2954.info = {"start":7424,"length":54,"line":243,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"clear","argumentNames":["this"]} -function control_EventHandler_constructor__P4324_mk(s) { +function particles_ParticleSource_clear__P2954_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_constructor__P4324, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_clear__P2954, 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__P4322(s) { +function particles_ParticleSource_destroy__P2953(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9275,32 +10182,38 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C4321_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, control_EventHandler_register_inline__P9284); - 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"]; + if (!checkSubtype(r0, particles_ParticleSource__C2939_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleSource_enabled__P2952_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = false; + s.callLocIdx = 1548; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["pFlags"]; s.tmp_2 = r0; - r0 = s.arg0.fields["flags"]; - s.tmp_3 = r0; - r0 = pxsim.control.internalOnEvent(s.tmp_1, s.tmp_2, s.tmp_0, s.tmp_3); + r0 = (s.tmp_2 | 2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); + s.tmp_0 = particles_ParticleSource__prune__P2947_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1549; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventHandler_register__P4322.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} +particles_ParticleSource_destroy__P2953.info = {"start":7094,"length":240,"line":233,"column":8,"endLine":238,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]} -function control_EventHandler_register__P4322_mk(s) { +function particles_ParticleSource_destroy__P2953_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_register__P4322, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_destroy__P2953, depth: s.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, } } @@ -9308,7 +10221,7 @@ function control_EventHandler_register__P4322_mk(s) { -function control_EventHandler_register_inline__P9284(s) { +function particles_ParticleSource_enabled__P2952(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9318,45 +10231,68 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["handler"]; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C2939_VT)) failedCast(r0); + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = particles_ParticleSource_enabled__P2951_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1547; 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; } - s.tmp_1 = if_handler_1_mk(s); - s.tmp_1.arg0 = s.caps[0]; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "handler"), 1); - s.callLocIdx = 53; s.pc = 3; return s.tmp_1; - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["handler"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["handler"], 1); s.callLocIdx = 53; s.pc = 3; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 53; s.pc = 3; return s.tmp_1;; } - else { s.callLocIdx = 53; s.pc = 3; return s.tmp_1; } - } - case 3: - r0 = s.retval; + 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() } } } -control_EventHandler_register_inline__P9284.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +particles_ParticleSource_enabled__P2952.info = {"start":6816,"length":214,"line":223,"column":8,"endLine":228,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this","v"]} -function control_EventHandler_register_inline__P9284_mk(s) { +function particles_ParticleSource_enabled__P2952_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_register_inline__P9284, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_enabled__P2952, depth: s.depth + 1, pc: 0, retval: undefined, 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 MAX_SOURCES_inline__P8589(s) { +function particles_ParticleSource_enabled__P2951(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9366,121 +10302,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sz___8590 = undefined; - s.tmp_0 = control_ramSize__P346_mk(s); - s.callLocIdx = 32; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.sz___8590 = (r0); - r0 = (s.sz___8590 <= 102400); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = 8; - { step = 5; continue; } - { step = 4; continue; } - case 1: - r0 = (s.sz___8590 <= 204800); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C2939_VT)) failedCast(r0); + r0 = s.arg0.fields["pFlags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 1); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = 16; - { step = 5; continue; } - { step = 3; continue; } - case 2: - r0 = 50; - { step = 5; continue; } - case 3: - case 4: - r0 = undefined; - case 5: - return leave(s, r0) + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + return leaveAccessor(s, r0) default: oops() } } } -MAX_SOURCES_inline__P8589.info = {"start":240,"length":217,"line":9,"column":25,"endLine":18,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]} +particles_ParticleSource_enabled__P2951.info = {"start":6622,"length":76,"line":216,"column":8,"endLine":218,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this"]} +particles_ParticleSource_enabled__P2951.isGetter = true; -function MAX_SOURCES_inline__P8589_mk(s) { +function particles_ParticleSource_enabled__P2951_mk(s) { checkStack(s.depth); return { - parent: s, fn: MAX_SOURCES_inline__P8589, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_enabled__P2951, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - sz___8590: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, } } -function control_ramSize__P346(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = pxsim_pxtcore.getConfig(205, 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = 33554432; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.tmp_1; - return leave(s, r0) - default: oops() -} } } -control_ramSize__P346.info = {"start":4847,"length":100,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"ramSize","argumentNames":[]} - -function control_ramSize__P346_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: control_ramSize__P346, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, -} } - - - - - -function control__ramSize__P4292(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = 33554432; - return leave(s, r0) - default: oops() -} } } -control__ramSize__P4292.info = {"start":4727,"length":60,"line":160,"column":4,"endLine":162,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"_ramSize","argumentNames":[]} - -function control__ramSize__P4292_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: control__ramSize__P4292, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, -} } - - - - - -function particles_SprayFactory_constructor__P2980(s) { +function particles_ParticleSource_setAcceleration__P2948(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9494,102 +10356,46 @@ 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, particles_SprayFactory__C2979_VT)) failedCast(r0); - r0 = undefined; - s.tmp_0 = particles_initTrig__P5064_mk(s); - s.callLocIdx = 1513; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setSpeed__P2983_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1514; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setDirection__P2984_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - s.callLocIdx = 1515; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_SprayFactory_constructor__P2980.info = {"start":2623,"length":218,"line":98,"column":8,"endLine":103,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","speed","centerDegrees","arcDegrees"]} - -function particles_SprayFactory_constructor__P2980_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_SprayFactory_constructor__P2980, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function particles_initTrig__P5064(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = pxsim_numops_toBoolDecr(globals.cachedSin___5050); + if (!checkSubtype(r0, particles_ParticleSource__C2939_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; } - s.tmp_2 = particles_cacheSin__P2973_mk(s); - s.tmp_2.arg0 = 100; - s.callLocIdx = 1501; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - globals.cachedSin___5050 = (r0); - s.tmp_0 = particles_cacheCos__P2974_mk(s); - s.tmp_0.arg0 = 100; - s.callLocIdx = 1502; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - globals.cachedCos___5051 = (r0); - case 1: - case 2: + r0 = (s.tmp_0).fields["ax"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg2 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["ay"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_initTrig__P5064.info = {"start":291,"length":155,"line":11,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"initTrig","argumentNames":[]} +particles_ParticleSource_setAcceleration__P2948.info = {"start":6026,"length":113,"line":194,"column":8,"endLine":197,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAcceleration","argumentNames":["this","ax","ay"]} -function particles_initTrig__P5064_mk(s) { +function particles_ParticleSource_setAcceleration__P2948_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_initTrig__P5064, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAcceleration__P2948, 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 particles_cacheCos__P2974(s) { +function sprites_BaseSprite_constructor__P1940(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9599,65 +10405,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cos___8296 = undefined; - s.anglePerSlice___8298 = undefined; - s.i___8304 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.cos___8296 = (r0); - r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___8298 = (r0); - s.i___8304 = (0); + r0 = s.arg0; + if (!checkSubtype(r0, sprites_BaseSprite__C1938_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_z__P1943_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 210; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.i___8304 < s.arg0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.cos___8296; - r0 = (s.i___8304 * s.anglePerSlice___8298); - 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___8304 + 1); - s.i___8304 = (r0); - { step = 1; continue; } + r0 = s.retval; + s.tmp_0 = scene_Scene_addSprite__P2704_mk(s); + s.tmp_1 = game_currentScene__P2792_mk(s); + s.callLocIdx = 211; 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 = 212; s.pc = 2; return s.tmp_0; case 2: - r0 = s.cos___8296; + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_cacheCos__P2974.info = {"start":1005,"length":263,"line":35,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheCos","argumentNames":["slices"]} +sprites_BaseSprite_constructor__P1940.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 particles_cacheCos__P2974_mk(s) { +function sprites_BaseSprite_constructor__P1940_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_cacheCos__P2974, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_constructor__P1940, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - cos___8296: undefined, - anglePerSlice___8298: undefined, - i___8304: undefined, arg0: undefined, + arg1: undefined, } } -function particles_cacheSin__P2973(s) { +function scene_Scene_addSprite__P2704(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9667,65 +10459,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sin___8322 = undefined; - s.anglePerSlice___8324 = undefined; - s.i___8330 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.sin___8322 = (r0); - r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___8324 = (r0); - s.i___8330 = (0); - case 1: - r0 = (s.i___8330 < s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Scene__C2678_VT)) failedCast(r0); + r0 = s.arg0.fields["allSprites"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.sin___8322; - r0 = (s.i___8330 * s.anglePerSlice___8324); - 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); + r0 = pxsim_Array__push(s.tmp_0, s.arg1); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["spriteNextId"]; s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___8330 + 1); - s.i___8330 = (r0); - { step = 1; continue; } - case 2: - r0 = s.sin___8322; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["spriteNextId"] = (s.tmp_1); + s.tmp_3 = if_id_2_mk(s); + s.tmp_3.arg0 = s.arg1; + s.tmp_3.arg1 = s.tmp_2; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_3.arg0, "id", s.tmp_3.arg1); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/id"]; + if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["id"] = s.tmp_3.arg1; } + else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) } + else { s.callLocIdx = 1186; s.pc = 1; return s.tmp_3; } + } + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_cacheSin__P2973.info = {"start":594,"length":263,"line":22,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheSin","argumentNames":["slices"]} +scene_Scene_addSprite__P2704.info = {"start":7116,"length":128,"line":198,"column":8,"endLine":201,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"addSprite","argumentNames":["this","sprite"]} -function particles_cacheSin__P2973_mk(s) { +function scene_Scene_addSprite__P2704_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_cacheSin__P2973, depth: s.depth + 1, + parent: s, fn: scene_Scene_addSprite__P2704, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - sin___8322: undefined, - anglePerSlice___8324: undefined, - i___8330: undefined, arg0: undefined, + arg1: undefined, } } -function particles_SprayFactory_setDirection__P2984(s) { +function sprites_BaseSprite_z__P1943(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9738,67 +10524,53 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C2979_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_4 = particles_toRadians__P5069_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 = 1523; s.pc = 1; return s.tmp_4; - case 1: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 / globals.angleSlice___5063); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + if (!checkSubtype(r0, sprites_BaseSprite__C1938_VT)) failedCast(r0); + r0 = s.arg0.fields["_z"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["minAngle"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - s.tmp_4 = particles_toRadians__P5069_mk(s); - s.tmp_4.arg0 = s.arg2; - s.callLocIdx = 1524; s.pc = 2; return s.tmp_4; - case 2: + 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__P2792_mk(s); + s.callLocIdx = 213; 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 / globals.angleSlice___5063); + r0 = (s.tmp_3 | 1); s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["spread"] = (s.tmp_1); + r0 = (s.tmp_0).fields["flags"] = (s.tmp_2); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_SprayFactory_setDirection__P2984.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"]} +sprites_BaseSprite_z__P1943.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 particles_SprayFactory_setDirection__P2984_mk(s) { +function sprites_BaseSprite_z__P1943_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_setDirection__P2984, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_z__P1943, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function particles_toRadians__P5069(s) { +function sprites_BaseSprite_z__P1942(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9812,40 +10584,20 @@ 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; } - s.tmp_3 = Math_abs__P128_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1505; s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 % 360); - s.tmp_1 = r0; - r0 = (360 - s.tmp_1); - s.arg0 = (r0); - { step = 2; continue; } - case 1: - r0 = (s.arg0 % 360); - s.arg0 = (r0); - case 2: - r0 = (s.arg0 * 0.017453292519943295); - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, sprites_BaseSprite__C1938_VT)) failedCast(r0); + r0 = s.arg0.fields["_z"]; + return leaveAccessor(s, r0) default: oops() } } } -particles_toRadians__P5069.info = {"start":1307,"length":206,"line":45,"column":4,"endLine":52,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"toRadians","argumentNames":["degrees"]} +sprites_BaseSprite_z__P1942.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__P1942.isGetter = true; -function particles_toRadians__P5069_mk(s) { +function sprites_BaseSprite_z__P1942_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_toRadians__P5069, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_z__P1942, depth: s.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, } } @@ -9853,7 +10605,7 @@ function particles_toRadians__P5069_mk(s) { -function Math_abs__P128(s) { +function helpers_arrayShift__P102(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9867,30 +10619,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (s.arg0 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (0 - s.arg0); - { step = 2; continue; } - case 1: - r0 = s.arg0; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.tmp_1; + r0 = pxsim_Array_.removeAt(s.arg0, 0); return leave(s, r0) default: oops() } } } -Math_abs__P128.info = {"start":16120,"length":77,"line":539,"column":4,"endLine":541,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"abs","argumentNames":["x"]} +helpers_arrayShift__P102.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 Math_abs__P128_mk(s) { +function helpers_arrayShift__P102_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_abs__P128, depth: s.depth + 1, + parent: s, fn: helpers_arrayShift__P102, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -9943,7 +10682,7 @@ function particles_SprayFactory_setSpeed__P2983_mk(s) { -function particles_ParticleFactory_constructor__P2976(s) { +function particles_ShapeFactory_constructor__P3002(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9955,29 +10694,73 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C2975_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ShapeFactory__C3001_VT)) failedCast(r0); + s.tmp_0 = particles_AreaFactory_constructor__P2990_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 = 1628; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.arg3); + r0 = (s.arg0).fields["sources"] = (s.tmp_0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(s.arg3); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["ox"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.height(s.arg3); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["oy"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleFactory_constructor__P2976.info = {"start":1617,"length":78,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this"]} +particles_ShapeFactory_constructor__P3002.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_ParticleFactory_constructor__P2976_mk(s) { +function particles_ShapeFactory_constructor__P3002_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_constructor__P2976, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_constructor__P3002, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function particles_ParticleSource_setFactory__P2958(s) { +function particles_AreaFactory_constructor__P2990(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9990,35 +10773,77 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C2939_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!checkSubtype(r0, particles_AreaFactory__C2985_VT)) failedCast(r0); + s.tmp_0 = particles_SprayFactory_constructor__P2980_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 = 1616; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + r0 = (s.arg0).fields["xRange"] = (s.arg1); + r0 = (s.arg0).fields["yRange"] = (s.arg2); + r0 = pxsim_numops_toBoolDecr(s.arg3); if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["_factory"] = (s.arg1); + r0 = s.arg3; + { step = 2; continue; } case 1: + r0 = 150; case 2: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = (s.arg0).fields["minLifespan"] = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.arg4); + if (!r0) { step = 3; continue; } + r0 = s.arg4; + { step = 4; continue; } + case 3: + r0 = 850; + case 4: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = (s.arg0).fields["maxLifespan"] = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C2847_VT); + s.tmp_0 = r0; + s.tmp_1 = Math_FastRandom_constructor__P2849_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1617; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; + r0 = (s.arg0).fields["galois"] = (s.tmp_0); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setFactory__P2958.info = {"start":8124,"length":114,"line":272,"column":8,"endLine":275,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setFactory","argumentNames":["this","factory"]} +particles_AreaFactory_constructor__P2990.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_ParticleSource_setFactory__P2958_mk(s) { +function particles_AreaFactory_constructor__P2990_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setFactory__P2958, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_constructor__P2990, 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 particles_ParticleSource_setRate__P2956(s) { +function effects_ScreenEffect_constructor__P3055(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10031,40 +10856,46 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C2939_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (1000 / s.arg1); - s.tmp_2 = r0; - 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); + if (!checkSubtype(r0, effects_ScreenEffect__C3054_VT)) failedCast(r0); + s.tmp_0 = effects_ParticleEffect_constructor__P3051_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 = 1689; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = (s.arg0).fields["sceneDefaultRate"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRate__P2956.info = {"start":7802,"length":139,"line":259,"column":8,"endLine":262,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRate","argumentNames":["this","particlesPerSecond"]} +effects_ScreenEffect_constructor__P3055.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 particles_ParticleSource_setRate__P2956_mk(s) { +function effects_ScreenEffect_constructor__P3055_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRate__P2956, depth: s.depth + 1, + parent: s, fn: effects_ScreenEffect_constructor__P3055, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function particles_ParticleSource_setAnchor__P2955(s) { +function effects_ParticleEffect_constructor__P3051(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10077,31 +10908,37 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C2939_VT)) failedCast(r0); - r0 = (s.arg0).fields["anchor"] = (s.arg1); + if (!checkSubtype(r0, effects_ParticleEffect__C3050_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() } } } -particles_ParticleSource_setAnchor__P2955.info = {"start":7594,"length":79,"line":251,"column":8,"endLine":253,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAnchor","argumentNames":["this","anchor"]} +effects_ParticleEffect_constructor__P3051.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 particles_ParticleSource_setAnchor__P2955_mk(s) { +function effects_ParticleEffect_constructor__P3051_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setAnchor__P2955, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_constructor__P3051, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function particles_ParticleSource_clear__P2954(s) { +function Sprite_setKind__P2249(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10111,140 +10948,135 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.spritesByKind___9696 = undefined; + s.overlapMap___9725 = 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__C2939_VT)) failedCast(r0); - r0 = (s.arg0).fields["head"] = (undefined); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_ParticleSource_clear__P2954.info = {"start":7424,"length":54,"line":243,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"clear","argumentNames":["this"]} - -function particles_ParticleSource_clear__P2954_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_ParticleSource_clear__P2954, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function particles_ParticleSource_destroy__P2953(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C2939_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleSource_enabled__P2952_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = false; - s.callLocIdx = 1457; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + r0 = (s.arg1 == undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["pFlags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | 2); + r0 = s.arg0.fields["_kind"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); - s.tmp_0 = particles_ParticleSource__prune__P2947_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1458; s.pc = 2; return s.tmp_0; + 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__P2792_mk(s); + s.callLocIdx = 477; s.pc = 16; return s.tmp_3; + case 16: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_ParticleSource_destroy__P2953.info = {"start":7094,"length":240,"line":233,"column":8,"endLine":238,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]} - -function particles_ParticleSource_destroy__P2953_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_ParticleSource_destroy__P2953, 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_ParticleSource_enabled__P2952(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C2939_VT)) failedCast(r0); - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = particles_ParticleSource_enabled__P2951_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1456; s.pc = 5; return s.tmp_3; + r0 = r0.fields["spritesByKind"]; + s.spritesByKind___9696 = (r0); + r0 = s.arg0.fields["_kind"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } case 5: - r0 = s.retval; + r0 = s.arg0.fields["_kind"]; s.tmp_2 = r0; - r0 = (s.tmp_1 !== s.tmp_2); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___9696, 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__P2311_mk(s); + r0 = s.arg0.fields["_kind"]; + s.tmp_5 = r0; + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___9696, s.tmp_5); + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = s.arg0; + s.callLocIdx = 478; 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 = 3; continue; } - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["pFlags"]; + if (!r0) { step = 11; continue; } + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___9696, 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__C2304_VT); s.tmp_4 = r0; - r0 = (s.tmp_4 | 1); - { step = 2; continue; } - case 1: - r0 = s.arg0.fields["pFlags"]; + s.tmp_5 = sprites_SpriteSet_constructor__P2306_mk(s); + s.tmp_5.arg0 = s.tmp_4; + s.callLocIdx = 479; s.pc = 18; return s.tmp_5; + case 18: + r0 = s.retval; + r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___9696, s.arg1, s.tmp_4); + case 9: + case 10: + s.tmp_0 = sprites_SpriteSet_add__P2309_mk(s); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___9696, s.arg1); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 480; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + case 11: + case 12: + s.tmp_0 = game_currentScene__P2792_mk(s); + s.callLocIdx = 481; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + r0 = r0.fields["overlapMap"]; + s.overlapMap___9725 = (r0); + r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___9725, 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___9725; + s.tmp_4 = r0 = s.arg1; + r0 = pxsim_Array__mk(); 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 = 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___9725, 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() } } } -particles_ParticleSource_enabled__P2952.info = {"start":6816,"length":214,"line":223,"column":8,"endLine":228,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this","v"]} +Sprite_setKind__P2249.info = {"start":12841,"length":663,"line":464,"column":4,"endLine":484,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setKind","argumentNames":["this","value"]} -function particles_ParticleSource_enabled__P2952_mk(s) { +function Sprite_setKind__P2249_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_enabled__P2952, depth: s.depth + 1, + parent: s, fn: Sprite_setKind__P2249, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10252,7 +11084,8 @@ function particles_ParticleSource_enabled__P2952_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, + spritesByKind___9696: undefined, + overlapMap___9725: undefined, arg0: undefined, arg1: undefined, } } @@ -10261,7 +11094,7 @@ function particles_ParticleSource_enabled__P2952_mk(s) { -function particles_ParticleSource_enabled__P2951(s) { +function sprites_SpriteSet_remove__P2311(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10271,47 +11104,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.i___9773 = 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__C2939_VT)) failedCast(r0); - r0 = s.arg0.fields["pFlags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 & 1); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!checkSubtype(r0, sprites_SpriteSet__C2304_VT)) failedCast(r0); + r0 = s.arg0.fields["_sprites"]; s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leaveAccessor(s, r0) + r0 = pxsim_Array_.indexOf(s.tmp_0, s.arg1, undefined); + s.i___9773 = (r0); + r0 = (s.i___9773 > -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = helpers_arraySplice__P100_mk(s); + r0 = s.arg0.fields["_sprites"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.i___9773; + s.tmp_1.arg2 = 1; + s.callLocIdx = 665; 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() } } } -particles_ParticleSource_enabled__P2951.info = {"start":6622,"length":76,"line":216,"column":8,"endLine":218,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this"]} -particles_ParticleSource_enabled__P2951.isGetter = true; +sprites_SpriteSet_remove__P2311.info = {"start":1827,"length":235,"line":66,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"remove","argumentNames":["this","sprite"]} -function particles_ParticleSource_enabled__P2951_mk(s) { +function sprites_SpriteSet_remove__P2311_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_enabled__P2951, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_remove__P2311, depth: s.depth + 1, pc: 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___9773: undefined, arg0: undefined, + arg1: undefined, } } -function sprites_BaseSprite_constructor__P1940(s) { +function helpers_arraySplice__P100(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10321,51 +11165,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.i___9793 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C1938_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_z__P1943_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 176; s.pc = 1; return s.tmp_0; + r0 = (s.arg1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 5; continue; } case 1: - r0 = s.retval; - s.tmp_0 = scene_Scene_addSprite__P2704_mk(s); - s.tmp_1 = game_currentScene__P2792_mk(s); - s.callLocIdx = 177; 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 = 178; s.pc = 2; return s.tmp_0; case 2: - r0 = s.retval; + s.i___9793 = (0); + case 3: + r0 = (s.i___9793 < 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___9793 + 1); + s.i___9793 = (r0); + { step = 3; continue; } + case 4: + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite_constructor__P1940.info = {"start":344,"length":170,"line":15,"column":8,"endLine":20,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"inline","argumentNames":["this","z"]} +helpers_arraySplice__P100.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 sprites_BaseSprite_constructor__P1940_mk(s) { +function helpers_arraySplice__P100_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_constructor__P1940, depth: s.depth + 1, + parent: s, fn: helpers_arraySplice__P100, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, + i___9793: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function scene_Scene_addSprite__P2704(s) { +function sprites_SpriteSet_add__P2309(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10381,44 +11229,50 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C2678_VT)) failedCast(r0); - r0 = s.arg0.fields["allSprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg1); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["spriteNextId"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); + if (!checkSubtype(r0, sprites_SpriteSet__C2304_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); 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 = 1152; s.pc = 1; return s.tmp_3; } - } + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = false; + { step = 5; continue; } case 1: - r0 = s.retval; - 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() } } } -scene_Scene_addSprite__P2704.info = {"start":7116,"length":128,"line":198,"column":8,"endLine":201,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +sprites_SpriteSet_add__P2309.info = {"start":1041,"length":263,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"add","argumentNames":["this","sprite"]} -function scene_Scene_addSprite__P2704_mk(s) { +function sprites_SpriteSet_add__P2309_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_addSprite__P2704, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_add__P2309, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -10427,7 +11281,7 @@ function scene_Scene_addSprite__P2704_mk(s) { -function sprites_BaseSprite_z__P1943(s) { +function sprites_SpriteSet_contains__P2312(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10443,41 +11297,24 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C1938_VT)) failedCast(r0); - r0 = s.arg0.fields["_z"]; + if (!checkSubtype(r0, sprites_SpriteSet__C2304_VT)) failedCast(r0); + r0 = s.arg0.fields["_sprites"]; s.tmp_1 = r0; - r0 = (s.tmp_1 !== s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["_z"] = (s.arg1); - s.tmp_1 = game_currentScene__P2792_mk(s); - s.callLocIdx = 179; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; + r0 = pxsim_Array_.indexOf(s.tmp_1, s.arg1, undefined); 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; + r0 = (s.tmp_0 > -1); return leave(s, r0) default: oops() } } } -sprites_BaseSprite_z__P1943.info = {"start":656,"length":174,"line":30,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"z","argumentNames":["this","v"]} +sprites_SpriteSet_contains__P2312.info = {"start":2172,"length":100,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"contains","argumentNames":["this","sprite"]} -function sprites_BaseSprite_z__P1943_mk(s) { +function sprites_SpriteSet_contains__P2312_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_z__P1943, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_contains__P2312, depth: s.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, } } @@ -10486,7 +11323,7 @@ function sprites_BaseSprite_z__P1943_mk(s) { -function sprites_BaseSprite_z__P1942(s) { +function sprites_SpriteSet_constructor__P2306(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10501,19 +11338,24 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C1938_VT)) failedCast(r0); - r0 = s.arg0.fields["_z"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, sprites_SpriteSet__C2304_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_sprites"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) default: oops() } } } -sprites_BaseSprite_z__P1942.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__P1942.isGetter = true; +sprites_SpriteSet_constructor__P2306.info = {"start":485,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]} -function sprites_BaseSprite_z__P1942_mk(s) { +function sprites_SpriteSet_constructor__P2306_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_z__P1942, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_constructor__P2306, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -10521,7 +11363,7 @@ function sprites_BaseSprite_z__P1942_mk(s) { -function helpers_arrayShift__P102(s) { +function blizzard_inline__P9806(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10531,29 +11373,139 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.factory___9813 = undefined; + s.src___9824 = 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(SnowFactory__C9809_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 = 54; s.pc = 5; return s.tmp_2; } + } + case 5: + 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 = 55; s.pc = 6; return s.tmp_3; } + } + case 6: + r0 = s.retval; + { step = 2; continue; } + case 1: + r0 = 16; + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + s.tmp_6 = if_height_1_mk(s); + s.tmp_6.arg0 = s.arg0; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "height"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["height"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["height"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 56; s.pc = 7; return s.tmp_6; } + } + case 7: + r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 3; continue; } + s.tmp_7 = if_height_1_mk(s); + s.tmp_7.arg0 = s.arg0; + if (!s.tmp_7.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "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 = 57; s.pc = 8; return s.tmp_7; } + } + case 8: + r0 = s.retval; + { step = 4; continue; } + case 3: + r0 = 16; + case 4: + // jmp value (already in r0) + s.tmp_8 = r0; + s.tmp_9 = SnowFactory_constructor__P9812_mk(s); + s.tmp_9.arg0 = s.tmp_0; + s.tmp_9.arg1 = s.tmp_4; + s.tmp_9.arg2 = s.tmp_8; + s.callLocIdx = 58; s.pc = 9; return s.tmp_9; + case 9: + r0 = s.retval; + s.factory___9813 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C2939_VT); + s.tmp_0 = r0; + s.tmp_1 = particles_ParticleSource_constructor__P2944_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___9813; + s.callLocIdx = 59; s.pc = 10; return s.tmp_1; + case 10: + r0 = s.retval; + s.src___9824 = (s.tmp_0); + s.tmp_0 = particles_ParticleSource_setAcceleration__P2948_mk(s); + s.tmp_0.arg0 = s.src___9824; + s.tmp_0.arg1 = -300; + s.tmp_0.arg2 = -100; + s.callLocIdx = 60; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + r0 = s.src___9824; return leave(s, r0) default: oops() } } } -helpers_arrayShift__P102.info = {"start":4045,"length":82,"line":153,"column":4,"endLine":155,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayShift","argumentNames":["arr"]} +blizzard_inline__P9806.info = {"start":11661,"length":960,"line":292,"column":59,"endLine":315,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} -function helpers_arrayShift__P102_mk(s) { +function blizzard_inline__P9806_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayShift__P102, depth: s.depth + 1, + parent: s, fn: blizzard_inline__P9806, depth: s.depth + 1, pc: 0, retval: undefined, 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, + factory___9813: undefined, + src___9824: undefined, arg0: undefined, + arg1: undefined, } } -function SnowFactory_constructor__P8106(s) { +function SnowFactory_constructor__P9812(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10570,21 +11522,21 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, SnowFactory__C8103_VT)) failedCast(r0); + if (!checkSubtype(r0, SnowFactory__C9809_VT)) failedCast(r0); s.tmp_0 = particles_ShapeFactory_constructor__P3002_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - r0 = pxsim.image.ofBuffer(_hex9423); + r0 = pxsim.image.ofBuffer(_hex9844); s.tmp_0.arg3 = r0; - s.callLocIdx = 1621; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1718; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; s.tmp_0 = particles_ShapeFactory_addShape__P3003_mk(s); s.tmp_0.arg0 = s.arg0; - r0 = pxsim.image.ofBuffer(_hex9426); + r0 = pxsim.image.ofBuffer(_hex9847); s.tmp_0.arg1 = r0; - s.callLocIdx = 1622; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1719; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = (s.arg0).fields["minLifespan"] = (200); @@ -10606,12 +11558,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -SnowFactory_constructor__P8106.info = {"start":11806,"length":310,"line":294,"column":12,"endLine":302,"endColumn":13,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this","xRange","yRange"]} +SnowFactory_constructor__P9812.info = {"start":11806,"length":310,"line":294,"column":12,"endLine":302,"endColumn":13,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this","xRange","yRange"]} -function SnowFactory_constructor__P8106_mk(s) { +function SnowFactory_constructor__P9812_mk(s) { checkStack(s.depth); return { - parent: s, fn: SnowFactory_constructor__P8106, depth: s.depth + 1, + parent: s, fn: SnowFactory_constructor__P9812, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10621,8 +11573,8 @@ function SnowFactory_constructor__P8106_mk(s) { arg2: undefined, } } -const _hex9423 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") -const _hex9426 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") +const _hex9844 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") +const _hex9847 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") @@ -10671,7 +11623,7 @@ function particles_ShapeFactory_addShape__P3003_mk(s) { -function particles_ShapeFactory_constructor__P3002(s) { +function scene_cameraShake__P2723(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10681,75 +11633,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___9865 = 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_ShapeFactory__C3001_VT)) failedCast(r0); - s.tmp_0 = particles_AreaFactory_constructor__P2990_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 = 1537; s.pc = 1; return s.tmp_0; + s.tmp_0 = game_currentScene__P2792_mk(s); + s.callLocIdx = 1202; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim_Array__mk(); - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg3); - r0 = (s.arg0).fields["sources"] = (s.tmp_0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(s.arg3); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["ox"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.height(s.arg3); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["oy"] = (s.tmp_1); - r0 = undefined; - return leave(s, r0) + s.scene___9865 = (r0); + s.tmp_0 = scene_Camera_shake__P2632_mk(s); + r0 = s.scene___9865.fields["camera"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 1203; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -particles_ShapeFactory_constructor__P3002.info = {"start":6668,"length":285,"line":212,"column":8,"endLine":219,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange","source"]} +scene_cameraShake__P2723.info = {"start":3575,"length":174,"line":130,"column":4,"endLine":133,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"cameraShake","argumentNames":["amplitude","duration"]} -function particles_ShapeFactory_constructor__P3002_mk(s) { +function scene_cameraShake__P2723_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_constructor__P3002, depth: s.depth + 1, + parent: s, fn: scene_cameraShake__P2723, depth: s.depth + 1, pc: 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___9865: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function particles_AreaFactory_constructor__P2990(s) { +function scene_Camera_shake__P2632(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10763,76 +11687,138 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AreaFactory__C2985_VT)) failedCast(r0); - s.tmp_0 = particles_SprayFactory_constructor__P2980_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 = 1525; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - r0 = (s.arg0).fields["xRange"] = (s.arg1); - r0 = (s.arg0).fields["yRange"] = (s.arg2); - r0 = pxsim_numops_toBoolDecr(s.arg3); + if (!checkSubtype(r0, scene_Camera__C2617_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.arg3; + r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = 150; + r0 = (s.arg2 <= 0); case 2: // jmp value (already in r0) - s.tmp_0 = r0; - r0 = (s.arg0).fields["minLifespan"] = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(s.arg4); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 3; continue; } - r0 = s.arg4; + r0 = (s.arg0).fields["shakeStartTime"] = (undefined); { step = 4; continue; } case 3: - r0 = 850; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.control.millis(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["shakeStartTime"] = (s.tmp_1); + r0 = (s.arg0).fields["shakeAmplitude"] = (s.arg1); + r0 = (s.arg0).fields["shakeDuration"] = (s.arg2); case 4: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = (s.arg0).fields["maxLifespan"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C2847_VT); - s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P2849_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = undefined; - s.callLocIdx = 1526; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - r0 = (s.arg0).fields["galois"] = (s.tmp_0); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_AreaFactory_constructor__P2990.info = {"start":3950,"length":374,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange","minLifespan","maxLifespan"]} +scene_Camera_shake__P2632.info = {"start":1792,"length":483,"line":65,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"shake","argumentNames":["this","amplitude","duration"]} -function particles_AreaFactory_constructor__P2990_mk(s) { +function scene_Camera_shake__P2632_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_constructor__P2990, depth: s.depth + 1, + parent: s, fn: scene_Camera_shake__P2632, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function effects_ScreenEffect_constructor__P3055(s) { +function music_stopAllSounds__P1625(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.tmp_0 = music_Melody_stopAll__P1628_mk(s); + s.callLocIdx = 82; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = pxsim.music.stopPlaying(); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +music_stopAllSounds__P1625.info = {"start":5838,"length":88,"line":180,"column":4,"endLine":183,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"stopAllSounds","argumentNames":[]} + +function music_stopAllSounds__P1625_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: music_stopAllSounds__P1625, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function music_Melody_stopAll__P1628(s) { +let r0 = s.r0, 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.ms___9901 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.music_Melody_playingMelodies___4411); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arraySlice__P115_mk(s); + s.tmp_0.arg0 = globals.music_Melody_playingMelodies___4411; + s.tmp_0.arg1 = 0; + r0 = pxsim_Array__length(globals.music_Melody_playingMelodies___4411); + s.tmp_0.arg2 = r0; + s.callLocIdx = 83; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.ms___9901 = (r0); + s.tmp_0 = helpers_arrayForEach__P109_mk(s); + s.tmp_0.arg0 = s.ms___9901; + s.tmp_0.arg1 = music_Melody_stopAll_inline__P9909; + s.callLocIdx = 85; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +music_Melody_stopAll__P1628.info = {"start":6099,"length":218,"line":192,"column":8,"endLine":197,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"stopAll","argumentNames":[]} + +function music_Melody_stopAll__P1628_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: music_Melody_stopAll__P1628, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + ms___9901: undefined, +} } + + + + + +function music_Melody_stopAll_inline__P9909(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10844,47 +11830,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, effects_ScreenEffect__C3054_VT)) failedCast(r0); - s.tmp_0 = effects_ParticleEffect_constructor__P3051_mk(s); + s.tmp_0 = music_Melody_stop__P1631_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 = 1598; s.pc = 1; return s.tmp_0; + s.callLocIdx = 84; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = (s.arg0).fields["sceneDefaultRate"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ScreenEffect_constructor__P3055.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"]} +music_Melody_stopAll_inline__P9909.info = {"start":6278,"length":13,"line":195,"column":27,"endLine":195,"endColumn":40,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["p"]} -function effects_ScreenEffect_constructor__P3055_mk(s) { +function music_Melody_stopAll_inline__P9909_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ScreenEffect_constructor__P3055, depth: s.depth + 1, + parent: s, fn: music_Melody_stopAll_inline__P9909, 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__P3051(s) { +function music_Melody_stop__P1631(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10896,38 +11868,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, effects_ParticleEffect__C3050_VT)) failedCast(r0); - r0 = (s.arg0).fields["sourceFactory"] = (s.arg3); - r0 = (s.arg0).fields["defaultRate"] = (s.arg1); - r0 = (s.arg0).fields["defaultLifespan"] = (s.arg2); + if (!checkSubtype(r0, music_Melody__C1626_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__P1640_mk(s); + r0 = s.arg0.fields["_player"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 86; 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__P4409_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 87; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ParticleEffect_constructor__P3051.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"]} +music_Melody_stop__P1631.info = {"start":6705,"length":173,"line":215,"column":8,"endLine":221,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"stop","argumentNames":["this"]} -function effects_ParticleEffect_constructor__P3051_mk(s) { +function music_Melody_stop__P1631_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_constructor__P3051, depth: s.depth + 1, + parent: s, fn: music_Melody_stop__P1631, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function scene_cameraShake__P2723(s) { +function music_Melody_unregisterMelody__P4409(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10937,47 +11920,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___9527 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1168; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, music_Melody__C1626_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals.music_Melody_playingMelodies___4411); + if (!r0) { step = 1; continue; } + r0 = pxsim_Array_.removeElement(globals.music_Melody_playingMelodies___4411, s.arg0); case 1: - r0 = s.retval; - s.scene___9527 = (r0); - s.tmp_0 = scene_Camera_shake__P2632_mk(s); - r0 = s.scene___9527.fields["camera"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 1169; s.pc = 2; return s.tmp_0; case 2: - r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_cameraShake__P2723.info = {"start":3575,"length":174,"line":130,"column":4,"endLine":133,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"cameraShake","argumentNames":["amplitude","duration"]} +music_Melody_unregisterMelody__P4409.info = {"start":7470,"length":201,"line":235,"column":8,"endLine":240,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"unregisterMelody","argumentNames":["this"]} -function scene_cameraShake__P2723_mk(s) { +function music_Melody_unregisterMelody__P4409_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_cameraShake__P2723, depth: s.depth + 1, + parent: s, fn: music_Melody_unregisterMelody__P4409, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - scene___9527: undefined, arg0: undefined, - arg1: undefined, } } -function scene_Camera_shake__P2632(s) { +function music_MelodyPlayer_stop__P1640(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10989,51 +11961,23 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2617_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.arg2 <= 0); - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = (s.arg0).fields["shakeStartTime"] = (undefined); - { step = 4; continue; } - case 3: - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.control.millis(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["shakeStartTime"] = (s.tmp_1); - r0 = (s.arg0).fields["shakeAmplitude"] = (s.arg1); - r0 = (s.arg0).fields["shakeDuration"] = (s.arg2); - case 4: + if (!checkSubtype(r0, music_MelodyPlayer__C1636_VT)) failedCast(r0); + r0 = (s.arg0).fields["melody"] = (null); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Camera_shake__P2632.info = {"start":1792,"length":483,"line":65,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"shake","argumentNames":["this","amplitude","duration"]} +music_MelodyPlayer_stop__P1640.info = {"start":11166,"length":49,"line":340,"column":8,"endLine":342,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"stop","argumentNames":["this"]} -function scene_Camera_shake__P2632_mk(s) { +function music_MelodyPlayer_stop__P1640_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_shake__P2632, depth: s.depth + 1, + parent: s, fn: music_MelodyPlayer_stop__P1640, 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, } } @@ -11111,7 +12055,7 @@ switch (step) { } s.tmp_0 = game_forever__P2803_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 175; s.pc = 1; return s.tmp_0; + s.callLocIdx = 209; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; @@ -11147,14 +12091,14 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.foreverRunning___4711); + r0 = pxsim_numops_toBoolDecr(globals.foreverRunning___4751); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.foreverRunning___4711 = (true); - r0 = pxsim.control.runInParallel(game_forever_inline__P9577); + globals.foreverRunning___4751 = (true); + r0 = pxsim.control.runInParallel(game_forever_inline__P9951); case 1: case 2: r0 = pxsim_pxtcore_mkClassInstance(scene_GameForeverHandler__C2655_VT); @@ -11162,11 +12106,11 @@ switch (step) { s.tmp_1 = scene_GameForeverHandler_constructor__P2657_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; - s.callLocIdx = 1251; s.pc = 3; return s.tmp_1; + s.callLocIdx = 1342; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_3 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1250; s.pc = 4; return s.tmp_3; + s.callLocIdx = 1341; s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; r0 = r0.fields["gameForeverHandlers"]; @@ -11194,7 +12138,7 @@ function game_forever__P2803_mk(s) { -function game_forever_inline__P9577(s) { +function game_forever_inline__P9951(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11204,25 +12148,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.handlers___9579 = undefined; + s.handlers___9953 = undefined; case 1: r0 = pxsim_numops_toBoolDecr(1); if (!r0) { step = 2; continue; } s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1246; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1337; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = r0.fields["gameForeverHandlers"]; - s.handlers___9579 = (r0); + s.handlers___9953 = (r0); s.tmp_0 = helpers_arrayForEach__P109_mk(s); - s.tmp_0.arg0 = s.handlers___9579; - s.tmp_0.arg1 = game_forever_inline__P9585; - s.callLocIdx = 1248; s.pc = 4; return s.tmp_0; + s.tmp_0.arg0 = s.handlers___9953; + s.tmp_0.arg1 = game_forever_inline__P9959; + s.callLocIdx = 1339; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; s.tmp_0 = pause__P413_mk(s); s.tmp_0.arg0 = 20; - s.callLocIdx = 1249; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1340; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; { step = 1; continue; } @@ -11231,22 +12175,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_forever_inline__P9577.info = {"start":7664,"length":535,"line":249,"column":34,"endLine":263,"endColumn":13,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} +game_forever_inline__P9951.info = {"start":7664,"length":535,"line":249,"column":34,"endLine":263,"endColumn":13,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} -function game_forever_inline__P9577_mk(s) { +function game_forever_inline__P9951_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_forever_inline__P9577, depth: s.depth + 1, + parent: s, fn: game_forever_inline__P9951, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - handlers___9579: undefined, + handlers___9953: undefined, } } -function game_forever_inline__P9585(s) { +function game_forever_inline__P9959(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11269,7 +12213,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = (s.arg0).fields["lock"] = (true); - r0 = pxsim_pxtcore_mkAction(1, game_forever_inline__P9594); + r0 = pxsim_pxtcore_mkAction(1, game_forever_inline__P9968); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); r0 = pxsim.control.runInParallel(s.tmp_0); @@ -11279,12 +12223,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_forever_inline__P9585.info = {"start":7815,"length":319,"line":252,"column":37,"endLine":260,"endColumn":21,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["h"]} +game_forever_inline__P9959.info = {"start":7815,"length":319,"line":252,"column":37,"endLine":260,"endColumn":21,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["h"]} -function game_forever_inline__P9585_mk(s) { +function game_forever_inline__P9959_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_forever_inline__P9585, depth: s.depth + 1, + parent: s, fn: game_forever_inline__P9959, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11296,7 +12240,7 @@ function game_forever_inline__P9585_mk(s) { -function game_forever_inline__P9594(s) { +function game_forever_inline__P9968(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11310,12 +12254,12 @@ switch (step) { s.tmp_0.arg0 = s.caps[0]; if (!s.tmp_0.arg0.vtable.iface) { setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 1); - s.callLocIdx = 1247; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1338; 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 = 1247; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1247; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 1247; s.pc = 1; return s.tmp_0; } + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 1); s.callLocIdx = 1338; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1338; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 1338; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -11324,12 +12268,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_forever_inline__P9594.info = {"start":7954,"length":130,"line":255,"column":50,"endLine":258,"endColumn":29,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} +game_forever_inline__P9968.info = {"start":7954,"length":130,"line":255,"column":50,"endLine":258,"endColumn":29,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} -function game_forever_inline__P9594_mk(s) { +function game_forever_inline__P9968_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_forever_inline__P9594, depth: s.depth + 1, + parent: s, fn: game_forever_inline__P9968, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -11375,7 +12319,7 @@ function scene_GameForeverHandler_constructor__P2657_mk(s) { -function game_onUpdateInterval__P2812(s) { +function music_Melody_play__P1633(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11385,65 +12329,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.timer___9617 = undefined; 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; } + r0 = s.arg0; + if (!checkSubtype(r0, music_Melody__C1626_VT)) failedCast(r0); + s.tmp_0 = music_Melody_playCore__P4410_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = false; + s.callLocIdx = 94; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.arg0 < 0); - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - { step = 5; continue; } - case 3: - case 4: - r0 = pxsim_pxtrt.mklocRef(); - s.timer___9617 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.timer___9617, 0); - r0 = pxsim_pxtcore_mkAction(3, game_onUpdateInterval_inline__P9621); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___9617); - 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__P403_mk(s); - s.tmp_2 = game_eventContext__P2795_mk(s); - s.callLocIdx = 1256; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 19; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1260; s.pc = 6; return s.tmp_1; - case 6: r0 = s.retval; - case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -game_onUpdateInterval__P2812.info = {"start":891,"length":401,"line":28,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/game/gameutil.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]} +music_Melody_play__P1633.info = {"start":9238,"length":71,"line":285,"column":8,"endLine":287,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"play","argumentNames":["this","volume"]} -function game_onUpdateInterval__P2812_mk(s) { +function music_Melody_play__P1633_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdateInterval__P2812, depth: s.depth + 1, + parent: s, fn: music_Melody_play__P1633, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - timer___9617: undefined, arg0: undefined, arg1: undefined, } } @@ -11452,99 +12363,7 @@ function game_onUpdateInterval__P2812_mk(s) { -function game_onUpdateInterval_inline__P9621(s) { -let r0 = s.r0, 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___9622 = undefined; - s.tmp_1 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1257; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["_millis"]; - s.time___9622 = (r0); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.time___9622); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = r0 = s.caps[0]; - r0 = (s.time___9622 + 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 = 1259; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - case 1: - case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -game_onUpdateInterval_inline__P9621.info = {"start":1105,"length":179,"line":31,"column":81,"endLine":37,"endColumn":9,"fileName":"pxt_modules/game/gameutil.ts","functionName":"inline","argumentNames":[]} - -function game_onUpdateInterval_inline__P9621_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_onUpdateInterval_inline__P9621, depth: s.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___9622: undefined, -} } - - - - - -function scene_Scene_millis__P2703(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C2678_VT)) failedCast(r0); - r0 = s.arg0.fields["_millis"]; - return leave(s, r0) - default: oops() -} } } -scene_Scene_millis__P2703.info = {"start":7045,"length":61,"line":194,"column":8,"endLine":196,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]} - -function scene_Scene_millis__P2703_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Scene_millis__P2703, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function StatusBarSprite_max__P4160(s) { +function music_Melody_playCore__P4410(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11554,44 +12373,66 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.p___9992 = 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, StatusBarSprite__C4155_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, StatusBarSprite_max_inline__P9641); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = StatusBarSprite_applyChange__P6736_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1695; s.pc = 1; return s.tmp_1; + if (!checkSubtype(r0, music_Melody__C1626_VT)) failedCast(r0); + s.tmp_0 = music_Melody_stop__P1631_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 89; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(music_MelodyPlayer__C1636_VT); + s.tmp_0 = r0; + s.tmp_1 = music_MelodyPlayer_constructor__P1639_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.callLocIdx = 90; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + r0 = (s.arg0).fields["_player"] = (s.tmp_0); + s.p___9992 = (s.tmp_0); + s.tmp_0 = music_Melody_registerMelody__P4408_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 91; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(4, music_Melody_playCore_inline__P10001); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.p___9992); + 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); r0 = undefined; return leave(s, r0) default: oops() } } } -StatusBarSprite_max__P4160.info = {"start":3194,"length":95,"line":102,"column":4,"endLine":106,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"max","argumentNames":["this","v"]} +music_Melody_playCore__P4410.info = {"start":7681,"length":815,"line":242,"column":8,"endLine":261,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playCore","argumentNames":["this","volume","loop"]} -function StatusBarSprite_max__P4160_mk(s) { +function music_Melody_playCore__P4410_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_max__P4160, depth: s.depth + 1, + parent: s, fn: music_Melody_playCore__P4410, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + p___9992: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function StatusBarSprite_max_inline__P9641(s) { +function music_Melody_playCore_inline__P10001(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11601,36 +12442,66 @@ 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 = statusbars_StatusBar_max__P4193_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - s.callLocIdx = 1694; s.pc = 1; return s.tmp_0; case 1: + r0 = s.caps[0].fields["_player"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == s.caps[1]); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.tmp_2 = music_MelodyPlayer_play__P1641_mk(s); + s.tmp_2.arg0 = s.caps[1]; + s.tmp_2.arg1 = s.caps[2]; + s.callLocIdx = 92; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.caps[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 = 4; continue; } + r0 = s.caps[0].fields["_player"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 == s.caps[1]); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 2; continue; } + s.tmp_4 = music_Melody_unregisterMelody__P4409_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.callLocIdx = 93; s.pc = 8; return s.tmp_4; + case 8: r0 = s.retval; + case 2: + case 3: + { step = 6; continue; } + case 4: + case 5: + { step = 1; continue; } + case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -StatusBarSprite_max_inline__P9641.info = {"start":3240,"length":41,"line":103,"column":25,"endLine":105,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} +music_Melody_playCore_inline__P10001.info = {"start":7884,"length":601,"line":246,"column":34,"endLine":260,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} -function StatusBarSprite_max_inline__P9641_mk(s) { +function music_Melody_playCore_inline__P10001_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_max_inline__P9641, depth: s.depth + 1, + parent: s, fn: music_Melody_playCore_inline__P10001, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, } } -function StatusBarSprite_applyChange__P6736(s) { +function music_Melody_registerMelody__P4408(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11640,67 +12511,68 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sb___10650 = undefined; - s.output___10655 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, StatusBarSprite__C4155_VT)) failedCast(r0); - r0 = s.arg0.fields["_statusBar"]; - s.sb___10650 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sb___10650); + if (!checkSubtype(r0, music_Melody__C1626_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals.music_Melody_playingMelodies___4411); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_0 = lambda_2_mk(s); - s.tmp_0.argL = s.arg1; - s.tmp_0.arg0 = s.sb___10650; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 1699; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.output___10655 = (r0); - s.tmp_0 = statusbars_StatusBar_updateDisplay__P4200_mk(s); - s.tmp_0.arg0 = s.sb___10650; - s.callLocIdx = 1700; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = Sprite_setImage__P2232_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = s.sb___10650.fields["_image"]; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1702; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - r0 = s.output___10655; - { step = 3; continue; } + r0 = pxsim_Array__mk(); + globals.music_Melody_playingMelodies___4411 = (r0); case 1: case 2: - r0 = undefined; + r0 = pxsim_Array__length(globals.music_Melody_playingMelodies___4411); + 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__P1631_mk(s); + s.tmp_3 = r0 = globals.music_Melody_playingMelodies___4411; + r0 = pxsim_Array__length(globals.music_Melody_playingMelodies___4411); + 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 = 88; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; case 3: + case 4: + r0 = pxsim_Array_.removeElement(globals.music_Melody_playingMelodies___4411, s.arg0); + r0 = pxsim_Array__push(globals.music_Melody_playingMelodies___4411, s.arg0); + r0 = undefined; return leave(s, r0) default: oops() } } } -StatusBarSprite_applyChange__P6736.info = {"start":11236,"length":301,"line":310,"column":4,"endLine":321,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"applyChange","argumentNames":["this","action"]} +music_Melody_registerMelody__P4408.info = {"start":6888,"length":573,"line":223,"column":8,"endLine":234,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"registerMelody","argumentNames":["this"]} -function StatusBarSprite_applyChange__P6736_mk(s) { +function music_Melody_registerMelody__P4408_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_applyChange__P6736, depth: s.depth + 1, + parent: s, fn: music_Melody_registerMelody__P4408, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sb___10650: undefined, - output___10655: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, - arg1: undefined, } } -function statusbars_StatusBar_updateDisplay__P4200(s) { +function music_MelodyPlayer_play__P1641(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11710,545 +12582,653 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.fillWidth___9743 = undefined; - s.fillHeight___9751 = undefined; - s.barIsVertical___9759 = undefined; - s.borderColor___9762 = undefined; - s.barLeft___9772 = undefined; - s.barTop___9773 = undefined; - s.textWidth___9775 = undefined; - s.textHeight___9783 = undefined; - s.labelEnd___9787 = undefined; - s.textX___9792 = undefined; - s.textY___9793 = undefined; - s.showTarget___9898 = undefined; - s.invertDir___9905 = undefined; - s.drainPercent___9912 = undefined; - s.dw___9922 = undefined; - s.dh___9931 = undefined; - s.dx___9940 = undefined; - s.dy___9954 = undefined; - s.percent___9977 = undefined; - s.tw___9985 = undefined; - s.th___9994 = undefined; - s.tx___10003 = undefined; - s.ty___10017 = undefined; - s.handler___10040 = undefined; + s.notes___10029 = undefined; + s.pos___10033 = undefined; + s.duration___10034 = undefined; + s.octave___10035 = undefined; + s.tempo___10036 = undefined; + s.hz___10037 = undefined; + s.endHz___10038 = undefined; + s.ms___10041 = undefined; + s.timePos___10042 = undefined; + s.startTime___10043 = undefined; + s.now___10046 = undefined; + s.envA___10047 = undefined; + s.envD___10048 = undefined; + s.envS___10049 = undefined; + s.envR___10050 = undefined; + s.soundWave___10051 = undefined; + s.sndInstr___10052 = undefined; + s.sndInstrPtr___10058 = undefined; + s.addForm___10059 = undefined; + s.scanNextWord___10119 = undefined; + s.token___10176 = undefined; + s.tokenKind___10177 = undefined; + s.consumeToken___10180 = undefined; + s.currNote___10256 = undefined; + s.prevNote___10258 = undefined; + s.timeLeft___10261 = undefined; + s.note___10275 = undefined; + s.i___10279 = undefined; + s.noteChar___10285 = undefined; + s.keyNumber___10359 = undefined; + s.currMs___10376 = undefined; + s.beat___10380 = undefined; + s.timeLeft___10437 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusBar__C4172_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.fill(s.tmp_0, 0); - r0 = s.arg0.fields["_barWidth"]; + if (!checkSubtype(r0, music_MelodyPlayer__C1636_VT)) failedCast(r0); + r0 = pxsim_pxtrt.mklocRef(); s.tmp_0 = r0; - r0 = s.arg0.fields["borderWidth"]; - s.tmp_2 = r0; - r0 = (2 * s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.fillWidth___9743 = (r0); - r0 = s.arg0.fields["_barHeight"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["borderWidth"]; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1); + s.arg1 = (s.tmp_0); + r0 = s.arg0.fields["melody"]; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; - r0 = (2 * s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.fillHeight___9751 = (r0); - r0 = s.arg0.fields["_barHeight"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["_barWidth"]; + r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0 > s.tmp_1); - s.barIsVertical___9759 = (r0); - s.tmp_1 = statusbars_util_isNullOrUndefined__P6777_mk(s); - r0 = s.arg0.fields["borderColor"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 1764; s.pc = 53; return s.tmp_1; - case 53: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["offColor"]; - { step = 2; continue; } + { step = 59; continue; } case 1: - r0 = s.arg0.fields["borderColor"]; case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - s.borderColor___9762 = (s.tmp_2); - s.barLeft___9772 = (0); - s.barTop___9773 = (0); - r0 = s.arg0.fields["_label"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 17; continue; } - s.tmp_2 = if_charWidth_1_mk(s); - r0 = s.arg0.fields["font"]; - s.tmp_2.arg0 = r0; - 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 = 1766; s.pc = 54; return s.tmp_2; } - } - case 54: + s.tmp_4 = r0 = s.arg1; + s.tmp_6 = Math_clamp__P127_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__P1621_mk(s); + s.callLocIdx = 95; s.pc = 61; return s.tmp_10; + case 61: r0 = s.retval; - s.tmp_1 = r0; - r0 = s.arg0.fields["_label"]; - s.tmp_4 = r0; - r0 = pxsim_String_.length(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_1 * s.tmp_3); - s.textWidth___9775 = (r0); - s.tmp_0 = if_charHeight_1_mk(s); - r0 = s.arg0.fields["font"]; - s.tmp_0.arg0 = r0; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "charHeight"); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["charHeight"]; - if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["charHeight"]; } - else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } - else { s.callLocIdx = 1768; s.pc = 55; return s.tmp_0; } - } - case 55: + s.tmp_9 = r0; + r0 = (s.tmp_8 * s.tmp_9); + s.tmp_7 = r0; + r0 = (s.tmp_7 >> 8); + s.tmp_6.arg2 = r0; + s.callLocIdx = 96; s.pc = 60; return s.tmp_6; + case 60: r0 = s.retval; - s.textHeight___9783 = (r0); - r0 = s.arg0.fields["flags"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 & 2); - s.labelEnd___9787 = (r0); - s.textX___9792 = (0); - s.textY___9793 = (0); - r0 = pxsim_numops_toBoolDecr(s.barIsVertical___9759); - if (!r0) { step = 9; continue; } - r0 = pxsim_numops_toBoolDecr(s.labelEnd___9787); - if (!r0) { step = 3; continue; } - r0 = s.arg0.fields["_barHeight"]; + 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___10029 = (r0); + r0 = pxsim_pxtrt.mklocRef(); + s.pos___10033 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.pos___10033, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.duration___10034 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.duration___10034, 4); + r0 = pxsim_pxtrt.mklocRef(); + s.octave___10035 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.octave___10035, 4); + r0 = pxsim_pxtrt.mklocRef(); + s.tempo___10036 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.tempo___10036, 120); + r0 = pxsim_pxtrt.mklocRef(); + s.hz___10037 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.hz___10037, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.endHz___10038 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.endHz___10038, -1); + r0 = pxsim_pxtrt.mklocRef(); + s.ms___10041 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.ms___10041, 0); + s.timePos___10042 = (0); + r0 = pxsim.control.millis(); + s.startTime___10043 = (r0); + s.now___10046 = (0); + r0 = pxsim_pxtrt.mklocRef(); + s.envA___10047 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.envA___10047, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.envD___10048 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.envD___10048, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.envS___10049 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.envS___10049, 255); + r0 = pxsim_pxtrt.mklocRef(); + s.envR___10050 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.envR___10050, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.soundWave___10051 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.soundWave___10051, 1); + r0 = pxsim.control.createBuffer(60); + s.sndInstr___10052 = (r0); + r0 = pxsim_pxtrt.mklocRef(); + s.sndInstrPtr___10058 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.sndInstrPtr___10058, 0); + r0 = pxsim_pxtcore_mkAction(10, addForm_inline__P10060); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.hz___10037); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.endHz___10038); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.ms___10041); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.duration___10034); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.tempo___10036); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.envR___10050); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.sndInstrPtr___10058); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.sndInstr___10052); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.soundWave___10051); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.arg1); + s.addForm___10059 = (s.tmp_0); + r0 = pxsim_pxtcore_mkAction(3, scanNextWord_inline__P10120); s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - s.textY___9793 = (r0); - { step = 4; continue; } - case 3: - s.tmp_0 = r0 = s.barTop___9773; - r0 = (s.textHeight___9783 + 1); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.pos___10033); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.notes___10029); + s.scanNextWord___10119 = (s.tmp_0); + r0 = pxsim_pxtrt.mklocRef(); + s.token___10176 = (r0); + s.tmp_0 = r0 = s.token___10176; + r0 = pxsim_String_.mkEmpty(); s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.barTop___9773 = (r0); - case 4: - r0 = s.arg0.fields["_barWidth"]; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt.mklocRef(); + s.tokenKind___10177 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___10177, 0); + r0 = pxsim_pxtcore_mkAction(13, consumeToken_inline__P10181); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.token___10176); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tokenKind___10177); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.octave___10035); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.duration___10034); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.ms___10041); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.tempo___10036); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.hz___10037); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.soundWave___10051); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.envA___10047); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.envD___10048); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 10, s.envS___10049); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 11, s.envR___10050); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 12, s.endHz___10038); + s.consumeToken___10180 = (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___10119; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 104; s.pc = 62; return s.tmp_0; + case 62: + r0 = s.retval; + s.currNote___10256 = (r0); + s.prevNote___10258 = (false); + r0 = pxsim_numops_toBoolDecr(s.currNote___10256); s.tmp_1 = r0; - r0 = (s.tmp_1 > s.textWidth___9775); + 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.arg0.fields["_barWidth"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 - s.textWidth___9775); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.textX___9792 = (r0); - { step = 8; continue; } + if (!r0) { step = 8; continue; } + r0 = (s.timePos___10042 - s.now___10046); + s.timeLeft___10261 = (r0); + r0 = (s.timeLeft___10261 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_1 = pause__P413_mk(s); + s.tmp_1.arg0 = s.timeLeft___10261; + s.callLocIdx = 105; s.pc = 63; return s.tmp_1; + case 63: + r0 = s.retval; + case 4: case 5: - r0 = s.arg0.fields["_barWidth"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 < s.textWidth___9775); + r0 = s.arg0.fields["onPlayFinished"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - r0 = s.arg0.fields["_barWidth"]; - s.tmp_4 = r0; - r0 = (s.textWidth___9775 - s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 - 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.barLeft___9772 = (r0); + s.tmp_1 = if_onPlayFinished_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, "onPlayFinished"), 1); + s.callLocIdx = 106; 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 = 106; s.pc = 64; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 106; s.pc = 64; return s.tmp_1;; } + else { s.callLocIdx = 106; s.pc = 64; return s.tmp_1; } + } + case 64: + r0 = s.retval; case 6: case 7: + { step = 59; continue; } case 8: - { step = 16; continue; } case 9: - r0 = pxsim_numops_toBoolDecr(s.labelEnd___9787); - if (!r0) { step = 10; continue; } - r0 = s.arg0.fields["_barWidth"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - s.textX___9792 = (r0); - { step = 11; continue; } - case 10: - r0 = (s.barLeft___9772 + s.textWidth___9775); - s.barLeft___9772 = (r0); - case 11: - r0 = s.arg0.fields["_barHeight"]; + r0 = pxsim_pxtrt_stlocRef(s.hz___10037, -1); + s.note___10275 = (0); + s.tmp_0 = r0 = s.token___10176; + r0 = pxsim_String_.mkEmpty(); s.tmp_1 = r0; - r0 = (s.tmp_1 > s.textHeight___9783); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - r0 = s.arg0.fields["_barHeight"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 - s.textHeight___9783); + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___10177, 0); + s.i___10279 = (0); + case 10: + s.tmp_1 = r0 = s.i___10279; + r0 = pxsim_String_.length(s.currNote___10256); s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.textY___9793 = (r0); - { step = 15; continue; } - case 12: - r0 = s.arg0.fields["_barHeight"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 < s.textHeight___9783); + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = s.arg0.fields["_barHeight"]; - s.tmp_3 = r0; - r0 = (s.textHeight___9783 - s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.barTop___9773 = (r0); + if (!r0) { step = 41; continue; } + r0 = pxsim_String_.charAt(s.currNote___10256, s.i___10279); + s.noteChar___10285 = (r0); + s.tmp_0 = r0 = s.noteChar___10285; + r0 = pxsim_pxtcore.switch_eq("c", s.tmp_0); + if (r0) { step = 11; continue; } + r0 = pxsim_pxtcore.switch_eq("C", s.tmp_0); + if (r0) { step = 12; continue; } + r0 = pxsim_pxtcore.switch_eq("d", s.tmp_0); + if (r0) { step = 13; continue; } + r0 = pxsim_pxtcore.switch_eq("D", s.tmp_0); + if (r0) { step = 14; continue; } + r0 = pxsim_pxtcore.switch_eq("e", s.tmp_0); + if (r0) { step = 15; continue; } + r0 = pxsim_pxtcore.switch_eq("E", s.tmp_0); + if (r0) { step = 16; continue; } + r0 = pxsim_pxtcore.switch_eq("f", s.tmp_0); + if (r0) { step = 17; continue; } + r0 = pxsim_pxtcore.switch_eq("F", s.tmp_0); + if (r0) { step = 18; continue; } + r0 = pxsim_pxtcore.switch_eq("g", s.tmp_0); + if (r0) { step = 19; continue; } + r0 = pxsim_pxtcore.switch_eq("G", s.tmp_0); + if (r0) { step = 20; continue; } + r0 = pxsim_pxtcore.switch_eq("a", s.tmp_0); + if (r0) { step = 21; continue; } + r0 = pxsim_pxtcore.switch_eq("A", s.tmp_0); + if (r0) { step = 22; continue; } + r0 = pxsim_pxtcore.switch_eq("B", s.tmp_0); + if (r0) { step = 23; continue; } + r0 = pxsim_pxtcore.switch_eq("r", s.tmp_0); + if (r0) { step = 24; continue; } + r0 = pxsim_pxtcore.switch_eq("R", s.tmp_0); + if (r0) { step = 25; continue; } + r0 = pxsim_pxtcore.switch_eq("#", s.tmp_0); + if (r0) { step = 26; continue; } + r0 = pxsim_pxtcore.switch_eq("b", s.tmp_0); + if (r0) { step = 27; continue; } + r0 = pxsim_pxtcore.switch_eq(",", s.tmp_0); + if (r0) { step = 30; continue; } + r0 = pxsim_pxtcore.switch_eq("!", s.tmp_0); + if (r0) { step = 31; continue; } + r0 = pxsim_pxtcore.switch_eq("@", s.tmp_0); + if (r0) { step = 32; continue; } + r0 = pxsim_pxtcore.switch_eq("~", s.tmp_0); + if (r0) { step = 33; continue; } + r0 = pxsim_pxtcore.switch_eq(":", s.tmp_0); + if (r0) { step = 34; continue; } + r0 = pxsim_pxtcore.switch_eq("-", s.tmp_0); + if (r0) { step = 35; continue; } + r0 = pxsim_pxtcore.switch_eq("^", s.tmp_0); + if (r0) { step = 36; continue; } + r0 = s.tmp_0; + { step = 37; continue; } + case 11: + case 12: + s.note___10275 = (1); + s.prevNote___10258 = (true); + { step = 40; continue; } case 13: case 14: + s.note___10275 = (3); + s.prevNote___10258 = (true); + { step = 40; continue; } case 15: case 16: - s.tmp_0 = helpers_imagePrint__P1835_mk(s); - r0 = s.arg0.fields["_image"]; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["_label"]; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.textX___9792; - s.tmp_0.arg3 = s.textY___9793; - r0 = s.arg0.fields["labelColor"]; - s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["font"]; - s.tmp_0.arg5 = r0; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1771; s.pc = 56; return s.tmp_0; - case 56: - r0 = s.retval; + s.note___10275 = (5); + s.prevNote___10258 = (true); + { step = 40; continue; } case 17: case 18: - s.tmp_0 = helpers_imageFillRect__P1803_mk(s); - r0 = s.arg0.fields["_image"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.barLeft___9772; - s.tmp_0.arg2 = s.barTop___9773; - r0 = s.arg0.fields["_barWidth"]; - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["_barHeight"]; - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.borderColor___9762; - s.callLocIdx = 1773; s.pc = 57; return s.tmp_0; - case 57: - r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1803_mk(s); - r0 = s.arg0.fields["_image"]; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["borderWidth"]; - s.tmp_1 = r0; - r0 = (s.barLeft___9772 + s.tmp_1); - s.tmp_0.arg1 = r0; - r0 = s.arg0.fields["borderWidth"]; - s.tmp_2 = r0; - r0 = (s.barTop___9773 + s.tmp_2); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.fillWidth___9743; - s.tmp_0.arg4 = s.fillHeight___9751; - r0 = s.arg0.fields["offColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 1775; s.pc = 58; return s.tmp_0; - case 58: - r0 = s.retval; - r0 = s.arg0.fields["displayValue"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 45; continue; } - r0 = s.arg0.fields["flags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 & 16); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.showTarget___9898 = (r0); - r0 = s.arg0.fields["flags"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 & 8); - s.invertDir___9905 = (r0); - r0 = pxsim_numops_toBoolDecr(s.showTarget___9898); - if (!r0) { step = 31; continue; } - s.tmp_0 = Math_constrain__P284_mk(s); - r0 = s.arg0.fields["displayValue"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_max"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 / s.tmp_2); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 1; - s.callLocIdx = 1776; s.pc = 59; return s.tmp_0; - case 59: - r0 = s.retval; - s.drainPercent___9912 = (r0); - r0 = pxsim_numops_toBoolDecr(s.barIsVertical___9759); - if (!r0) { step = 19; continue; } - r0 = s.fillWidth___9743; - { step = 20; continue; } + s.note___10275 = (6); + s.prevNote___10258 = (true); + { step = 40; continue; } case 19: - r0 = (s.fillWidth___9743 * s.drainPercent___9912); - s.tmp_0 = r0; - r0 = pxsim.Math_.round(s.tmp_0); case 20: - // jmp value (already in r0) - s.tmp_1 = r0; - s.dw___9922 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.barIsVertical___9759); - if (!r0) { step = 21; continue; } - r0 = (s.fillHeight___9751 * s.drainPercent___9912); - s.tmp_0 = r0; - r0 = pxsim.Math_.round(s.tmp_0); - { step = 22; continue; } + s.note___10275 = (8); + s.prevNote___10258 = (true); + { step = 40; continue; } case 21: - r0 = s.fillHeight___9751; case 22: - // jmp value (already in r0) - s.tmp_1 = r0; - s.dh___9931 = (s.tmp_1); - s.tmp_0 = r0 = s.barIsVertical___9759; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 23; continue; } - r0 = s.tmp_0; - { step = 24; continue; } + s.note___10275 = (10); + s.prevNote___10258 = (true); + { step = 40; continue; } case 23: - r0 = pxsim_numops_toBoolDecr(s.invertDir___9905); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + s.note___10275 = (12); + s.prevNote___10258 = (true); + { step = 40; continue; } case 24: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 25; continue; } - r0 = 0; - { step = 26; continue; } case 25: - r0 = (s.fillWidth___9743 - s.dw___9922); + r0 = pxsim_pxtrt_stlocRef(s.hz___10037, 0); + s.prevNote___10258 = (false); + { step = 40; continue; } case 26: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = s.arg0.fields["borderWidth"]; - s.tmp_5 = r0; - r0 = (s.barLeft___9772 + s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_4 + s.tmp_3); - s.dx___9940 = (r0); - s.tmp_0 = r0 = s.barIsVertical___9759; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 27; continue; } - r0 = s.tmp_0; - { step = 28; continue; } + r0 = (s.note___10275 + 1); + s.note___10275 = (r0); + s.prevNote___10258 = (false); + { step = 40; continue; } case 27: - r0 = pxsim_numops_toBoolDecr(s.invertDir___9905); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.prevNote___10258); + if (!r0) { step = 28; continue; } + r0 = (s.note___10275 - 1); + s.note___10275 = (r0); + { step = 29; continue; } case 28: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 29; continue; } - r0 = (s.fillHeight___9751 - s.dh___9931); - { step = 30; continue; } + s.note___10275 = (12); + s.prevNote___10258 = (true); case 29: - r0 = 0; + { step = 40; continue; } case 30: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = s.arg0.fields["borderWidth"]; - s.tmp_5 = r0; - r0 = (s.barTop___9773 + s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_4 + s.tmp_3); - s.dy___9954 = (r0); - s.tmp_0 = helpers_imageFillRect__P1803_mk(s); - r0 = s.arg0.fields["_image"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.dx___9940; - s.tmp_0.arg2 = s.dy___9954; - s.tmp_0.arg3 = s.dw___9922; - s.tmp_0.arg4 = s.dh___9931; - r0 = s.arg0.fields["drainColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 1778; s.pc = 60; return s.tmp_0; - case 60: + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.consumeToken___10180; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 107; s.pc = 65; return s.tmp_0; + case 65: r0 = s.retval; + s.prevNote___10258 = (false); + { step = 40; continue; } case 31: + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___10177, 4); + s.prevNote___10258 = (false); + { step = 40; continue; } case 32: - s.tmp_0 = Math_constrain__P284_mk(s); - r0 = s.arg0.fields["target"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_max"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 / s.tmp_2); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 1; - s.callLocIdx = 1779; s.pc = 61; return s.tmp_0; - case 61: + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.consumeToken___10180; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 108; s.pc = 66; return s.tmp_0; + case 66: r0 = s.retval; - s.percent___9977 = (r0); - r0 = pxsim_numops_toBoolDecr(s.barIsVertical___9759); - if (!r0) { step = 33; continue; } - r0 = s.fillWidth___9743; - { step = 34; continue; } + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___10177, 8); + s.prevNote___10258 = (false); + { step = 40; continue; } case 33: - r0 = (s.fillWidth___9743 * s.percent___9977); - s.tmp_0 = r0; - r0 = pxsim.Math_.round(s.tmp_0); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.consumeToken___10180; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 109; s.pc = 67; return s.tmp_0; + case 67: + r0 = s.retval; + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___10177, 7); + s.prevNote___10258 = (false); + { step = 40; continue; } case 34: - // jmp value (already in r0) - s.tmp_1 = r0; - s.tw___9985 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.barIsVertical___9759); - if (!r0) { step = 35; continue; } - r0 = (s.fillHeight___9751 * s.percent___9977); - s.tmp_0 = r0; - r0 = pxsim.Math_.round(s.tmp_0); - { step = 36; continue; } + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.consumeToken___10180; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 110; s.pc = 68; return s.tmp_0; + case 68: + r0 = s.retval; + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___10177, 2); + s.prevNote___10258 = (false); + { step = 40; continue; } case 35: - r0 = s.fillHeight___9751; + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.consumeToken___10180; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 111; s.pc = 69; return s.tmp_0; + case 69: + r0 = s.retval; + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___10177, 3); + s.prevNote___10258 = (false); + { step = 40; continue; } case 36: - // jmp value (already in r0) - s.tmp_1 = r0; - s.th___9994 = (s.tmp_1); - s.tmp_0 = r0 = s.barIsVertical___9759; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 37; continue; } - r0 = s.tmp_0; - { step = 38; continue; } + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.consumeToken___10180; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 112; s.pc = 70; return s.tmp_0; + case 70: + r0 = s.retval; + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___10177, 5); + { step = 40; continue; } case 37: - r0 = pxsim_numops_toBoolDecr(s.invertDir___9905); + r0 = pxsim_pxtrt_ldlocRef(s.tokenKind___10177); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 38; continue; } + r0 = pxsim_pxtrt_stlocRef(s.tokenKind___10177, 1); case 38: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 39; continue; } - r0 = 0; - { step = 40; continue; } case 39: - r0 = (s.fillWidth___9743 - s.tw___9985); - case 40: - // jmp value (already in r0) + s.tmp_0 = r0 = s.token___10176; + r0 = pxsim_pxtrt_ldlocRef(s.token___10176); s.tmp_3 = r0; - r0 = s.arg0.fields["borderWidth"]; - s.tmp_5 = r0; - r0 = (s.barLeft___9772 + s.tmp_5); + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 71); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 71: + r0 = s.retval; + s.tmp_2 = r0; + if ((s.noteChar___10285) && (s.noteChar___10285).vtable) { + setupResume(s, 72); + pxsim_String__stringConv(s.noteChar___10285); + checkResumeConsumed(); + return; + } else { s.retval = (s.noteChar___10285) + ""; } + case 72: + r0 = s.retval; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.tmp_3); - s.tx___10003 = (r0); - s.tmp_0 = r0 = s.barIsVertical___9759; + 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___10258 = (false); + case 40: + r0 = (s.i___10279 + 1); + s.i___10279 = (r0); + { step = 10; continue; } + case 41: + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.consumeToken___10180; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 113; s.pc = 73; return s.tmp_0; + case 73: + r0 = s.retval; + s.tmp_0 = r0 = s.note___10275; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 41; continue; } + if (r0) { step = 42; continue; } r0 = s.tmp_0; - { step = 42; continue; } - case 41: - r0 = pxsim_numops_toBoolDecr(s.invertDir___9905); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + { step = 43; continue; } case 42: + r0 = pxsim_pxtrt_ldlocRef(s.hz___10037); + s.tmp_1 = r0; + r0 = (s.tmp_1 < 0); + case 43: // jmp value (already in r0) s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 43; continue; } - r0 = (s.fillHeight___9751 - s.th___9994); - { step = 44; continue; } - case 43: - r0 = 0; - case 44: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = s.arg0.fields["borderWidth"]; + if (!r0) { step = 46; continue; } + s.tmp_3 = r0 = s.note___10275; + r0 = pxsim_pxtrt_ldlocRef(s.octave___10035); + s.tmp_6 = r0; + r0 = (s.tmp_6 - 1); s.tmp_5 = r0; - r0 = (s.barTop___9773 + s.tmp_5); + r0 = (12 * s.tmp_5); s.tmp_4 = r0; - r0 = (s.tmp_4 + s.tmp_3); - s.ty___10017 = (r0); - s.tmp_0 = helpers_imageFillRect__P1803_mk(s); - r0 = s.arg0.fields["_image"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.tx___10003; - s.tmp_0.arg2 = s.ty___10017; - s.tmp_0.arg3 = s.tw___9985; - s.tmp_0.arg4 = s.th___9994; - r0 = s.arg0.fields["onColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 1781; s.pc = 62; return s.tmp_0; - case 62: - r0 = s.retval; - case 45: - case 46: - s.tmp_1 = statusbars_getPostProcessHandlers__P6776_mk(s); - s.callLocIdx = 1782; s.pc = 63; return s.tmp_1; - case 63: - r0 = s.retval; + r0 = (s.tmp_3 + s.tmp_4); + s.keyNumber___10359 = (r0); + s.tmp_1 = r0 = globals.freqs___4396; + r0 = (s.keyNumber___10359 * 2); + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 4, s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 47; continue; } + if (!r0) { step = 44; continue; } r0 = s.tmp_0; - { step = 48; continue; } - case 47: - r0 = pxsim_Array__mk(); - case 48: + { step = 45; continue; } + case 44: + r0 = 0; + case 45: // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.arg0.fields["kind"]; s.tmp_3 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); - s.handler___10040 = (r0); - r0 = s.arg0.fields["sprite"]; + r0 = pxsim_pxtrt_stlocRef(s.hz___10037, s.tmp_3); + case 46: + case 47: + r0 = pxsim_pxtrt_ldlocRef(s.ms___10041); + s.currMs___10376 = (r0); + r0 = (s.currMs___10376 <= 0); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 49; continue; } - r0 = s.tmp_0; - { step = 50; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 48; continue; } + r0 = pxsim_pxtrt_ldlocRef(s.tempo___10036); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(15000, s.tmp_1); + s.beat___10380 = (r0); + r0 = pxsim_pxtrt_ldlocRef(s.duration___10034); + s.tmp_0 = r0; + r0 = (s.tmp_0 * s.beat___10380); + s.currMs___10376 = (r0); + case 48: case 49: - r0 = s.handler___10040; - case 50: - // jmp value (already in r0) + r0 = pxsim_pxtrt_ldlocRef(s.hz___10037); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = (s.tmp_1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 50; continue; } + { step = 55; continue; } + case 50: + r0 = pxsim_pxtrt_ldlocRef(s.hz___10037); + 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; } - s.tmp_2 = lambda_3_mk(s); - s.tmp_2.argL = s.handler___10040; - r0 = s.arg0.fields["sprite"]; - s.tmp_2.arg0 = r0; - r0 = s.arg0.fields["_image"]; - s.tmp_2.arg1 = r0; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 1784; s.pc = 64; return s.tmp_2; - case 64: - r0 = s.retval; + r0 = (s.timePos___10042 + s.currMs___10376); + s.timePos___10042 = (r0); + { step = 54; continue; } case 51: + r0 = pxsim_pxtrt_ldlocRef(s.endHz___10038); + 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___10038; + r0 = pxsim_pxtrt_ldlocRef(s.hz___10037); + s.tmp_3 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_2, s.tmp_3); case 52: + case 53: + r0 = pxsim_pxtrt_stlocRef(s.sndInstrPtr___10058, 0); + s.tmp_0 = lambda_5_mk(s); + s.tmp_0.argL = s.addForm___10059; + r0 = pxsim_pxtrt_ldlocRef(s.envA___10047); + 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 = 114; 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___10059; + r0 = pxsim_pxtrt_ldlocRef(s.envD___10048); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 255; + r0 = pxsim_pxtrt_ldlocRef(s.envS___10049); + s.tmp_0.arg2 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.envA___10047); + s.tmp_0.arg3 = r0; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 115; 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___10059; + s.tmp_1 = r0 = s.currMs___10376; + r0 = pxsim_pxtrt_ldlocRef(s.envA___10047); + s.tmp_3 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.envD___10048); + 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___10049); + s.tmp_0.arg1 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.envS___10049); + s.tmp_0.arg2 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.envD___10048); + s.tmp_5 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.envA___10047); + 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 = 116; 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___10059; + r0 = pxsim_pxtrt_ldlocRef(s.envR___10050); + s.tmp_0.arg0 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.envS___10049); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = s.currMs___10376; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 117; s.pc = 77; return s.tmp_0; + case 77: + r0 = s.retval; + s.tmp_0 = music_MelodyPlayer_queuePlayInstructions__P4413_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = (s.timePos___10042 - s.now___10046); + s.tmp_0.arg1 = r0; + s.tmp_1 = r0 = s.sndInstr___10052; + r0 = pxsim_pxtrt_ldlocRef(s.sndInstrPtr___10058); + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.slice(s.tmp_1, 0, s.tmp_2); + s.tmp_0.arg2 = r0; + s.callLocIdx = 118; s.pc = 78; return s.tmp_0; + case 78: + r0 = s.retval; + r0 = pxsim_pxtrt_stlocRef(s.endHz___10038, -1); + r0 = (s.timePos___10042 + s.currMs___10376); + s.timePos___10042 = (r0); + case 54: + case 55: + r0 = (s.timePos___10042 - s.now___10046); + s.timeLeft___10437 = (r0); + r0 = (s.timeLeft___10437 > 200); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 56; continue; } + s.tmp_1 = pause__P413_mk(s); + r0 = (s.timeLeft___10437 - 100); + s.tmp_1.arg0 = r0; + s.callLocIdx = 119; 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___10043); + s.now___10046 = (r0); + case 56: + case 57: + { step = 3; continue; } + case 58: + case 59: r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_StatusBar_updateDisplay__P4200.info = {"start":19872,"length":4237,"line":575,"column":8,"endLine":676,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"updateDisplay","argumentNames":["this"]} +music_MelodyPlayer_play__P1641.info = {"start":11360,"length":9259,"line":348,"column":8,"endLine":582,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"play","argumentNames":["this","volume"]} -function statusbars_StatusBar_updateDisplay__P4200_mk(s) { +function music_MelodyPlayer_play__P1641_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_updateDisplay__P4200, depth: s.depth + 1, + parent: s, fn: music_MelodyPlayer_play__P1641, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -12256,38 +13236,53 @@ function statusbars_StatusBar_updateDisplay__P4200_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - fillWidth___9743: undefined, - fillHeight___9751: undefined, - barIsVertical___9759: undefined, - borderColor___9762: undefined, - barLeft___9772: undefined, - barTop___9773: undefined, - textWidth___9775: undefined, - textHeight___9783: undefined, - labelEnd___9787: undefined, - textX___9792: undefined, - textY___9793: undefined, - showTarget___9898: undefined, - invertDir___9905: undefined, - drainPercent___9912: undefined, - dw___9922: undefined, - dh___9931: undefined, - dx___9940: undefined, - dy___9954: undefined, - percent___9977: undefined, - tw___9985: undefined, - th___9994: undefined, - tx___10003: undefined, - ty___10017: undefined, - handler___10040: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + notes___10029: undefined, + pos___10033: undefined, + duration___10034: undefined, + octave___10035: undefined, + tempo___10036: undefined, + hz___10037: undefined, + endHz___10038: undefined, + ms___10041: undefined, + timePos___10042: undefined, + startTime___10043: undefined, + now___10046: undefined, + envA___10047: undefined, + envD___10048: undefined, + envS___10049: undefined, + envR___10050: undefined, + soundWave___10051: undefined, + sndInstr___10052: undefined, + sndInstrPtr___10058: undefined, + addForm___10059: undefined, + scanNextWord___10119: undefined, + token___10176: undefined, + tokenKind___10177: undefined, + consumeToken___10180: undefined, + currNote___10256: undefined, + prevNote___10258: undefined, + timeLeft___10261: undefined, + note___10275: undefined, + i___10279: undefined, + noteChar___10285: undefined, + keyNumber___10359: undefined, + currMs___10376: undefined, + beat___10380: undefined, + timeLeft___10437: undefined, arg0: undefined, + arg1: undefined, } } -function statusbars_util_isNullOrUndefined__P6777(s) { +function addForm_inline__P10060(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12297,42 +13292,136 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.freqStart___10065 = undefined; + s.freqEnd___10067 = undefined; + s.envelopeWidth___10069 = undefined; + s.slope___10087 = 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); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.freqStart___10065 = (r0); + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.freqEnd___10067 = (r0); + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + s.tmp_1 = r0; + r0 = (s.tmp_1 > 0); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); { step = 2; continue; } case 1: - r0 = (s.arg0 === null); + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + s.tmp_3 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); + s.tmp_5 = r0; + r0 = pxsim.Math_.idiv(15000, s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_3 * s.tmp_4); + s.tmp_2 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[5]); + s.tmp_6 = r0; + r0 = (s.tmp_2 + s.tmp_6); case 2: // jmp value (already in r0) + s.tmp_7 = r0; + s.envelopeWidth___10069 = (s.tmp_7); + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_1 = r0; - r0 = s.tmp_1; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_2 = r0; + r0 = (s.tmp_1 != s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + r0 = (s.envelopeWidth___10069 != 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___10067 - s.freqStart___10065); + s.tmp_4 = r0; + r0 = (s.tmp_4 / s.envelopeWidth___10069); + s.slope___10087 = (r0); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_0 = r0; + r0 = (s.slope___10087 * s.arg3); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.freqStart___10065 = (r0); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_0 = r0; + s.tmp_2 = r0 = s.slope___10087; + 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___10067 = (r0); + case 5: + case 6: + s.tmp_0 = r0 = s.caps[6]; + s.tmp_2 = music_addNote__P4412_mk(s); + s.tmp_2.arg0 = s.caps[7]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[6]); + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = s.arg0; + s.tmp_2.arg3 = s.arg1; + s.tmp_2.arg4 = s.arg2; + r0 = pxsim_pxtrt_ldlocRef(s.caps[8]); + s.tmp_2.arg5 = r0; + s.tmp_2.arg6 = s.freqStart___10065; + r0 = pxsim_pxtrt_ldlocRef(s.caps[9]); + s.tmp_2.arg7 = r0; + s.tmp_2.arg8 = s.freqEnd___10067; + s.callLocIdx = 97; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_util_isNullOrUndefined__P6777.info = {"start":33748,"length":126,"line":964,"column":8,"endLine":966,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"isNullOrUndefined","argumentNames":["v"]} +addForm_inline__P10060.info = {"start":12168,"length":643,"line":374,"column":28,"endLine":385,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["formDuration","beg","end","msOff"]} -function statusbars_util_isNullOrUndefined__P6777_mk(s) { +function addForm_inline__P10060_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_util_isNullOrUndefined__P6777, depth: s.depth + 1, + parent: s, fn: addForm_inline__P10060, depth: s.depth + 1, pc: 0, retval: undefined, 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, + freqStart___10065: undefined, + freqEnd___10067: undefined, + envelopeWidth___10069: undefined, + slope___10087: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function statusbars_getPostProcessHandlers__P6776(s) { +function scanNextWord_inline__P10120(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12342,29 +13431,185 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = statusbars_getSceneData__P6772_mk(s); - s.tmp_0.arg0 = globals.POST_PROCESS_HANDLERS_KEY___6759; - s.callLocIdx = 1817; s.pc = 1; return s.tmp_0; + s.c___10129 = undefined; + s.note___10146 = undefined; + s.c___10152 = undefined; + r0 = s.caps[0].fields["melody"]; + 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_String_.mkEmpty(); + { step = 23; continue; } case 1: + case 2: + case 3: + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_4 = r0; + r0 = pxsim_String_.length(s.caps[2]); + 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 = 12; continue; } + s.tmp_6 = r0 = s.caps[2]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_7 = r0; + r0 = pxsim_String_.charAt(s.tmp_6, s.tmp_7); + s.c___10129 = (r0); + r0 = (s.c___10129 != " "); + 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___10129 != "\r"); + case 5: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 6; continue; } + r0 = s.tmp_1; + { step = 7; continue; } + case 6: + r0 = (s.c___10129 != "\n"); + case 7: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 8; continue; } + r0 = s.tmp_2; + { step = 9; continue; } + case 8: + r0 = (s.c___10129 != "\t"); + case 9: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 10; continue; } + { step = 12; continue; } + case 10: + case 11: + s.tmp_4 = r0 = s.caps[1]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_6 = r0; + r0 = (s.tmp_6 + 1); + s.tmp_5 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_4, s.tmp_5); + { step = 3; continue; } + case 12: + r0 = pxsim_String_.mkEmpty(); + s.note___10146 = (r0); + case 13: + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_1 = r0; + r0 = pxsim_String_.length(s.caps[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 = 22; continue; } + s.tmp_3 = r0 = s.caps[2]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_4 = r0; + r0 = pxsim_String_.charAt(s.tmp_3, s.tmp_4); + s.c___10152 = (r0); + r0 = (s.c___10152 == " "); + 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___10152 == "\r"); + case 15: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 16; continue; } + r0 = s.tmp_1; + { step = 17; continue; } + case 16: + r0 = (s.c___10152 == "\n"); + case 17: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (!r0) { step = 18; continue; } + r0 = s.tmp_2; + { step = 19; continue; } + case 18: + r0 = (s.c___10152 == "\t"); + case 19: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 20; continue; } + { step = 22; continue; } + case 20: + case 21: + if ((s.note___10146) && (s.note___10146).vtable) { + setupResume(s, 24); + pxsim_String__stringConv(s.note___10146); + checkResumeConsumed(); + return; + } else { s.retval = (s.note___10146) + ""; } + case 24: + r0 = s.retval; + s.tmp_4 = r0; + if ((s.c___10152) && (s.c___10152).vtable) { + setupResume(s, 25); + pxsim_String__stringConv(s.c___10152); + checkResumeConsumed(); + return; + } else { s.retval = (s.c___10152) + ""; } + case 25: r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_String__concat(s.tmp_4, s.tmp_5); + s.note___10146 = (r0); + s.tmp_0 = r0 = s.caps[1]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + { step = 13; continue; } + case 22: + r0 = s.note___10146; + case 23: return leave(s, r0) default: oops() } } } -statusbars_getPostProcessHandlers__P6776.info = {"start":33574,"length":143,"line":959,"column":4,"endLine":961,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getPostProcessHandlers","argumentNames":[]} +scanNextWord_inline__P10120.info = {"start":12846,"length":708,"line":387,"column":33,"endLine":409,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} -function statusbars_getPostProcessHandlers__P6776_mk(s) { +function scanNextWord_inline__P10120_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_getPostProcessHandlers__P6776, depth: s.depth + 1, + parent: s, fn: scanNextWord_inline__P10120, depth: s.depth + 1, pc: 0, retval: undefined, 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, + c___10129: undefined, + note___10146: undefined, + c___10152: undefined, } } -function statusbars_getSceneData__P6772(s) { +function consumeToken_inline__P10181(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12374,39 +13619,163 @@ 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_2 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1812; s.pc = 1; return s.tmp_2; + s.d___10187 = undefined; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - r0 = s.retval; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_1 = r0; - r0 = s.tmp_1.fields["_data"]; + r0 = (s.tmp_1 != 0); + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 15; continue; } + s.tmp_3 = parseInt__P97_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = undefined; + s.callLocIdx = 98; s.pc = 17; return s.tmp_3; + case 17: + r0 = s.retval; + s.d___10187 = (r0); + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_0, s.arg0); + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = pxsim_pxtcore.switch_eq(6, s.tmp_0); + if (r0) { step = 7; continue; } + r0 = pxsim_pxtcore.switch_eq(7, s.tmp_0); + if (r0) { step = 8; continue; } + r0 = pxsim_pxtcore.switch_eq(8, s.tmp_0); + if (r0) { step = 9; continue; } + r0 = pxsim_pxtcore.switch_eq(9, s.tmp_0); + if (r0) { step = 10; continue; } + r0 = pxsim_pxtcore.switch_eq(10, s.tmp_0); + if (r0) { step = 11; continue; } + r0 = pxsim_pxtcore.switch_eq(11, s.tmp_0); + if (r0) { step = 12; continue; } + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 13; continue; } + r0 = s.tmp_0; + { step = 14; continue; } + case 3: + r0 = pxsim_pxtrt_stlocRef(s.caps[2], s.d___10187); + { step = 14; continue; } + case 4: + s.tmp_0 = r0 = s.caps[3]; + s.tmp_2 = Math_max__P130_mk(s); + s.tmp_2.arg0 = 1; + s.tmp_3 = Math_min__P131_mk(s); + s.tmp_3.arg0 = 16; + s.tmp_3.arg1 = s.d___10187; + s.callLocIdx = 99; s.pc = 19; return s.tmp_3; + case 19: + r0 = s.retval; + s.tmp_2.arg1 = r0; + s.callLocIdx = 100; s.pc = 18; return s.tmp_2; + case 18: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt_stlocRef(s.caps[4], -1); + { step = 14; continue; } + case 5: + s.tmp_0 = r0 = s.caps[5]; + s.tmp_2 = Math_max__P130_mk(s); + s.tmp_2.arg0 = 1; + s.tmp_2.arg1 = s.d___10187; + s.callLocIdx = 101; 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___10187); + r0 = pxsim_pxtrt_stlocRef(s.caps[1], 6); + { step = 14; continue; } + case 7: + r0 = pxsim_pxtrt_stlocRef(s.caps[4], s.d___10187); + { step = 14; continue; } + case 8: + s.tmp_0 = r0 = s.caps[7]; + s.tmp_2 = Math_clamp__P127_mk(s); + s.tmp_2.arg0 = 1; + s.tmp_2.arg1 = 18; + s.tmp_2.arg2 = s.d___10187; + s.callLocIdx = 102; 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___10187); + r0 = pxsim_pxtrt_stlocRef(s.caps[1], 9); + { step = 14; continue; } + case 10: + r0 = pxsim_pxtrt_stlocRef(s.caps[9], s.d___10187); + 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__P127_mk(s); + s.tmp_2.arg0 = 0; + s.tmp_2.arg1 = 255; + s.tmp_2.arg2 = s.d___10187; + s.callLocIdx = 103; s.pc = 22; return s.tmp_2; + case 22: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt_stlocRef(s.caps[1], 11); + { step = 14; continue; } + case 12: + r0 = pxsim_pxtrt_stlocRef(s.caps[11], s.d___10187); + { step = 14; continue; } + case 13: + r0 = pxsim_pxtrt_stlocRef(s.caps[12], s.d___10187); + case 14: + s.tmp_0 = r0 = s.caps[0]; + r0 = pxsim_String_.mkEmpty(); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + case 15: + case 16: + r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_getSceneData__P6772.info = {"start":33136,"length":88,"line":943,"column":4,"endLine":945,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getSceneData","argumentNames":["key"]} +consumeToken_inline__P10181.info = {"start":14840,"length":1189,"line":448,"column":33,"endLine":469,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} -function statusbars_getSceneData__P6772_mk(s) { +function consumeToken_inline__P10181_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_getSceneData__P6772, depth: s.depth + 1, + parent: s, fn: consumeToken_inline__P10181, 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, + tmp_3: undefined, + d___10187: undefined, } } -function scene_Scene_data__P2702(s) { +function music_MelodyPlayer_queuePlayInstructions__P4413(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12418,30 +13787,34 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C2678_VT)) failedCast(r0); - r0 = s.arg0.fields["_data"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, music_MelodyPlayer__C1636_VT)) failedCast(r0); + r0 = pxsim.music.queuePlayInstructions(s.arg1, s.arg2); + r0 = undefined; + return leave(s, r0) default: oops() } } } -scene_Scene_data__P2702.info = {"start":6912,"length":53,"line":187,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"data","argumentNames":["this"]} -scene_Scene_data__P2702.isGetter = true; +music_MelodyPlayer_queuePlayInstructions__P4413.info = {"start":11225,"length":125,"line":344,"column":8,"endLine":346,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"queuePlayInstructions","argumentNames":["this","timeDelta","buf"]} -function scene_Scene_data__P2702_mk(s) { +function music_MelodyPlayer_queuePlayInstructions__P4413_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_data__P2702, depth: s.depth + 1, + parent: s, fn: music_MelodyPlayer_queuePlayInstructions__P4413, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function statusbars_StatusBar_isVerticalBar__P6764(s) { +function music_addNote__P4412(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12453,565 +13826,73 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); + s.arg7 = (s.lambdaArgs[7]); + s.arg8 = (s.lambdaArgs[8]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusBar__C4172_VT)) failedCast(r0); - r0 = s.arg0.fields["_barHeight"]; + r0 = (s.arg2 > 0); s.tmp_0 = r0; - r0 = s.arg0.fields["_barWidth"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.BufferMethods.setNumber(s.arg0, 2, s.arg1, s.arg5); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 + 1); s.tmp_1 = r0; - r0 = (s.tmp_0 > s.tmp_1); - return leave(s, r0) - default: oops() -} } } -statusbars_StatusBar_isVerticalBar__P6764.info = {"start":17681,"length":90,"line":516,"column":8,"endLine":518,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"isVerticalBar","argumentNames":["this"]} - -function statusbars_StatusBar_isVerticalBar__P6764_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: statusbars_StatusBar_isVerticalBar__P6764, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function statusbars_StatusBar_label__P4190(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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, statusbars_StatusBar__C4172_VT)) failedCast(r0); - r0 = s.arg0.fields["_label"]; - return leaveAccessor(s, r0) - default: oops() -} } } -statusbars_StatusBar_label__P4190.info = {"start":15589,"length":55,"line":443,"column":8,"endLine":445,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"label","argumentNames":["this"]} -statusbars_StatusBar_label__P4190.isGetter = true; - -function statusbars_StatusBar_label__P4190_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: statusbars_StatusBar_label__P4190, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function helpers_imagePrint__P1835(s) { -let r0 = s.r0, 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___10131 = undefined; - s.cp___10133 = undefined; - s.mult___10134 = undefined; - s.dataW___10139 = undefined; - s.dataH___10145 = undefined; - s.byteHeight___10151 = undefined; - s.charSize___10157 = undefined; - s.dataSize___10161 = undefined; - s.fontdata___10165 = undefined; - s.lastchar___10168 = undefined; - s.imgBuf___10175 = undefined; - s.xOffset___10199 = undefined; - s.yOffset___10200 = undefined; - s.ch___10215 = undefined; - s.l___10234 = undefined; - s.r___10235 = undefined; - s.off___10237 = undefined; - s.guess___10238 = undefined; - s.m___10257 = undefined; - s.v___10266 = undefined; - s.i___10322 = undefined; - s.j___10327 = undefined; - s.mask___10328 = undefined; - s.c___10329 = undefined; - s.n___10346 = 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__P1822_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 141; 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); + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 2, s.tmp_1, 0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 + 2); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.arg4 = (1); - case 3: - case 4: - s.x0___10131 = (s.arg2); - s.cp___10133 = (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 = 142; 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 = 143; 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___10134 = (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 = 144; 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___10134); - s.dataW___10139 = (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 = 145; 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___10134); - s.dataH___10145 = (r0); - r0 = (s.dataH___10145 + 7); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 3); - s.byteHeight___10151 = (r0); - r0 = (s.byteHeight___10151 * s.dataW___10139); - s.charSize___10157 = (r0); - r0 = (2 + s.charSize___10157); - s.dataSize___10161 = (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 = 146; s.pc = 44; return s.tmp_0; } - } - case 44: - r0 = s.retval; - s.fontdata___10165 = (r0); - r0 = pxsim.BufferMethods.length(s.fontdata___10165); + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.arg6); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 + 4); s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___10161); - s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); - s.lastchar___10168 = (r0); - r0 = (s.mult___10134 == 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = (8 + s.charSize___10157); + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.arg2); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 + 6); s.tmp_1 = r0; - r0 = pxsim.control.createBuffer(s.tmp_1); - s.imgBuf___10175 = (r0); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___10175, 0, 135); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___10175, 1, 1); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___10175, 2, s.dataW___10139); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___10175, 4, s.dataH___10145); - case 7: - case 8: - case 9: - s.tmp_1 = r0 = s.cp___10133; - 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___10199 = (0); - s.yOffset___10200 = (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___10133; - 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___10133); - 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 = 147; s.pc = 45; return s.tmp_4; } - } - case 45: - r0 = s.retval; - s.xOffset___10199 = (r0); - s.tmp_0 = if_yOffset_1_mk(s); - r0 = pxsim_Array__getAt(s.arg6, s.cp___10133); - 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 = 148; s.pc = 46; return s.tmp_0; } - } - case 46: - r0 = s.retval; - s.yOffset___10200 = (r0); - case 12: - case 13: - s.tmp_0 = r0 = s.cp___10133; - r0 = (s.tmp_0 + 1); - s.cp___10133 = (r0); - r0 = pxsim_String_.charCodeAt(s.arg1, s.tmp_0); - s.ch___10215 = (r0); - r0 = (s.ch___10215 == 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 = 149; s.pc = 47; return s.tmp_4; } - } - case 47: - r0 = s.retval; + r0 = (s.arg3 * s.arg7); s.tmp_3 = r0; - r0 = (s.tmp_3 + 2); + r0 = (s.tmp_3 >> 6); s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.arg3 = (r0); - s.arg2 = (s.x0___10131); - case 14: - case 15: - r0 = (s.ch___10215 < 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___10234 = (0); - s.r___10235 = (s.lastchar___10168); - s.off___10237 = (0); - r0 = (s.ch___10215 - 32); - s.tmp_0 = r0; - r0 = (s.tmp_0 * s.dataSize___10161); - s.guess___10238 = (r0); - r0 = pxsim.BufferMethods.getNumber(s.fontdata___10165, 4, s.guess___10238); + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 + 8); s.tmp_1 = r0; - r0 = (s.tmp_1 == s.ch___10215); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 18; continue; } - s.off___10237 = (s.guess___10238); - { step = 25; continue; } - case 18: - case 19: - r0 = (s.l___10234 <= s.r___10235); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 24; continue; } - s.tmp_1 = r0 = s.l___10234; - r0 = (s.r___10235 - s.l___10234); + r0 = (s.arg4 * s.arg7); s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.m___10257 = (r0); - s.tmp_0 = r0 = s.fontdata___10165; - r0 = (s.m___10257 * s.dataSize___10161); - s.tmp_1 = r0; - r0 = pxsim.BufferMethods.getNumber(s.tmp_0, 4, s.tmp_1); - s.v___10266 = (r0); - r0 = (s.v___10266 == s.ch___10215); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - r0 = (s.m___10257 * s.dataSize___10161); - s.off___10237 = (r0); - { step = 24; continue; } - case 20: - case 21: - r0 = (s.v___10266 < s.ch___10215); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - r0 = (s.m___10257 + 1); - s.l___10234 = (r0); - { step = 23; continue; } - case 22: - r0 = (s.m___10257 - 1); - s.r___10235 = (r0); - case 23: - { step = 19; continue; } - case 24: - case 25: - r0 = (s.mult___10134 == 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 26; continue; } - s.tmp_1 = r0 = s.imgBuf___10175; - s.tmp_3 = r0 = s.fontdata___10165; - r0 = (s.off___10237 + 2); - s.tmp_4 = r0; - r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___10157); + r0 = (s.tmp_3 >> 6); s.tmp_2 = r0; - r0 = pxsim.BufferMethods.write(s.tmp_1, 8, s.tmp_2); - s.tmp_0 = helpers_imageDrawIcon__P1802_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.imgBuf___10175; - r0 = (s.arg2 + s.xOffset___10199); - s.tmp_0.arg2 = r0; - r0 = (s.arg3 + s.yOffset___10200); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = s.arg4; - s.callLocIdx = 150; s.pc = 48; return s.tmp_0; - case 48: - r0 = s.retval; - s.tmp_0 = r0 = s.arg2; - s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.arg5; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charWidth"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charWidth"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 151; 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___10237 + 2); - s.off___10237 = (r0); - s.i___10322 = (0); - case 27: - r0 = (s.i___10322 < s.dataW___10139); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 36; continue; } - s.j___10327 = (0); - s.mask___10328 = (1); - s.tmp_0 = r0 = s.off___10237; - r0 = (s.tmp_0 + 1); - s.off___10237 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___10165, s.tmp_0); - s.c___10329 = (r0); - case 28: - r0 = (s.j___10327 < s.dataH___10145); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 35; continue; } - r0 = (s.mask___10328 == 256); + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 + 10); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 29; continue; } - s.tmp_2 = r0 = s.off___10237; - r0 = (s.tmp_2 + 1); - s.off___10237 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___10165, s.tmp_2); - s.c___10329 = (r0); - s.mask___10328 = (1); - case 29: - case 30: - s.n___10346 = (0); - case 31: - r0 = (s.c___10329 & s.mask___10328); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 32; continue; } - r0 = (s.n___10346 + 1); - s.n___10346 = (r0); - r0 = (s.mask___10328 << 1); - s.mask___10328 = (r0); - { step = 31; continue; } - case 32: - r0 = pxsim_numops_toBoolDecr(s.n___10346); - if (!r0) { step = 33; continue; } - s.tmp_0 = helpers_imageFillRect__P1803_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.arg2; - r0 = (s.xOffset___10199 * s.mult___10134); - 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___10327 + s.yOffset___10200); - s.tmp_5 = r0; - r0 = (s.tmp_5 * s.mult___10134); - s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.mult___10134; - r0 = (s.mult___10134 * s.n___10346); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.arg4; - s.callLocIdx = 152; s.pc = 50; return s.tmp_0; - case 50: - r0 = s.retval; - r0 = (s.j___10327 + s.n___10346); - s.j___10327 = (r0); - { step = 34; continue; } - case 33: - r0 = (s.mask___10328 << 1); - s.mask___10328 = (r0); - r0 = (s.j___10327 + 1); - s.j___10327 = (r0); - case 34: - { step = 28; continue; } - case 35: - r0 = (s.arg2 + s.mult___10134); - s.arg2 = (r0); - r0 = (s.i___10322 + 1); - s.i___10322 = (r0); - { step = 27; continue; } - case 36: - case 37: - { step = 9; continue; } - case 38: - r0 = undefined; + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.arg8); + r0 = (s.arg1 + 12); + s.arg1 = (r0); + case 1: + case 2: + r0 = pxsim.BufferMethods.setNumber(s.arg0, 2, s.arg1, 0); + r0 = s.arg1; return leave(s, r0) default: oops() } } } -helpers_imagePrint__P1835.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"]} +music_addNote__P4412.info = {"start":10085,"length":904,"line":315,"column":4,"endLine":328,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"addNote","argumentNames":["sndInstr","sndInstrPtr","ms","beg","end","soundWave","hz","volume","endHz"]} -function helpers_imagePrint__P1835_mk(s) { +function music_addNote__P4412_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrint__P1835, depth: s.depth + 1, + parent: s, fn: music_addNote__P4412, depth: s.depth + 1, pc: 0, retval: undefined, 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___10131: undefined, - cp___10133: undefined, - mult___10134: undefined, - dataW___10139: undefined, - dataH___10145: undefined, - byteHeight___10151: undefined, - charSize___10157: undefined, - dataSize___10161: undefined, - fontdata___10165: undefined, - lastchar___10168: undefined, - imgBuf___10175: undefined, - xOffset___10199: undefined, - yOffset___10200: undefined, - ch___10215: undefined, - l___10234: undefined, - r___10235: undefined, - off___10237: undefined, - guess___10238: undefined, - m___10257: undefined, - v___10266: undefined, - i___10322: undefined, - j___10327: undefined, - mask___10328: undefined, - c___10329: undefined, - n___10346: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -13019,13 +13900,15 @@ function helpers_imagePrint__P1835_mk(s) { arg4: undefined, arg5: undefined, arg6: undefined, + arg7: undefined, + arg8: undefined, } } -function image_getFontForText__P1822(s) { +function music_volume__P1621(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13035,60 +13918,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___10407 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.i___10407 = (0); + s.tmp_0 = music_initVolume__P4404_mk(s); + s.callLocIdx = 73; s.pc = 1; return s.tmp_0; case 1: - s.tmp_1 = r0 = s.i___10407; - 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___10407); - 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___1821; - { step = 5; continue; } - case 2: - case 3: - r0 = (s.i___10407 + 1); - s.i___10407 = (r0); - { step = 1; continue; } - case 4: - r0 = globals.font8___1820; - case 5: + r0 = s.retval; + r0 = globals.globalVolume___4400; return leave(s, r0) default: oops() } } } -image_getFontForText__P1822.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]} +music_volume__P1621.info = {"start":1781,"length":90,"line":61,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"volume","argumentNames":[]} -function image_getFontForText__P1822_mk(s) { +function music_volume__P1621_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_getFontForText__P1822, depth: s.depth + 1, + parent: s, fn: music_volume__P1621, depth: s.depth + 1, pc: 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___10407: undefined, - arg0: undefined, } } -function helpers_imageDrawIcon__P1802(s) { +function music_initVolume__P4404(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13098,51 +13950,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.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__P4414_mk(s); - s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.arg3; - s.callLocIdx = 122; s.pc = 1; return s.tmp_3; - case 1: + r0 = (globals.globalVolume___4400 === null); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + globals.globalVolume___4400 = (0); + s.tmp_0 = music_setVolume__P1620_mk(s); + r0 = pxsim_pxtcore.getConfig(59, 128); + s.tmp_0.arg0 = r0; + s.callLocIdx = 70; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods._drawIcon(s.tmp_0, s.tmp_1, s.tmp_2, s.arg4); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_imageDrawIcon__P1802.info = {"start":4684,"length":145,"line":155,"column":4,"endLine":157,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]} +music_initVolume__P4404.info = {"start":1014,"length":180,"line":33,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"initVolume","argumentNames":[]} -function helpers_imageDrawIcon__P1802_mk(s) { +function music_initVolume__P4404_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawIcon__P1802, depth: s.depth + 1, + parent: s, fn: music_initVolume__P4404, depth: s.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_pack__P4414(s) { +function Math_min__P131(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13157,45 +13996,27 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_2 = Math_clamp__P127_mk(s); - s.tmp_2.arg0 = -30000; - s.tmp_2.arg1 = 30000; - r0 = (s.arg0 | 0); - s.tmp_2.arg2 = r0; - s.callLocIdx = 120; s.pc = 1; return s.tmp_2; - case 1: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 65535); + r0 = (s.arg0 <= s.arg1); s.tmp_0 = r0; - s.tmp_5 = Math_clamp__P127_mk(s); - s.tmp_5.arg0 = -30000; - s.tmp_5.arg1 = 30000; - r0 = (s.arg1 | 0); - s.tmp_5.arg2 = r0; - s.callLocIdx = 121; s.pc = 2; return s.tmp_5; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0; + { step = 3; continue; } + case 1: 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 = s.arg1; + case 3: return leave(s, r0) default: oops() } } } -helpers_pack__P4414.info = {"start":3658,"length":145,"line":130,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]} +Math_min__P131.info = {"start":16854,"length":105,"line":568,"column":4,"endLine":571,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"min","argumentNames":["a","b"]} -function helpers_pack__P4414_mk(s) { +function Math_min__P131_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_pack__P4414, depth: s.depth + 1, + parent: s, fn: Math_min__P131, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -13253,7 +14074,7 @@ function Math_clamp__P127_mk(s) { -function Math_min__P131(s) { +function parseInt__P97(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13263,104 +14084,313 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.start___10481 = undefined; + s.sign___10511 = undefined; + s.output___10556 = undefined; + s.hasDigit___10557 = undefined; + s.i___10558 = undefined; + s.code___10565 = undefined; + s.val___10572 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 <= s.arg1); + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.arg0; - { step = 3; continue; } + r0 = s.tmp_0; + { step = 6; continue; } case 1: + r0 = (s.arg1 != null); + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 2; continue; } + r0 = s.tmp_2; + { step = 5; continue; } case 2: - r0 = s.arg1; + r0 = (s.arg1 < 2); + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = s.tmp_3; + { step = 4; continue; } case 3: - return leave(s, r0) - default: oops() -} } } -Math_min__P131.info = {"start":16854,"length":105,"line":568,"column":4,"endLine":571,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"min","argumentNames":["a","b"]} - -function Math_min__P131_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Math_min__P131, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function helpers_imageFillRect__P1803(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.lambdaArgs = null; - } - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_pack__P4414_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: + r0 = (s.arg1 > 36); + case 4: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; + case 5: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = s.tmp_5; + case 6: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 7; continue; } + r0 = NaN; + { step = 46; continue; } + case 7: + case 8: + s.start___10481 = (0); + case 9: + s.tmp_1 = r0 = s.start___10481; + r0 = pxsim_String_.length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 10; continue; } + r0 = s.tmp_0; + { step = 11; continue; } + case 10: + s.tmp_3 = helpers_isWhitespace__P124_mk(s); + r0 = pxsim_String_.charCodeAt(s.arg0, s.start___10481); + s.tmp_3.arg0 = r0; + s.callLocIdx = 0; s.pc = 47; return s.tmp_3; + case 47: r0 = s.retval; + case 11: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 12; continue; } + r0 = (s.start___10481 + 1); + s.start___10481 = (r0); + { step = 9; continue; } + case 12: + s.tmp_1 = r0 = s.start___10481; + r0 = pxsim_String_.length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 === s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = NaN; + { step = 46; continue; } + case 13: + case 14: + s.sign___10511 = (1); + r0 = pxsim_String_.charAt(s.arg0, s.start___10481); + s.tmp_0 = r0; + r0 = pxsim_pxtcore.switch_eq("-", s.tmp_0); + if (r0) { step = 15; continue; } + r0 = pxsim_pxtcore.switch_eq("+", s.tmp_0); + if (r0) { step = 16; continue; } + r0 = s.tmp_0; + { step = 17; continue; } + case 15: + s.sign___10511 = (-1); + case 16: + r0 = (s.start___10481 + 1); + s.start___10481 = (r0); + case 17: + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P4414_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; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 18; continue; } + r0 = s.tmp_0; + { step = 19; continue; } + case 18: + r0 = (s.arg1 == 16); + case 19: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 20; continue; } + r0 = s.tmp_2; + { step = 21; continue; } + case 20: + r0 = pxsim_String_.charAt(s.arg0, s.start___10481); s.tmp_3 = r0; - r0 = pxsim_ImageMethods._fillRect(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5); - r0 = undefined; + r0 = ("0" === s.tmp_3); + case 21: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBool(s.tmp_4); + if (r0) { step = 22; continue; } + r0 = s.tmp_4; + { step = 25; continue; } + case 22: + s.tmp_7 = r0 = s.arg0; + r0 = (s.start___10481 + 1); + s.tmp_8 = r0; + r0 = pxsim_String_.charAt(s.tmp_7, s.tmp_8); + s.tmp_6 = r0; + r0 = ("x" === s.tmp_6); + s.tmp_5 = r0; + r0 = pxsim_numops_toBool(s.tmp_5); + if (!r0) { step = 23; continue; } + r0 = s.tmp_5; + { step = 24; continue; } + case 23: + s.tmp_10 = r0 = s.arg0; + r0 = (s.start___10481 + 1); + s.tmp_11 = r0; + r0 = pxsim_String_.charAt(s.tmp_10, s.tmp_11); + s.tmp_9 = r0; + r0 = ("X" === s.tmp_9); + case 24: + // jmp value (already in r0) + s.tmp_12 = r0; + r0 = s.tmp_12; + case 25: + // jmp value (already in r0) + s.tmp_13 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_13); + if (!r0) { step = 26; continue; } + s.arg1 = (16); + r0 = (s.start___10481 + 2); + s.start___10481 = (r0); + { step = 29; continue; } + case 26: + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 27; continue; } + s.arg1 = (10); + case 27: + case 28: + case 29: + s.output___10556 = (0); + s.hasDigit___10557 = (false); + s.i___10558 = (s.start___10481); + case 30: + s.tmp_1 = r0 = s.i___10558; + 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___10558); + s.tmp_3 = r0; + r0 = (s.tmp_3 | 32); + s.code___10565 = (r0); + s.val___10572 = (undefined); + r0 = (s.code___10565 >= 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___10565 < 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___10565 - 48); + s.val___10572 = (r0); + { step = 38; continue; } + case 33: + r0 = (s.code___10565 >= 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___10565 < 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___10565); + s.tmp_2 = r0; + r0 = (s.tmp_2 - 97); + s.val___10572 = (r0); + case 36: + case 37: + case 38: + r0 = (s.val___10572 == 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___10572 >= 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___10557); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 41; continue; } + r0 = NaN; + { step = 46; continue; } + case 41: + case 42: + { step = 45; continue; } + case 43: + case 44: + s.hasDigit___10557 = (true); + r0 = (s.output___10556 * s.arg1); + s.tmp_0 = r0; + r0 = (s.tmp_0 + s.val___10572); + s.output___10556 = (r0); + r0 = (s.i___10558 + 1); + s.i___10558 = (r0); + { step = 30; continue; } + case 45: + r0 = (s.sign___10511 * s.output___10556); + case 46: return leave(s, r0) default: oops() } } } -helpers_imageFillRect__P1803.info = {"start":4834,"length":159,"line":158,"column":4,"endLine":160,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]} +parseInt__P97.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 helpers_imageFillRect__P1803_mk(s) { +function parseInt__P97_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageFillRect__P1803, depth: s.depth + 1, + parent: s, fn: parseInt__P97, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + start___10481: undefined, + sign___10511: undefined, + output___10556: undefined, + hasDigit___10557: undefined, + i___10558: undefined, + code___10565: undefined, + val___10572: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function Math_constrain__P284(s) { +function helpers_isWhitespace__P124(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13372,57 +14402,67 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = (s.arg0 < s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg1; - { step = 4; continue; } + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtcore.switch_eq(9, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(11, s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq(12, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(32, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(160, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(65279, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = pxsim_pxtcore.switch_eq(10, s.tmp_0); + if (r0) { step = 7; continue; } + r0 = pxsim_pxtcore.switch_eq(13, s.tmp_0); + if (r0) { step = 8; continue; } + r0 = pxsim_pxtcore.switch_eq(8232, s.tmp_0); + if (r0) { step = 9; continue; } + r0 = pxsim_pxtcore.switch_eq(8233, s.tmp_0); + if (r0) { step = 10; continue; } + r0 = s.tmp_0; + { step = 11; continue; } case 1: - 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 = s.arg0; case 3: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.tmp_2; case 4: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = s.tmp_3; + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + r0 = true; + { step = 12; continue; } + case 11: + r0 = false; + { step = 12; continue; } + r0 = undefined; + case 12: return leave(s, r0) default: oops() } } } -Math_constrain__P284.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"]} +helpers_isWhitespace__P124.info = {"start":14864,"length":674,"line":503,"column":4,"endLine":520,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"isWhitespace","argumentNames":["c"]} -function Math_constrain__P284_mk(s) { +function helpers_isWhitespace__P124_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_constrain__P284, depth: s.depth + 1, + parent: s, fn: helpers_isWhitespace__P124, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function statusbars_StatusBar_image__P4197(s) { +function music_MelodyPlayer_constructor__P1639(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13434,30 +14474,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, statusbars_StatusBar__C4172_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, music_MelodyPlayer__C1636_VT)) failedCast(r0); + r0 = (s.arg0).fields["melody"] = (s.arg1); + r0 = undefined; + return leave(s, r0) default: oops() } } } -statusbars_StatusBar_image__P4197.info = {"start":17520,"length":55,"line":508,"column":8,"endLine":510,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"image","argumentNames":["this"]} -statusbars_StatusBar_image__P4197.isGetter = true; +music_MelodyPlayer_constructor__P1639.info = {"start":11094,"length":62,"line":336,"column":8,"endLine":338,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","m"]} -function statusbars_StatusBar_image__P4197_mk(s) { +function music_MelodyPlayer_constructor__P1639_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_image__P4197, depth: s.depth + 1, + parent: s, fn: music_MelodyPlayer_constructor__P1639, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, + arg1: undefined, } } -function Sprite_setImage__P2232(s) { +function game_onUpdateInterval__P2812(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13467,13 +14509,12 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.timer___10759 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -13483,23 +14524,32 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.arg0.fields["_image"]; - s.tmp_2 = r0; - r0 = (s.arg1 === s.tmp_2); + r0 = (s.arg0 < 0); case 2: // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 3; continue; } { step = 5; continue; } case 3: case 4: - r0 = (s.arg0).fields["_image"] = (s.arg1); - s.tmp_0 = Sprite__C2182_v5_1_mk(s); - s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, Sprite__C2182_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.recalcSize; - s.pc = 6; return s.tmp_0; + r0 = pxsim_pxtrt.mklocRef(); + s.timer___10759 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.timer___10759, 0); + r0 = pxsim_pxtcore_mkAction(3, game_onUpdateInterval_inline__P10763); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___10759); + 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__P403_mk(s); + s.tmp_2 = game_eventContext__P2795_mk(s); + s.callLocIdx = 1347; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 19; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1351; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; case 5: @@ -13507,17 +14557,17 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_setImage__P2232.info = {"start":9299,"length":131,"line":332,"column":4,"endLine":336,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setImage","argumentNames":["this","img"]} +game_onUpdateInterval__P2812.info = {"start":891,"length":401,"line":28,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/game/gameutil.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]} -function Sprite_setImage__P2232_mk(s) { +function game_onUpdateInterval__P2812_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setImage__P2232, depth: s.depth + 1, + parent: s, fn: game_onUpdateInterval__P2812, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, + timer___10759: undefined, arg0: undefined, arg1: undefined, } } @@ -13526,7 +14576,65 @@ function Sprite_setImage__P2232_mk(s) { -function statusbars_StatusBar_max__P4193(s) { +function game_onUpdateInterval_inline__P10763(s) { +let r0 = s.r0, 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___10764 = undefined; + s.tmp_1 = game_currentScene__P2792_mk(s); + s.callLocIdx = 1348; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["_millis"]; + s.time___10764 = (r0); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_1 = r0; + r0 = (s.tmp_1 <= s.time___10764); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = r0 = s.caps[0]; + r0 = (s.time___10764 + 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 = 1350; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_onUpdateInterval_inline__P10763.info = {"start":1105,"length":179,"line":31,"column":81,"endLine":37,"endColumn":9,"fileName":"pxt_modules/game/gameutil.ts","functionName":"inline","argumentNames":[]} + +function game_onUpdateInterval_inline__P10763_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_onUpdateInterval_inline__P10763, depth: s.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___10764: undefined, +} } + + + + + +function scene_Scene_millis__P2703(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13538,45 +14646,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, statusbars_StatusBar__C4172_VT)) failedCast(r0); - s.tmp_0 = statusbars_StatusBar_changeValue__P6763_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = s.arg0.fields["target"]; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 1722; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = statusbars_StatusBar_updateState__P4199_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1723; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - r0 = undefined; + if (!checkSubtype(r0, scene_Scene__C2678_VT)) failedCast(r0); + r0 = s.arg0.fields["_millis"]; return leave(s, r0) default: oops() } } } -statusbars_StatusBar_max__P4193.info = {"start":15827,"length":109,"line":456,"column":8,"endLine":459,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"max","argumentNames":["this","v"]} +scene_Scene_millis__P2703.info = {"start":7045,"length":61,"line":194,"column":8,"endLine":196,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]} -function statusbars_StatusBar_max__P4193_mk(s) { +function scene_Scene_millis__P2703_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_max__P4193, depth: s.depth + 1, + parent: s, fn: scene_Scene_millis__P2703, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function statusbars_StatusBar_changeValue__P6763(s) { +function control_EventContext_registerFrameHandler__P403(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13586,12 +14678,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.statusHandlers___10474 = undefined; - s.toRun___10477 = undefined; - s.handler___10530 = undefined; - s.h___10554 = undefined; - s.unnamed106___U4 = undefined; - s.unnamed107___U5 = undefined; + s.fn___10791 = undefined; + s.i___10800 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -13599,179 +14687,75 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusBar__C4172_VT)) failedCast(r0); - s.tmp_0 = statusbars_getStatusHandlers__P6775_mk(s); - s.callLocIdx = 1727; s.pc = 23; return s.tmp_0; - case 23: - r0 = s.retval; - s.statusHandlers___10474 = (r0); - s.tmp_0 = r0 = s.statusHandlers___10474; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_pxtcore_mkAction(3, toRun_inline__P10482); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_1, 2, s.arg2); - s.tmp_2 = helpers_arrayFilter__P110_mk(s); - s.tmp_2.arg0 = s.statusHandlers___10474; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 1732; s.pc = 24; return s.tmp_2; - case 24: - r0 = s.retval; - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - s.toRun___10477 = (s.tmp_3); - r0 = (s.arg0).fields["target"] = (s.arg1); - r0 = (s.arg0).fields["_max"] = (s.arg2); - r0 = (s.arg1 <= 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.arg0.fields["hasHitZero"]; + if (!checkSubtype(r0, control_EventContext__C395_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); - case 4: - // jmp value (already in r0) + 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__P4367_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 62; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + case 1: + case 2: + r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C392_VT); + s.fn___10791 = (r0); + r0 = (s.fn___10791).fields["order"] = (s.arg1); + r0 = (s.fn___10791).fields["handler"] = (s.arg2); + s.i___10800 = (0); + case 3: + s.tmp_1 = r0 = s.i___10800; + r0 = s.arg0.fields["frameCallbacks"]; s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (r0) { step = 5; continue; } - r0 = s.tmp_3; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["flags"]; + r0 = pxsim_Array__length(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + r0 = s.arg0.fields["frameCallbacks"]; s.tmp_6 = r0; - r0 = (s.tmp_6 & 64); + r0 = pxsim_Array__getAt(s.tmp_6, s.i___10800); + r0 = r0.fields["order"]; s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); + r0 = (s.tmp_5 > s.arg1); s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - case 6: - // jmp value (already in r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 4; continue; } + r0 = s.arg0.fields["frameCallbacks"]; s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 13; continue; } - r0 = (s.arg0).fields["hasHitZero"] = (true); - s.tmp_1 = statusbars_getZeroHandlers__P6774_mk(s); - s.callLocIdx = 1733; s.pc = 25; return s.tmp_1; - case 25: - r0 = s.retval; + r0 = pxsim_Array_.insertAt(s.tmp_7, s.i___10800, s.fn___10791); + r0 = s.fn___10791; + { step = 7; continue; } + case 4: + case 5: + r0 = (s.i___10800 + 1); + s.i___10800 = (r0); + { step = 3; continue; } + case 6: + r0 = s.arg0.fields["frameCallbacks"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = s.tmp_0; - { step = 8; continue; } + r0 = pxsim_Array__push(s.tmp_0, s.fn___10791); + r0 = s.fn___10791; case 7: - r0 = pxsim_Array__mk(); - case 8: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.arg0.fields["kind"]; - s.tmp_3 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); - s.handler___10530 = (r0); - r0 = s.arg0.fields["sprite"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 9; continue; } - r0 = s.tmp_0; - { step = 10; continue; } - case 9: - r0 = s.handler___10530; - case 10: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 11; continue; } - s.tmp_2 = lambda_2_mk(s); - s.tmp_2.argL = s.handler___10530; - r0 = s.arg0.fields["sprite"]; - s.tmp_2.arg0 = r0; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 1734; s.pc = 26; return s.tmp_2; - case 26: - r0 = s.retval; - case 11: - case 12: - { step = 18; continue; } - case 13: - r0 = (s.arg1 > 0); - 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.arg0.fields["hasHitZero"]; - case 15: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 16; continue; } - r0 = (s.arg0).fields["hasHitZero"] = (false); - case 16: - case 17: - case 18: - s.h___10554 = (undefined); - s.tmp_0 = r0 = s.toRun___10477; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 19; continue; } - r0 = s.tmp_0; - { step = 20; continue; } - case 19: - r0 = pxsim_Array__mk(); - case 20: - // jmp value (already in r0) - s.tmp_1 = r0; - s.unnamed106___U4 = (s.tmp_1); - s.unnamed107___U5 = (0); - case 21: - s.tmp_0 = r0 = s.unnamed107___U5; - r0 = pxsim_Array__length(s.unnamed106___U4); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 22; continue; } - r0 = pxsim_Array__getAt(s.unnamed106___U4, s.unnamed107___U5); - s.h___10554 = (r0); - s.tmp_2 = if_handler_2_mk(s); - s.tmp_2.arg0 = s.h___10554; - r0 = s.arg0.fields["sprite"]; - s.tmp_2.arg1 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 2); - s.callLocIdx = 1735; s.pc = 27; 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"], 2); s.callLocIdx = 1735; s.pc = 27; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1735; s.pc = 27; return s.tmp_2;; } - else { s.callLocIdx = 1735; s.pc = 27; return s.tmp_2; } - } - case 27: - r0 = s.retval; - r0 = (s.unnamed107___U5 + 1); - s.unnamed107___U5 = (r0); - { step = 21; continue; } - case 22: - s.unnamed106___U4 = (undefined); - r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_StatusBar_changeValue__P6763.info = {"start":16237,"length":1086,"line":474,"column":8,"endLine":499,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"changeValue","argumentNames":["this","current","max"]} +control_EventContext_registerFrameHandler__P403.info = {"start":4862,"length":643,"line":147,"column":8,"endLine":164,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameHandler","argumentNames":["this","order","handler"]} -function statusbars_StatusBar_changeValue__P6763_mk(s) { +function control_EventContext_registerFrameHandler__P403_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_changeValue__P6763, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameHandler__P403, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -13781,12 +14765,8 @@ function statusbars_StatusBar_changeValue__P6763_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - statusHandlers___10474: undefined, - toRun___10477: undefined, - handler___10530: undefined, - h___10554: undefined, - unnamed106___U4: undefined, - unnamed107___U5: undefined, + fn___10791: undefined, + i___10800: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -13796,7 +14776,7 @@ function statusbars_StatusBar_changeValue__P6763_mk(s) { -function toRun_inline__P10482(s) { +function control_EventContext_registerFrameCallbacks__P4367(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13806,91 +14786,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.worker___10834 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0.fields["kind"]; - s.tmp_1 = r0; - r0 = s.caps[0].fields["kind"]; + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C395_VT)) failedCast(r0); + r0 = s.arg0.fields["frameCallbacks"]; s.tmp_2 = r0; - r0 = (s.tmp_1 === s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 3; continue; } case 1: - r0 = s.caps[0].fields["flags"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 & 64); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); case 2: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBool(s.tmp_6); - if (r0) { step = 3; continue; } - r0 = s.tmp_6; - { step = 4; continue; } + r0 = s.arg0.fields["frameWorker"]; + s.worker___10834 = (r0); + r0 = pxsim_pxtcore_mkAction(2, control_EventContext_registerFrameCallbacks_inline__P10840); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___10834); + r0 = pxsim.control.runInParallel(s.tmp_0); case 3: - s.tmp_7 = statusbars_StatusHandler_conditionMet__P6768_mk(s); - s.tmp_7.arg0 = s.arg0; - s.tmp_7.arg1 = s.caps[1]; - s.tmp_7.arg2 = s.caps[2]; - s.callLocIdx = 1728; s.pc = 7; return s.tmp_7; - case 7: - r0 = s.retval; - case 4: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBool(s.tmp_8); - if (r0) { step = 5; continue; } - r0 = s.tmp_8; - { step = 6; continue; } - case 5: - s.tmp_11 = statusbars_StatusHandler_conditionMet__P6768_mk(s); - s.tmp_11.arg0 = s.arg0; - r0 = s.caps[0].fields["target"]; - s.tmp_11.arg1 = r0; - r0 = s.caps[0].fields["_max"]; - s.tmp_11.arg2 = r0; - s.callLocIdx = 1731; s.pc = 8; return s.tmp_11; - case 8: - r0 = s.retval; - s.tmp_10 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_10); - s.tmp_9 = r0; - r0 = pxsim_Boolean__bang(s.tmp_9); - case 6: - // jmp value (already in r0) - s.tmp_12 = r0; - r0 = s.tmp_12; + r0 = undefined; return leave(s, r0) default: oops() } } } -toRun_inline__P10482.info = {"start":16413,"length":227,"line":476,"column":66,"endLine":480,"endColumn":62,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["h"]} +control_EventContext_registerFrameCallbacks__P4367.info = {"start":3668,"length":895,"line":109,"column":8,"endLine":133,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} -function toRun_inline__P10482_mk(s) { +function control_EventContext_registerFrameCallbacks__P4367_mk(s) { checkStack(s.depth); return { - parent: s, fn: toRun_inline__P10482, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks__P4367, depth: s.depth + 1, pc: 0, retval: undefined, 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, + worker___10834: undefined, arg0: undefined, } } @@ -13898,7 +14834,7 @@ function toRun_inline__P10482_mk(s) { -function statusbars_getStatusHandlers__P6775(s) { +function control_EventContext_registerFrameCallbacks_inline__P10840(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13908,29 +14844,73 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = statusbars_getSceneData__P6772_mk(s); - s.tmp_0.arg0 = globals.STATUS_HANDLERS_KEY___6753; - s.callLocIdx = 1816; s.pc = 1; return s.tmp_0; + s.delay___10870 = 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, control_EventContext_registerFrameCallbacks_inline__P10846); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.caps[0]); + s.tmp_2 = pauseUntil__P367_mk(s); + s.tmp_2.arg0 = s.tmp_1; + s.tmp_2.arg1 = undefined; + s.callLocIdx = 56; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; case 1: + case 2: + r0 = (s.caps[0]).fields["runningCallbacks"] = (true); + r0 = (s.caps[0]).fields["framesInSample"] = (0); + r0 = (s.caps[0]).fields["timeInSample"] = (0); + r0 = (s.caps[0]).fields["deltaTimeMillis"] = (0); + s.tmp_0 = r0 = s.caps[0]; + r0 = pxsim.control.millis(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["prevTimeMillis"] = (s.tmp_1); + case 3: + r0 = s.caps[0].fields["frameWorker"]; + 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__P4366_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.callLocIdx = 57; s.pc = 6; return s.tmp_2; + case 6: r0 = s.retval; + s.delay___10870 = (r0); + s.tmp_0 = pause__P413_mk(s); + s.tmp_0.arg0 = s.delay___10870; + s.callLocIdx = 58; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + { step = 3; continue; } + case 4: + r0 = (s.caps[0]).fields["runningCallbacks"] = (false); + r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_getStatusHandlers__P6775.info = {"start":33463,"length":105,"line":955,"column":4,"endLine":957,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getStatusHandlers","argumentNames":[]} +control_EventContext_registerFrameCallbacks_inline__P10840.info = {"start":3829,"length":723,"line":113,"column":34,"endLine":132,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function statusbars_getStatusHandlers__P6775_mk(s) { +function control_EventContext_registerFrameCallbacks_inline__P10840_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_getStatusHandlers__P6775, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P10840, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + delay___10870: undefined, } } -function statusbars_getZeroHandlers__P6774(s) { +function control_EventContext_registerFrameCallbacks_inline__P10846(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13940,29 +14920,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = statusbars_getSceneData__P6772_mk(s); - s.tmp_0.arg0 = globals.ZERO_HANDLERS_KEY___6747; - s.callLocIdx = 1815; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + 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() } } } -statusbars_getZeroHandlers__P6774.info = {"start":33343,"length":114,"line":951,"column":4,"endLine":953,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getZeroHandlers","argumentNames":[]} +control_EventContext_registerFrameCallbacks_inline__P10846.info = {"start":4060,"length":28,"line":117,"column":31,"endLine":117,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function statusbars_getZeroHandlers__P6774_mk(s) { +function control_EventContext_registerFrameCallbacks_inline__P10846_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_getZeroHandlers__P6774, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P10846, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, } } -function statusbars_StatusHandler_conditionMet__P6768(s) { +function control_EventContext_runCallbacks__P4366(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13972,91 +14953,255 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.value___10569 = undefined; + s.loopStart___10879 = undefined; + s.f___10892 = undefined; + s.unnamed62___U2 = undefined; + s.unnamed63___U3 = undefined; + s.now___10897 = undefined; + s.runtime___10900 = undefined; + s.realTimeInSample___10919 = undefined; + s.fps___10928 = undefined; + s.delay___10997 = 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, statusbars_StatusHandler__C6767_VT)) failedCast(r0); - r0 = s.arg0.fields["comparisonType"]; - 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.arg1 / s.arg2); + if (!checkSubtype(r0, control_EventContext__C395_VT)) failedCast(r0); + r0 = pxsim.control.millis(); + s.loopStart___10879 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["prevTimeMillis"]; s.tmp_2 = r0; - r0 = (s.tmp_2 * 100); - { step = 2; continue; } + r0 = (s.loopStart___10879 - s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["deltaTimeMillis"] = (s.tmp_1); + r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___10879); + s.f___10892 = (undefined); + r0 = s.arg0.fields["frameCallbacks"]; + s.unnamed62___U2 = (r0); + s.unnamed63___U3 = (0); case 1: - r0 = s.arg1; + s.tmp_0 = r0 = s.unnamed63___U3; + r0 = pxsim_Array__length(s.unnamed62___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed62___U2, s.unnamed63___U3); + s.f___10892 = (r0); + s.tmp_2 = if_handler_1_mk(s); + s.tmp_2.arg0 = s.f___10892; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 1); + s.callLocIdx = 54; s.pc = 11; return s.tmp_2; + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["handler"]; + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["handler"], 1); s.callLocIdx = 54; s.pc = 11; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 54; s.pc = 11; return s.tmp_2;; } + else { s.callLocIdx = 54; s.pc = 11; return s.tmp_2; } + } + case 11: + r0 = s.retval; + r0 = (s.unnamed63___U3 + 1); + s.unnamed63___U3 = (r0); + { step = 1; continue; } case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - s.value___10569 = (s.tmp_3); - r0 = s.arg0.fields["comparison"]; + s.unnamed62___U2 = (undefined); + r0 = pxsim.control.millis(); + s.now___10897 = (r0); + r0 = (s.now___10897 - s.loopStart___10879); + s.runtime___10900 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["timeInSample"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.runtime___10900); + 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_pxtcore.switch_eq(0, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 6; continue; } - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 7; continue; } - r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); - if (r0) { step = 8; continue; } + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 3; continue; } r0 = s.tmp_0; - { step = 9; continue; } + { step = 4; continue; } case 3: - r0 = s.arg0.fields["percent"]; - s.tmp_1 = r0; - r0 = (s.value___10569 === s.tmp_1); - { step = 10; continue; } + r0 = s.arg0.fields["framesInSample"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 > 30); case 4: - r0 = s.arg0.fields["percent"]; + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 9; continue; } + r0 = s.arg0.fields["lastPerfDump"]; + s.tmp_4 = r0; + r0 = (s.now___10897 - s.tmp_4); + s.realTimeInSample___10919 = (r0); + r0 = (s.arg0).fields["lastPerfDump"] = (s.now___10897); + r0 = s.arg0.fields["framesInSample"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["timeInSample"]; s.tmp_2 = r0; - r0 = (s.value___10569 !== s.tmp_2); - { step = 10; continue; } - case 5: - r0 = s.arg0.fields["percent"]; + r0 = (s.tmp_2 / 1000); + s.tmp_1 = r0; + r0 = (s.tmp_0 / s.tmp_1); + s.fps___10928 = (r0); + r0 = pxsim.Math_.round(s.fps___10928); + s.tmp_1 = r0; + if ((s.tmp_1) && (s.tmp_1).vtable) { + setupResume(s, 12); + pxsim_String__stringConv(s.tmp_1); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_1) + ""; } + case 12: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_String__concat("fps:", s.tmp_0); + globals.control_EventContext_lastStats___397 = (r0); + r0 = (s.fps___10928 < 99); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + if ((globals.control_EventContext_lastStats___397) && (globals.control_EventContext_lastStats___397).vtable) { + setupResume(s, 13); + pxsim_String__stringConv(globals.control_EventContext_lastStats___397); + checkResumeConsumed(); + return; + } else { s.retval = (globals.control_EventContext_lastStats___397) + ""; } + case 13: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.fps___10928 * 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, 14); + pxsim_String__stringConv(s.tmp_5); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_5) + ""; } + case 14: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(".", s.tmp_4); s.tmp_3 = r0; - r0 = (s.value___10569 > s.tmp_3); - { step = 10; continue; } + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 15); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 15: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); + globals.control_EventContext_lastStats___397 = (r0); + case 5: case 6: - r0 = s.arg0.fields["percent"]; + r0 = pxsim.control.profilingEnabled(); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = pxsim_String_.mkEmpty(); + s.tmp_9 = r0; + r0 = (s.fps___10928 * 100); + s.tmp_12 = r0; + r0 = (s.tmp_12 | 0); + s.tmp_11 = r0; + if ((s.tmp_11) && (s.tmp_11).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.tmp_11); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_11) + ""; } + case 16: + r0 = s.retval; + s.tmp_10 = r0; + r0 = pxsim_String__concat(s.tmp_9, s.tmp_10); + s.tmp_8 = r0; + r0 = pxsim_String__concat(s.tmp_8, "/100 fps - "); + s.tmp_7 = r0; + r0 = s.arg0.fields["framesInSample"]; + s.tmp_14 = r0; + if ((s.tmp_14) && (s.tmp_14).vtable) { + setupResume(s, 17); + pxsim_String__stringConv(s.tmp_14); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_14) + ""; } + case 17: + r0 = s.retval; + s.tmp_13 = r0; + r0 = pxsim_String__concat(s.tmp_7, s.tmp_13); + s.tmp_6 = r0; + r0 = pxsim_String__concat(s.tmp_6, " frames ("); + s.tmp_5 = r0; + r0 = s.arg0.fields["timeInSample"]; + s.tmp_16 = r0; + if ((s.tmp_16) && (s.tmp_16).vtable) { + setupResume(s, 18); + pxsim_String__stringConv(s.tmp_16); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_16) + ""; } + case 18: + r0 = s.retval; + s.tmp_15 = r0; + r0 = pxsim_String__concat(s.tmp_5, s.tmp_15); s.tmp_4 = r0; - r0 = (s.value___10569 >= s.tmp_4); - { step = 10; continue; } + r0 = pxsim_String__concat(s.tmp_4, "ms/"); + s.tmp_3 = r0; + if ((s.realTimeInSample___10919) && (s.realTimeInSample___10919).vtable) { + setupResume(s, 19); + pxsim_String__stringConv(s.realTimeInSample___10919); + checkResumeConsumed(); + return; + } else { s.retval = (s.realTimeInSample___10919) + ""; } + case 19: + r0 = s.retval; + s.tmp_17 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_17); + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, "ms)"); + s.tmp_1 = r0; + r0 = pxsim.control.dmesg(s.tmp_1); + r0 = pxsim.control.gc(); + r0 = pxsim_pxtcore.dumpPerfCounters(); case 7: - r0 = s.arg0.fields["percent"]; - s.tmp_5 = r0; - r0 = (s.value___10569 < s.tmp_5); - { step = 10; continue; } case 8: - r0 = s.arg0.fields["percent"]; - s.tmp_6 = r0; - r0 = (s.value___10569 <= s.tmp_6); - { step = 10; continue; } + r0 = (s.arg0).fields["timeInSample"] = (0); + r0 = (s.arg0).fields["framesInSample"] = (0); case 9: - r0 = false; - { step = 10; continue; } - r0 = undefined; case 10: + s.tmp_0 = Math_max__P130_mk(s); + s.tmp_0.arg0 = 1; + r0 = (20 - s.runtime___10900); + s.tmp_0.arg1 = r0; + s.callLocIdx = 55; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + s.delay___10997 = (r0); + r0 = s.delay___10997; return leave(s, r0) default: oops() } } } -statusbars_StatusHandler_conditionMet__P6768.info = {"start":24789,"length":962,"line":710,"column":8,"endLine":731,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"conditionMet","argumentNames":["this","current","max"]} +control_EventContext_runCallbacks__P4366.info = {"start":2220,"length":1395,"line":75,"column":8,"endLine":106,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]} -function statusbars_StatusHandler_conditionMet__P6768_mk(s) { +function control_EventContext_runCallbacks__P4366_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusHandler_conditionMet__P6768, depth: s.depth + 1, + parent: s, fn: control_EventContext_runCallbacks__P4366, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14065,17 +15210,34 @@ function statusbars_StatusHandler_conditionMet__P6768_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - value___10569: 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, + loopStart___10879: undefined, + f___10892: undefined, + unnamed62___U2: undefined, + unnamed63___U3: undefined, + now___10897: undefined, + runtime___10900: undefined, + realTimeInSample___10919: undefined, + fps___10928: undefined, + delay___10997: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function helpers_arrayFilter__P110(s) { +function pauseUntil__P367(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14085,62 +15247,68 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___10619 = undefined; - s.len___10621 = undefined; - s.i___10624 = undefined; - s.v___10629 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.res___10619 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___10621 = (r0); - s.i___10624 = (0); - case 1: - r0 = (s.i___10624 < s.len___10621); + 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 = 4; continue; } - r0 = pxsim_Array__getAt(s.arg0, s.i___10624); - s.v___10629 = (r0); - s.tmp_1 = lambda_3_mk(s); - s.tmp_1.argL = s.arg1; - s.tmp_1.arg0 = s.v___10629; - s.tmp_1.arg1 = s.i___10624; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 7; s.pc = 5; return s.tmp_1; - case 5: + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_2 = lambda_1_mk(s); + s.tmp_2.argL = s.arg0; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 34; s.pc = 8; return s.tmp_2; + case 8: r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__push(s.res___10619, s.v___10629); 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: - r0 = (s.i___10624 + 1); - s.i___10624 = (r0); - { step = 1; continue; } case 4: - r0 = s.res___10619; - return leave(s, r0) - default: oops() -} } } -helpers_arrayFilter__P110.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__P110_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: helpers_arrayFilter__P110, depth: s.depth + 1, + 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__P366_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 35; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + case 7: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +pauseUntil__P367.info = {"start":2224,"length":227,"line":73,"column":0,"endLine":77,"endColumn":1,"fileName":"pxt_modules/base/poll.ts","functionName":"pauseUntil","argumentNames":["condition","timeOut"]} + +function pauseUntil__P367_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: pauseUntil__P367, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - res___10619: undefined, - len___10621: undefined, - i___10624: undefined, - v___10629: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, arg1: undefined, } } @@ -14149,7 +15317,7 @@ function helpers_arrayFilter__P110_mk(s) { -function statusbars_StatusBar_updateState__P4199(s) { +function control___queuePollEvent__P366(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14159,186 +15327,217 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.target___9654 = undefined; - s.displayValue___9655 = undefined; - s.currTime___9672 = undefined; - s.change___9687 = undefined; + s.ev___11019 = 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, statusbars_StatusBar__C4172_VT)) failedCast(r0); - s.tmp_0 = if_target_1_mk(s); - s.tmp_1 = r0 = s.arg0; - s.tmp_0.arg0 = r0; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "target"); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["target"]; - if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["target"]; } - else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } - else { s.callLocIdx = 1748; s.pc = 12; return s.tmp_0; } - } - case 12: - r0 = s.retval; - s.target___9654 = (r0); - s.tmp_2 = if_displayValue_1_mk(s); - s.tmp_2.arg0 = s.tmp_1; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "displayValue"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["displayValue"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["displayValue"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1749; s.pc = 13; return s.tmp_2; } - } - case 13: + r0 = pxsim_pxtcore_mkClassInstance(control_PollEvent__C4340_VT); + s.tmp_0 = r0; + s.tmp_1 = control_PollEvent_constructor__P4341_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = 1023; + r0 = pxsim.control.allocateNotifyEvent(); + s.tmp_1.arg2 = r0; + r0 = pxsim.control.millis(); + s.tmp_1.arg3 = r0; + s.tmp_1.arg4 = s.arg0; + s.tmp_1.arg5 = s.arg1; + r0 = pxsim_numops_toBoolDecr(s.arg2); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1.arg6 = r0; + s.callLocIdx = 32; s.pc = 5; return s.tmp_1; + case 5: r0 = s.retval; - s.displayValue___9655 = (r0); - r0 = s.arg0.fields["flags"]; + s.ev___11019 = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___4343); s.tmp_1 = r0; - r0 = (s.tmp_1 & 4); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = r0 = s.arg0; - s.tmp_4 = Math_constrain__P284_mk(s); - s.tmp_4.arg0 = s.target___9654; - s.tmp_4.arg1 = 0; - r0 = s.arg0.fields["_max"]; - s.tmp_4.arg2 = r0; - s.callLocIdx = 1751; s.pc = 14; return s.tmp_4; - case 14: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_2).fields["target"] = (s.tmp_3); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_constrain__P284_mk(s); - s.tmp_2.arg0 = s.displayValue___9655; - s.tmp_2.arg1 = 0; - r0 = s.arg0.fields["_max"]; - s.tmp_2.arg2 = r0; - s.callLocIdx = 1753; s.pc = 15; return s.tmp_2; - case 15: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["displayValue"] = (s.tmp_1); + r0 = pxsim_Array__mk(); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_2, s.ev___11019); + globals._pollEventQueue___4343 = (s.tmp_2); + r0 = pxsim.control.runInParallel(control_pollEvents__P4344); + { step = 2; continue; } case 1: + r0 = pxsim_Array__push(globals._pollEventQueue___4343, s.ev___11019); case 2: - s.tmp_1 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1754; s.pc = 16; return s.tmp_1; - case 16: + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 3; continue; } + s.tmp_0 = control_onEvent__P391_mk(s); + r0 = s.ev___11019.fields["eid"]; + s.tmp_0.arg0 = r0; + r0 = s.ev___11019.fields["vid"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = 16; + s.callLocIdx = 33; s.pc = 6; return s.tmp_0; + case 6: r0 = s.retval; + { step = 4; continue; } + case 3: + r0 = s.ev___11019.fields["eid"]; s.tmp_0 = r0; - r0 = s.tmp_0.fields["_millis"]; - s.currTime___9672 = (r0); - s.tmp_2 = Math_abs__P128_mk(s); - r0 = s.arg0.fields["lastUpdate"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 - s.currTime___9672); - s.tmp_2.arg0 = r0; - s.callLocIdx = 1756; s.pc = 17; return s.tmp_2; - case 17: - r0 = s.retval; + r0 = s.ev___11019.fields["vid"]; s.tmp_1 = r0; - r0 = s.arg0.fields["throttleAmount"]; - s.tmp_4 = r0; - r0 = (s.tmp_1 < s.tmp_4); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - { step = 11; continue; } - case 3: - case 4: - r0 = s.arg0.fields["_max"]; - s.tmp_5 = r0; - s.tmp_8 = Math_max__P130_mk(s); - r0 = s.arg0.fields["_barWidth"]; - s.tmp_8.arg0 = r0; - r0 = s.arg0.fields["_barHeight"]; - s.tmp_8.arg1 = r0; - s.callLocIdx = 1758; s.pc = 18; return s.tmp_8; - case 18: + setupResume(s, 7); + pxsim.control.waitForEvent(s.tmp_0, s.tmp_1); + checkResumeConsumed(); + return; + case 7: r0 = s.retval; - s.tmp_7 = r0; - r0 = s.arg0.fields["borderWidth"]; - s.tmp_10 = r0; - r0 = (s.tmp_10 * 2); - s.tmp_9 = r0; - r0 = (s.tmp_7 - s.tmp_9); - s.tmp_6 = r0; - r0 = (s.tmp_5 / s.tmp_6); - s.change___9687 = (r0); - r0 = s.arg0.fields["target"]; + case 4: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control___queuePollEvent__P366.info = {"start":1262,"length":758,"line":39,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"__queuePollEvent","argumentNames":["timeOut","condition","handler"]} + +function control___queuePollEvent__P366_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control___queuePollEvent__P366, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + ev___11019: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function control_pollEvents__P4344(s) { +let r0 = s.r0, 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___11146 = undefined; + s.i___11149 = undefined; + s.ev___11155 = undefined; + case 1: + r0 = pxsim_Array__length(globals._pollEventQueue___4343); s.tmp_1 = r0; - r0 = s.arg0.fields["displayValue"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 > s.tmp_2); + r0 = (s.tmp_1 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_3 = r0 = s.arg0; - s.tmp_5 = Math_min__P131_mk(s); - r0 = (s.displayValue___9655 + s.change___9687); - s.tmp_5.arg0 = r0; - r0 = s.arg0.fields["target"]; - s.tmp_5.arg1 = r0; - s.callLocIdx = 1759; s.pc = 19; return s.tmp_5; - case 19: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["displayValue"] = (s.tmp_4); - r0 = (s.arg0).fields["lastUpdate"] = (s.currTime___9672); - { step = 8; continue; } - case 5: - r0 = s.arg0.fields["target"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["displayValue"]; + if (!r0) { step = 12; continue; } + r0 = pxsim.control.millis(); + s.now___11146 = (r0); + s.i___11149 = (0); + case 2: + s.tmp_1 = r0 = s.i___11149; + r0 = pxsim_Array__length(globals._pollEventQueue___4343); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.tmp_3 = r0 = s.arg0; - s.tmp_5 = Math_max__P130_mk(s); - r0 = (s.displayValue___9655 - s.change___9687); - s.tmp_5.arg0 = r0; - r0 = s.arg0.fields["target"]; - s.tmp_5.arg1 = r0; - s.callLocIdx = 1760; s.pc = 20; return s.tmp_5; - case 20: + if (!r0) { step = 11; continue; } + r0 = pxsim_Array__getAt(globals._pollEventQueue___4343, s.i___11149); + s.ev___11155 = (r0); + s.tmp_1 = if_condition_1_mk(s); + s.tmp_1.arg0 = s.ev___11155; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "condition"), 1); + s.callLocIdx = 29; s.pc = 13; return s.tmp_1; + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["condition"]; + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["condition"], 1); s.callLocIdx = 29; s.pc = 13; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 29; s.pc = 13; return s.tmp_1;; } + else { s.callLocIdx = 29; s.pc = 13; return s.tmp_1; } + } + case 13: r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 3: + r0 = s.ev___11155.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___11155.fields["start"]; + s.tmp_5 = r0; + r0 = (s.now___11146 - s.tmp_5); s.tmp_4 = r0; - r0 = (s.tmp_3).fields["displayValue"] = (s.tmp_4); - r0 = (s.arg0).fields["lastUpdate"] = (s.currTime___9672); + r0 = s.ev___11155.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: - case 7: - case 8: - r0 = s.arg0.fields["displayValue"]; - s.tmp_1 = r0; - r0 = (s.displayValue___9655 !== s.tmp_1); + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); + if (!r0) { step = 9; continue; } + r0 = s.ev___11155.fields["eid"]; + s.tmp_9 = r0; + r0 = s.ev___11155.fields["vid"]; + s.tmp_10 = r0; + r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10); + r0 = s.ev___11155.fields["once"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - s.tmp_2 = statusbars_StatusBar_updateDisplay__P4200_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 1761; s.pc = 21; return s.tmp_2; - case 21: + if (!r0) { step = 7; continue; } + s.tmp_1 = helpers_arraySplice__P100_mk(s); + s.tmp_1.arg0 = globals._pollEventQueue___4343; + s.tmp_1.arg1 = s.i___11149; + s.tmp_1.arg2 = 1; + s.callLocIdx = 30; s.pc = 14; return s.tmp_1; + case 14: r0 = s.retval; + r0 = (s.i___11149 - 1); + s.i___11149 = (r0); + case 7: + case 8: case 9: case 10: + r0 = (s.i___11149 + 1); + s.i___11149 = (r0); + { step = 2; continue; } case 11: + s.tmp_0 = pause__P413_mk(s); + s.tmp_0.arg0 = 50; + s.callLocIdx = 31; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + { step = 1; continue; } + case 12: + globals._pollEventQueue___4343 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_StatusBar_updateState__P4199.info = {"start":18795,"length":1067,"line":549,"column":8,"endLine":573,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"updateState","argumentNames":["this"]} +control_pollEvents__P4344.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]} -function statusbars_StatusBar_updateState__P4199_mk(s) { +function control_pollEvents__P4344_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_updateState__P4199, depth: s.depth + 1, + parent: s, fn: control_pollEvents__P4344, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14351,18 +15550,16 @@ function statusbars_StatusBar_updateState__P4199_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - target___9654: undefined, - displayValue___9655: undefined, - currTime___9672: undefined, - change___9687: undefined, - arg0: undefined, + now___11146: undefined, + i___11149: undefined, + ev___11155: undefined, } } -function statusbars_StatusBar_current__P4194(s) { +function control_PollEvent_constructor__P4341(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14374,30 +15571,47 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusBar__C4172_VT)) failedCast(r0); - r0 = s.arg0.fields["target"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, control_PollEvent__C4340_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() } } } -statusbars_StatusBar_current__P4194.info = {"start":15946,"length":57,"line":461,"column":8,"endLine":463,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"current","argumentNames":["this"]} -statusbars_StatusBar_current__P4194.isGetter = true; +control_PollEvent_constructor__P4341.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 statusbars_StatusBar_current__P4194_mk(s) { +function control_PollEvent_constructor__P4341_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_current__P4194, depth: s.depth + 1, + parent: s, fn: control_PollEvent_constructor__P4341, 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 statusbars_StatusBar_max__P4192(s) { +function control_onEvent__P391(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14407,32 +15621,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.ctx___11062 = 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, statusbars_StatusBar__C4172_VT)) failedCast(r0); - r0 = s.arg0.fields["_max"]; - return leaveAccessor(s, r0) + s.tmp_0 = control_eventContext__P408_mk(s); + s.callLocIdx = 51; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.ctx___11062 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___11062); + s.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__P405_mk(s); + s.tmp_0.arg0 = s.ctx___11062; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.arg1; + s.tmp_0.arg3 = s.arg2; + s.tmp_0.arg4 = s.arg3; + s.callLocIdx = 52; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 2: + r0 = undefined; + return leave(s, r0) default: oops() } } } -statusbars_StatusBar_max__P4192.info = {"start":15766,"length":51,"line":452,"column":8,"endLine":454,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"max","argumentNames":["this"]} -statusbars_StatusBar_max__P4192.isGetter = true; +control_onEvent__P391.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 statusbars_StatusBar_max__P4192_mk(s) { +function control_onEvent__P391_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_max__P4192, depth: s.depth + 1, + parent: s, fn: control_onEvent__P391, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + ctx___11062: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function StatusBarSprite_max__P4159(s) { +function control_eventContext__P408(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14442,51 +15687,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, StatusBarSprite__C4155_VT)) failedCast(r0); - s.tmp_1 = StatusBarSprite_applyChange__P6736_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = StatusBarSprite_max_inline__P10682; - s.callLocIdx = 1693; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___4369); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; + s.tmp_0 = r0 = globals.eventContexts___4369; + r0 = pxsim_Array__length(globals.eventContexts___4369); + 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 = 0; + r0 = undefined; case 2: // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.tmp_2; - return leaveAccessor(s, r0) + s.tmp_3 = r0; + r0 = s.tmp_3; + return leave(s, r0) default: oops() } } } -StatusBarSprite_max__P4159.info = {"start":3111,"length":77,"line":98,"column":4,"endLine":100,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"max","argumentNames":["this"]} -StatusBarSprite_max__P4159.isGetter = true; +control_eventContext__P408.info = {"start":7094,"length":136,"line":213,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]} -function StatusBarSprite_max__P4159_mk(s) { +function control_eventContext__P408_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_max__P4159, depth: s.depth + 1, + parent: s, fn: control_eventContext__P408, 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, + tmp_3: undefined, } } -function StatusBarSprite_max_inline__P10682(s) { +function control_EventContext_registerHandler__P405(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14496,29 +15732,113 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.h___11085 = undefined; + s.unnamed68___U1 = undefined; + s.unnamed69___U2 = undefined; + s.hn___11108 = 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.fields["_max"]; + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C395_VT)) failedCast(r0); + s.h___11085 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed68___U1 = (r0); + s.unnamed69___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed69___U2; + r0 = pxsim_Array__length(s.unnamed68___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 6; continue; } + r0 = pxsim_Array__getAt(s.unnamed68___U1, s.unnamed69___U2); + s.h___11085 = (r0); + r0 = s.h___11085.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___11085.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___11085).fields["flags"] = (s.arg4); + r0 = (s.h___11085).fields["handler"] = (s.arg3); + { step = 7; continue; } + case 4: + case 5: + r0 = (s.unnamed69___U2 + 1); + s.unnamed69___U2 = (r0); + { step = 1; continue; } + case 6: + s.unnamed68___U1 = (undefined); + r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C4361_VT); + s.tmp_0 = r0; + s.tmp_1 = control_EventHandler_constructor__P4364_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = s.arg2; + s.tmp_1.arg3 = s.arg3; + s.tmp_1.arg4 = s.arg4; + s.callLocIdx = 63; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; + s.hn___11108 = (s.tmp_0); + r0 = s.arg0.fields["handlers"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.hn___11108); + s.tmp_0 = control_EventHandler_register__P4362_mk(s); + s.tmp_0.arg0 = s.hn___11108; + s.callLocIdx = 64; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + case 7: + r0 = undefined; return leave(s, r0) default: oops() } } } -StatusBarSprite_max_inline__P10682.info = {"start":3163,"length":12,"line":99,"column":32,"endLine":99,"endColumn":44,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} +control_EventContext_registerHandler__P405.info = {"start":5760,"length":525,"line":173,"column":8,"endLine":186,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerHandler","argumentNames":["this","src","value","handler","flags"]} -function StatusBarSprite_max_inline__P10682_mk(s) { +function control_EventContext_registerHandler__P405_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_max_inline__P10682, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerHandler__P405, depth: s.depth + 1, pc: 0, retval: undefined, 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___11085: undefined, + unnamed68___U1: undefined, + unnamed69___U2: undefined, + hn___11108: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function StatusBarSprite_attachToSprite__P4161(s) { +function control_EventHandler_constructor__P4364(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14533,46 +15853,38 @@ 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, StatusBarSprite__C4155_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(4, StatusBarSprite_attachToSprite_inline__P10692); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg2); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.arg3); - s.tmp_1 = StatusBarSprite_applyChange__P6736_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1698; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; + if (!checkSubtype(r0, control_EventHandler__C4361_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() } } } -StatusBarSprite_attachToSprite__P4161.info = {"start":3741,"length":778,"line":116,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"attachToSprite","argumentNames":["this","toFollow","padding","offset"]} +control_EventHandler_constructor__P4364.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 StatusBarSprite_attachToSprite__P4161_mk(s) { +function control_EventHandler_constructor__P4364_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_attachToSprite__P4161, depth: s.depth + 1, + parent: s, fn: control_EventHandler_constructor__P4364, 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 StatusBarSprite_attachToSprite_inline__P10692(s) { +function control_EventHandler_register__P4362(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14586,97 +15898,33 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Sprite_setFlag__P2260_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = 512; - s.tmp_0.arg2 = true; - s.callLocIdx = 1696; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - r0 = (s.arg0).fields["spriteToFollow"] = (s.caps[1]); - r0 = s.arg0.fields["followPadding"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); + r0 = s.arg0; + if (!checkSubtype(r0, control_EventHandler__C4361_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, control_EventHandler_register_inline__P11129); 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.caps[2] !== undefined); - case 2: - // jmp value (already in 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 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 5; continue; } - s.tmp_3 = r0 = s.caps[2]; - r0 = pxsim_numops_toBool(s.tmp_3); - if (!r0) { step = 3; continue; } - r0 = s.tmp_3; - { step = 4; continue; } - case 3: - r0 = 0; - case 4: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = (s.arg0).fields["followPadding"] = (s.tmp_4); - case 5: - case 6: - r0 = s.arg0.fields["followOffset"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); - 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.caps[2] !== undefined); - case 8: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 11; continue; } - s.tmp_3 = r0 = s.caps[3]; - r0 = pxsim_numops_toBool(s.tmp_3); - if (!r0) { step = 9; continue; } - r0 = s.tmp_3; - { step = 10; continue; } - case 9: - r0 = 0; - case 10: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = (s.arg0).fields["followOffset"] = (s.tmp_4); - case 11: - case 12: - r0 = pxsim_numops_toBoolDecr(s.caps[1]); - if (!r0) { step = 13; continue; } - s.tmp_0 = statusbars_StatusBar_positionNextTo__P4188_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - s.tmp_0.arg2 = s.caps[1]; - s.callLocIdx = 1697; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - case 13: - case 14: + 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() } } } -StatusBarSprite_attachToSprite_inline__P10692.info = {"start":3836,"length":675,"line":117,"column":25,"endLine":131,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} +control_EventHandler_register__P4362.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} -function StatusBarSprite_attachToSprite_inline__P10692_mk(s) { +function control_EventHandler_register__P4362_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_attachToSprite_inline__P10692, depth: s.depth + 1, + parent: s, fn: control_EventHandler_register__P4362, depth: s.depth + 1, pc: 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, } } @@ -14684,7 +15932,7 @@ function StatusBarSprite_attachToSprite_inline__P10692_mk(s) { -function statusbars_StatusBar_positionNextTo__P4188(s) { +function control_EventHandler_register_inline__P11129(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14694,259 +15942,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.padding___10730 = undefined; - s.alignment___10733 = undefined; - s.position___10736 = undefined; - s.toFollowIsRelativeToCamera___10762 = 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, statusbars_StatusBar__C4172_VT)) failedCast(r0); - r0 = s.arg0.fields["followPadding"]; - s.padding___10730 = (r0); - r0 = s.arg0.fields["followOffset"]; - s.alignment___10733 = (r0); - r0 = s.arg0.fields["explicitlySetDirection"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 != null); + r0 = s.caps[0].fields["handler"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["explicitlySetDirection"]; - { step = 4; continue; } - case 1: - r0 = s.arg0.fields["_barHeight"]; - s.tmp_3 = r0; - r0 = s.arg0.fields["_barWidth"]; - s.tmp_4 = r0; - r0 = (s.tmp_3 > s.tmp_4); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 2; continue; } - r0 = 0; - { step = 3; continue; } - case 2: - r0 = 1; + s.tmp_1 = if_handler_1_mk(s); + s.tmp_1.arg0 = s.caps[0]; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "handler"), 1); + s.callLocIdx = 53; s.pc = 3; return s.tmp_1; + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["handler"]; + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["handler"], 1); s.callLocIdx = 53; s.pc = 3; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 53; s.pc = 3; return s.tmp_1;; } + else { s.callLocIdx = 53; s.pc = 3; return s.tmp_1; } + } case 3: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = s.tmp_5; - case 4: - // jmp value (already in r0) - s.tmp_6 = r0; - s.position___10736 = (s.tmp_6); - r0 = s.arg2.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["flags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 & 32); - 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_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 7; continue; } - s.tmp_6 = Sprite_destroy__P2269_mk(s); - s.tmp_6.arg0 = s.arg1; - s.tmp_6.arg1 = undefined; - s.tmp_6.arg2 = undefined; - s.callLocIdx = 1707; s.pc = 19; return s.tmp_6; - case 19: - r0 = s.retval; - case 7: - case 8: - r0 = s.arg2.fields["flags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 & 512); - 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); - s.toFollowIsRelativeToCamera___10762 = (r0); - r0 = s.arg1.fields["flags"]; - s.tmp_6 = r0; - r0 = (s.tmp_6 & 512); - 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); - s.tmp_1 = r0; - r0 = (s.tmp_1 != s.toFollowIsRelativeToCamera___10762); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - s.tmp_7 = Sprite_setFlag__P2260_mk(s); - s.tmp_7.arg0 = s.arg1; - s.tmp_7.arg1 = 512; - s.tmp_7.arg2 = s.toFollowIsRelativeToCamera___10762; - s.callLocIdx = 1708; s.pc = 20; return s.tmp_7; - case 20: - r0 = s.retval; - case 9: - case 10: - r0 = (s.position___10736 === 0); - 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.position___10736 === 2); - case 12: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 15; continue; } - s.tmp_2 = Sprite_y__P2198_mk(s); - s.tmp_2.arg0 = s.arg1; - s.tmp_4 = Sprite_y__P2197_mk(s); - s.tmp_4.arg0 = s.arg2; - s.callLocIdx = 1709; s.pc = 22; return s.tmp_4; - case 22: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 + s.alignment___10733); - s.tmp_2.arg1 = r0; - s.callLocIdx = 1710; s.pc = 21; return s.tmp_2; - case 21: - r0 = s.retval; - r0 = (s.position___10736 === 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - s.tmp_1 = Sprite_left__P2241_mk(s); - s.tmp_1.arg0 = s.arg1; - s.tmp_3 = Sprite_right__P2242_mk(s); - s.tmp_3.arg0 = s.arg2; - s.callLocIdx = 1711; s.pc = 24; return s.tmp_3; - case 24: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.padding___10730); - s.tmp_1.arg1 = r0; - s.callLocIdx = 1712; s.pc = 23; return s.tmp_1; - case 23: - r0 = s.retval; - { step = 14; continue; } - case 13: - s.tmp_0 = Sprite_right__P2243_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_2 = Sprite_left__P2240_mk(s); - s.tmp_2.arg0 = s.arg2; - s.callLocIdx = 1713; s.pc = 26; return s.tmp_2; - case 26: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 - s.padding___10730); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1714; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - case 14: - { step = 18; continue; } - case 15: - s.tmp_0 = Sprite_x__P2196_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_2 = Sprite_x__P2195_mk(s); - s.tmp_2.arg0 = s.arg2; - s.callLocIdx = 1715; s.pc = 28; return s.tmp_2; - case 28: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 + s.alignment___10733); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1716; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - r0 = (s.position___10736 === 3); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - s.tmp_1 = Sprite_top__P2245_mk(s); - s.tmp_1.arg0 = s.arg1; - s.tmp_3 = Sprite_bottom__P2246_mk(s); - s.tmp_3.arg0 = s.arg2; - s.callLocIdx = 1717; s.pc = 30; return s.tmp_3; - case 30: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.padding___10730); - s.tmp_1.arg1 = r0; - s.callLocIdx = 1718; s.pc = 29; return s.tmp_1; - case 29: - r0 = s.retval; - { step = 17; continue; } - case 16: - s.tmp_0 = Sprite_bottom__P2247_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_2 = Sprite_top__P2244_mk(s); - s.tmp_2.arg0 = s.arg2; - s.callLocIdx = 1719; s.pc = 32; return s.tmp_2; - case 32: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 - s.padding___10730); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1720; s.pc = 31; return s.tmp_0; - case 31: r0 = s.retval; - case 17: - case 18: + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_StatusBar_positionNextTo__P4188.info = {"start":13999,"length":1505,"line":407,"column":8,"endLine":437,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"positionNextTo","argumentNames":["this","status","target"]} +control_EventHandler_register_inline__P11129.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function statusbars_StatusBar_positionNextTo__P4188_mk(s) { +function control_EventHandler_register_inline__P11129_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_positionNextTo__P4188, depth: s.depth + 1, + parent: s, fn: control_EventHandler_register_inline__P11129, depth: s.depth + 1, pc: 0, retval: undefined, 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, - padding___10730: undefined, - alignment___10733: undefined, - position___10736: undefined, - toFollowIsRelativeToCamera___10762: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function Sprite_bottom__P2247(s) { +function game_onUpdate__P2811(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14958,49 +15992,52 @@ 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__C2182_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P2245_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = Sprite_height__P2239_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 441; s.pc = 2; return s.tmp_3; + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 3; continue; } + case 1: case 2: + s.tmp_2 = control_EventContext_registerFrameHandler__P403_mk(s); + s.tmp_3 = game_eventContext__P2795_mk(s); + s.callLocIdx = 1345; 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.arg1 = r0; - s.callLocIdx = 442; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 20; + s.tmp_2.arg2 = s.arg0; + s.callLocIdx = 1346; s.pc = 4; return s.tmp_2; + case 4: r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_bottom__P2247.info = {"start":12204,"length":73,"line":440,"column":4,"endLine":442,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this","value"]} +game_onUpdate__P2811.info = {"start":405,"length":153,"line":15,"column":4,"endLine":18,"endColumn":5,"fileName":"pxt_modules/game/gameutil.ts","functionName":"onUpdate","argumentNames":["a"]} -function Sprite_bottom__P2247_mk(s) { +function game_onUpdate__P2811_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_bottom__P2247, depth: s.depth + 1, + parent: s, fn: game_onUpdate__P2811, depth: s.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_bottom__P2246(s) { +function music_Melody_constructor__P1629(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15012,46 +16049,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__C2182_VT)) failedCast(r0); - s.tmp_1 = Sprite_top__P2244_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 439; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - s.tmp_0 = r0; - s.tmp_3 = Sprite_height__P2239_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 440; s.pc = 2; return s.tmp_3; - case 2: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, music_Melody__C1626_VT)) failedCast(r0); + r0 = (s.arg0).fields["_text"] = (s.arg1); + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_bottom__P2246.info = {"start":12052,"length":59,"line":435,"column":4,"endLine":437,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this"]} -Sprite_bottom__P2246.isGetter = true; +music_Melody_constructor__P1629.info = {"start":6327,"length":67,"line":199,"column":8,"endLine":201,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","text"]} -function Sprite_bottom__P2246_mk(s) { +function music_Melody_constructor__P1629_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_bottom__P2246, depth: s.depth + 1, + parent: s, fn: music_Melody_constructor__P1629, depth: s.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_right__P2243(s) { +function music_setVolume__P1620(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15063,49 +16086,50 @@ 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__C2182_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P2241_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = Sprite_width__P2238_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 433; s.pc = 2; return s.tmp_3; - case 2: + s.tmp_0 = Math_clamp__P127_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_0.arg1 = 255; + r0 = (s.arg0 | 0); + s.tmp_0.arg2 = r0; + s.callLocIdx = 71; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 434; s.pc = 1; return s.tmp_0; + globals.globalVolume___4400 = (r0); + r0 = (globals.globalVolume___4400 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 1; + { step = 2; continue; } case 1: - r0 = s.retval; + r0 = 0; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = undefined; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_right__P2243.info = {"start":11367,"length":71,"line":410,"column":4,"endLine":412,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this","value"]} +music_setVolume__P1620.info = {"start":1533,"length":153,"line":51,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"setVolume","argumentNames":["volume"]} -function Sprite_right__P2243_mk(s) { +function music_setVolume__P1620_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P2243, depth: s.depth + 1, + parent: s, fn: music_setVolume__P1620, depth: s.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_right__P2242(s) { +function music_enableAmp__P4403(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15119,36 +16143,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - s.tmp_1 = Sprite_left__P2240_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 431; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - s.tmp_0 = r0; - s.tmp_3 = Sprite_width__P2238_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 432; s.pc = 2; return s.tmp_3; - case 2: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - return leaveAccessor(s, r0) + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_right__P2242.info = {"start":11218,"length":57,"line":405,"column":4,"endLine":407,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this"]} -Sprite_right__P2242.isGetter = true; +music_enableAmp__P4403.info = {"start":944,"length":64,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"enableAmp","argumentNames":["en"]} -function Sprite_right__P2242_mk(s) { +function music_enableAmp__P4403_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P2242, depth: s.depth + 1, + parent: s, fn: music_enableAmp__P4403, depth: s.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, } } @@ -15156,7 +16161,7 @@ function Sprite_right__P2242_mk(s) { -function Sprite_setFlag__P2260(s) { +function StatusBarSprite_max__P4160(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15169,58 +16174,41 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 1; continue; } - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - { step = 2; continue; } + if (!checkSubtype(r0, StatusBarSprite__C4155_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, StatusBarSprite_max_inline__P11247); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + s.tmp_1 = StatusBarSprite_applyChange__P6776_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1792; s.pc = 1; return s.tmp_1; case 1: - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["flags"]; - s.tmp_4 = r0; - r0 = (~ s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 | s.arg1); - s.tmp_2 = r0; - r0 = (~ s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_setFlag__P2260.info = {"start":20205,"length":130,"line":676,"column":4,"endLine":679,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setFlag","argumentNames":["this","flag","on"]} +StatusBarSprite_max__P4160.info = {"start":3194,"length":95,"line":102,"column":4,"endLine":106,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"max","argumentNames":["this","v"]} -function Sprite_setFlag__P2260_mk(s) { +function StatusBarSprite_max__P4160_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setFlag__P2260, depth: s.depth + 1, + parent: s, fn: StatusBarSprite_max__P4160, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function Sprite_vx__P2200(s) { +function StatusBarSprite_max_inline__P11247(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15232,40 +16220,34 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); + s.tmp_0 = statusbars_StatusBar_max__P4193_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + s.callLocIdx = 1791; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_vx__P2200.info = {"start":3426,"length":51,"line":137,"column":4,"endLine":139,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this","v"]} +StatusBarSprite_max_inline__P11247.info = {"start":3240,"length":41,"line":103,"column":25,"endLine":105,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} -function Sprite_vx__P2200_mk(s) { +function StatusBarSprite_max_inline__P11247_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P2200, depth: s.depth + 1, + parent: s, fn: StatusBarSprite_max_inline__P11247, 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_vx__P2199(s) { +function StatusBarSprite_applyChange__P6776(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15275,35 +16257,67 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.sb___12241 = undefined; + s.output___12246 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - r0 = s.arg0.fields["_vx"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, StatusBarSprite__C4155_VT)) failedCast(r0); + r0 = s.arg0.fields["_statusBar"]; + s.sb___12241 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sb___12241); + if (!r0) { step = 1; continue; } + s.tmp_0 = lambda_2_mk(s); + s.tmp_0.argL = s.arg1; + s.tmp_0.arg0 = s.sb___12241; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1796; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.output___12246 = (r0); + s.tmp_0 = statusbars_StatusBar_updateDisplay__P4200_mk(s); + s.tmp_0.arg0 = s.sb___12241; + s.callLocIdx = 1797; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = Sprite_setImage__P2232_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = s.sb___12241.fields["_image"]; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1799; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + r0 = s.output___12246; + { step = 3; continue; } + case 1: + case 2: + r0 = undefined; + case 3: + return leave(s, r0) default: oops() } } } -Sprite_vx__P2199.info = {"start":3264,"length":60,"line":132,"column":4,"endLine":134,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this"]} -Sprite_vx__P2199.isGetter = true; +StatusBarSprite_applyChange__P6776.info = {"start":11236,"length":301,"line":310,"column":4,"endLine":321,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"applyChange","argumentNames":["this","action"]} -function Sprite_vx__P2199_mk(s) { +function StatusBarSprite_applyChange__P6776_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P2199, depth: s.depth + 1, + parent: s, fn: StatusBarSprite_applyChange__P6776, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + sb___12241: undefined, + output___12246: undefined, arg0: undefined, + arg1: undefined, } } -function statusbars_create__P4211(s) { +function statusbars_StatusBar_updateDisplay__P4200(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15313,215 +16327,584 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.onColor___10883 = undefined; - s.offColor___10884 = undefined; - s.drainColor___10885 = undefined; - s.sb___10898 = undefined; - s.output___10907 = undefined; - s.cs___10914 = undefined; - s.handler___10960 = undefined; + s.fillWidth___11349 = undefined; + s.fillHeight___11357 = undefined; + s.barIsVertical___11365 = undefined; + s.borderColor___11368 = undefined; + s.barLeft___11378 = undefined; + s.barTop___11379 = undefined; + s.textWidth___11381 = undefined; + s.textHeight___11389 = undefined; + s.labelEnd___11393 = undefined; + s.textX___11398 = undefined; + s.textY___11399 = undefined; + s.showTarget___11504 = undefined; + s.invertDir___11511 = undefined; + s.drainPercent___11518 = undefined; + s.dw___11528 = undefined; + s.dh___11537 = undefined; + s.dx___11546 = undefined; + s.dy___11560 = undefined; + s.percent___11583 = undefined; + s.tw___11591 = undefined; + s.th___11600 = undefined; + s.tx___11609 = undefined; + s.ty___11623 = undefined; + s.handler___11646 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.onColor___10883 = (7); - s.offColor___10884 = (2); - s.drainColor___10885 = (3); - r0 = (s.arg2 === globals.Energy___4152); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.onColor___10883 = (5); - s.offColor___10884 = (11); - s.drainColor___10885 = (4); - { step = 4; continue; } - case 1: - r0 = (s.arg2 === globals.Magic___4153); + r0 = s.arg0; + if (!checkSubtype(r0, statusbars_StatusBar__C4172_VT)) failedCast(r0); + r0 = s.arg0.fields["_image"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.onColor___10883 = (8); - s.offColor___10884 = (11); - s.drainColor___10885 = (9); - case 2: - case 3: - case 4: - r0 = pxsim_pxtcore_mkClassInstance(statusbars_StatusBar__C4172_VT); + r0 = pxsim_ImageMethods.fill(s.tmp_0, 0); + r0 = s.arg0.fields["_barWidth"]; s.tmp_0 = r0; - s.tmp_1 = statusbars_StatusBar_constructor__P4183_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.onColor___10883; - s.tmp_1.arg4 = s.offColor___10884; - s.tmp_1.arg5 = s.drainColor___10885; - s.tmp_1.arg6 = 100; - s.tmp_1.arg7 = s.arg2; - s.callLocIdx = 1785; s.pc = 11; return s.tmp_1; - case 11: - r0 = s.retval; - s.sb___10898 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(StatusBarSprite__C4155_VT); + r0 = s.arg0.fields["borderWidth"]; + s.tmp_2 = r0; + r0 = (2 * s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.fillWidth___11349 = (r0); + r0 = s.arg0.fields["_barHeight"]; s.tmp_0 = r0; - s.tmp_1 = StatusBarSprite_constructor__P4156_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.sb___10898; - s.callLocIdx = 1786; s.pc = 12; return s.tmp_1; - case 12: - r0 = s.retval; - s.output___10907 = (s.tmp_0); - s.tmp_0 = Sprite_setKind__P2249_mk(s); - s.tmp_0.arg0 = s.output___10907; - s.tmp_0.arg1 = globals.StatusBar___4147; - s.callLocIdx = 1787; s.pc = 13; return s.tmp_0; - case 13: + r0 = s.arg0.fields["borderWidth"]; + s.tmp_2 = r0; + r0 = (2 * s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.fillHeight___11357 = (r0); + r0 = s.arg0.fields["_barHeight"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["_barWidth"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 > s.tmp_1); + s.barIsVertical___11365 = (r0); + s.tmp_1 = statusbars_util_isNullOrUndefined__P6817_mk(s); + r0 = s.arg0.fields["borderColor"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 1861; s.pc = 53; return s.tmp_1; + case 53: r0 = s.retval; - s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1788; s.pc = 14; return s.tmp_0; - case 14: + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["offColor"]; + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["borderColor"]; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + s.borderColor___11368 = (s.tmp_2); + s.barLeft___11378 = (0); + s.barTop___11379 = (0); + r0 = s.arg0.fields["_label"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 17; continue; } + s.tmp_2 = if_charWidth_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_2.arg0 = r0; + 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 = 1863; s.pc = 54; return s.tmp_2; } + } + case 54: r0 = s.retval; - s.cs___10914 = (r0); - s.tmp_0 = PhysicsEngine__C2352_v0_2_mk(s); - r0 = s.cs___10914.fields["physicsEngine"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_label"]; + s.tmp_4 = r0; + r0 = pxsim_String_.length(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_1 * s.tmp_3); + s.textWidth___11381 = (r0); + s.tmp_0 = if_charHeight_1_mk(s); + r0 = s.arg0.fields["font"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.output___10907; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2352_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.addSprite; - s.pc = 15; return s.tmp_0; - case 15: + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "charHeight"); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["charHeight"]; + if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["charHeight"]; } + else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } + else { s.callLocIdx = 1865; s.pc = 55; return s.tmp_0; } + } + case 55: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P10925); + s.textHeight___11389 = (r0); + r0 = s.arg0.fields["flags"]; s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg2); - r0 = pxsim_pxtcore_mkAction(1, statusbars_create_inline__P10932); + r0 = (s.tmp_0 & 2); + s.labelEnd___11393 = (r0); + s.textX___11398 = (0); + s.textY___11399 = (0); + r0 = pxsim_numops_toBoolDecr(s.barIsVertical___11365); + if (!r0) { step = 9; continue; } + r0 = pxsim_numops_toBoolDecr(s.labelEnd___11393); + if (!r0) { step = 3; continue; } + r0 = s.arg0.fields["_barHeight"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 1); + s.textY___11399 = (r0); + { step = 4; continue; } + case 3: + s.tmp_0 = r0 = s.barTop___11379; + r0 = (s.textHeight___11389 + 1); s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.output___10907); - s.tmp_2 = helpers_arrayForEach__P109_mk(s); - s.tmp_3 = helpers_arrayFilter__P110_mk(s); - r0 = s.cs___10914.fields["createdHandlers"]; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 1789; s.pc = 17; return s.tmp_3; - case 17: - r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 1791; s.pc = 16; return s.tmp_2; + r0 = (s.tmp_0 + s.tmp_1); + s.barTop___11379 = (r0); + case 4: + r0 = s.arg0.fields["_barWidth"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > s.textWidth___11381); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.arg0.fields["_barWidth"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 - s.textWidth___11381); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.textX___11398 = (r0); + { step = 8; continue; } + case 5: + r0 = s.arg0.fields["_barWidth"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 < s.textWidth___11381); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + r0 = s.arg0.fields["_barWidth"]; + s.tmp_4 = r0; + r0 = (s.textWidth___11381 - s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 - 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.barLeft___11378 = (r0); + case 6: + case 7: + case 8: + { step = 16; continue; } + case 9: + r0 = pxsim_numops_toBoolDecr(s.labelEnd___11393); + if (!r0) { step = 10; continue; } + r0 = s.arg0.fields["_barWidth"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 1); + s.textX___11398 = (r0); + { step = 11; continue; } + case 10: + r0 = (s.barLeft___11378 + s.textWidth___11381); + s.barLeft___11378 = (r0); + case 11: + r0 = s.arg0.fields["_barHeight"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > s.textHeight___11389); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + r0 = s.arg0.fields["_barHeight"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 - s.textHeight___11389); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.textY___11399 = (r0); + { step = 15; continue; } + case 12: + r0 = s.arg0.fields["_barHeight"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 < s.textHeight___11389); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = s.arg0.fields["_barHeight"]; + s.tmp_3 = r0; + r0 = (s.textHeight___11389 - s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.barTop___11379 = (r0); + case 13: + case 14: + case 15: case 16: + s.tmp_0 = helpers_imagePrint__P1835_mk(s); + r0 = s.arg0.fields["_image"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["_label"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.textX___11398; + s.tmp_0.arg3 = s.textY___11399; + r0 = s.arg0.fields["labelColor"]; + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["font"]; + s.tmp_0.arg5 = r0; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1868; s.pc = 56; return s.tmp_0; + case 56: r0 = s.retval; - r0 = (s.sb___10898).fields["sprite"] = (s.output___10907); - s.tmp_0 = Sprite_setFlag__P2260_mk(s); - s.tmp_0.arg0 = s.output___10907; - s.tmp_0.arg1 = 512; - s.tmp_0.arg2 = true; - s.callLocIdx = 1792; s.pc = 18; return s.tmp_0; + case 17: case 18: + s.tmp_0 = helpers_imageFillRect__P1803_mk(s); + r0 = s.arg0.fields["_image"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.barLeft___11378; + s.tmp_0.arg2 = s.barTop___11379; + r0 = s.arg0.fields["_barWidth"]; + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["_barHeight"]; + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.borderColor___11368; + s.callLocIdx = 1870; s.pc = 57; return s.tmp_0; + case 57: r0 = s.retval; - s.tmp_0 = Sprite_setFlag__P2260_mk(s); - s.tmp_0.arg0 = s.output___10907; - s.tmp_0.arg1 = 7168; - s.tmp_0.arg2 = true; - s.callLocIdx = 1793; s.pc = 19; return s.tmp_0; - case 19: + s.tmp_0 = helpers_imageFillRect__P1803_mk(s); + r0 = s.arg0.fields["_image"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["borderWidth"]; + s.tmp_1 = r0; + r0 = (s.barLeft___11378 + s.tmp_1); + s.tmp_0.arg1 = r0; + r0 = s.arg0.fields["borderWidth"]; + s.tmp_2 = r0; + r0 = (s.barTop___11379 + s.tmp_2); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.fillWidth___11349; + s.tmp_0.arg4 = s.fillHeight___11357; + r0 = s.arg0.fields["offColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 1872; s.pc = 58; return s.tmp_0; + case 58: r0 = s.retval; - s.tmp_1 = Sprite_data__P2217_mk(s); - s.tmp_1.arg0 = s.output___10907; - s.callLocIdx = 1794; s.pc = 20; return s.tmp_1; - case 20: + r0 = s.arg0.fields["displayValue"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 45; continue; } + r0 = s.arg0.fields["flags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 16); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.showTarget___11504 = (r0); + r0 = s.arg0.fields["flags"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 & 8); + s.invertDir___11511 = (r0); + r0 = pxsim_numops_toBoolDecr(s.showTarget___11504); + if (!r0) { step = 31; continue; } + s.tmp_0 = Math_constrain__P284_mk(s); + r0 = s.arg0.fields["displayValue"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_max"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 / s.tmp_2); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 1; + s.callLocIdx = 1873; s.pc = 59; return s.tmp_0; + case 59: r0 = s.retval; + s.drainPercent___11518 = (r0); + r0 = pxsim_numops_toBoolDecr(s.barIsVertical___11365); + if (!r0) { step = 19; continue; } + r0 = s.fillWidth___11349; + { step = 20; continue; } + case 19: + r0 = (s.fillWidth___11349 * s.drainPercent___11518); s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_0, globals.STATUS_BAR_DATA_KEY___6737, s.sb___10898); - s.tmp_0 = if_z_2_mk(s); - s.tmp_0.arg0 = s.output___10907; - s.tmp_0.arg1 = 95; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "z", s.tmp_0.arg1); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; - if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } - else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } - else { s.callLocIdx = 1795; s.pc = 21; return s.tmp_0; } - } + r0 = pxsim.Math_.round(s.tmp_0); + case 20: + // jmp value (already in r0) + s.tmp_1 = r0; + s.dw___11528 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.barIsVertical___11365); + if (!r0) { step = 21; continue; } + r0 = (s.fillHeight___11357 * s.drainPercent___11518); + s.tmp_0 = r0; + r0 = pxsim.Math_.round(s.tmp_0); + { step = 22; continue; } case 21: - r0 = s.retval; - s.tmp_0 = statusbars_init__P6770_mk(s); - s.tmp_0.arg0 = s.output___10907; - s.callLocIdx = 1796; s.pc = 22; return s.tmp_0; + r0 = s.fillHeight___11357; case 22: - r0 = s.retval; - s.tmp_1 = statusbars_getPostProcessHandlers__P6776_mk(s); - s.callLocIdx = 1797; s.pc = 23; return s.tmp_1; + // jmp value (already in r0) + s.tmp_1 = r0; + s.dh___11537 = (s.tmp_1); + s.tmp_0 = r0 = s.barIsVertical___11365; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 23; continue; } + r0 = s.tmp_0; + { step = 24; continue; } case 23: + r0 = pxsim_numops_toBoolDecr(s.invertDir___11511); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + case 24: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 25; continue; } + r0 = 0; + { step = 26; continue; } + case 25: + r0 = (s.fillWidth___11349 - s.dw___11528); + case 26: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = s.arg0.fields["borderWidth"]; + s.tmp_5 = r0; + r0 = (s.barLeft___11378 + s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_4 + s.tmp_3); + s.dx___11546 = (r0); + s.tmp_0 = r0 = s.barIsVertical___11365; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 27; continue; } + r0 = s.tmp_0; + { step = 28; continue; } + case 27: + r0 = pxsim_numops_toBoolDecr(s.invertDir___11511); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + case 28: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 29; continue; } + r0 = (s.fillHeight___11357 - s.dh___11537); + { step = 30; continue; } + case 29: + r0 = 0; + case 30: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = s.arg0.fields["borderWidth"]; + s.tmp_5 = r0; + r0 = (s.barTop___11379 + s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_4 + s.tmp_3); + s.dy___11560 = (r0); + s.tmp_0 = helpers_imageFillRect__P1803_mk(s); + r0 = s.arg0.fields["_image"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.dx___11546; + s.tmp_0.arg2 = s.dy___11560; + s.tmp_0.arg3 = s.dw___11528; + s.tmp_0.arg4 = s.dh___11537; + r0 = s.arg0.fields["drainColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 1875; s.pc = 60; return s.tmp_0; + case 60: + r0 = s.retval; + case 31: + case 32: + s.tmp_0 = Math_constrain__P284_mk(s); + r0 = s.arg0.fields["target"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_max"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 / s.tmp_2); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 1; + s.callLocIdx = 1876; s.pc = 61; return s.tmp_0; + case 61: r0 = s.retval; + s.percent___11583 = (r0); + r0 = pxsim_numops_toBoolDecr(s.barIsVertical___11365); + if (!r0) { step = 33; continue; } + r0 = s.fillWidth___11349; + { step = 34; continue; } + case 33: + r0 = (s.fillWidth___11349 * s.percent___11583); + s.tmp_0 = r0; + r0 = pxsim.Math_.round(s.tmp_0); + case 34: + // jmp value (already in r0) + s.tmp_1 = r0; + s.tw___11591 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.barIsVertical___11365); + if (!r0) { step = 35; continue; } + r0 = (s.fillHeight___11357 * s.percent___11583); s.tmp_0 = r0; + r0 = pxsim.Math_.round(s.tmp_0); + { step = 36; continue; } + case 35: + r0 = s.fillHeight___11357; + case 36: + // jmp value (already in r0) + s.tmp_1 = r0; + s.th___11600 = (s.tmp_1); + s.tmp_0 = r0 = s.barIsVertical___11365; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 5; continue; } + if (!r0) { step = 37; continue; } r0 = s.tmp_0; - { step = 6; continue; } - case 5: + { step = 38; continue; } + case 37: + r0 = pxsim_numops_toBoolDecr(s.invertDir___11511); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + case 38: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 39; continue; } + r0 = 0; + { step = 40; continue; } + case 39: + r0 = (s.fillWidth___11349 - s.tw___11591); + case 40: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = s.arg0.fields["borderWidth"]; + s.tmp_5 = r0; + r0 = (s.barLeft___11378 + s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_4 + s.tmp_3); + s.tx___11609 = (r0); + s.tmp_0 = r0 = s.barIsVertical___11365; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 41; continue; } + r0 = s.tmp_0; + { step = 42; continue; } + case 41: + r0 = pxsim_numops_toBoolDecr(s.invertDir___11511); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + case 42: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 43; continue; } + r0 = (s.fillHeight___11357 - s.th___11600); + { step = 44; continue; } + case 43: + r0 = 0; + case 44: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = s.arg0.fields["borderWidth"]; + s.tmp_5 = r0; + r0 = (s.barTop___11379 + s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_4 + s.tmp_3); + s.ty___11623 = (r0); + s.tmp_0 = helpers_imageFillRect__P1803_mk(s); + r0 = s.arg0.fields["_image"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.tx___11609; + s.tmp_0.arg2 = s.ty___11623; + s.tmp_0.arg3 = s.tw___11591; + s.tmp_0.arg4 = s.th___11600; + r0 = s.arg0.fields["onColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 1878; s.pc = 62; return s.tmp_0; + case 62: + r0 = s.retval; + case 45: + case 46: + s.tmp_1 = statusbars_getPostProcessHandlers__P6816_mk(s); + s.callLocIdx = 1879; s.pc = 63; return s.tmp_1; + case 63: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 47; continue; } + r0 = s.tmp_0; + { step = 48; continue; } + case 47: r0 = pxsim_Array__mk(); - case 6: + case 48: // jmp value (already in r0) s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, s.arg2); - s.handler___10960 = (r0); - s.tmp_0 = r0 = s.output___10907; + r0 = s.arg0.fields["kind"]; + s.tmp_3 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); + s.handler___11646 = (r0); + r0 = s.arg0.fields["sprite"]; + s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 7; continue; } + if (r0) { step = 49; continue; } r0 = s.tmp_0; - { step = 8; continue; } - case 7: - r0 = s.handler___10960; - case 8: + { step = 50; continue; } + case 49: + r0 = s.handler___11646; + case 50: // jmp value (already in r0) s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 9; continue; } + if (!r0) { step = 51; continue; } s.tmp_2 = lambda_3_mk(s); - s.tmp_2.argL = s.handler___10960; - s.tmp_2.arg0 = s.output___10907; - r0 = s.output___10907.fields["_image"]; + s.tmp_2.argL = s.handler___11646; + r0 = s.arg0.fields["sprite"]; + s.tmp_2.arg0 = r0; + r0 = s.arg0.fields["_image"]; s.tmp_2.arg1 = r0; setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 1799; s.pc = 24; return s.tmp_2; - case 24: + s.callLocIdx = 1881; s.pc = 64; return s.tmp_2; + case 64: r0 = s.retval; - case 9: - case 10: - r0 = s.output___10907; + case 51: + case 52: + r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_create__P4211.info = {"start":26256,"length":1475,"line":747,"column":4,"endLine":801,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"create","argumentNames":["width","height","kind"]} +statusbars_StatusBar_updateDisplay__P4200.info = {"start":19872,"length":4237,"line":575,"column":8,"endLine":676,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"updateDisplay","argumentNames":["this"]} -function statusbars_create__P4211_mk(s) { +function statusbars_StatusBar_updateDisplay__P4200_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_create__P4211, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_updateDisplay__P4200, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - onColor___10883: undefined, - offColor___10884: undefined, - drainColor___10885: undefined, - sb___10898: undefined, - output___10907: undefined, - cs___10914: undefined, - handler___10960: undefined, + tmp_4: undefined, + tmp_5: undefined, + fillWidth___11349: undefined, + fillHeight___11357: undefined, + barIsVertical___11365: undefined, + borderColor___11368: undefined, + barLeft___11378: undefined, + barTop___11379: undefined, + textWidth___11381: undefined, + textHeight___11389: undefined, + labelEnd___11393: undefined, + textX___11398: undefined, + textY___11399: undefined, + showTarget___11504: undefined, + invertDir___11511: undefined, + drainPercent___11518: undefined, + dw___11528: undefined, + dh___11537: undefined, + dx___11546: undefined, + dy___11560: undefined, + percent___11583: undefined, + tw___11591: undefined, + th___11600: undefined, + tx___11609: undefined, + ty___11623: undefined, + handler___11646: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function forEach_inline__P10925(s) { +function statusbars_util_isNullOrUndefined__P6817(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15535,20 +16918,30 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0.fields["kind"]; + r0 = (s.arg0 === undefined); s.tmp_0 = r0; - r0 = (s.tmp_0 == s.caps[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 === null); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -forEach_inline__P10925.info = {"start":27245,"length":19,"line":784,"column":20,"endLine":784,"endColumn":39,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["h"]} +statusbars_util_isNullOrUndefined__P6817.info = {"start":33748,"length":126,"line":964,"column":8,"endLine":966,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"isNullOrUndefined","argumentNames":["v"]} -function forEach_inline__P10925_mk(s) { +function statusbars_util_isNullOrUndefined__P6817_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P10925, depth: s.depth + 1, + parent: s, fn: statusbars_util_isNullOrUndefined__P6817, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -15556,7 +16949,7 @@ function forEach_inline__P10925_mk(s) { -function statusbars_create_inline__P10932(s) { +function statusbars_getPostProcessHandlers__P6816(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15566,44 +16959,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - 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 = 1790; 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 = 1790; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1790; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 1790; s.pc = 1; return s.tmp_0; } - } + s.tmp_0 = statusbars_getSceneData__P6812_mk(s); + s.tmp_0.arg0 = globals.POST_PROCESS_HANDLERS_KEY___6799; + s.callLocIdx = 1914; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_create_inline__P10932.info = {"start":27287,"length":22,"line":785,"column":21,"endLine":785,"endColumn":43,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["h"]} +statusbars_getPostProcessHandlers__P6816.info = {"start":33574,"length":143,"line":959,"column":4,"endLine":961,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getPostProcessHandlers","argumentNames":[]} -function statusbars_create_inline__P10932_mk(s) { +function statusbars_getPostProcessHandlers__P6816_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_create_inline__P10932, depth: s.depth + 1, + parent: s, fn: statusbars_getPostProcessHandlers__P6816, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, } } -function statusbars_init__P6770(s) { +function statusbars_getSceneData__P6812(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15613,65 +16991,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.managedSprites___10977 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = statusbars_getManagedSprites__P6773_mk(s); - s.callLocIdx = 1803; s.pc = 3; return s.tmp_0; - case 3: + s.tmp_2 = game_currentScene__P2792_mk(s); + s.callLocIdx = 1909; s.pc = 1; return s.tmp_2; + case 1: r0 = s.retval; - s.managedSprites___10977 = (r0); - r0 = pxsim_numops_toBoolDecr(s.managedSprites___10977); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = s.tmp_1.fields["_data"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - s.tmp_2 = r0; - s.managedSprites___10977 = (r0); - s.tmp_5 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1804; s.pc = 4; return s.tmp_5; - case 4: - r0 = s.retval; - s.tmp_4 = r0; - r0 = s.tmp_4.fields["_data"]; - s.tmp_3 = r0; - r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_3, globals.MANAGED_SPRITES_KEY___6741, s.tmp_2); - s.tmp_0 = control_EventContext_registerFrameHandler__P403_mk(s); - s.tmp_1 = game_eventContext__P2795_mk(s); - s.callLocIdx = 1806; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 25; - s.tmp_0.arg2 = statusbars_init_inline__P10992; - s.callLocIdx = 1811; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - case 1: - case 2: - r0 = pxsim_Array__push(s.managedSprites___10977, s.arg0); - r0 = undefined; + r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_0, s.arg0); return leave(s, r0) default: oops() } } } -statusbars_init__P6770.info = {"start":31570,"length":1174,"line":898,"column":4,"endLine":927,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"init","argumentNames":["s"]} +statusbars_getSceneData__P6812.info = {"start":33136,"length":88,"line":943,"column":4,"endLine":945,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getSceneData","argumentNames":["key"]} -function statusbars_init__P6770_mk(s) { +function statusbars_getSceneData__P6812_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_init__P6770, depth: s.depth + 1, + parent: s, fn: statusbars_getSceneData__P6812, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - managedSprites___10977: undefined, arg0: undefined, } } @@ -15679,7 +17023,7 @@ function statusbars_init__P6770_mk(s) { -function statusbars_init_inline__P10992(s) { +function scene_Scene_data__P2702(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15689,103 +17033,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.managed___10993 = undefined; - s.i___10996 = undefined; - s.spr___11003 = undefined; - s.sb___11007 = undefined; - s.spriteToFollow___11014 = undefined; - s.tmp_0 = statusbars_getManagedSprites__P6773_mk(s); - s.callLocIdx = 1807; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - s.managed___10993 = (r0); - r0 = pxsim_Array__length(s.managed___10993); - s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); - s.i___10996 = (r0); - case 1: - r0 = (s.i___10996 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = pxsim_Array__getAt(s.managed___10993, s.i___10996); - s.spr___11003 = (r0); - r0 = s.spr___11003.fields["_statusBar"]; - s.sb___11007 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sb___11007); - if (!r0) { step = 4; continue; } - s.tmp_0 = statusbars_StatusBar_updateState__P4199_mk(s); - s.tmp_0.arg0 = s.sb___11007; - s.callLocIdx = 1808; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = if_spriteToFollow_1_mk(s); - s.tmp_0.arg0 = s.sb___11007; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "spriteToFollow"); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["spriteToFollow"]; - if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["spriteToFollow"]; } - else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } - else { s.callLocIdx = 1809; s.pc = 12; return s.tmp_0; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; } - case 12: - r0 = s.retval; - s.spriteToFollow___11014 = (r0); - r0 = pxsim_numops_toBoolDecr(s.spriteToFollow___11014); - if (!r0) { step = 2; continue; } - s.tmp_0 = statusbars_StatusBar_positionNextTo__P4188_mk(s); - s.tmp_0.arg0 = s.sb___11007; - s.tmp_0.arg1 = s.spr___11003; - s.tmp_0.arg2 = s.spriteToFollow___11014; - s.callLocIdx = 1810; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - case 2: - case 3: - case 4: - case 5: - r0 = s.spr___11003.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 = 6; continue; } - r0 = (s.sb___11007).fields["sprite"] = (undefined); - r0 = pxsim_Array_.removeAt(s.managed___10993, s.i___10996); - { step = 8; continue; } - case 6: - case 7: - case 8: - r0 = (s.i___10996 - 1); - s.i___10996 = (r0); - { step = 1; continue; } - case 9: - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, scene_Scene__C2678_VT)) failedCast(r0); + r0 = s.arg0.fields["_data"]; + return leaveAccessor(s, r0) default: oops() } } } -statusbars_init_inline__P10992.info = {"start":31869,"length":817,"line":902,"column":80,"endLine":923,"endColumn":13,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":[]} +scene_Scene_data__P2702.info = {"start":6912,"length":53,"line":187,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"data","argumentNames":["this"]} +scene_Scene_data__P2702.isGetter = true; -function statusbars_init_inline__P10992_mk(s) { +function scene_Scene_data__P2702_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_init_inline__P10992, depth: s.depth + 1, + parent: s, fn: scene_Scene_data__P2702, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - managed___10993: undefined, - i___10996: undefined, - spr___11003: undefined, - sb___11007: undefined, - spriteToFollow___11014: undefined, + arg0: undefined, } } -function statusbars_getManagedSprites__P6773(s) { +function statusbars_StatusBar_isVerticalBar__P6804(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15795,29 +17068,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = statusbars_getSceneData__P6772_mk(s); - s.tmp_0.arg0 = globals.MANAGED_SPRITES_KEY___6741; - s.callLocIdx = 1814; 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, statusbars_StatusBar__C4172_VT)) failedCast(r0); + r0 = s.arg0.fields["_barHeight"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["_barWidth"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 > s.tmp_1); return leave(s, r0) default: oops() } } } -statusbars_getManagedSprites__P6773.info = {"start":33230,"length":107,"line":947,"column":4,"endLine":949,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getManagedSprites","argumentNames":[]} +statusbars_StatusBar_isVerticalBar__P6804.info = {"start":17681,"length":90,"line":516,"column":8,"endLine":518,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"isVerticalBar","argumentNames":["this"]} -function statusbars_getManagedSprites__P6773_mk(s) { +function statusbars_StatusBar_isVerticalBar__P6804_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_getManagedSprites__P6773, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_isVerticalBar__P6804, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, } } -function statusbars_StatusBar_constructor__P4183(s) { +function statusbars_StatusBar_label__P4190(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15829,80 +17110,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.arg6 = (s.lambdaArgs[6]); - s.arg7 = (s.lambdaArgs[7]); s.lambdaArgs = null; } r0 = s.arg0; if (!checkSubtype(r0, statusbars_StatusBar__C4172_VT)) failedCast(r0); - r0 = (s.arg0).fields["_barWidth"] = (s.arg1); - r0 = (s.arg0).fields["_barHeight"] = (s.arg2); - r0 = (s.arg0).fields["onColor"] = (s.arg3); - r0 = (s.arg0).fields["offColor"] = (s.arg4); - r0 = (s.arg0).fields["drainColor"] = (s.arg5); - r0 = (s.arg0).fields["_max"] = (s.arg6); - r0 = (s.arg0).fields["kind"] = (s.arg7); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1703; s.pc = 1; return s.tmp_3; - case 1: - r0 = s.retval; - s.tmp_2 = r0; - r0 = s.tmp_2.fields["_millis"]; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lastUpdate"] = (s.tmp_1); - r0 = (s.arg0).fields["throttleAmount"] = (100); - r0 = (s.arg0).fields["borderWidth"] = (0); - r0 = (s.arg0).fields["borderColor"] = (undefined); - r0 = (s.arg0).fields["flags"] = (4); - r0 = (s.arg0).fields["_label"] = (undefined); - r0 = (s.arg0).fields["labelColor"] = (1); - r0 = (s.arg0).fields["font"] = (globals.font5___1825); - r0 = (s.arg0).fields["followPadding"] = (0); - r0 = (s.arg0).fields["followOffset"] = (0); - r0 = (s.arg0).fields["hasHitZero"] = (false); - r0 = (s.arg0).fields["displayValue"] = (s.arg6); - r0 = (s.arg0).fields["target"] = (s.arg6); - s.tmp_0 = statusbars_StatusBar_rebuildImage__P6766_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1705; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = s.arg0.fields["_label"]; + return leaveAccessor(s, r0) default: oops() } } } -statusbars_StatusBar_constructor__P4183.info = {"start":12864,"length":759,"line":363,"column":8,"endLine":387,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["this","_barWidth","_barHeight","onColor","offColor","drainColor","_max","kind"]} +statusbars_StatusBar_label__P4190.info = {"start":15589,"length":55,"line":443,"column":8,"endLine":445,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"label","argumentNames":["this"]} +statusbars_StatusBar_label__P4190.isGetter = true; -function statusbars_StatusBar_constructor__P4183_mk(s) { +function statusbars_StatusBar_label__P4190_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_constructor__P4183, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_label__P4190, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, - arg7: undefined, } } -function statusbars_StatusBar_rebuildImage__P6766(s) { +function helpers_imagePrint__P1835(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15912,161 +17143,460 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.width___11181 = undefined; - s.height___11184 = undefined; - s.labelWidth___11188 = undefined; - s.newImg___11230 = undefined; + s.x0___11729 = undefined; + s.cp___11731 = undefined; + s.mult___11732 = undefined; + s.dataW___11737 = undefined; + s.dataH___11743 = undefined; + s.byteHeight___11749 = undefined; + s.charSize___11755 = undefined; + s.dataSize___11759 = undefined; + s.fontdata___11763 = undefined; + s.lastchar___11766 = undefined; + s.imgBuf___11773 = undefined; + s.xOffset___11797 = undefined; + s.yOffset___11798 = undefined; + s.ch___11813 = undefined; + s.l___11832 = undefined; + s.r___11833 = undefined; + s.off___11835 = undefined; + s.guess___11836 = undefined; + s.m___11855 = undefined; + s.v___11864 = undefined; + s.i___11920 = undefined; + s.j___11925 = undefined; + s.mask___11926 = undefined; + s.c___11927 = undefined; + s.n___11944 = 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, statusbars_StatusBar__C4172_VT)) failedCast(r0); - r0 = s.arg0.fields["_barWidth"]; - s.width___11181 = (r0); - r0 = s.arg0.fields["_barHeight"]; - s.height___11184 = (r0); - r0 = s.arg0.fields["_label"]; + 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__P1822_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 175; 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.tmp_2 = if_charWidth_1_mk(s); - r0 = s.arg0.fields["font"]; - s.tmp_2.arg0 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); + s.arg4 = (1); + case 3: + case 4: + s.x0___11729 = (s.arg2); + s.cp___11731 = (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_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 = 1737; s.pc = 11; return s.tmp_2; } + 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 = 176; s.pc = 40; return s.tmp_1; } } - case 11: + case 40: r0 = s.retval; - s.tmp_1 = r0; - r0 = s.arg0.fields["_label"]; - s.tmp_4 = r0; - r0 = pxsim_String_.length(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_1 * s.tmp_3); - s.labelWidth___11188 = (r0); - r0 = s.arg0.fields["_barHeight"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_barWidth"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 > s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_3 = Math_max__P130_mk(s); - s.tmp_3.arg0 = s.width___11181; - s.tmp_3.arg1 = s.labelWidth___11188; - s.callLocIdx = 1740; s.pc = 12; return s.tmp_3; - case 12: + 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 = 177; s.pc = 41; return s.tmp_2; } + } + case 41: r0 = s.retval; - s.width___11181 = (r0); - s.tmp_0 = r0 = s.height___11184; - s.tmp_3 = if_charHeight_1_mk(s); - r0 = s.arg0.fields["font"]; - s.tmp_3.arg0 = r0; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charHeight"); + { step = 6; continue; } + case 5: + r0 = 1; + case 6: + // jmp value (already in r0) + s.tmp_3 = r0; + s.mult___11732 = (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_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 = 1741; s.pc = 13; return s.tmp_3; } + 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 = 178; s.pc = 42; return s.tmp_1; } } - case 13: + case 42: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.height___11184 = (r0); - { step = 2; continue; } - case 1: - r0 = (s.width___11181 + s.labelWidth___11188); - s.width___11181 = (r0); - s.tmp_0 = Math_max__P130_mk(s); - s.tmp_0.arg0 = s.height___11184; + s.tmp_0 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___11732); + s.dataW___11737 = (r0); s.tmp_1 = if_charHeight_1_mk(s); - r0 = s.arg0.fields["font"]; - s.tmp_1.arg0 = r0; + 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 = 1742; s.pc = 15; return s.tmp_1; } + else { s.callLocIdx = 179; s.pc = 43; return s.tmp_1; } } - case 15: + case 43: r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1743; s.pc = 14; return s.tmp_0; - case 14: + s.tmp_0 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___11732); + s.dataH___11743 = (r0); + r0 = (s.dataH___11743 + 7); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 3); + s.byteHeight___11749 = (r0); + r0 = (s.byteHeight___11749 * s.dataW___11737); + s.charSize___11755 = (r0); + r0 = (2 + s.charSize___11755); + s.dataSize___11759 = (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 = 180; s.pc = 44; return s.tmp_0; } + } + case 44: r0 = s.retval; - s.height___11184 = (r0); - case 2: - case 3: - case 4: - r0 = s.arg0.fields["_image"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.fontdata___11763 = (r0); + r0 = pxsim.BufferMethods.length(s.fontdata___11763); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___11759); 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_3 = r0 = s.width___11181; - r0 = s.arg0.fields["_image"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_3 !== s.tmp_4); - case 6: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBool(s.tmp_6); + r0 = (s.tmp_0 - 1); + s.lastchar___11766 = (r0); + r0 = (s.mult___11732 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - r0 = s.tmp_6; - { step = 8; continue; } + r0 = (8 + s.charSize___11755); + s.tmp_1 = r0; + r0 = pxsim.control.createBuffer(s.tmp_1); + s.imgBuf___11773 = (r0); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___11773, 0, 135); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___11773, 1, 1); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___11773, 2, s.dataW___11737); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___11773, 4, s.dataH___11743); case 7: - s.tmp_7 = r0 = s.height___11184; - r0 = s.arg0.fields["_image"]; - s.tmp_9 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_9); - s.tmp_8 = r0; - r0 = (s.tmp_7 !== s.tmp_8); case 8: - // jmp value (already in r0) - s.tmp_10 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_10); - if (!r0) { step = 9; continue; } - r0 = pxsim.image.create(s.width___11181, s.height___11184); - s.newImg___11230 = (r0); - r0 = (s.arg0).fields["_image"] = (s.newImg___11230); case 9: + s.tmp_1 = r0 = s.cp___11731; + 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___11797 = (0); + s.yOffset___11798 = (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_0 = statusbars_StatusBar_updateDisplay__P4200_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1747; s.pc = 16; return s.tmp_0; + s.tmp_1 = r0 = s.cp___11731; + 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___11731); + 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 = 181; s.pc = 45; return s.tmp_4; } + } + case 45: + r0 = s.retval; + s.xOffset___11797 = (r0); + s.tmp_0 = if_yOffset_1_mk(s); + r0 = pxsim_Array__getAt(s.arg6, s.cp___11731); + 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 = 182; s.pc = 46; return s.tmp_0; } + } + case 46: + r0 = s.retval; + s.yOffset___11798 = (r0); + case 12: + case 13: + s.tmp_0 = r0 = s.cp___11731; + r0 = (s.tmp_0 + 1); + s.cp___11731 = (r0); + r0 = pxsim_String_.charCodeAt(s.arg1, s.tmp_0); + s.ch___11813 = (r0); + r0 = (s.ch___11813 == 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 = 183; 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___11729); + case 14: + case 15: + r0 = (s.ch___11813 < 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___11832 = (0); + s.r___11833 = (s.lastchar___11766); + s.off___11835 = (0); + r0 = (s.ch___11813 - 32); + s.tmp_0 = r0; + r0 = (s.tmp_0 * s.dataSize___11759); + s.guess___11836 = (r0); + r0 = pxsim.BufferMethods.getNumber(s.fontdata___11763, 4, s.guess___11836); + s.tmp_1 = r0; + r0 = (s.tmp_1 == s.ch___11813); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 18; continue; } + s.off___11835 = (s.guess___11836); + { step = 25; continue; } + case 18: + case 19: + r0 = (s.l___11832 <= s.r___11833); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 24; continue; } + s.tmp_1 = r0 = s.l___11832; + r0 = (s.r___11833 - s.l___11832); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.m___11855 = (r0); + s.tmp_0 = r0 = s.fontdata___11763; + r0 = (s.m___11855 * s.dataSize___11759); + s.tmp_1 = r0; + r0 = pxsim.BufferMethods.getNumber(s.tmp_0, 4, s.tmp_1); + s.v___11864 = (r0); + r0 = (s.v___11864 == s.ch___11813); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + r0 = (s.m___11855 * s.dataSize___11759); + s.off___11835 = (r0); + { step = 24; continue; } + case 20: + case 21: + r0 = (s.v___11864 < s.ch___11813); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + r0 = (s.m___11855 + 1); + s.l___11832 = (r0); + { step = 23; continue; } + case 22: + r0 = (s.m___11855 - 1); + s.r___11833 = (r0); + case 23: + { step = 19; continue; } + case 24: + case 25: + r0 = (s.mult___11732 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 26; continue; } + s.tmp_1 = r0 = s.imgBuf___11773; + s.tmp_3 = r0 = s.fontdata___11763; + r0 = (s.off___11835 + 2); + s.tmp_4 = r0; + r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___11755); + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.write(s.tmp_1, 8, s.tmp_2); + s.tmp_0 = helpers_imageDrawIcon__P1802_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.imgBuf___11773; + r0 = (s.arg2 + s.xOffset___11797); + s.tmp_0.arg2 = r0; + r0 = (s.arg3 + s.yOffset___11798); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = s.arg4; + s.callLocIdx = 184; s.pc = 48; return s.tmp_0; + case 48: + r0 = s.retval; + s.tmp_0 = r0 = s.arg2; + s.tmp_2 = if_charWidth_1_mk(s); + s.tmp_2.arg0 = s.arg5; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charWidth"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charWidth"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 185; 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___11835 + 2); + s.off___11835 = (r0); + s.i___11920 = (0); + case 27: + r0 = (s.i___11920 < s.dataW___11737); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 36; continue; } + s.j___11925 = (0); + s.mask___11926 = (1); + s.tmp_0 = r0 = s.off___11835; + r0 = (s.tmp_0 + 1); + s.off___11835 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___11763, s.tmp_0); + s.c___11927 = (r0); + case 28: + r0 = (s.j___11925 < s.dataH___11743); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 35; continue; } + r0 = (s.mask___11926 == 256); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 29; continue; } + s.tmp_2 = r0 = s.off___11835; + r0 = (s.tmp_2 + 1); + s.off___11835 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___11763, s.tmp_2); + s.c___11927 = (r0); + s.mask___11926 = (1); + case 29: + case 30: + s.n___11944 = (0); + case 31: + r0 = (s.c___11927 & s.mask___11926); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 32; continue; } + r0 = (s.n___11944 + 1); + s.n___11944 = (r0); + r0 = (s.mask___11926 << 1); + s.mask___11926 = (r0); + { step = 31; continue; } + case 32: + r0 = pxsim_numops_toBoolDecr(s.n___11944); + if (!r0) { step = 33; continue; } + s.tmp_0 = helpers_imageFillRect__P1803_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.arg2; + r0 = (s.xOffset___11797 * s.mult___11732); + 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___11925 + s.yOffset___11798); + s.tmp_5 = r0; + r0 = (s.tmp_5 * s.mult___11732); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.mult___11732; + r0 = (s.mult___11732 * s.n___11944); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.arg4; + s.callLocIdx = 186; s.pc = 50; return s.tmp_0; + case 50: r0 = s.retval; + r0 = (s.j___11925 + s.n___11944); + s.j___11925 = (r0); + { step = 34; continue; } + case 33: + r0 = (s.mask___11926 << 1); + s.mask___11926 = (r0); + r0 = (s.j___11925 + 1); + s.j___11925 = (r0); + case 34: + { step = 28; continue; } + case 35: + r0 = (s.arg2 + s.mult___11732); + s.arg2 = (r0); + r0 = (s.i___11920 + 1); + s.i___11920 = (r0); + { step = 27; continue; } + case 36: + case 37: + { step = 9; continue; } + case 38: r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_StatusBar_rebuildImage__P6766.info = {"start":17897,"length":790,"line":524,"column":8,"endLine":545,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"rebuildImage","argumentNames":["this"]} +helpers_imagePrint__P1835.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 statusbars_StatusBar_rebuildImage__P6766_mk(s) { +function helpers_imagePrint__P1835_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_rebuildImage__P6766, depth: s.depth + 1, + parent: s, fn: helpers_imagePrint__P1835, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16074,23 +17604,45 @@ function statusbars_StatusBar_rebuildImage__P6766_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, - width___11181: undefined, - height___11184: undefined, - labelWidth___11188: undefined, - newImg___11230: undefined, + x0___11729: undefined, + cp___11731: undefined, + mult___11732: undefined, + dataW___11737: undefined, + dataH___11743: undefined, + byteHeight___11749: undefined, + charSize___11755: undefined, + dataSize___11759: undefined, + fontdata___11763: undefined, + lastchar___11766: undefined, + imgBuf___11773: undefined, + xOffset___11797: undefined, + yOffset___11798: undefined, + ch___11813: undefined, + l___11832: undefined, + r___11833: undefined, + off___11835: undefined, + guess___11836: undefined, + m___11855: undefined, + v___11864: undefined, + i___11920: undefined, + j___11925: undefined, + mask___11926: undefined, + c___11927: undefined, + n___11944: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, } } -function StatusBarSprite_constructor__P4156(s) { +function image_getFontForText__P1822(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16100,42 +17652,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.i___12005 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, StatusBarSprite__C4155_VT)) failedCast(r0); - r0 = (s.arg0).fields["_statusBar"] = (s.arg1); - s.tmp_0 = Sprite_constructor__P2229_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = s.arg1.fields["_image"]; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1687; s.pc = 1; return s.tmp_0; + s.i___12005 = (0); case 1: - r0 = s.retval; - r0 = undefined; + s.tmp_1 = r0 = s.i___12005; + 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___12005); + 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___1821; + { step = 5; continue; } + case 2: + case 3: + r0 = (s.i___12005 + 1); + s.i___12005 = (r0); + { step = 1; continue; } + case 4: + r0 = globals.font8___1820; + case 5: return leave(s, r0) default: oops() } } } -StatusBarSprite_constructor__P4156.info = {"start":2526,"length":93,"line":78,"column":4,"endLine":80,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["this","_statusBar"]} +image_getFontForText__P1822.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]} -function StatusBarSprite_constructor__P4156_mk(s) { +function image_getFontForText__P1822_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_constructor__P4156, depth: s.depth + 1, + parent: s, fn: image_getFontForText__P1822, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + i___12005: undefined, arg0: undefined, - arg1: undefined, } } -function Sprite_constructor__P2229(s) { +function helpers_imageDrawIcon__P1802(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16148,138 +17718,48 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_constructor__P1940_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 405; s.pc = 1; return s.tmp_0; + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = helpers_pack__P4454_mk(s); + s.tmp_3.arg0 = s.arg2; + s.tmp_3.arg1 = s.arg3; + s.callLocIdx = 156; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___1877); - 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___1877); - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(s.arg1); - s.tmp_5 = r0; - r0 = (s.tmp_4 - s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_6 = r0; - r0 = (s.tmp_6 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = s.arg0.fields["_x"]; - s.tmp_0 = r0; - r0 = (s.arg0).fields["_lastX"] = (s.tmp_0); - r0 = s.arg0.fields["_y"]; - s.tmp_0 = r0; - r0 = (s.arg0).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = Sprite_vx__P2200_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 408; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = Sprite_vy__P2202_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 409; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = Sprite_ax__P2204_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 410; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = Sprite_ay__P2206_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 411; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = Sprite_fx__P2208_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 412; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = Sprite_fy__P2210_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 413; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - r0 = (s.arg0).fields["_sx"] = (256); - r0 = (s.arg0).fields["_sy"] = (256); - r0 = (s.arg0).fields["flags"] = (0); - s.tmp_0 = Sprite_setImage__P2232_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 414; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.tmp_0 = Sprite_setKind__P2249_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = -1; - s.callLocIdx = 415; 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 = pxsim_ImageMethods._drawIcon(s.tmp_0, s.tmp_1, s.tmp_2, s.arg4); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_constructor__P2229.info = {"start":7406,"length":678,"line":278,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]} +helpers_imageDrawIcon__P1802.info = {"start":4684,"length":145,"line":155,"column":4,"endLine":157,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]} -function Sprite_constructor__P2229_mk(s) { +function helpers_imageDrawIcon__P1802_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_constructor__P2229, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawIcon__P1802, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } -function Sprite_fy__P2210(s) { +function helpers_pack__P4454(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16294,37 +17774,45 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P130_mk(s); - s.tmp_3.arg0 = 0; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 391; s.pc = 1; return s.tmp_3; + s.tmp_2 = Math_clamp__P127_mk(s); + s.tmp_2.arg0 = -30000; + s.tmp_2.arg1 = 30000; + r0 = (s.arg0 | 0); + s.tmp_2.arg2 = r0; + s.callLocIdx = 154; 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["_fy"] = (s.tmp_1); - r0 = undefined; + r0 = (s.tmp_1 & 65535); + s.tmp_0 = r0; + s.tmp_5 = Math_clamp__P127_mk(s); + s.tmp_5.arg0 = -30000; + s.tmp_5.arg1 = 30000; + r0 = (s.arg1 | 0); + s.tmp_5.arg2 = r0; + s.callLocIdx = 155; s.pc = 2; return s.tmp_5; + case 2: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_4 << 16); + s.tmp_3 = r0; + r0 = (s.tmp_0 | s.tmp_3); return leave(s, r0) default: oops() } } } -Sprite_fy__P2210.info = {"start":5109,"length":64,"line":191,"column":4,"endLine":193,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this","v"]} +helpers_pack__P4454.info = {"start":3658,"length":145,"line":130,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]} -function Sprite_fy__P2210_mk(s) { +function helpers_pack__P4454_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fy__P2210, depth: s.depth + 1, + parent: s, fn: helpers_pack__P4454, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -16333,7 +17821,7 @@ function Sprite_fy__P2210_mk(s) { -function Sprite_fy__P2209(s) { +function helpers_imageFillRect__P1803(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16345,33 +17833,58 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - r0 = s.arg0.fields["_fy"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = helpers_pack__P4454_mk(s); + s.tmp_2.arg0 = s.arg1; + s.tmp_2.arg1 = s.arg2; + s.callLocIdx = 157; s.pc = 1; return s.tmp_2; + case 1: + r0 = s.retval; + s.tmp_1 = r0; + s.tmp_4 = helpers_pack__P4454_mk(s); + s.tmp_4.arg0 = s.arg3; + s.tmp_4.arg1 = s.arg4; + s.callLocIdx = 158; s.pc = 2; return s.tmp_4; + case 2: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods._fillRect(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5); + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_fy__P2209.info = {"start":4947,"length":60,"line":186,"column":4,"endLine":188,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this"]} -Sprite_fy__P2209.isGetter = true; +helpers_imageFillRect__P1803.info = {"start":4834,"length":159,"line":158,"column":4,"endLine":160,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]} -function Sprite_fy__P2209_mk(s) { +function helpers_imageFillRect__P1803_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fy__P2209, depth: s.depth + 1, + parent: s, fn: helpers_imageFillRect__P1803, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function Sprite_fx__P2208(s) { +function Math_constrain__P284(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16384,48 +17897,56 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P130_mk(s); - s.tmp_3.arg0 = 0; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 388; s.pc = 1; return s.tmp_3; + r0 = (s.arg0 < s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg1; + { step = 4; continue; } case 1: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); + r0 = (s.arg0 > s.arg2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_fx"] = (s.tmp_1); - r0 = undefined; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = s.arg2; + { step = 3; continue; } + case 2: + r0 = s.arg0; + case 3: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.tmp_2; + case 4: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = s.tmp_3; return leave(s, r0) default: oops() } } } -Sprite_fx__P2208.info = {"start":4766,"length":64,"line":181,"column":4,"endLine":183,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this","v"]} +Math_constrain__P284.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 Sprite_fx__P2208_mk(s) { +function Math_constrain__P284_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P2208, depth: s.depth + 1, + parent: s, fn: Math_constrain__P284, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function Sprite_fx__P2207(s) { +function statusbars_StatusBar_image__P4197(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16440,22 +17961,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - r0 = s.arg0.fields["_fx"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); + if (!checkSubtype(r0, statusbars_StatusBar__C4172_VT)) failedCast(r0); + r0 = s.arg0.fields["_image"]; return leaveAccessor(s, r0) default: oops() } } } -Sprite_fx__P2207.info = {"start":4604,"length":60,"line":176,"column":4,"endLine":178,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this"]} -Sprite_fx__P2207.isGetter = true; +statusbars_StatusBar_image__P4197.info = {"start":17520,"length":55,"line":508,"column":8,"endLine":510,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"image","argumentNames":["this"]} +statusbars_StatusBar_image__P4197.isGetter = true; -function Sprite_fx__P2207_mk(s) { +function statusbars_StatusBar_image__P4197_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P2207, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_image__P4197, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -16463,7 +17981,7 @@ function Sprite_fx__P2207_mk(s) { -function Sprite_ax__P2204(s) { +function Sprite_setImage__P2232(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16480,26 +17998,50 @@ switch (step) { } r0 = s.arg0; if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_ax"] = (s.tmp_1); + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["_image"]; + s.tmp_2 = r0; + r0 = (s.arg1 === s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + { step = 5; continue; } + case 3: + case 4: + r0 = (s.arg0).fields["_image"] = (s.arg1); + s.tmp_0 = Sprite__C2182_v5_1_mk(s); + s.tmp_0.arg0 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, Sprite__C2182_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.recalcSize; + s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_ax__P2204.info = {"start":4096,"length":51,"line":159,"column":4,"endLine":161,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this","v"]} +Sprite_setImage__P2232.info = {"start":9299,"length":131,"line":332,"column":4,"endLine":336,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setImage","argumentNames":["this","img"]} -function Sprite_ax__P2204_mk(s) { +function Sprite_setImage__P2232_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ax__P2204, depth: s.depth + 1, + parent: s, fn: Sprite_setImage__P2232, depth: s.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, } } @@ -16508,7 +18050,7 @@ function Sprite_ax__P2204_mk(s) { -function Sprite_ax__P2203(s) { +function statusbars_StatusBar_max__P4193(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16520,33 +18062,45 @@ 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__C2182_VT)) failedCast(r0); - r0 = s.arg0.fields["_ax"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, statusbars_StatusBar__C4172_VT)) failedCast(r0); + s.tmp_0 = statusbars_StatusBar_changeValue__P6803_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = s.arg0.fields["target"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 1819; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = statusbars_StatusBar_updateState__P4199_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1820; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_ax__P2203.info = {"start":3930,"length":60,"line":154,"column":4,"endLine":156,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this"]} -Sprite_ax__P2203.isGetter = true; +statusbars_StatusBar_max__P4193.info = {"start":15827,"length":109,"line":456,"column":8,"endLine":459,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"max","argumentNames":["this","v"]} -function Sprite_ax__P2203_mk(s) { +function statusbars_StatusBar_max__P4193_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ax__P2203, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_max__P4193, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function PhysicsEngine_addSprite__P2354(s) { +function statusbars_StatusBar_changeValue__P6803(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16556,33 +18110,217 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.statusHandlers___12065 = undefined; + s.toRun___12068 = undefined; + s.handler___12121 = undefined; + s.h___12145 = undefined; + s.unnamed106___U4 = undefined; + s.unnamed107___U5 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C2352_VT)) failedCast(r0); + if (!checkSubtype(r0, statusbars_StatusBar__C4172_VT)) failedCast(r0); + s.tmp_0 = statusbars_getStatusHandlers__P6815_mk(s); + s.callLocIdx = 1824; s.pc = 23; return s.tmp_0; + case 23: + r0 = s.retval; + s.statusHandlers___12065 = (r0); + s.tmp_0 = r0 = s.statusHandlers___12065; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_pxtcore_mkAction(3, toRun_inline__P12073); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.arg1); + r0 = pxsim_pxtrt_stclo(s.tmp_1, 2, s.arg2); + s.tmp_2 = helpers_arrayFilter__P110_mk(s); + s.tmp_2.arg0 = s.statusHandlers___12065; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 1829; s.pc = 24; return s.tmp_2; + case 24: + r0 = s.retval; + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + s.toRun___12068 = (s.tmp_3); + r0 = (s.arg0).fields["target"] = (s.arg1); + r0 = (s.arg0).fields["_max"] = (s.arg2); + r0 = (s.arg1 <= 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.arg0.fields["hasHitZero"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + case 4: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (r0) { step = 5; continue; } + r0 = s.tmp_3; + { step = 6; continue; } + case 5: + r0 = s.arg0.fields["flags"]; + s.tmp_6 = r0; + r0 = (s.tmp_6 & 64); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + case 6: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 13; continue; } + r0 = (s.arg0).fields["hasHitZero"] = (true); + s.tmp_1 = statusbars_getZeroHandlers__P6814_mk(s); + s.callLocIdx = 1830; s.pc = 25; return s.tmp_1; + case 25: + r0 = s.retval; + 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_Array__mk(); + case 8: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.arg0.fields["kind"]; + s.tmp_3 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); + s.handler___12121 = (r0); + r0 = s.arg0.fields["sprite"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } + case 9: + r0 = s.handler___12121; + case 10: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 11; continue; } + s.tmp_2 = lambda_2_mk(s); + s.tmp_2.argL = s.handler___12121; + r0 = s.arg0.fields["sprite"]; + s.tmp_2.arg0 = r0; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 1831; s.pc = 26; return s.tmp_2; + case 26: + r0 = s.retval; + case 11: + case 12: + { step = 18; continue; } + case 13: + r0 = (s.arg1 > 0); + 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.arg0.fields["hasHitZero"]; + case 15: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 16; continue; } + r0 = (s.arg0).fields["hasHitZero"] = (false); + case 16: + case 17: + case 18: + s.h___12145 = (undefined); + s.tmp_0 = r0 = s.toRun___12068; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 19; continue; } + r0 = s.tmp_0; + { step = 20; continue; } + case 19: + r0 = pxsim_Array__mk(); + case 20: + // jmp value (already in r0) + s.tmp_1 = r0; + s.unnamed106___U4 = (s.tmp_1); + s.unnamed107___U5 = (0); + case 21: + s.tmp_0 = r0 = s.unnamed107___U5; + r0 = pxsim_Array__length(s.unnamed106___U4); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 22; continue; } + r0 = pxsim_Array__getAt(s.unnamed106___U4, s.unnamed107___U5); + s.h___12145 = (r0); + s.tmp_2 = if_handler_2_mk(s); + s.tmp_2.arg0 = s.h___12145; + r0 = s.arg0.fields["sprite"]; + s.tmp_2.arg1 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 2); + s.callLocIdx = 1832; s.pc = 27; 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"], 2); s.callLocIdx = 1832; s.pc = 27; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1832; s.pc = 27; return s.tmp_2;; } + else { s.callLocIdx = 1832; s.pc = 27; return s.tmp_2; } + } + case 27: + r0 = s.retval; + r0 = (s.unnamed107___U5 + 1); + s.unnamed107___U5 = (r0); + { step = 21; continue; } + case 22: + s.unnamed106___U4 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_addSprite__P2354.info = {"start":124,"length":29,"line":8,"column":4,"endLine":8,"endColumn":33,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +statusbars_StatusBar_changeValue__P6803.info = {"start":16237,"length":1086,"line":474,"column":8,"endLine":499,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"changeValue","argumentNames":["this","current","max"]} -function PhysicsEngine_addSprite__P2354_mk(s) { +function statusbars_StatusBar_changeValue__P6803_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_addSprite__P2354, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_changeValue__P6803, depth: s.depth + 1, pc: 0, retval: undefined, 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, + statusHandlers___12065: undefined, + toRun___12068: undefined, + handler___12121: undefined, + h___12145: undefined, + unnamed106___U4: undefined, + unnamed107___U5: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function Sprite_data__P2217(s) { +function toRun_inline__P12073(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16596,39 +18334,87 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - r0 = s.arg0.fields["_data"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = s.arg0.fields["kind"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = s.caps[0].fields["kind"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 === s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_3 = r0 = s.arg0; - r0 = pxsim_pxtrt.mkMap(); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["_data"] = (s.tmp_4); + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = s.caps[0].fields["flags"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 & 64); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); case 2: - r0 = s.arg0.fields["_data"]; - return leaveAccessor(s, r0) + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBool(s.tmp_6); + if (r0) { step = 3; continue; } + r0 = s.tmp_6; + { step = 4; continue; } + case 3: + s.tmp_7 = statusbars_StatusHandler_conditionMet__P6808_mk(s); + s.tmp_7.arg0 = s.arg0; + s.tmp_7.arg1 = s.caps[1]; + s.tmp_7.arg2 = s.caps[2]; + s.callLocIdx = 1825; s.pc = 7; return s.tmp_7; + case 7: + r0 = s.retval; + case 4: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = pxsim_numops_toBool(s.tmp_8); + if (r0) { step = 5; continue; } + r0 = s.tmp_8; + { step = 6; continue; } + case 5: + s.tmp_11 = statusbars_StatusHandler_conditionMet__P6808_mk(s); + s.tmp_11.arg0 = s.arg0; + r0 = s.caps[0].fields["target"]; + s.tmp_11.arg1 = r0; + r0 = s.caps[0].fields["_max"]; + s.tmp_11.arg2 = r0; + s.callLocIdx = 1828; s.pc = 8; return s.tmp_11; + case 8: + r0 = s.retval; + s.tmp_10 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_10); + s.tmp_9 = r0; + r0 = pxsim_Boolean__bang(s.tmp_9); + case 6: + // jmp value (already in r0) + s.tmp_12 = r0; + r0 = s.tmp_12; + return leave(s, r0) default: oops() } } } -Sprite_data__P2217.info = {"start":6438,"length":92,"line":236,"column":4,"endLine":239,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this"]} -Sprite_data__P2217.isGetter = true; +toRun_inline__P12073.info = {"start":16413,"length":227,"line":476,"column":66,"endLine":480,"endColumn":62,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["h"]} -function Sprite_data__P2217_mk(s) { +function toRun_inline__P12073_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_data__P2217, depth: s.depth + 1, + parent: s, fn: toRun_inline__P12073, depth: s.depth + 1, pc: 0, retval: undefined, 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, arg0: undefined, } } @@ -16636,7 +18422,71 @@ function Sprite_data__P2217_mk(s) { -function Sprite_setStayInScreen__P2258(s) { +function statusbars_getStatusHandlers__P6815(s) { +let r0 = s.r0, 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 = statusbars_getSceneData__P6812_mk(s); + s.tmp_0.arg0 = globals.STATUS_HANDLERS_KEY___6793; + s.callLocIdx = 1913; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + return leave(s, r0) + default: oops() +} } } +statusbars_getStatusHandlers__P6815.info = {"start":33463,"length":105,"line":955,"column":4,"endLine":957,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getStatusHandlers","argumentNames":[]} + +function statusbars_getStatusHandlers__P6815_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: statusbars_getStatusHandlers__P6815, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function statusbars_getZeroHandlers__P6814(s) { +let r0 = s.r0, 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 = statusbars_getSceneData__P6812_mk(s); + s.tmp_0.arg0 = globals.ZERO_HANDLERS_KEY___6787; + s.callLocIdx = 1912; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + return leave(s, r0) + default: oops() +} } } +statusbars_getZeroHandlers__P6814.info = {"start":33343,"length":114,"line":951,"column":4,"endLine":953,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getZeroHandlers","argumentNames":[]} + +function statusbars_getZeroHandlers__P6814_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: statusbars_getZeroHandlers__P6814, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function statusbars_StatusHandler_conditionMet__P6808(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16646,41 +18496,110 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.value___12160 = 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__C2182_VT)) failedCast(r0); - s.tmp_0 = Sprite_setFlag__P2260_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 8; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 466; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, statusbars_StatusHandler__C6807_VT)) failedCast(r0); + r0 = s.arg0.fields["comparisonType"]; + 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.arg1 / s.arg2); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 100); + { step = 2; continue; } case 1: - r0 = s.retval; + r0 = s.arg1; + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + s.value___12160 = (s.tmp_3); + r0 = s.arg0.fields["comparison"]; + s.tmp_0 = r0; + r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 7; continue; } + r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); + if (r0) { step = 8; continue; } + r0 = s.tmp_0; + { step = 9; continue; } + case 3: + r0 = s.arg0.fields["percent"]; + s.tmp_1 = r0; + r0 = (s.value___12160 === s.tmp_1); + { step = 10; continue; } + case 4: + r0 = s.arg0.fields["percent"]; + s.tmp_2 = r0; + r0 = (s.value___12160 !== s.tmp_2); + { step = 10; continue; } + case 5: + r0 = s.arg0.fields["percent"]; + s.tmp_3 = r0; + r0 = (s.value___12160 > s.tmp_3); + { step = 10; continue; } + case 6: + r0 = s.arg0.fields["percent"]; + s.tmp_4 = r0; + r0 = (s.value___12160 >= s.tmp_4); + { step = 10; continue; } + case 7: + r0 = s.arg0.fields["percent"]; + s.tmp_5 = r0; + r0 = (s.value___12160 < s.tmp_5); + { step = 10; continue; } + case 8: + r0 = s.arg0.fields["percent"]; + s.tmp_6 = r0; + r0 = (s.value___12160 <= s.tmp_6); + { step = 10; continue; } + case 9: + r0 = false; + { step = 10; continue; } r0 = undefined; + case 10: return leave(s, r0) default: oops() } } } -Sprite_setStayInScreen__P2258.info = {"start":19465,"length":87,"line":652,"column":4,"endLine":654,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setStayInScreen","argumentNames":["this","on"]} +statusbars_StatusHandler_conditionMet__P6808.info = {"start":24789,"length":962,"line":710,"column":8,"endLine":731,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"conditionMet","argumentNames":["this","current","max"]} -function Sprite_setStayInScreen__P2258_mk(s) { +function statusbars_StatusHandler_conditionMet__P6808_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setStayInScreen__P2258, depth: s.depth + 1, + parent: s, fn: statusbars_StatusHandler_conditionMet__P6808, depth: s.depth + 1, pc: 0, retval: undefined, 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, + value___12160: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function helpers_getTilemapByName__P3121(s) { +function helpers_arrayFilter__P110(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16690,35 +18609,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.res___12210 = undefined; + s.len___12212 = undefined; + s.i___12215 = undefined; + s.v___12220 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = helpers__getFactoryInstance__P3119_mk(s); - s.tmp_0.arg0 = "tilemap"; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1655; s.pc = 1; return s.tmp_0; + r0 = pxsim_Array__mk(); + s.res___12210 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___12212 = (r0); + s.i___12215 = (0); case 1: + r0 = (s.i___12215 < s.len___12212); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.arg0, s.i___12215); + s.v___12220 = (r0); + s.tmp_1 = lambda_3_mk(s); + s.tmp_1.argL = s.arg1; + s.tmp_1.arg0 = s.v___12220; + s.tmp_1.arg1 = s.i___12215; + 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___12210, s.v___12220); + case 2: + case 3: + r0 = (s.i___12215 + 1); + s.i___12215 = (r0); + { step = 1; continue; } + case 4: + r0 = s.res___12210; return leave(s, r0) default: oops() } } } -helpers_getTilemapByName__P3121.info = {"start":2525,"length":107,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"getTilemapByName","argumentNames":["name"]} +helpers_arrayFilter__P110.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_getTilemapByName__P3121_mk(s) { +function helpers_arrayFilter__P110_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_getTilemapByName__P3121, depth: s.depth + 1, + parent: s, fn: helpers_arrayFilter__P110, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + res___12210: undefined, + len___12212: undefined, + i___12215: undefined, + v___12220: undefined, arg0: undefined, + arg1: undefined, } } -function helpers__getFactoryInstance__P3119(s) { +function statusbars_StatusBar_updateState__P4199(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16728,86 +18683,186 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.factory___11252 = undefined; - s.unnamed104___U1 = undefined; - s.unnamed105___U2 = undefined; - s.data___11259 = undefined; + s.target___11260 = undefined; + s.displayValue___11261 = undefined; + s.currTime___11278 = undefined; + s.change___11293 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.factories___5117); - if (!r0) { step = 7; continue; } - s.factory___11252 = (undefined); - s.unnamed104___U1 = (globals.factories___5117); - s.unnamed105___U2 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed105___U2; - r0 = pxsim_Array__length(s.unnamed104___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed104___U1, s.unnamed105___U2); - s.factory___11252 = (r0); - s.tmp_4 = if_kind_1_mk(s); - s.tmp_4.arg0 = s.factory___11252; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "kind"); + r0 = s.arg0; + if (!checkSubtype(r0, statusbars_StatusBar__C4172_VT)) failedCast(r0); + s.tmp_0 = if_target_1_mk(s); + s.tmp_1 = r0 = s.arg0; + s.tmp_0.arg0 = r0; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "target"); } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["kind"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["kind"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 1653; s.pc = 10; return s.tmp_4; } + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["target"]; + if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["target"]; } + else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } + else { s.callLocIdx = 1845; s.pc = 12; return s.tmp_0; } } - case 10: + case 12: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 === s.arg0); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 4; continue; } - s.tmp_5 = if_factory_2_mk(s); - s.tmp_5.arg0 = s.factory___11252; - s.tmp_5.arg1 = s.arg1; - if (!s.tmp_5.arg0.vtable.iface) { - setupLambda(s.tmp_5, pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "factory"), 2); - s.callLocIdx = 1654; s.pc = 11; return s.tmp_5; + s.target___11260 = (r0); + s.tmp_2 = if_displayValue_1_mk(s); + s.tmp_2.arg0 = s.tmp_1; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "displayValue"); } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["factory"]; - if (s.tmp_5.fn == null) { setupLambda(s.tmp_5, s.tmp_5.arg0.fields["factory"], 2); s.callLocIdx = 1654; s.pc = 11; return s.tmp_5; } - else if (s.tmp_5.fn.isGetter) { s.tmp_5.stage2Call = true; s.callLocIdx = 1654; s.pc = 11; return s.tmp_5;; } - else { s.callLocIdx = 1654; s.pc = 11; return s.tmp_5; } + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["displayValue"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["displayValue"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1846; s.pc = 13; return s.tmp_2; } } - case 11: + case 13: r0 = s.retval; - s.data___11259 = (r0); - r0 = pxsim_numops_toBoolDecr(s.data___11259); - if (!r0) { step = 2; continue; } - r0 = s.data___11259; - { step = 9; continue; } + s.displayValue___11261 = (r0); + r0 = s.arg0.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 4); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = r0 = s.arg0; + s.tmp_4 = Math_constrain__P284_mk(s); + s.tmp_4.arg0 = s.target___11260; + s.tmp_4.arg1 = 0; + r0 = s.arg0.fields["_max"]; + s.tmp_4.arg2 = r0; + s.callLocIdx = 1848; s.pc = 14; return s.tmp_4; + case 14: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_2).fields["target"] = (s.tmp_3); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Math_constrain__P284_mk(s); + s.tmp_2.arg0 = s.displayValue___11261; + s.tmp_2.arg1 = 0; + r0 = s.arg0.fields["_max"]; + s.tmp_2.arg2 = r0; + s.callLocIdx = 1850; s.pc = 15; return s.tmp_2; + case 15: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["displayValue"] = (s.tmp_1); + case 1: case 2: + s.tmp_1 = game_currentScene__P2792_mk(s); + s.callLocIdx = 1851; s.pc = 16; return s.tmp_1; + case 16: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["_millis"]; + s.currTime___11278 = (r0); + s.tmp_2 = Math_abs__P128_mk(s); + r0 = s.arg0.fields["lastUpdate"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 - s.currTime___11278); + s.tmp_2.arg0 = r0; + s.callLocIdx = 1853; s.pc = 17; return s.tmp_2; + case 17: + r0 = s.retval; + s.tmp_1 = r0; + r0 = s.arg0.fields["throttleAmount"]; + s.tmp_4 = r0; + r0 = (s.tmp_1 < s.tmp_4); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + { step = 11; continue; } case 3: case 4: + r0 = s.arg0.fields["_max"]; + s.tmp_5 = r0; + s.tmp_8 = Math_max__P130_mk(s); + r0 = s.arg0.fields["_barWidth"]; + s.tmp_8.arg0 = r0; + r0 = s.arg0.fields["_barHeight"]; + s.tmp_8.arg1 = r0; + s.callLocIdx = 1855; s.pc = 18; return s.tmp_8; + case 18: + r0 = s.retval; + s.tmp_7 = r0; + r0 = s.arg0.fields["borderWidth"]; + s.tmp_10 = r0; + r0 = (s.tmp_10 * 2); + s.tmp_9 = r0; + r0 = (s.tmp_7 - s.tmp_9); + s.tmp_6 = r0; + r0 = (s.tmp_5 / s.tmp_6); + s.change___11293 = (r0); + r0 = s.arg0.fields["target"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["displayValue"]; + 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 = r0 = s.arg0; + s.tmp_5 = Math_min__P131_mk(s); + r0 = (s.displayValue___11261 + s.change___11293); + s.tmp_5.arg0 = r0; + r0 = s.arg0.fields["target"]; + s.tmp_5.arg1 = r0; + s.callLocIdx = 1856; s.pc = 19; return s.tmp_5; + case 19: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["displayValue"] = (s.tmp_4); + r0 = (s.arg0).fields["lastUpdate"] = (s.currTime___11278); + { step = 8; continue; } case 5: - r0 = (s.unnamed105___U2 + 1); - s.unnamed105___U2 = (r0); - { step = 1; continue; } + r0 = s.arg0.fields["target"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["displayValue"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.tmp_3 = r0 = s.arg0; + s.tmp_5 = Math_max__P130_mk(s); + r0 = (s.displayValue___11261 - s.change___11293); + s.tmp_5.arg0 = r0; + r0 = s.arg0.fields["target"]; + s.tmp_5.arg1 = r0; + s.callLocIdx = 1857; s.pc = 20; return s.tmp_5; + case 20: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["displayValue"] = (s.tmp_4); + r0 = (s.arg0).fields["lastUpdate"] = (s.currTime___11278); case 6: - s.unnamed104___U1 = (undefined); case 7: case 8: - r0 = null; + r0 = s.arg0.fields["displayValue"]; + s.tmp_1 = r0; + r0 = (s.displayValue___11261 !== s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + s.tmp_2 = statusbars_StatusBar_updateDisplay__P4200_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1858; s.pc = 21; return s.tmp_2; + case 21: + r0 = s.retval; case 9: + case 10: + case 11: + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers__getFactoryInstance__P3119.info = {"start":1983,"length":348,"line":60,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"_getFactoryInstance","argumentNames":["kind","name"]} +statusbars_StatusBar_updateState__P4199.info = {"start":18795,"length":1067,"line":549,"column":8,"endLine":573,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"updateState","argumentNames":["this"]} -function helpers__getFactoryInstance__P3119_mk(s) { +function statusbars_StatusBar_updateState__P4199_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers__getFactoryInstance__P3119, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_updateState__P4199, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16815,19 +18870,23 @@ function helpers__getFactoryInstance__P3119_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - factory___11252: undefined, - unnamed104___U1: undefined, - unnamed105___U2: undefined, - data___11259: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + target___11260: undefined, + displayValue___11261: undefined, + currTime___11278: undefined, + change___11293: undefined, arg0: undefined, - arg1: undefined, } } -function tilemap__P3108(s) { +function statusbars_StatusBar_current__P4194(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16839,29 +18898,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = null; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, statusbars_StatusBar__C4172_VT)) failedCast(r0); + r0 = s.arg0.fields["target"]; + return leaveAccessor(s, r0) default: oops() } } } -tilemap__P3108.info = {"start":99,"length":78,"line":3,"column":0,"endLine":3,"endColumn":78,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"tilemap","argumentNames":["lits","args"]} +statusbars_StatusBar_current__P4194.info = {"start":15946,"length":57,"line":461,"column":8,"endLine":463,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"current","argumentNames":["this"]} +statusbars_StatusBar_current__P4194.isGetter = true; -function tilemap__P3108_mk(s) { +function statusbars_StatusBar_current__P4194_mk(s) { checkStack(s.depth); return { - parent: s, fn: tilemap__P3108, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_current__P4194, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, - arg1: undefined, } } -function tiles_setCurrentTilemap__P2600(s) { +function statusbars_StatusBar_max__P4192(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16875,23 +18935,20 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = scene_setTileMapLevel__P2722_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1099; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, statusbars_StatusBar__C4172_VT)) failedCast(r0); + r0 = s.arg0.fields["_max"]; + return leaveAccessor(s, r0) default: oops() } } } -tiles_setCurrentTilemap__P2600.info = {"start":19775,"length":103,"line":614,"column":4,"endLine":616,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setCurrentTilemap","argumentNames":["tilemap"]} +statusbars_StatusBar_max__P4192.info = {"start":15766,"length":51,"line":452,"column":8,"endLine":454,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"max","argumentNames":["this"]} +statusbars_StatusBar_max__P4192.isGetter = true; -function tiles_setCurrentTilemap__P2600_mk(s) { +function statusbars_StatusBar_max__P4192_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_setCurrentTilemap__P2600, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_max__P4192, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -16899,7 +18956,7 @@ function tiles_setCurrentTilemap__P2600_mk(s) { -function scene_setTileMapLevel__P2722(s) { +function StatusBarSprite_max__P4159(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16909,59 +18966,43 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___11274 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1165; s.pc = 3; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, StatusBarSprite__C4155_VT)) failedCast(r0); + s.tmp_1 = StatusBarSprite_applyChange__P6776_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = StatusBarSprite_max_inline__P12273; + s.callLocIdx = 1790; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.scene___11274 = (r0); - r0 = s.scene___11274.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); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkClassInstance(tiles_TileMap__C2571_VT); - s.tmp_3 = r0; - s.tmp_4 = tiles_TileMap_constructor__P2573_mk(s); - s.tmp_4.arg0 = s.tmp_3; - s.tmp_4.arg1 = 4; - s.callLocIdx = 1166; s.pc = 4; return s.tmp_4; - case 4: - r0 = s.retval; - r0 = (s.scene___11274).fields["tileMap"] = (s.tmp_3); + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = 0; case 2: - s.tmp_0 = tiles_TileMap_setData__P2584_mk(s); - r0 = s.scene___11274.fields["tileMap"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1167; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.tmp_2; + return leaveAccessor(s, r0) default: oops() } } } -scene_setTileMapLevel__P2722.info = {"start":3018,"length":219,"line":113,"column":4,"endLine":118,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setTileMapLevel","argumentNames":["map"]} +StatusBarSprite_max__P4159.info = {"start":3111,"length":77,"line":98,"column":4,"endLine":100,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"max","argumentNames":["this"]} +StatusBarSprite_max__P4159.isGetter = true; -function scene_setTileMapLevel__P2722_mk(s) { +function StatusBarSprite_max__P4159_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_setTileMapLevel__P2722, depth: s.depth + 1, + parent: s, fn: StatusBarSprite_max__P4159, depth: s.depth + 1, pc: 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___11274: undefined, arg0: undefined, } } @@ -16969,7 +19010,39 @@ function scene_setTileMapLevel__P2722_mk(s) { -function tiles_TileMap_setData__P2584(s) { +function StatusBarSprite_max_inline__P12273(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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["_max"]; + return leave(s, r0) + default: oops() +} } } +StatusBarSprite_max_inline__P12273.info = {"start":3163,"length":12,"line":99,"column":32,"endLine":99,"endColumn":44,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} + +function StatusBarSprite_max_inline__P12273_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: StatusBarSprite_max_inline__P12273, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function StatusBarSprite_attachToSprite__P4161(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16979,189 +19052,425 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.previous___11291 = undefined; - s.eventHandler___11305 = undefined; - s.unnamed94___U2 = undefined; - s.unnamed95___U3 = undefined; - s.eventHandler___11335 = undefined; - s.unnamed96___U5 = undefined; - s.unnamed97___U6 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2571_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.previous___11291 = (r0); - r0 = s.arg0.fields["handlerState"]; + if (!checkSubtype(r0, StatusBarSprite__C4155_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(4, StatusBarSprite_attachToSprite_inline__P12283); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = (s.previous___11291 !== s.arg1); - case 2: - // jmp value (already in r0) + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg1); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg2); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.arg3); + s.tmp_1 = StatusBarSprite_applyChange__P6776_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1795; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +StatusBarSprite_attachToSprite__P4161.info = {"start":3741,"length":778,"line":116,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"attachToSprite","argumentNames":["this","toFollow","padding","offset"]} + +function StatusBarSprite_attachToSprite__P4161_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: StatusBarSprite_attachToSprite__P4161, 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 StatusBarSprite_attachToSprite_inline__P12283(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = Sprite_setFlag__P2260_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = 512; + s.tmp_0.arg2 = true; + s.callLocIdx = 1793; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + r0 = (s.arg0).fields["spriteToFollow"] = (s.caps[1]); + r0 = s.arg0.fields["followPadding"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (r0) { step = 3; continue; } - r0 = s.tmp_1; + 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.caps[2] !== undefined); + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 5; continue; } + s.tmp_3 = r0 = s.caps[2]; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = s.tmp_3; { step = 4; continue; } case 3: - r0 = s.previous___11291; + r0 = 0; case 4: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = (s.arg0).fields["followPadding"] = (s.tmp_4); + case 5: + case 6: + r0 = s.arg0.fields["followOffset"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === undefined); + 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.caps[2] !== undefined); + case 8: // jmp value (already in r0) s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 11; continue; } + s.tmp_3 = r0 = s.caps[3]; + r0 = pxsim_numops_toBool(s.tmp_3); if (!r0) { step = 9; continue; } - s.eventHandler___11305 = (undefined); - r0 = s.arg0.fields["handlerState"]; - s.unnamed94___U2 = (r0); - s.unnamed95___U3 = (0); - case 5: - s.tmp_0 = r0 = s.unnamed95___U3; - r0 = pxsim_Array__length(s.unnamed94___U2); + r0 = s.tmp_3; + { step = 10; continue; } + case 9: + r0 = 0; + case 10: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = (s.arg0).fields["followOffset"] = (s.tmp_4); + case 11: + case 12: + r0 = pxsim_numops_toBoolDecr(s.caps[1]); + if (!r0) { step = 13; continue; } + s.tmp_0 = statusbars_StatusBar_positionNextTo__P4188_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + s.tmp_0.arg2 = s.caps[1]; + s.callLocIdx = 1794; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + case 13: + case 14: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +StatusBarSprite_attachToSprite_inline__P12283.info = {"start":3836,"length":675,"line":117,"column":25,"endLine":131,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} + +function StatusBarSprite_attachToSprite_inline__P12283_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: StatusBarSprite_attachToSprite_inline__P12283, depth: s.depth + 1, + pc: 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 statusbars_StatusBar_positionNextTo__P4188(s) { +let r0 = s.r0, 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.padding___12321 = undefined; + s.alignment___12324 = undefined; + s.position___12327 = undefined; + s.toFollowIsRelativeToCamera___12353 = 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, statusbars_StatusBar__C4172_VT)) failedCast(r0); + r0 = s.arg0.fields["followPadding"]; + s.padding___12321 = (r0); + r0 = s.arg0.fields["followOffset"]; + s.alignment___12324 = (r0); + r0 = s.arg0.fields["explicitlySetDirection"]; s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 8; continue; } - r0 = pxsim_Array__getAt(s.unnamed94___U2, s.unnamed95___U3); - s.eventHandler___11305 = (r0); - r0 = s.eventHandler___11305.fields["event"]; + r0 = (s.tmp_1 != null); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["explicitlySetDirection"]; + { step = 4; continue; } + case 1: + r0 = s.arg0.fields["_barHeight"]; s.tmp_3 = r0; - r0 = (s.tmp_3 === 1); + r0 = s.arg0.fields["_barWidth"]; + s.tmp_4 = r0; + r0 = (s.tmp_3 > s.tmp_4); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 6; continue; } - s.tmp_4 = if_callback_2_mk(s); - s.tmp_4.arg0 = s.eventHandler___11305; - s.tmp_4.arg1 = s.previous___11291; - if (!s.tmp_4.arg0.vtable.iface) { - setupLambda(s.tmp_4, pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "callback"), 2); - s.callLocIdx = 1047; s.pc = 23; return s.tmp_4; - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["callback"]; - if (s.tmp_4.fn == null) { setupLambda(s.tmp_4, s.tmp_4.arg0.fields["callback"], 2); s.callLocIdx = 1047; s.pc = 23; return s.tmp_4; } - else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1047; s.pc = 23; return s.tmp_4;; } - else { s.callLocIdx = 1047; s.pc = 23; return s.tmp_4; } - } - case 23: - r0 = s.retval; + if (!r0) { step = 2; continue; } + r0 = 0; + { step = 3; continue; } + case 2: + r0 = 1; + case 3: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = s.tmp_5; + case 4: + // jmp value (already in r0) + s.tmp_6 = r0; + s.position___12327 = (s.tmp_6); + r0 = s.arg2.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 5: + r0 = s.arg0.fields["flags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 32); + 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_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 7; continue; } + s.tmp_6 = Sprite_destroy__P2269_mk(s); + s.tmp_6.arg0 = s.arg1; + s.tmp_6.arg1 = undefined; + s.tmp_6.arg2 = undefined; + s.callLocIdx = 1804; s.pc = 19; return s.tmp_6; + case 19: + r0 = s.retval; case 7: - r0 = (s.unnamed95___U3 + 1); - s.unnamed95___U3 = (r0); - { step = 5; continue; } case 8: - s.unnamed94___U2 = (undefined); + r0 = s.arg2.fields["flags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 512); + 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); + s.toFollowIsRelativeToCamera___12353 = (r0); + r0 = s.arg1.fields["flags"]; + s.tmp_6 = r0; + r0 = (s.tmp_6 & 512); + 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); + s.tmp_1 = r0; + r0 = (s.tmp_1 != s.toFollowIsRelativeToCamera___12353); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + s.tmp_7 = Sprite_setFlag__P2260_mk(s); + s.tmp_7.arg0 = s.arg1; + s.tmp_7.arg1 = 512; + s.tmp_7.arg2 = s.toFollowIsRelativeToCamera___12353; + s.callLocIdx = 1805; s.pc = 20; return s.tmp_7; + case 20: + r0 = s.retval; case 9: case 10: - r0 = (s.arg0).fields["_map"] = (s.arg1); - r0 = pxsim_numops_toBoolDecr(s.arg1); + r0 = (s.position___12327 === 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 11; continue; } - s.tmp_0 = r0 = s.arg0; - r0 = s.arg1.fields["_scale"]; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_scale"] = (s.tmp_1); + r0 = s.tmp_0; + { step = 12; continue; } case 11: + r0 = (s.position___12327 === 2); case 12: - r0 = s.arg0.fields["handlerState"]; + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 15; continue; } + s.tmp_2 = Sprite_y__P2198_mk(s); + s.tmp_2.arg0 = s.arg1; + s.tmp_4 = Sprite_y__P2197_mk(s); + s.tmp_4.arg0 = s.arg2; + s.callLocIdx = 1806; s.pc = 22; return s.tmp_4; + case 22: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 + s.alignment___12324); + s.tmp_2.arg1 = r0; + s.callLocIdx = 1807; s.pc = 21; return s.tmp_2; + case 21: + r0 = s.retval; + r0 = (s.position___12327 === 2); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 13; continue; } - r0 = s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + s.tmp_1 = Sprite_left__P2241_mk(s); + s.tmp_1.arg0 = s.arg1; + s.tmp_3 = Sprite_right__P2242_mk(s); + s.tmp_3.arg0 = s.arg2; + s.callLocIdx = 1808; s.pc = 24; return s.tmp_3; + case 24: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.padding___12321); + s.tmp_1.arg1 = r0; + s.callLocIdx = 1809; s.pc = 23; return s.tmp_1; + case 23: + r0 = s.retval; { step = 14; continue; } case 13: - r0 = (s.previous___11291 !== s.arg1); - case 14: - // jmp value (already in r0) + s.tmp_0 = Sprite_right__P2243_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_2 = Sprite_left__P2240_mk(s); + s.tmp_2.arg0 = s.arg2; + s.callLocIdx = 1810; s.pc = 26; return s.tmp_2; + case 26: + r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (r0) { step = 15; continue; } - r0 = s.tmp_1; - { step = 16; continue; } + r0 = (s.tmp_1 - s.padding___12321); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1811; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + case 14: + { step = 18; continue; } case 15: - r0 = s.arg1; - case 16: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 21; continue; } - s.eventHandler___11335 = (undefined); - r0 = s.arg0.fields["handlerState"]; - s.unnamed96___U5 = (r0); - s.unnamed97___U6 = (0); - case 17: - s.tmp_0 = r0 = s.unnamed97___U6; - r0 = pxsim_Array__length(s.unnamed96___U5); + s.tmp_0 = Sprite_x__P2196_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_2 = Sprite_x__P2195_mk(s); + s.tmp_2.arg0 = s.arg2; + s.callLocIdx = 1812; s.pc = 28; return s.tmp_2; + case 28: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 20; continue; } - r0 = pxsim_Array__getAt(s.unnamed96___U5, s.unnamed97___U6); - s.eventHandler___11335 = (r0); - r0 = s.eventHandler___11335.fields["event"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 === 0); + r0 = (s.tmp_1 + s.alignment___12324); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1813; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + r0 = (s.position___12327 === 3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + s.tmp_1 = Sprite_top__P2245_mk(s); + s.tmp_1.arg0 = s.arg1; + s.tmp_3 = Sprite_bottom__P2246_mk(s); + s.tmp_3.arg0 = s.arg2; + s.callLocIdx = 1814; s.pc = 30; return s.tmp_3; + case 30: + r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 18; continue; } - s.tmp_4 = if_callback_2_mk(s); - s.tmp_4.arg0 = s.eventHandler___11335; - s.tmp_4.arg1 = s.arg1; - if (!s.tmp_4.arg0.vtable.iface) { - setupLambda(s.tmp_4, pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "callback"), 2); - s.callLocIdx = 1049; s.pc = 24; return s.tmp_4; - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["callback"]; - if (s.tmp_4.fn == null) { setupLambda(s.tmp_4, s.tmp_4.arg0.fields["callback"], 2); s.callLocIdx = 1049; s.pc = 24; return s.tmp_4; } - else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1049; s.pc = 24; return s.tmp_4;; } - else { s.callLocIdx = 1049; s.pc = 24; return s.tmp_4; } - } - case 24: + r0 = (s.tmp_2 + s.padding___12321); + s.tmp_1.arg1 = r0; + s.callLocIdx = 1815; s.pc = 29; return s.tmp_1; + case 29: r0 = s.retval; - case 18: - case 19: - r0 = (s.unnamed97___U6 + 1); - s.unnamed97___U6 = (r0); { step = 17; continue; } - case 20: - s.unnamed96___U5 = (undefined); - case 21: - case 22: + case 16: + s.tmp_0 = Sprite_bottom__P2247_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_2 = Sprite_top__P2244_mk(s); + s.tmp_2.arg0 = s.arg2; + s.callLocIdx = 1816; s.pc = 32; return s.tmp_2; + case 32: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.padding___12321); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1817; s.pc = 31; return s.tmp_0; + case 31: + r0 = s.retval; + case 17: + case 18: r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_setData__P2584.info = {"start":10253,"length":807,"line":355,"column":8,"endLine":378,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setData","argumentNames":["this","map"]} +statusbars_StatusBar_positionNextTo__P4188.info = {"start":13999,"length":1505,"line":407,"column":8,"endLine":437,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"positionNextTo","argumentNames":["this","status","target"]} -function tiles_TileMap_setData__P2584_mk(s) { +function statusbars_StatusBar_positionNextTo__P4188_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_setData__P2584, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_positionNextTo__P4188, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - previous___11291: undefined, - eventHandler___11305: undefined, - unnamed94___U2: undefined, - unnamed95___U3: undefined, - eventHandler___11335: undefined, - unnamed96___U5: undefined, - unnamed97___U6: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + padding___12321: undefined, + alignment___12324: undefined, + position___12327: undefined, + toFollowIsRelativeToCamera___12353: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function tiles_TileMapData_scale__P2557(s) { +function Sprite_bottom__P2247(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17173,30 +19482,49 @@ 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__C2553_VT)) failedCast(r0); - r0 = s.arg0.fields["_scale"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P2245_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = Sprite_height__P2239_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 475; s.pc = 2; return s.tmp_3; + case 2: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 476; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_TileMapData_scale__P2557.info = {"start":6564,"length":66,"line":222,"column":8,"endLine":224,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]} -tiles_TileMapData_scale__P2557.isGetter = true; +Sprite_bottom__P2247.info = {"start":12204,"length":73,"line":440,"column":4,"endLine":442,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this","value"]} -function tiles_TileMapData_scale__P2557_mk(s) { +function Sprite_bottom__P2247_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_scale__P2557, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P2247, depth: s.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_TileMap_constructor__P2573(s) { +function Sprite_bottom__P2246(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17208,55 +19536,46 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2571_VT)) failedCast(r0); - r0 = (s.arg0).fields["_layer"] = (1); - s.tmp_0 = tiles_TileMap_scale__P2575_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1033; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_1 = Sprite_top__P2244_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 473; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, tiles_TileMap_inline__P11361); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = r0 = s.arg0; - s.tmp_3 = scene_createRenderable__P2640_mk(s); - s.tmp_3.arg0 = -1; - s.tmp_3.arg1 = s.tmp_0; - s.tmp_3.arg2 = undefined; - s.callLocIdx = 1035; s.pc = 2; return s.tmp_3; + s.tmp_3 = Sprite_height__P2239_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 474; s.pc = 2; return s.tmp_3; case 2: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_1).fields["renderable"] = (s.tmp_2); - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_0 + s.tmp_2); + return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_constructor__P2573.info = {"start":8927,"length":268,"line":300,"column":8,"endLine":308,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","scale"]} +Sprite_bottom__P2246.info = {"start":12052,"length":59,"line":435,"column":4,"endLine":437,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this"]} +Sprite_bottom__P2246.isGetter = true; -function tiles_TileMap_constructor__P2573_mk(s) { +function Sprite_bottom__P2246_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_constructor__P2573, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P2246, depth: s.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_TileMap_inline__P11361(s) { +function Sprite_right__P2243(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17271,25 +19590,37 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tiles_TileMap_draw__P4643_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 1034; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P2241_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = Sprite_width__P2238_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 467; s.pc = 2; return s.tmp_3; + case 2: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 468; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_inline__P11361.info = {"start":9145,"length":25,"line":306,"column":16,"endLine":306,"endColumn":41,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["t","c"]} +Sprite_right__P2243.info = {"start":11367,"length":71,"line":410,"column":4,"endLine":412,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this","value"]} -function tiles_TileMap_inline__P11361_mk(s) { +function Sprite_right__P2243_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_inline__P11361, depth: s.depth + 1, + parent: s, fn: Sprite_right__P2243, depth: s.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, } } @@ -17298,7 +19629,7 @@ function tiles_TileMap_inline__P11361_mk(s) { -function tiles_TileMap_draw__P4643(s) { +function Sprite_right__P2242(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17308,333 +19639,48 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.bitmask___11372 = undefined; - s.offsetX___11378 = undefined; - s.offsetY___11383 = undefined; - s.x0___11388 = undefined; - s.xn___11395 = undefined; - s.y0___11412 = undefined; - s.yn___11419 = undefined; - s.x___11436 = undefined; - s.y___11442 = undefined; - s.index___11448 = undefined; - s.tile___11455 = undefined; - s.x___11491 = undefined; - s.xLine___11497 = undefined; - s.y___11523 = undefined; - s.yLine___11529 = 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__C2571_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; } + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_1 = Sprite_left__P2240_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 465; s.pc = 1; return s.tmp_1; case 1: + r0 = s.retval; + s.tmp_0 = r0; + s.tmp_3 = Sprite_width__P2238_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 466; s.pc = 2; return s.tmp_3; 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___11372 = (r0); - r0 = s.arg2.fields["drawOffsetX"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___11372); - s.offsetX___11378 = (r0); - r0 = s.arg2.fields["drawOffsetY"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___11372); - s.offsetY___11383 = (r0); - s.tmp_0 = Math_max__P130_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 = 1056; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.x0___11388 = (r0); - s.tmp_0 = Math_min__P131_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 = 1059; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.xn___11395 = (r0); - s.tmp_0 = Math_max__P130_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 = 1061; s.pc = 26; return s.tmp_0; - case 26: - r0 = s.retval; - s.y0___11412 = (r0); - s.tmp_0 = Math_min__P131_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 = 1064; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - s.yn___11419 = (r0); - s.x___11436 = (s.x0___11388); - case 3: - r0 = (s.x___11436 <= s.xn___11395); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.y___11442 = (s.y0___11412); - case 4: - r0 = (s.y___11442 <= s.yn___11419); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_1 = tiles_TileMapData_getTile__P2559_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.x___11436; - s.tmp_1.arg2 = s.y___11442; - s.callLocIdx = 1065; s.pc = 28; return s.tmp_1; - case 28: - r0 = s.retval; - s.index___11448 = (r0); - s.tmp_0 = tiles_TileMapData_getTileImage__P2562_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___11448; - s.callLocIdx = 1066; s.pc = 29; return s.tmp_0; - case 29: - r0 = s.retval; - s.tile___11455 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tile___11455); - if (!r0) { step = 5; continue; } - s.tmp_0 = r0 = s.arg1; - s.tmp_1 = r0 = s.tile___11455; - r0 = (s.x___11436 - s.x0___11388); - 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___11378); - s.tmp_2 = r0; - r0 = (s.y___11442 - s.y0___11412); - 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___11383); - s.tmp_6 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_6); - case 5: - case 6: - r0 = (s.y___11442 + 1); - s.y___11442 = (r0); - { step = 4; continue; } - case 7: - r0 = (s.x___11436 + 1); - s.x___11436 = (r0); - { step = 3; continue; } - case 8: - r0 = pxsim_numops_toBoolDecr(globals.debug___2788); - if (!r0) { step = 21; continue; } - s.x___11491 = (s.x0___11388); - case 9: - r0 = (s.x___11491 <= s.xn___11395); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = (s.x___11491 - s.x0___11388); - 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___11378); - s.xLine___11497 = (r0); - r0 = (s.xLine___11497 >= 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___11497; - r0 = pxsim_ImageMethods.width(globals.screen___1877); - 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__P1805_mk(s); - s.tmp_4.arg0 = s.arg1; - s.tmp_4.arg1 = s.xLine___11497; - s.tmp_4.arg2 = 0; - s.tmp_4.arg3 = s.xLine___11497; - r0 = pxsim_ImageMethods.height(s.arg1); - s.tmp_4.arg4 = r0; - s.tmp_4.arg5 = 1; - s.callLocIdx = 1070; s.pc = 30; return s.tmp_4; - case 30: r0 = s.retval; - case 12: - case 13: - r0 = (s.x___11491 + 1); - s.x___11491 = (r0); - { step = 9; continue; } - case 14: - s.y___11523 = (s.y0___11412); - case 15: - r0 = (s.y___11523 <= s.yn___11419); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - r0 = (s.y___11523 - s.y0___11412); - 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___11383); - s.yLine___11529 = (r0); - r0 = (s.yLine___11529 >= 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___11529; - r0 = pxsim_ImageMethods.height(globals.screen___1877); 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__P1805_mk(s); - s.tmp_4.arg0 = s.arg1; - s.tmp_4.arg1 = 0; - s.tmp_4.arg2 = s.yLine___11529; - r0 = pxsim_ImageMethods.width(s.arg1); - s.tmp_4.arg3 = r0; - s.tmp_4.arg4 = s.yLine___11529; - s.tmp_4.arg5 = 1; - s.callLocIdx = 1072; s.pc = 31; return s.tmp_4; - case 31: - r0 = s.retval; - case 18: - case 19: - r0 = (s.y___11523 + 1); - s.y___11523 = (r0); - { step = 15; continue; } - case 20: - case 21: - case 22: - case 23: - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_0 + s.tmp_2); + return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_draw__P4643.info = {"start":13998,"length":2224,"line":458,"column":8,"endLine":513,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"draw","argumentNames":["this","target","camera"]} +Sprite_right__P2242.info = {"start":11218,"length":57,"line":405,"column":4,"endLine":407,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this"]} +Sprite_right__P2242.isGetter = true; -function tiles_TileMap_draw__P4643_mk(s) { +function Sprite_right__P2242_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_draw__P4643, depth: s.depth + 1, + parent: s, fn: Sprite_right__P2242, depth: s.depth + 1, pc: 0, retval: undefined, 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___11372: undefined, - offsetX___11378: undefined, - offsetY___11383: undefined, - x0___11388: undefined, - xn___11395: undefined, - y0___11412: undefined, - yn___11419: undefined, - x___11436: undefined, - y___11442: undefined, - index___11448: undefined, - tile___11455: undefined, - x___11491: undefined, - xLine___11497: undefined, - y___11523: undefined, - yLine___11529: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function tiles_TileMap_enabled__P2583(s) { +function Sprite_setFlag__P2260(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17646,42 +19692,59 @@ 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__C2571_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 1; continue; } + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + { step = 2; continue; } + case 1: + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["flags"]; + s.tmp_4 = r0; + r0 = (~ s.tmp_4); s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = (s.tmp_3 | s.arg1); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = (~ 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) + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + case 2: + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_TileMap_enabled__P2583.info = {"start":10177,"length":66,"line":351,"column":8,"endLine":353,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"enabled","argumentNames":["this"]} -tiles_TileMap_enabled__P2583.isGetter = true; +Sprite_setFlag__P2260.info = {"start":20205,"length":130,"line":676,"column":4,"endLine":679,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setFlag","argumentNames":["this","flag","on"]} -function tiles_TileMap_enabled__P2583_mk(s) { +function Sprite_setFlag__P2260_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_enabled__P2583, depth: s.depth + 1, + parent: s, fn: Sprite_setFlag__P2260, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function tiles_TileMapData_getTileImage__P2562(s) { +function Sprite_vx__P2200(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17691,85 +19754,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.size___11573 = undefined; - s.cachedImage___11577 = undefined; - s.originalImage___11584 = 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__C2553_VT)) failedCast(r0); - r0 = s.arg0.fields["_scale"]; - s.tmp_0 = r0; - r0 = (1 << s.tmp_0); - s.size___11573 = (r0); - r0 = s.arg0.fields["cachedTileView"]; - s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); - s.cachedImage___11577 = (r0); - r0 = pxsim_numops_toBoolDecr(s.cachedImage___11577); - s.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"]; + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, s.arg1); - s.originalImage___11584 = (r0); - r0 = pxsim_numops_toBoolDecr(s.originalImage___11584); - if (!r0) { step = 5; continue; } - r0 = pxsim_ImageMethods.width(s.originalImage___11584); + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.size___11573); - 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___11584); - s.tmp_2 = r0; - r0 = (s.tmp_2 <= s.size___11573); - 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___11577 = (s.originalImage___11584); - { step = 4; continue; } - case 3: - r0 = pxsim.image.create(s.size___11573, s.size___11573); - s.cachedImage___11577 = (r0); - r0 = pxsim_ImageMethods.drawImage(s.cachedImage___11577, s.originalImage___11584, 0, 0); - case 4: - r0 = s.arg0.fields["cachedTileView"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___11577); - case 5: - case 6: - case 7: - case 8: - r0 = s.cachedImage___11577; + r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTileImage__P2562.info = {"start":7354,"length":717,"line":251,"column":8,"endLine":268,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} +Sprite_vx__P2200.info = {"start":3426,"length":51,"line":137,"column":4,"endLine":139,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this","v"]} -function tiles_TileMapData_getTileImage__P2562_mk(s) { +function Sprite_vx__P2200_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTileImage__P2562, depth: s.depth + 1, + parent: s, fn: Sprite_vx__P2200, depth: s.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___11573: undefined, - cachedImage___11577: undefined, - originalImage___11584: undefined, arg0: undefined, arg1: undefined, } } @@ -17778,7 +19789,7 @@ function tiles_TileMapData_getTileImage__P2562_mk(s) { -function tiles_TileMapData_getTile__P2559(s) { +function Sprite_vx__P2199(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17790,71 +19801,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2553_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P2565_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - s.tmp_1.arg2 = s.arg2; - s.callLocIdx = 1028; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + r0 = s.arg0.fields["_vx"]; 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) + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMapData_getTile__P2559.info = {"start":6752,"length":200,"line":231,"column":8,"endLine":235,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} +Sprite_vx__P2199.info = {"start":3264,"length":60,"line":132,"column":4,"endLine":134,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this"]} +Sprite_vx__P2199.isGetter = true; -function tiles_TileMapData_getTile__P2559_mk(s) { +function Sprite_vx__P2199_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTile__P2559, depth: s.depth + 1, + parent: s, fn: Sprite_vx__P2199, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function tiles_TileMapData_isOutsideMap__P2565(s) { +function statusbars_create__P4211(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17864,68 +19837,205 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.onColor___12474 = undefined; + s.offColor___12475 = undefined; + s.drainColor___12476 = undefined; + s.sb___12489 = undefined; + s.output___12498 = undefined; + s.cs___12505 = undefined; + s.handler___12551 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2553_VT)) failedCast(r0); - r0 = (s.arg1 < 0); + s.onColor___12474 = (7); + s.offColor___12475 = (2); + s.drainColor___12476 = (3); + r0 = (s.arg2 === globals.Energy___4152); 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.onColor___12474 = (5); + s.offColor___12475 = (11); + s.drainColor___12476 = (4); + { step = 4; continue; } case 1: - s.tmp_1 = r0 = s.arg1; - r0 = s.arg0.fields["_width"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 >= s.tmp_2); + r0 = (s.arg2 === globals.Magic___4153); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.onColor___12474 = (8); + s.offColor___12475 = (11); + s.drainColor___12476 = (9); case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (!r0) { step = 3; continue; } - r0 = s.tmp_3; - { step = 4; continue; } case 3: - r0 = (s.arg2 < 0); case 4: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBool(s.tmp_4); + r0 = pxsim_pxtcore_mkClassInstance(statusbars_StatusBar__C4172_VT); + s.tmp_0 = r0; + s.tmp_1 = statusbars_StatusBar_constructor__P4183_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.onColor___12474; + s.tmp_1.arg4 = s.offColor___12475; + s.tmp_1.arg5 = s.drainColor___12476; + s.tmp_1.arg6 = 100; + s.tmp_1.arg7 = s.arg2; + s.callLocIdx = 1882; s.pc = 11; return s.tmp_1; + case 11: + r0 = s.retval; + s.sb___12489 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(StatusBarSprite__C4155_VT); + s.tmp_0 = r0; + s.tmp_1 = StatusBarSprite_constructor__P4156_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.sb___12489; + s.callLocIdx = 1883; s.pc = 12; return s.tmp_1; + case 12: + r0 = s.retval; + s.output___12498 = (s.tmp_0); + s.tmp_0 = Sprite_setKind__P2249_mk(s); + s.tmp_0.arg0 = s.output___12498; + s.tmp_0.arg1 = globals.StatusBar___4147; + s.callLocIdx = 1884; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = game_currentScene__P2792_mk(s); + s.callLocIdx = 1885; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.cs___12505 = (r0); + s.tmp_0 = PhysicsEngine__C2352_v0_2_mk(s); + r0 = s.cs___12505.fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.output___12498; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2352_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.addSprite; + s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P12516); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg2); + r0 = pxsim_pxtcore_mkAction(1, statusbars_create_inline__P12523); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.output___12498); + s.tmp_2 = helpers_arrayForEach__P109_mk(s); + s.tmp_3 = helpers_arrayFilter__P110_mk(s); + r0 = s.cs___12505.fields["createdHandlers"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.tmp_0; + s.callLocIdx = 1886; s.pc = 17; return s.tmp_3; + case 17: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 1888; s.pc = 16; return s.tmp_2; + case 16: + r0 = s.retval; + r0 = (s.sb___12489).fields["sprite"] = (s.output___12498); + s.tmp_0 = Sprite_setFlag__P2260_mk(s); + s.tmp_0.arg0 = s.output___12498; + s.tmp_0.arg1 = 512; + s.tmp_0.arg2 = true; + s.callLocIdx = 1889; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + s.tmp_0 = Sprite_setFlag__P2260_mk(s); + s.tmp_0.arg0 = s.output___12498; + s.tmp_0.arg1 = 7168; + s.tmp_0.arg2 = true; + s.callLocIdx = 1890; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + s.tmp_1 = Sprite_data__P2217_mk(s); + s.tmp_1.arg0 = s.output___12498; + s.callLocIdx = 1891; s.pc = 20; return s.tmp_1; + case 20: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_0, globals.STATUS_BAR_DATA_KEY___6777, s.sb___12489); + s.tmp_0 = if_z_2_mk(s); + s.tmp_0.arg0 = s.output___12498; + s.tmp_0.arg1 = 95; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "z", s.tmp_0.arg1); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; + if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } + else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } + else { s.callLocIdx = 1892; s.pc = 21; return s.tmp_0; } + } + case 21: + r0 = s.retval; + s.tmp_0 = statusbars_init__P6810_mk(s); + s.tmp_0.arg0 = s.output___12498; + s.callLocIdx = 1893; s.pc = 22; return s.tmp_0; + case 22: + r0 = s.retval; + s.tmp_1 = statusbars_getPostProcessHandlers__P6816_mk(s); + s.callLocIdx = 1894; s.pc = 23; return s.tmp_1; + case 23: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = s.tmp_4; + r0 = s.tmp_0; { 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 = pxsim_Array__mk(); case 6: // jmp value (already in r0) - s.tmp_7 = r0; - r0 = s.tmp_7; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, s.arg2); + s.handler___12551 = (r0); + s.tmp_0 = r0 = s.output___12498; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } + case 7: + r0 = s.handler___12551; + 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 = lambda_3_mk(s); + s.tmp_2.argL = s.handler___12551; + s.tmp_2.arg0 = s.output___12498; + r0 = s.output___12498.fields["_image"]; + s.tmp_2.arg1 = r0; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 1896; s.pc = 24; return s.tmp_2; + case 24: + r0 = s.retval; + case 9: + case 10: + r0 = s.output___12498; return leave(s, r0) default: oops() } } } -tiles_TileMapData_isOutsideMap__P2565.info = {"start":8335,"length":132,"line":278,"column":8,"endLine":280,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOutsideMap","argumentNames":["this","col","row"]} +statusbars_create__P4211.info = {"start":26256,"length":1475,"line":747,"column":4,"endLine":801,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"create","argumentNames":["width","height","kind"]} -function tiles_TileMapData_isOutsideMap__P2565_mk(s) { +function statusbars_create__P4211_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_isOutsideMap__P2565, depth: s.depth + 1, + parent: s, fn: statusbars_create__P4211, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, + onColor___12474: undefined, + offColor___12475: undefined, + drainColor___12476: undefined, + sb___12489: undefined, + output___12498: undefined, + cs___12505: undefined, + handler___12551: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -17935,7 +20045,7 @@ function tiles_TileMapData_isOutsideMap__P2565_mk(s) { -function tiles_TileMapData_height__P2556(s) { +function forEach_inline__P12516(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17949,20 +20059,20 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2553_VT)) failedCast(r0); - r0 = s.arg0.fields["_height"]; - return leaveAccessor(s, r0) + r0 = s.arg0.fields["kind"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 == s.caps[0]); + return leave(s, r0) default: oops() } } } -tiles_TileMapData_height__P2556.info = {"start":6489,"length":65,"line":218,"column":8,"endLine":220,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"height","argumentNames":["this"]} -tiles_TileMapData_height__P2556.isGetter = true; +forEach_inline__P12516.info = {"start":27245,"length":19,"line":784,"column":20,"endLine":784,"endColumn":39,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["h"]} -function tiles_TileMapData_height__P2556_mk(s) { +function forEach_inline__P12516_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_height__P2556, depth: s.depth + 1, + parent: s, fn: forEach_inline__P12516, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -17970,7 +20080,7 @@ function tiles_TileMapData_height__P2556_mk(s) { -function tiles_TileMapData_width__P2555(s) { +function statusbars_create_inline__P12523(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17984,20 +20094,32 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2553_VT)) failedCast(r0); - r0 = s.arg0.fields["_width"]; - return leaveAccessor(s, r0) - default: oops() -} } } -tiles_TileMapData_width__P2555.info = {"start":6416,"length":63,"line":214,"column":8,"endLine":216,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"width","argumentNames":["this"]} -tiles_TileMapData_width__P2555.isGetter = true; - -function tiles_TileMapData_width__P2555_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_TileMapData_width__P2555, depth: s.depth + 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 = 1887; 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 = 1887; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1887; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 1887; s.pc = 1; return s.tmp_0; } + } + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +statusbars_create_inline__P12523.info = {"start":27287,"length":22,"line":785,"column":21,"endLine":785,"endColumn":43,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["h"]} + +function statusbars_create_inline__P12523_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: statusbars_create_inline__P12523, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -18005,7 +20127,7 @@ function tiles_TileMapData_width__P2555_mk(s) { -function helpers_imageDrawLine__P1805(s) { +function statusbars_init__P6810(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18015,60 +20137,73 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.managedSprites___12568 = 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; } - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_pack__P4414_mk(s); - s.tmp_2.arg0 = s.arg1; - s.tmp_2.arg1 = s.arg2; - s.callLocIdx = 125; s.pc = 1; return s.tmp_2; - case 1: + s.tmp_0 = statusbars_getManagedSprites__P6813_mk(s); + s.callLocIdx = 1900; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; + s.managedSprites___12568 = (r0); + r0 = pxsim_numops_toBoolDecr(s.managedSprites___12568); s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P4414_mk(s); - s.tmp_4.arg0 = s.arg3; - s.tmp_4.arg1 = s.arg4; - s.callLocIdx = 126; s.pc = 2; return s.tmp_4; - case 2: + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_Array__mk(); + s.tmp_2 = r0; + s.managedSprites___12568 = (r0); + s.tmp_5 = game_currentScene__P2792_mk(s); + s.callLocIdx = 1901; s.pc = 4; return s.tmp_5; + case 4: r0 = s.retval; + s.tmp_4 = r0; + r0 = s.tmp_4.fields["_data"]; s.tmp_3 = r0; - r0 = pxsim_ImageMethods._drawLine(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5); + r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_3, globals.MANAGED_SPRITES_KEY___6781, s.tmp_2); + s.tmp_0 = control_EventContext_registerFrameHandler__P403_mk(s); + s.tmp_1 = game_eventContext__P2795_mk(s); + s.callLocIdx = 1903; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 25; + s.tmp_0.arg2 = statusbars_init_inline__P12583; + s.callLocIdx = 1908; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + case 1: + case 2: + r0 = pxsim_Array__push(s.managedSprites___12568, s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_imageDrawLine__P1805.info = {"start":5161,"length":159,"line":164,"column":4,"endLine":166,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]} +statusbars_init__P6810.info = {"start":31570,"length":1174,"line":898,"column":4,"endLine":927,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"init","argumentNames":["s"]} -function helpers_imageDrawLine__P1805_mk(s) { +function statusbars_init__P6810_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawLine__P1805, depth: s.depth + 1, + parent: s, fn: statusbars_init__P6810, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, + managedSprites___12568: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function scene_createRenderable__P2640(s) { +function statusbars_init_inline__P12583(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18078,60 +20213,103 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.renderable___11671 = 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__C2635_VT); + s.managed___12584 = undefined; + s.i___12587 = undefined; + s.spr___12594 = undefined; + s.sb___12598 = undefined; + s.spriteToFollow___12605 = undefined; + s.tmp_0 = statusbars_getManagedSprites__P6813_mk(s); + s.callLocIdx = 1904; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + s.managed___12584 = (r0); + r0 = pxsim_Array__length(s.managed___12584); 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; } + r0 = (s.tmp_0 - 1); + s.i___12587 = (r0); case 1: - r0 = renderable_inline__P11677; + r0 = (s.i___12587 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = pxsim_Array__getAt(s.managed___12584, s.i___12587); + s.spr___12594 = (r0); + r0 = s.spr___12594.fields["_statusBar"]; + s.sb___12598 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sb___12598); + if (!r0) { step = 4; continue; } + s.tmp_0 = statusbars_StatusBar_updateState__P4199_mk(s); + s.tmp_0.arg0 = s.sb___12598; + s.callLocIdx = 1905; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = if_spriteToFollow_1_mk(s); + s.tmp_0.arg0 = s.sb___12598; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "spriteToFollow"); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["spriteToFollow"]; + if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["spriteToFollow"]; } + else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } + else { s.callLocIdx = 1906; s.pc = 12; return s.tmp_0; } + } + case 12: + r0 = s.retval; + s.spriteToFollow___12605 = (r0); + r0 = pxsim_numops_toBoolDecr(s.spriteToFollow___12605); + if (!r0) { step = 2; continue; } + s.tmp_0 = statusbars_StatusBar_positionNextTo__P4188_mk(s); + s.tmp_0.arg0 = s.sb___12598; + s.tmp_0.arg1 = s.spr___12594; + s.tmp_0.arg2 = s.spriteToFollow___12605; + s.callLocIdx = 1907; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - s.tmp_3 = scene_Renderable_constructor__P2636_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 = 1127; s.pc = 3; return s.tmp_3; case 3: - r0 = s.retval; - s.renderable___11671 = (s.tmp_0); - r0 = s.renderable___11671; + case 4: + case 5: + r0 = s.spr___12594.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 = 6; continue; } + r0 = (s.sb___12598).fields["sprite"] = (undefined); + r0 = pxsim_Array_.removeAt(s.managed___12584, s.i___12587); + { step = 8; continue; } + case 6: + case 7: + case 8: + r0 = (s.i___12587 - 1); + s.i___12587 = (r0); + { step = 1; continue; } + case 9: + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_createRenderable__P2640.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"]} +statusbars_init_inline__P12583.info = {"start":31869,"length":817,"line":902,"column":80,"endLine":923,"endColumn":13,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":[]} -function scene_createRenderable__P2640_mk(s) { +function statusbars_init_inline__P12583_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_createRenderable__P2640, depth: s.depth + 1, + parent: s, fn: statusbars_init_inline__P12583, depth: s.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___11671: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, + managed___12584: undefined, + i___12587: undefined, + spr___12594: undefined, + sb___12598: undefined, + spriteToFollow___12605: undefined, } } -function renderable_inline__P11677(s) { +function statusbars_getManagedSprites__P6813(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18141,24 +20319,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = true; + s.tmp_0 = statusbars_getSceneData__P6812_mk(s); + s.tmp_0.arg0 = globals.MANAGED_SPRITES_KEY___6781; + s.callLocIdx = 1911; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -renderable_inline__P11677.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} +statusbars_getManagedSprites__P6813.info = {"start":33230,"length":107,"line":947,"column":4,"endLine":949,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"getManagedSprites","argumentNames":[]} -function renderable_inline__P11677_mk(s) { +function statusbars_getManagedSprites__P6813_mk(s) { checkStack(s.depth); return { - parent: s, fn: renderable_inline__P11677, depth: s.depth + 1, + parent: s, fn: statusbars_getManagedSprites__P6813, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, } } -function scene_Renderable_constructor__P2636(s) { +function statusbars_StatusBar_constructor__P4183(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18173,41 +20356,77 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); + s.arg7 = (s.lambdaArgs[7]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C2635_VT)) failedCast(r0); - r0 = (s.arg0).fields["handler"] = (s.arg1); - r0 = (s.arg0).fields["shouldBeVisible"] = (s.arg2); - s.tmp_0 = sprites_BaseSprite_constructor__P1940_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg3; - s.callLocIdx = 1124; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, statusbars_StatusBar__C4172_VT)) failedCast(r0); + r0 = (s.arg0).fields["_barWidth"] = (s.arg1); + r0 = (s.arg0).fields["_barHeight"] = (s.arg2); + r0 = (s.arg0).fields["onColor"] = (s.arg3); + r0 = (s.arg0).fields["offColor"] = (s.arg4); + r0 = (s.arg0).fields["drainColor"] = (s.arg5); + r0 = (s.arg0).fields["_max"] = (s.arg6); + r0 = (s.arg0).fields["kind"] = (s.arg7); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = game_currentScene__P2792_mk(s); + s.callLocIdx = 1800; s.pc = 1; return s.tmp_3; case 1: + r0 = s.retval; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["_millis"]; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["lastUpdate"] = (s.tmp_1); + r0 = (s.arg0).fields["throttleAmount"] = (100); + r0 = (s.arg0).fields["borderWidth"] = (0); + r0 = (s.arg0).fields["borderColor"] = (undefined); + r0 = (s.arg0).fields["flags"] = (4); + r0 = (s.arg0).fields["_label"] = (undefined); + r0 = (s.arg0).fields["labelColor"] = (1); + r0 = (s.arg0).fields["font"] = (globals.font5___1825); + r0 = (s.arg0).fields["followPadding"] = (0); + r0 = (s.arg0).fields["followOffset"] = (0); + r0 = (s.arg0).fields["hasHitZero"] = (false); + r0 = (s.arg0).fields["displayValue"] = (s.arg6); + r0 = (s.arg0).fields["target"] = (s.arg6); + s.tmp_0 = statusbars_StatusBar_rebuildImage__P6806_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1802; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Renderable_constructor__P2636.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"]} +statusbars_StatusBar_constructor__P4183.info = {"start":12864,"length":759,"line":363,"column":8,"endLine":387,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["this","_barWidth","_barHeight","onColor","offColor","drainColor","_max","kind"]} -function scene_Renderable_constructor__P2636_mk(s) { +function statusbars_StatusBar_constructor__P4183_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable_constructor__P2636, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_constructor__P4183, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, arg1: undefined, arg2: undefined, arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, + arg7: undefined, } } -function tiles_TileMap_scale__P2575(s) { +function statusbars_StatusBar_rebuildImage__P6806(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18217,49 +20436,185 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.width___12772 = undefined; + s.height___12775 = undefined; + s.labelWidth___12779 = undefined; + s.newImg___12821 = 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__C2571_VT)) failedCast(r0); - r0 = (s.arg0).fields["_scale"] = (s.arg1); - r0 = s.arg0.fields["_map"]; + if (!checkSubtype(r0, statusbars_StatusBar__C4172_VT)) failedCast(r0); + r0 = s.arg0.fields["_barWidth"]; + s.width___12772 = (r0); + r0 = s.arg0.fields["_barHeight"]; + s.height___12775 = (r0); + r0 = s.arg0.fields["_label"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_2 = if_charWidth_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_2.arg0 = r0; + 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 = 1834; s.pc = 11; return s.tmp_2; } + } + case 11: + r0 = s.retval; + s.tmp_1 = r0; + r0 = s.arg0.fields["_label"]; + s.tmp_4 = r0; + r0 = pxsim_String_.length(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_1 * s.tmp_3); + s.labelWidth___12779 = (r0); + r0 = s.arg0.fields["_barHeight"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_barWidth"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 > s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = tiles_TileMapData_scale__P2558_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 1036; s.pc = 3; return s.tmp_1; - case 3: + s.tmp_3 = Math_max__P130_mk(s); + s.tmp_3.arg0 = s.width___12772; + s.tmp_3.arg1 = s.labelWidth___12779; + s.callLocIdx = 1837; s.pc = 12; return s.tmp_3; + case 12: + r0 = s.retval; + s.width___12772 = (r0); + s.tmp_0 = r0 = s.height___12775; + s.tmp_3 = if_charHeight_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_3.arg0 = r0; + 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 = 1838; s.pc = 13; return s.tmp_3; } + } + case 13: r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.height___12775 = (r0); + { step = 2; continue; } case 1: + r0 = (s.width___12772 + s.labelWidth___12779); + s.width___12772 = (r0); + s.tmp_0 = Math_max__P130_mk(s); + s.tmp_0.arg0 = s.height___12775; + s.tmp_1 = if_charHeight_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_1.arg0 = r0; + 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 = 1839; s.pc = 15; return s.tmp_1; } + } + case 15: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1840; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.height___12775 = (r0); case 2: + case 3: + case 4: + r0 = s.arg0.fields["_image"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 5: + s.tmp_3 = r0 = s.width___12772; + r0 = s.arg0.fields["_image"]; + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_3 !== s.tmp_4); + case 6: + // jmp value (already in r0) + 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_7 = r0 = s.height___12775; + r0 = s.arg0.fields["_image"]; + s.tmp_9 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_9); + s.tmp_8 = r0; + r0 = (s.tmp_7 !== s.tmp_8); + case 8: + // jmp value (already in r0) + s.tmp_10 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_10); + if (!r0) { step = 9; continue; } + r0 = pxsim.image.create(s.width___12772, s.height___12775); + s.newImg___12821 = (r0); + r0 = (s.arg0).fields["_image"] = (s.newImg___12821); + case 9: + case 10: + s.tmp_0 = statusbars_StatusBar_updateDisplay__P4200_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1844; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_scale__P2575.info = {"start":9270,"length":144,"line":314,"column":8,"endLine":319,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} +statusbars_StatusBar_rebuildImage__P6806.info = {"start":17897,"length":790,"line":524,"column":8,"endLine":545,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"rebuildImage","argumentNames":["this"]} -function tiles_TileMap_scale__P2575_mk(s) { +function statusbars_StatusBar_rebuildImage__P6806_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_scale__P2575, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_rebuildImage__P6806, depth: s.depth + 1, pc: 0, retval: undefined, 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, + width___12772: undefined, + height___12775: undefined, + labelWidth___12779: undefined, + newImg___12821: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_TileMapData_scale__P2558(s) { +function StatusBarSprite_constructor__P4156(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18275,25 +20630,27 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C2553_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); + if (!checkSubtype(r0, StatusBarSprite__C4155_VT)) failedCast(r0); + r0 = (s.arg0).fields["_statusBar"] = (s.arg1); + s.tmp_0 = Sprite_constructor__P2229_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = s.arg1.fields["_image"]; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1784; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMapData_scale__P2558.info = {"start":6640,"length":102,"line":226,"column":8,"endLine":229,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} +StatusBarSprite_constructor__P4156.info = {"start":2526,"length":93,"line":78,"column":4,"endLine":80,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["this","_statusBar"]} -function tiles_TileMapData_scale__P2558_mk(s) { +function StatusBarSprite_constructor__P4156_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_scale__P2558, depth: s.depth + 1, + parent: s, fn: StatusBarSprite_constructor__P4156, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, arg1: undefined, } } @@ -18302,7 +20659,7 @@ function tiles_TileMapData_scale__P2558_mk(s) { -function tiles_TileMap_scale__P2574(s) { +function Sprite_constructor__P2229(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18314,30 +20671,139 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2571_VT)) failedCast(r0); - r0 = s.arg0.fields["_scale"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_constructor__P1940_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 439; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___1877); + 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___1877); + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.height(s.arg1); + s.tmp_5 = r0; + r0 = (s.tmp_4 - s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_6 = r0; + r0 = (s.tmp_6 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + r0 = s.arg0.fields["_x"]; + s.tmp_0 = r0; + r0 = (s.arg0).fields["_lastX"] = (s.tmp_0); + r0 = s.arg0.fields["_y"]; + s.tmp_0 = r0; + r0 = (s.arg0).fields["_lastY"] = (s.tmp_0); + s.tmp_0 = Sprite_vx__P2200_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 442; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.tmp_0 = Sprite_vy__P2202_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 443; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = Sprite_ax__P2204_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 444; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = Sprite_ay__P2206_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 445; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = Sprite_fx__P2208_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 446; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = Sprite_fy__P2210_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 447; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + r0 = (s.arg0).fields["_sx"] = (256); + r0 = (s.arg0).fields["_sy"] = (256); + r0 = (s.arg0).fields["flags"] = (0); + s.tmp_0 = Sprite_setImage__P2232_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 448; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.tmp_0 = Sprite_setKind__P2249_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = -1; + s.callLocIdx = 449; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + r0 = (s.arg0).fields["layer"] = (1); + r0 = (s.arg0).fields["lifespan"] = (undefined); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_overlappers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_obstacles"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_TileMap_scale__P2574.info = {"start":9205,"length":55,"line":310,"column":8,"endLine":312,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]} -tiles_TileMap_scale__P2574.isGetter = true; +Sprite_constructor__P2229.info = {"start":7406,"length":678,"line":278,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]} -function tiles_TileMap_scale__P2574_mk(s) { +function Sprite_constructor__P2229_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_scale__P2574, depth: s.depth + 1, + parent: s, fn: Sprite_constructor__P2229, depth: s.depth + 1, pc: 0, retval: undefined, 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 scene_setBackgroundImage__P2719(s) { +function Sprite_fy__P2210(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18347,44 +20813,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___11709 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1161; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = Math_max__P130_mk(s); + s.tmp_3.arg0 = 0; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 425; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; - s.scene___11709 = (r0); - s.tmp_0 = scene_Background_image__P2512_mk(s); - r0 = s.scene___11709.fields["background"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1162; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_fy"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_setBackgroundImage__P2719.info = {"start":1962,"length":135,"line":78,"column":4,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setBackgroundImage","argumentNames":["img"]} +Sprite_fy__P2210.info = {"start":5109,"length":64,"line":191,"column":4,"endLine":193,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this","v"]} -function scene_setBackgroundImage__P2719_mk(s) { +function Sprite_fy__P2210_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_setBackgroundImage__P2719, depth: s.depth + 1, + parent: s, fn: Sprite_fy__P2210, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - scene___11709: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function scene_Background_image__P2512(s) { +function Sprite_fy__P2209(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18396,32 +20869,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__C2505_VT)) failedCast(r0); - r0 = (s.arg0).fields["_image"] = (s.arg1); - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + r0 = s.arg0.fields["_fy"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -scene_Background_image__P2512.info = {"start":1003,"length":68,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"image","argumentNames":["this","image"]} +Sprite_fy__P2209.info = {"start":4947,"length":60,"line":186,"column":4,"endLine":188,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this"]} +Sprite_fy__P2209.isGetter = true; -function scene_Background_image__P2512_mk(s) { +function Sprite_fy__P2209_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_image__P2512, depth: s.depth + 1, + parent: s, fn: Sprite_fy__P2209, 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__P2511(s) { +function Sprite_fx__P2208(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18433,55 +20907,49 @@ 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__C2505_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = Math_max__P130_mk(s); + s.tmp_3.arg0 = 0; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 422; s.pc = 1; return s.tmp_3; + case 1: + r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_3 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___1877); - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___1877); - s.tmp_6 = r0; - r0 = pxsim.image.create(s.tmp_5, s.tmp_6); + r0 = (s.tmp_2 * 256); 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) + 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() } } } -scene_Background_image__P2511.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__P2511.isGetter = true; +Sprite_fx__P2208.info = {"start":4766,"length":64,"line":181,"column":4,"endLine":183,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this","v"]} -function scene_Background_image__P2511_mk(s) { +function Sprite_fx__P2208_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_image__P2511, depth: s.depth + 1, + parent: s, fn: Sprite_fx__P2208, depth: s.depth + 1, pc: 0, retval: undefined, 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 controller_Controller_moveSprite__P1994(s) { +function Sprite_fx__P2207(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18493,44 +20961,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C1978_VT)) failedCast(r0); - s.tmp_0 = controller_Controller__moveSpriteInternal__P1995_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.callLocIdx = 202; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + r0 = s.arg0.fields["_fx"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_moveSprite__P1994.info = {"start":4688,"length":128,"line":167,"column":8,"endLine":169,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"moveSprite","argumentNames":["this","sprite","vx","vy"]} +Sprite_fx__P2207.info = {"start":4604,"length":60,"line":176,"column":4,"endLine":178,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this"]} +Sprite_fx__P2207.isGetter = true; -function controller_Controller_moveSprite__P1994_mk(s) { +function Sprite_fx__P2207_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_moveSprite__P1994, depth: s.depth + 1, + parent: s, fn: Sprite_fx__P2207, 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 controller_Controller__moveSpriteInternal__P1995(s) { +function Sprite_ax__P2204(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18540,164 +20997,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cp___11753 = 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__C1978_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 15; continue; } - case 1: - case 2: - s.tmp_5 = controller_Controller__controlledSprites__P1983_mk(s); - s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 203; 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__P1984_mk(s); - s.tmp_6.arg0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_6.arg1 = r0; - s.callLocIdx = 204; s.pc = 17; return s.tmp_6; - case 17: - r0 = s.retval; - case 3: - case 4: - r0 = pxsim_pxtcore_mkAction(1, cp_inline__P11756); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayFind__P111_mk(s); - s.tmp_2 = controller_Controller__controlledSprites__P1983_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 205; 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 = 206; s.pc = 18; return s.tmp_1; - case 18: - r0 = s.retval; - s.cp___11753 = (r0); - r0 = pxsim_numops_toBoolDecr(s.cp___11753); - s.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__C1974_VT); + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); s.tmp_2 = r0; - s.tmp_3 = controller_ControlledSprite_constructor__P1976_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 = 207; s.pc = 20; return s.tmp_3; - case 20: - r0 = s.retval; - s.cp___11753 = (s.tmp_2); - s.tmp_1 = controller_Controller__controlledSprites__P1983_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 208; 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___11753); - case 5: - case 6: - r0 = s.cp___11753.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__P2200_mk(s); - r0 = s.cp___11753.fields["s"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = 0; - s.callLocIdx = 209; s.pc = 22; return s.tmp_2; - case 22: - r0 = s.retval; - case 9: - case 10: - r0 = s.cp___11753.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) + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 13; continue; } - s.tmp_2 = Sprite_vy__P2202_mk(s); - r0 = s.cp___11753.fields["s"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = 0; - s.callLocIdx = 210; s.pc = 23; return s.tmp_2; - case 23: - r0 = s.retval; - case 13: - case 14: - r0 = (s.cp___11753).fields["vx"] = (s.arg2); - r0 = (s.cp___11753).fields["vy"] = (s.arg3); - case 15: + r0 = (s.tmp_0).fields["_ax"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller__moveSpriteInternal__P1995.info = {"start":4953,"length":617,"line":173,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSpriteInternal","argumentNames":["this","sprite","vx","vy"]} +Sprite_ax__P2204.info = {"start":4096,"length":51,"line":159,"column":4,"endLine":161,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this","v"]} -function controller_Controller__moveSpriteInternal__P1995_mk(s) { +function Sprite_ax__P2204_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller__moveSpriteInternal__P1995, depth: s.depth + 1, + parent: s, fn: Sprite_ax__P2204, depth: s.depth + 1, pc: 0, retval: undefined, 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___11753: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function cp_inline__P11756(s) { +function Sprite_ax__P2203(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18711,24 +21046,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0.fields["s"]; - r0 = r0.fields["id"]; + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + r0 = s.arg0.fields["_ax"]; 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) + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -cp_inline__P11756.info = {"start":5182,"length":26,"line":176,"column":50,"endLine":176,"endColumn":76,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["cp"]} +Sprite_ax__P2203.info = {"start":3930,"length":60,"line":154,"column":4,"endLine":156,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this"]} +Sprite_ax__P2203.isGetter = true; -function cp_inline__P11756_mk(s) { +function Sprite_ax__P2203_mk(s) { checkStack(s.depth); return { - parent: s, fn: cp_inline__P11756, depth: s.depth + 1, + parent: s, fn: Sprite_ax__P2203, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -18736,7 +21070,7 @@ function cp_inline__P11756_mk(s) { -function controller_Controller__controlledSprites__P1984(s) { +function PhysicsEngine_addSprite__P2354(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18752,30 +21086,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C1978_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P2792_mk(s); - s.callLocIdx = 197; 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); + if (!checkSubtype(r0, PhysicsEngine__C2352_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller__controlledSprites__P1984.info = {"start":2403,"length":134,"line":81,"column":8,"endLine":83,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this","cps"]} +PhysicsEngine_addSprite__P2354.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 controller_Controller__controlledSprites__P1984_mk(s) { +function PhysicsEngine_addSprite__P2354_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller__controlledSprites__P1984, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_addSprite__P2354, 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, } } @@ -18784,7 +21106,7 @@ function controller_Controller__controlledSprites__P1984_mk(s) { -function controller_Controller__controlledSprites__P1983(s) { +function Sprite_data__P2217(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18799,30 +21121,38 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C1978_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P2792_mk(s); - s.callLocIdx = 196; 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"]; + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + r0 = s.arg0.fields["_data"]; s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, 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 = 1; continue; } + s.tmp_3 = r0 = s.arg0; + r0 = pxsim_pxtrt.mkMap(); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["_data"] = (s.tmp_4); + case 1: + case 2: + r0 = s.arg0.fields["_data"]; return leaveAccessor(s, r0) default: oops() } } } -controller_Controller__controlledSprites__P1983.info = {"start":2261,"length":132,"line":77,"column":8,"endLine":79,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this"]} -controller_Controller__controlledSprites__P1983.isGetter = true; +Sprite_data__P2217.info = {"start":6438,"length":92,"line":236,"column":4,"endLine":239,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this"]} +Sprite_data__P2217.isGetter = true; -function controller_Controller__controlledSprites__P1983_mk(s) { +function Sprite_data__P2217_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller__controlledSprites__P1983, depth: s.depth + 1, + parent: s, fn: Sprite_data__P2217, depth: s.depth + 1, pc: 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, } } @@ -18830,7 +21160,7 @@ function controller_Controller__controlledSprites__P1983_mk(s) { -function controller_ControlledSprite_constructor__P1976(s) { +function Sprite_setStayInScreen__P2258(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18843,37 +21173,38 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_ControlledSprite__C1974_VT)) failedCast(r0); - r0 = (s.arg0).fields["s"] = (s.arg1); - r0 = (s.arg0).fields["vx"] = (s.arg2); - r0 = (s.arg0).fields["vy"] = (s.arg3); + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_0 = Sprite_setFlag__P2260_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 8; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 500; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_ControlledSprite_constructor__P1976.info = {"start":979,"length":117,"line":36,"column":8,"endLine":40,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","s","vx","vy"]} +Sprite_setStayInScreen__P2258.info = {"start":19465,"length":87,"line":652,"column":4,"endLine":654,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setStayInScreen","argumentNames":["this","on"]} -function controller_ControlledSprite_constructor__P1976_mk(s) { +function Sprite_setStayInScreen__P2258_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_ControlledSprite_constructor__P1976, depth: s.depth + 1, + parent: s, fn: Sprite_setStayInScreen__P2258, 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 helpers_arrayFind__P111(s) { +function helpers_getTilemapByName__P3121(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18883,69 +21214,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___11804 = undefined; - s.i___11807 = undefined; - s.v___11812 = 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___11804 = (r0); - s.i___11807 = (0); + s.tmp_0 = helpers__getFactoryInstance__P3119_mk(s); + s.tmp_0.arg0 = "tilemap"; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 1752; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.i___11807 < s.len___11804); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.arg0, s.i___11807); - s.v___11812 = (r0); - s.tmp_1 = lambda_3_mk(s); - s.tmp_1.argL = s.arg1; - s.tmp_1.arg0 = s.v___11812; - s.tmp_1.arg1 = s.i___11807; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 8; s.pc = 6; return s.tmp_1; - case 6: r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - r0 = s.v___11812; - { step = 5; continue; } - case 2: - case 3: - r0 = (s.i___11807 + 1); - s.i___11807 = (r0); - { step = 1; continue; } - case 4: - r0 = undefined; - case 5: return leave(s, r0) default: oops() } } } -helpers_arrayFind__P111.info = {"start":8018,"length":292,"line":271,"column":4,"endLine":278,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayFind","argumentNames":["arr","callbackfn"]} +helpers_getTilemapByName__P3121.info = {"start":2525,"length":107,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"getTilemapByName","argumentNames":["name"]} -function helpers_arrayFind__P111_mk(s) { +function helpers_getTilemapByName__P3121_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayFind__P111, depth: s.depth + 1, + parent: s, fn: helpers_getTilemapByName__P3121, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - len___11804: undefined, - i___11807: undefined, - v___11812: undefined, arg0: undefined, - arg1: undefined, } } -function Sprite_ay__P2206(s) { +function helpers__getFactoryInstance__P3119(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18955,33 +21252,97 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.factory___12843 = undefined; + s.unnamed104___U1 = undefined; + s.unnamed105___U2 = undefined; + s.data___12850 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = pxsim_numops_toBoolDecr(globals.factories___5157); + if (!r0) { step = 7; continue; } + s.factory___12843 = (undefined); + s.unnamed104___U1 = (globals.factories___5157); + s.unnamed105___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed105___U2; + r0 = pxsim_Array__length(s.unnamed104___U1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_ay"] = (s.tmp_1); - r0 = undefined; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 6; continue; } + r0 = pxsim_Array__getAt(s.unnamed104___U1, s.unnamed105___U2); + s.factory___12843 = (r0); + s.tmp_4 = if_kind_1_mk(s); + s.tmp_4.arg0 = s.factory___12843; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "kind"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["kind"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["kind"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 1750; s.pc = 10; return s.tmp_4; } + } + case 10: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 === s.arg0); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 4; continue; } + s.tmp_5 = if_factory_2_mk(s); + s.tmp_5.arg0 = s.factory___12843; + s.tmp_5.arg1 = s.arg1; + if (!s.tmp_5.arg0.vtable.iface) { + setupLambda(s.tmp_5, pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "factory"), 2); + s.callLocIdx = 1751; s.pc = 11; return s.tmp_5; + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["factory"]; + if (s.tmp_5.fn == null) { setupLambda(s.tmp_5, s.tmp_5.arg0.fields["factory"], 2); s.callLocIdx = 1751; s.pc = 11; return s.tmp_5; } + else if (s.tmp_5.fn.isGetter) { s.tmp_5.stage2Call = true; s.callLocIdx = 1751; s.pc = 11; return s.tmp_5;; } + else { s.callLocIdx = 1751; s.pc = 11; return s.tmp_5; } + } + case 11: + r0 = s.retval; + s.data___12850 = (r0); + r0 = pxsim_numops_toBoolDecr(s.data___12850); + if (!r0) { step = 2; continue; } + r0 = s.data___12850; + { step = 9; continue; } + case 2: + case 3: + case 4: + case 5: + r0 = (s.unnamed105___U2 + 1); + s.unnamed105___U2 = (r0); + { step = 1; continue; } + case 6: + s.unnamed104___U1 = (undefined); + case 7: + case 8: + r0 = null; + case 9: return leave(s, r0) default: oops() } } } -Sprite_ay__P2206.info = {"start":4435,"length":51,"line":170,"column":4,"endLine":172,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this","v"]} +helpers__getFactoryInstance__P3119.info = {"start":1983,"length":348,"line":60,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"_getFactoryInstance","argumentNames":["kind","name"]} -function Sprite_ay__P2206_mk(s) { +function helpers__getFactoryInstance__P3119_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ay__P2206, depth: s.depth + 1, + parent: s, fn: helpers__getFactoryInstance__P3119, depth: s.depth + 1, pc: 0, retval: undefined, 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___12843: undefined, + unnamed104___U1: undefined, + unnamed105___U2: undefined, + data___12850: undefined, arg0: undefined, arg1: undefined, } } @@ -18990,7 +21351,7 @@ function Sprite_ay__P2206_mk(s) { -function Sprite_ay__P2205(s) { +function tilemap__P3108(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19002,33 +21363,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__C2182_VT)) failedCast(r0); - r0 = s.arg0.fields["_ay"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = null; + return leave(s, r0) default: oops() } } } -Sprite_ay__P2205.info = {"start":4269,"length":60,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this"]} -Sprite_ay__P2205.isGetter = true; +tilemap__P3108.info = {"start":99,"length":78,"line":3,"column":0,"endLine":3,"endColumn":78,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"tilemap","argumentNames":["lits","args"]} -function Sprite_ay__P2205_mk(s) { +function tilemap__P3108_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ay__P2205, depth: s.depth + 1, + parent: s, fn: tilemap__P3108, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function controller_moveSprite__P2010(s) { +function tiles_setCurrentTilemap__P2600(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19040,45 +21397,33 @@ 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 = controller_Controller__moveSpriteInternal__P1995_mk(s); - s.tmp_1 = controller__player1__P1972_mk(s); - s.callLocIdx = 245; 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 = 246; s.pc = 1; return s.tmp_0; + s.tmp_0 = scene_setTileMapLevel__P2722_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1133; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_moveSprite__P2010.info = {"start":13677,"length":142,"line":411,"column":4,"endLine":413,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"moveSprite","argumentNames":["sprite","vx","vy"]} +tiles_setCurrentTilemap__P2600.info = {"start":19775,"length":103,"line":614,"column":4,"endLine":616,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setCurrentTilemap","argumentNames":["tilemap"]} -function controller_moveSprite__P2010_mk(s) { +function tiles_setCurrentTilemap__P2600_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_moveSprite__P2010, depth: s.depth + 1, + parent: s, fn: tiles_setCurrentTilemap__P2600, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function controller__player1__P1972(s) { +function scene_setTileMapLevel__P2722(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19088,71 +21433,67 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals._players___4493); + s.scene___12865 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = game_currentScene__P2792_mk(s); + s.callLocIdx = 1199; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.scene___12865 = (r0); + r0 = s.scene___12865.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_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_Array__getAt(globals._players___4493, 0); + r0 = pxsim_pxtcore_mkClassInstance(tiles_TileMap__C2571_VT); s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_4 = tiles_TileMap_constructor__P2573_mk(s); + s.tmp_4.arg0 = s.tmp_3; + s.tmp_4.arg1 = 4; + s.callLocIdx = 1200; s.pc = 4; return s.tmp_4; + case 4: + r0 = s.retval; + r0 = (s.scene___12865).fields["tileMap"] = (s.tmp_3); + case 1: case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C1978_VT); - s.tmp_5 = r0; - r0 = pxsim_Array__mk(); - s.tmp_6 = r0; - r0 = pxsim_Array__push(s.tmp_6, globals.left___1959); - r0 = pxsim_Array__push(s.tmp_6, globals.up___1960); - r0 = pxsim_Array__push(s.tmp_6, globals.right___1961); - r0 = pxsim_Array__push(s.tmp_6, globals.down___1962); - r0 = pxsim_Array__push(s.tmp_6, globals.A___1957); - r0 = pxsim_Array__push(s.tmp_6, globals.B___1958); - r0 = pxsim_Array__push(s.tmp_6, globals.menu___1963); - s.tmp_7 = controller_Controller_constructor__P1982_mk(s); - s.tmp_7.arg0 = s.tmp_5; - s.tmp_7.arg1 = 1; - s.tmp_7.arg2 = s.tmp_6; - s.callLocIdx = 188; s.pc = 5; return s.tmp_7; + s.tmp_0 = tiles_TileMap_setData__P2584_mk(s); + r0 = s.scene___12865.fields["tileMap"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 1201; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - case 3: - case 4: - r0 = pxsim_Array__getAt(globals._players___4493, 0); + r0 = undefined; return leave(s, r0) default: oops() } } } -controller__player1__P1972.info = {"start":484,"length":258,"line":23,"column":4,"endLine":27,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} +scene_setTileMapLevel__P2722.info = {"start":3018,"length":219,"line":113,"column":4,"endLine":118,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setTileMapLevel","argumentNames":["map"]} -function controller__player1__P1972_mk(s) { +function scene_setTileMapLevel__P2722_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__player1__P1972, depth: s.depth + 1, + parent: s, fn: scene_setTileMapLevel__P2722, depth: s.depth + 1, pc: 0, retval: undefined, 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___12865: undefined, + arg0: undefined, } } -function controller_Controller_constructor__P1982(s) { +function tiles_TileMap_setData__P2584(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19162,120 +21503,189 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.leftId___11898 = undefined; - s.i___11906 = undefined; - s.i___11924 = undefined; + s.previous___12882 = undefined; + s.eventHandler___12896 = undefined; + s.unnamed94___U2 = undefined; + s.unnamed95___U3 = undefined; + s.eventHandler___12926 = undefined; + s.unnamed96___U5 = undefined; + s.unnamed97___U6 = 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__C1978_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.control.allocateNotifyEvent(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_id"] = (s.tmp_1); - r0 = (s.arg0).fields["_connected"] = (false); - r0 = (s.arg0).fields["playerIndex"] = (s.arg1); - r0 = (s.arg0).fields["analog"] = (false); - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["buttons"] = (s.arg2); - { step = 4; continue; } - case 1: - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["buttons"] = (s.tmp_1); - r0 = s.arg0.fields["playerIndex"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1 = r0; - r0 = (s.tmp_1 * 7); + if (!checkSubtype(r0, tiles_TileMap__C2571_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; + s.previous___12882 = (r0); + r0 = s.arg0.fields["handlerState"]; s.tmp_0 = r0; - r0 = (1 + s.tmp_0); - s.leftId___11898 = (r0); - s.i___11906 = (0); + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = (s.previous___12882 !== s.arg1); case 2: - r0 = (s.i___11906 < 7); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C2032_VT); + // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_2 = controller_Button_constructor__P2038_mk(s); - s.tmp_2.arg0 = s.tmp_1; - r0 = (s.leftId___11898 + s.i___11906); - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = -1; - s.callLocIdx = 194; 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___11906 + 1); - s.i___11906 = (r0); - { step = 2; continue; } + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 3; continue; } + r0 = s.tmp_1; + { step = 4; continue; } case 3: + r0 = s.previous___12882; case 4: - s.i___11924 = (0); + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 9; continue; } + s.eventHandler___12896 = (undefined); + r0 = s.arg0.fields["handlerState"]; + s.unnamed94___U2 = (r0); + s.unnamed95___U3 = (0); case 5: - s.tmp_1 = r0 = s.i___11924; - r0 = s.arg0.fields["buttons"]; + s.tmp_0 = r0 = s.unnamed95___U3; + r0 = pxsim_Array__length(s.unnamed94___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 8; continue; } + r0 = pxsim_Array__getAt(s.unnamed94___U2, s.unnamed95___U3); + s.eventHandler___12896 = (r0); + r0 = s.eventHandler___12896.fields["event"]; s.tmp_3 = r0; - r0 = pxsim_Array__length(s.tmp_3); + r0 = (s.tmp_3 === 1); s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 6; continue; } - r0 = s.arg0.fields["buttons"]; - s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.i___11924); - s.tmp_4 = r0; - r0 = (s.tmp_4).fields["_owner"] = (s.arg0); - r0 = (s.i___11924 + 1); - s.i___11924 = (r0); - { step = 5; continue; } + s.tmp_4 = if_callback_2_mk(s); + s.tmp_4.arg0 = s.eventHandler___12896; + s.tmp_4.arg1 = s.previous___12882; + if (!s.tmp_4.arg0.vtable.iface) { + setupLambda(s.tmp_4, pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "callback"), 2); + s.callLocIdx = 1081; s.pc = 23; return s.tmp_4; + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["callback"]; + if (s.tmp_4.fn == null) { setupLambda(s.tmp_4, s.tmp_4.arg0.fields["callback"], 2); s.callLocIdx = 1081; s.pc = 23; return s.tmp_4; } + else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1081; s.pc = 23; return s.tmp_4;; } + else { s.callLocIdx = 1081; s.pc = 23; return s.tmp_4; } + } + case 23: + r0 = s.retval; case 6: - s.tmp_0 = controller_addController__P4494_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 195; s.pc = 8; return s.tmp_0; + case 7: + r0 = (s.unnamed95___U3 + 1); + s.unnamed95___U3 = (r0); + { step = 5; continue; } case 8: + s.unnamed94___U2 = (undefined); + case 9: + case 10: + r0 = (s.arg0).fields["_map"] = (s.arg1); + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 11; continue; } + s.tmp_0 = r0 = s.arg0; + r0 = s.arg1.fields["_scale"]; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_scale"] = (s.tmp_1); + case 11: + case 12: + r0 = s.arg0.fields["handlerState"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 13; continue; } + r0 = s.tmp_0; + { step = 14; continue; } + case 13: + r0 = (s.previous___12882 !== s.arg1); + case 14: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 15; continue; } + r0 = s.tmp_1; + { step = 16; continue; } + case 15: + r0 = s.arg1; + case 16: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 21; continue; } + s.eventHandler___12926 = (undefined); + r0 = s.arg0.fields["handlerState"]; + s.unnamed96___U5 = (r0); + s.unnamed97___U6 = (0); + case 17: + s.tmp_0 = r0 = s.unnamed97___U6; + r0 = pxsim_Array__length(s.unnamed96___U5); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 20; continue; } + r0 = pxsim_Array__getAt(s.unnamed96___U5, s.unnamed97___U6); + s.eventHandler___12926 = (r0); + r0 = s.eventHandler___12926.fields["event"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 === 0); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 18; continue; } + s.tmp_4 = if_callback_2_mk(s); + s.tmp_4.arg0 = s.eventHandler___12926; + s.tmp_4.arg1 = s.arg1; + if (!s.tmp_4.arg0.vtable.iface) { + setupLambda(s.tmp_4, pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "callback"), 2); + s.callLocIdx = 1083; s.pc = 24; return s.tmp_4; + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["callback"]; + if (s.tmp_4.fn == null) { setupLambda(s.tmp_4, s.tmp_4.arg0.fields["callback"], 2); s.callLocIdx = 1083; s.pc = 24; return s.tmp_4; } + else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1083; s.pc = 24; return s.tmp_4;; } + else { s.callLocIdx = 1083; s.pc = 24; return s.tmp_4; } + } + case 24: r0 = s.retval; + case 18: + case 19: + r0 = (s.unnamed97___U6 + 1); + s.unnamed97___U6 = (r0); + { step = 17; continue; } + case 20: + s.unnamed96___U5 = (undefined); + case 21: + case 22: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller_constructor__P1982.info = {"start":1555,"length":696,"line":58,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","playerIndex","buttons"]} +tiles_TileMap_setData__P2584.info = {"start":10253,"length":807,"line":355,"column":8,"endLine":378,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setData","argumentNames":["this","map"]} -function controller_Controller_constructor__P1982_mk(s) { +function tiles_TileMap_setData__P2584_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_constructor__P1982, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_setData__P2584, depth: s.depth + 1, pc: 0, retval: undefined, 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___11898: undefined, - i___11906: undefined, - i___11924: undefined, + previous___12882: undefined, + eventHandler___12896: undefined, + unnamed94___U2: undefined, + unnamed95___U3: undefined, + eventHandler___12926: undefined, + unnamed96___U5: undefined, + unnamed97___U6: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function controller_addController__P4494(s) { +function tiles_TileMapData_scale__P2557(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19289,36 +21699,20 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._players___4493); - s.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___4493 = (r0); - case 1: - case 2: - s.tmp_0 = r0 = globals._players___4493; - 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) + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C2553_VT)) failedCast(r0); + r0 = s.arg0.fields["_scale"]; + return leaveAccessor(s, r0) default: oops() } } } -controller_addController__P4494.info = {"start":321,"length":157,"line":16,"column":4,"endLine":21,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} +tiles_TileMapData_scale__P2557.info = {"start":6564,"length":66,"line":222,"column":8,"endLine":224,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]} +tiles_TileMapData_scale__P2557.isGetter = true; -function controller_addController__P4494_mk(s) { +function tiles_TileMapData_scale__P2557_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_addController__P4494, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P2557, 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, } } @@ -19326,7 +21720,7 @@ function controller_addController__P4494_mk(s) { -function sprites_create__P2118(s) { +function tiles_TileMap_constructor__P2573(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19336,78 +21730,48 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___11953 = undefined; - s.sprite___11956 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 347; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.scene___11953 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(Sprite__C2182_VT); - s.tmp_0 = r0; - s.tmp_1 = Sprite_constructor__P2229_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.callLocIdx = 348; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.sprite___11956 = (s.tmp_0); - s.tmp_0 = Sprite_setKind__P2249_mk(s); - s.tmp_0.arg0 = s.sprite___11956; + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C2571_VT)) failedCast(r0); + r0 = (s.arg0).fields["_layer"] = (1); + s.tmp_0 = tiles_TileMap_scale__P2575_mk(s); + s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 349; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = PhysicsEngine__C2352_v0_2_mk(s); - r0 = s.scene___11953.fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.sprite___11956; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2352_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: + s.callLocIdx = 1067; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P11971); + r0 = pxsim_pxtcore_mkAction(1, tiles_TileMap_inline__P12952); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtcore_mkAction(1, sprites_create_inline__P11977); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___11956); - s.tmp_2 = helpers_arrayForEach__P109_mk(s); - s.tmp_3 = helpers_arrayFilter__P110_mk(s); - r0 = s.scene___11953.fields["createdHandlers"]; - s.tmp_3.arg0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = r0 = s.arg0; + s.tmp_3 = scene_createRenderable__P2640_mk(s); + s.tmp_3.arg0 = -1; s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 350; 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 = 352; s.pc = 5; return s.tmp_2; - case 5: + s.tmp_3.arg2 = undefined; + s.callLocIdx = 1069; s.pc = 2; return s.tmp_3; + case 2: r0 = s.retval; - r0 = s.sprite___11956; + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["renderable"] = (s.tmp_2); + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_create__P2118.info = {"start":890,"length":400,"line":35,"column":4,"endLine":47,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"create","argumentNames":["img","kind"]} +tiles_TileMap_constructor__P2573.info = {"start":8927,"length":268,"line":300,"column":8,"endLine":308,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","scale"]} -function sprites_create__P2118_mk(s) { +function tiles_TileMap_constructor__P2573_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_create__P2118, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_constructor__P2573, depth: s.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___11953: undefined, - sprite___11956: undefined, arg0: undefined, arg1: undefined, } } @@ -19416,7 +21780,7 @@ function sprites_create__P2118_mk(s) { -function forEach_inline__P11971(s) { +function tiles_TileMap_inline__P12952(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19428,30 +21792,37 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0.fields["kind"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 == s.caps[0]); + s.tmp_0 = tiles_TileMap_draw__P4683_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 1068; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -forEach_inline__P11971.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +tiles_TileMap_inline__P12952.info = {"start":9145,"length":25,"line":306,"column":16,"endLine":306,"endColumn":41,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["t","c"]} -function forEach_inline__P11971_mk(s) { +function tiles_TileMap_inline__P12952_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P11971, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_inline__P12952, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function sprites_create_inline__P11977(s) { +function tiles_TileMap_draw__P4683(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19461,44 +21832,333 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.bitmask___12963 = undefined; + s.offsetX___12969 = undefined; + s.offsetY___12974 = undefined; + s.x0___12979 = undefined; + s.xn___12986 = undefined; + s.y0___13003 = undefined; + s.yn___13010 = undefined; + s.x___13027 = undefined; + s.y___13033 = undefined; + s.index___13039 = undefined; + s.tile___13046 = undefined; + s.x___13082 = undefined; + s.xLine___13088 = undefined; + s.y___13114 = undefined; + s.yLine___13120 = 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 = 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 = 351; 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 = 351; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 351; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 351; s.pc = 1; return s.tmp_0; } - } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C2571_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___12963 = (r0); + r0 = s.arg2.fields["drawOffsetX"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 & s.bitmask___12963); + s.offsetX___12969 = (r0); + r0 = s.arg2.fields["drawOffsetY"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 & s.bitmask___12963); + s.offsetY___12974 = (r0); + s.tmp_0 = Math_max__P130_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 = 1090; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.x0___12979 = (r0); + s.tmp_0 = Math_min__P131_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 = 1093; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.xn___12986 = (r0); + s.tmp_0 = Math_max__P130_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 = 1095; s.pc = 26; return s.tmp_0; + case 26: + r0 = s.retval; + s.y0___13003 = (r0); + s.tmp_0 = Math_min__P131_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 = 1098; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + s.yn___13010 = (r0); + s.x___13027 = (s.x0___12979); + case 3: + r0 = (s.x___13027 <= s.xn___12986); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.y___13033 = (s.y0___13003); + case 4: + r0 = (s.y___13033 <= s.yn___13010); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_1 = tiles_TileMapData_getTile__P2559_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.x___13027; + s.tmp_1.arg2 = s.y___13033; + s.callLocIdx = 1099; s.pc = 28; return s.tmp_1; + case 28: + r0 = s.retval; + s.index___13039 = (r0); + s.tmp_0 = tiles_TileMapData_getTileImage__P2562_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.index___13039; + s.callLocIdx = 1100; s.pc = 29; return s.tmp_0; + case 29: + r0 = s.retval; + s.tile___13046 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tile___13046); + if (!r0) { step = 5; continue; } + s.tmp_0 = r0 = s.arg1; + s.tmp_1 = r0 = s.tile___13046; + r0 = (s.x___13027 - s.x0___12979); + 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___12969); + s.tmp_2 = r0; + r0 = (s.y___13033 - s.y0___13003); + 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___12974); + s.tmp_6 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_6); + case 5: + case 6: + r0 = (s.y___13033 + 1); + s.y___13033 = (r0); + { step = 4; continue; } + case 7: + r0 = (s.x___13027 + 1); + s.x___13027 = (r0); + { step = 3; continue; } + case 8: + r0 = pxsim_numops_toBoolDecr(globals.debug___2788); + if (!r0) { step = 21; continue; } + s.x___13082 = (s.x0___12979); + case 9: + r0 = (s.x___13082 <= s.xn___12986); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = (s.x___13082 - s.x0___12979); + 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___12969); + s.xLine___13088 = (r0); + r0 = (s.xLine___13088 >= 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___13088; + r0 = pxsim_ImageMethods.width(globals.screen___1877); + 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__P1805_mk(s); + s.tmp_4.arg0 = s.arg1; + s.tmp_4.arg1 = s.xLine___13088; + s.tmp_4.arg2 = 0; + s.tmp_4.arg3 = s.xLine___13088; + r0 = pxsim_ImageMethods.height(s.arg1); + s.tmp_4.arg4 = r0; + s.tmp_4.arg5 = 1; + s.callLocIdx = 1104; s.pc = 30; return s.tmp_4; + case 30: + r0 = s.retval; + case 12: + case 13: + r0 = (s.x___13082 + 1); + s.x___13082 = (r0); + { step = 9; continue; } + case 14: + s.y___13114 = (s.y0___13003); + case 15: + r0 = (s.y___13114 <= s.yn___13010); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + r0 = (s.y___13114 - s.y0___13003); + 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___12974); + s.yLine___13120 = (r0); + r0 = (s.yLine___13120 >= 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___13120; + r0 = pxsim_ImageMethods.height(globals.screen___1877); + 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__P1805_mk(s); + s.tmp_4.arg0 = s.arg1; + s.tmp_4.arg1 = 0; + s.tmp_4.arg2 = s.yLine___13120; + r0 = pxsim_ImageMethods.width(s.arg1); + s.tmp_4.arg3 = r0; + s.tmp_4.arg4 = s.yLine___13120; + s.tmp_4.arg5 = 1; + s.callLocIdx = 1106; s.pc = 31; return s.tmp_4; + case 31: r0 = s.retval; + case 18: + case 19: + r0 = (s.y___13114 + 1); + s.y___13114 = (r0); + { step = 15; continue; } + case 20: + case 21: + case 22: + case 23: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_create_inline__P11977.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +tiles_TileMap_draw__P4683.info = {"start":13998,"length":2224,"line":458,"column":8,"endLine":513,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"draw","argumentNames":["this","target","camera"]} -function sprites_create_inline__P11977_mk(s) { +function tiles_TileMap_draw__P4683_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_create_inline__P11977, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_draw__P4683, depth: s.depth + 1, pc: 0, retval: undefined, 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___12963: undefined, + offsetX___12969: undefined, + offsetY___12974: undefined, + x0___12979: undefined, + xn___12986: undefined, + y0___13003: undefined, + yn___13010: undefined, + x___13027: undefined, + y___13033: undefined, + index___13039: undefined, + tile___13046: undefined, + x___13082: undefined, + xLine___13088: undefined, + y___13114: undefined, + yLine___13120: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function info_setLife__P2409(s) { +function tiles_TileMap_enabled__P2583(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19512,25 +22172,32 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = info_PlayerInfoImpl_setLife__P2448_mk(s); - r0 = globals.player1___2497.fields["impl"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 937; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C2571_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + return leaveAccessor(s, r0) default: oops() } } } -info_setLife__P2409.info = {"start":9083,"length":83,"line":314,"column":4,"endLine":316,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"setLife","argumentNames":["value"]} +tiles_TileMap_enabled__P2583.info = {"start":10177,"length":66,"line":351,"column":8,"endLine":353,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"enabled","argumentNames":["this"]} +tiles_TileMap_enabled__P2583.isGetter = true; -function info_setLife__P2409_mk(s) { +function tiles_TileMap_enabled__P2583_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_setLife__P2409, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_enabled__P2583, depth: s.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, } } @@ -19538,7 +22205,7 @@ function info_setLife__P2409_mk(s) { -function info_PlayerInfo_constructor__P2456(s) { +function tiles_TileMapData_getTileImage__P2562(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19548,53 +22215,85 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.size___13164 = undefined; + s.cachedImage___13168 = undefined; + s.originalImage___13175 = 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__C2454_VT)) failedCast(r0); - r0 = (s.arg0).fields["_player"] = (s.arg1); - r0 = pxsim_pxtcore_mkClassInstance(info_PlayerInfoImpl__C2428_VT); + if (!checkSubtype(r0, tiles_TileMapData__C2553_VT)) failedCast(r0); + r0 = s.arg0.fields["_scale"]; s.tmp_0 = r0; - s.tmp_1 = info_PlayerInfoImpl_constructor__P2440_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 969; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - r0 = (s.arg0).fields["impl"] = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals.players___4580); + r0 = (1 << s.tmp_0); + s.size___13164 = (r0); + r0 = s.arg0.fields["cachedTileView"]; + s.tmp_0 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); + s.cachedImage___13168 = (r0); + r0 = pxsim_numops_toBoolDecr(s.cachedImage___13168); s.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___4580 = (r0); - case 1: - case 2: - s.tmp_0 = r0 = globals.players___4580; - r0 = s.arg0.fields["_player"]; + if (!r0) { step = 7; continue; } + r0 = s.arg0.fields["tileset"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); + r0 = pxsim_Array__getAt(s.tmp_2, s.arg1); + s.originalImage___13175 = (r0); + r0 = pxsim_numops_toBoolDecr(s.originalImage___13175); + if (!r0) { step = 5; continue; } + r0 = pxsim_ImageMethods.width(s.originalImage___13175); s.tmp_1 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.arg0); - r0 = undefined; + r0 = (s.tmp_1 <= s.size___13164); + 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___13175); + s.tmp_2 = r0; + r0 = (s.tmp_2 <= s.size___13164); + 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___13168 = (s.originalImage___13175); + { step = 4; continue; } + case 3: + r0 = pxsim.image.create(s.size___13164, s.size___13164); + s.cachedImage___13168 = (r0); + r0 = pxsim_ImageMethods.drawImage(s.cachedImage___13168, s.originalImage___13175, 0, 0); + case 4: + r0 = s.arg0.fields["cachedTileView"]; + s.tmp_0 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___13168); + case 5: + case 6: + case 7: + case 8: + r0 = s.cachedImage___13168; return leave(s, r0) default: oops() } } } -info_PlayerInfo_constructor__P2456.info = {"start":22952,"length":213,"line":739,"column":8,"endLine":745,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this","player"]} +tiles_TileMapData_getTileImage__P2562.info = {"start":7354,"length":717,"line":251,"column":8,"endLine":268,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} -function info_PlayerInfo_constructor__P2456_mk(s) { +function tiles_TileMapData_getTileImage__P2562_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_constructor__P2456, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTileImage__P2562, depth: s.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___13164: undefined, + cachedImage___13168: undefined, + originalImage___13175: undefined, arg0: undefined, arg1: undefined, } } @@ -19603,7 +22302,7 @@ function info_PlayerInfo_constructor__P2456_mk(s) { -function info_PlayerInfoImpl_constructor__P2440(s) { +function tiles_TileMapData_getTile__P2559(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19616,138 +22315,70 @@ 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, info_PlayerInfoImpl__C2428_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["visibility"] = (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); + if (!checkSubtype(r0, tiles_TileMapData__C2553_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P2565_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = s.arg2; + s.callLocIdx = 1062; 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 = 3; continue; } - r0 = pxsim_ImageMethods.isMono(globals.screen___1877); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 1; continue; } r0 = 0; - { step = 2; continue; } + { step = 3; continue; } case 1: - r0 = 2; case 2: - // jmp value (already in r0) + 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 = (s.arg0).fields["bg"] = (s.tmp_3); - r0 = (s.arg0).fields["x"] = (0); - r0 = (s.arg0).fields["y"] = (0); - { step = 14; continue; } + r0 = pxsim.BufferMethods.getUint8(s.tmp_2, s.tmp_3); 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___1877); - 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 = (s.arg0).fields["bg"] = (s.tmp_2); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___1877); - 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___1877); - 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___1877); - 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___1877); - 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___1877); - 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___1877); - 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 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfoImpl_constructor__P2440.info = {"start":18085,"length":1283,"line":587,"column":8,"endLine":621,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this","player"]} +tiles_TileMapData_getTile__P2559.info = {"start":6752,"length":200,"line":231,"column":8,"endLine":235,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} -function info_PlayerInfoImpl_constructor__P2440_mk(s) { +function tiles_TileMapData_getTile__P2559_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfoImpl_constructor__P2440, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTile__P2559, depth: s.depth + 1, pc: 0, retval: undefined, 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 info_PlayerInfoImpl_setLife__P2448(s) { +function tiles_TileMapData_isOutsideMap__P2565(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19757,73 +22388,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___12094 = 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, info_PlayerInfoImpl__C2428_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfoImpl_getState__P2441_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 960; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.state___12094 = (r0); - r0 = globals.infoState___4579.fields["visibilityFlag"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 & 128); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + if (!checkSubtype(r0, tiles_TileMapData__C2553_VT)) failedCast(r0); + r0 = (s.arg1 < 0); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_4 = info_updateFlag__P4629_mk(s); - s.tmp_4.arg0 = 4; - s.tmp_4.arg1 = true; - s.callLocIdx = 961; s.pc = 4; return s.tmp_4; - case 4: - r0 = s.retval; + r0 = s.tmp_0; + { step = 2; continue; } case 1: + s.tmp_1 = r0 = s.arg1; + r0 = s.arg0.fields["_width"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 >= s.tmp_2); case 2: - s.tmp_0 = info_PlayerInfoImpl_life__P2447_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 962; s.pc = 5; return s.tmp_0; + // 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: - r0 = s.retval; - s.tmp_0 = r0 = s.state___12094; - r0 = (s.arg1 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["life"] = (s.tmp_1); - r0 = undefined; + 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() } } } -info_PlayerInfoImpl_setLife__P2448.info = {"start":21505,"length":319,"line":691,"column":8,"endLine":699,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"setLife","argumentNames":["this","value"]} +tiles_TileMapData_isOutsideMap__P2565.info = {"start":8335,"length":132,"line":278,"column":8,"endLine":280,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOutsideMap","argumentNames":["this","col","row"]} -function info_PlayerInfoImpl_setLife__P2448_mk(s) { +function tiles_TileMapData_isOutsideMap__P2565_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfoImpl_setLife__P2448, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_isOutsideMap__P2565, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - state___12094: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function info_updateFlag__P4629(s) { +function tiles_TileMapData_height__P2556(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19835,59 +22471,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = info_initHUD__P4625_mk(s); - s.callLocIdx = 939; 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 = r0 = globals.infoState___4579; - r0 = s.tmp_0.fields["visibilityFlag"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | s.arg0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["visibilityFlag"] = (s.tmp_1); - { step = 2; continue; } - case 1: - s.tmp_0 = r0 = globals.infoState___4579; - r0 = globals.infoState___4579.fields["visibilityFlag"]; - s.tmp_4 = r0; - 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) + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C2553_VT)) failedCast(r0); + r0 = s.arg0.fields["_height"]; + return leaveAccessor(s, r0) default: oops() } } } -info_updateFlag__P4629.info = {"start":13723,"length":204,"line":460,"column":4,"endLine":464,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"updateFlag","argumentNames":["flag","on"]} +tiles_TileMapData_height__P2556.info = {"start":6489,"length":65,"line":218,"column":8,"endLine":220,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"height","argumentNames":["this"]} +tiles_TileMapData_height__P2556.isGetter = true; -function info_updateFlag__P4629_mk(s) { +function tiles_TileMapData_height__P2556_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_updateFlag__P4629, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_height__P2556, depth: s.depth + 1, pc: 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 info_initHUD__P4625(s) { +function tiles_TileMapData_width__P2555(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19897,47 +22504,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.infoState___4579); - if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: - case 2: - r0 = pxsim_pxtcore_mkClassInstance(info_InfoState__C4576_VT); - s.tmp_0 = r0; - s.tmp_1 = info_InfoState_constructor__P4577_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 906; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - globals.infoState___4579 = (s.tmp_0); - s.tmp_0 = scene_createRenderable__P2640_mk(s); - s.tmp_0.arg0 = 100; - s.tmp_0.arg1 = info_initHUD_inline__P12161; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 922; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - case 3: - r0 = undefined; - return leave(s, r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C2553_VT)) failedCast(r0); + r0 = s.arg0.fields["_width"]; + return leaveAccessor(s, r0) default: oops() } } } -info_initHUD__P4625.info = {"start":2923,"length":2100,"line":107,"column":4,"endLine":157,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"initHUD","argumentNames":[]} +tiles_TileMapData_width__P2555.info = {"start":6416,"length":63,"line":214,"column":8,"endLine":216,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"width","argumentNames":["this"]} +tiles_TileMapData_width__P2555.isGetter = true; -function info_initHUD__P4625_mk(s) { +function tiles_TileMapData_width__P2555_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_initHUD__P4625, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_width__P2555, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, + arg0: undefined, } } -function info_initHUD_inline__P12161(s) { +function helpers_imageDrawLine__P1805(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19947,221 +22539,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ps___12170 = undefined; - s.p___12192 = undefined; - s.scene___12229 = undefined; - s.elapsed___12232 = undefined; - s.t___12240 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.infoState___4579); - s.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.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__P4454_mk(s); + s.tmp_2.arg0 = s.arg1; + s.tmp_2.arg1 = s.arg2; + s.callLocIdx = 159; s.pc = 1; return s.tmp_2; case 1: - case 2: - r0 = globals.infoState___4579.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__P110_mk(s); - s.tmp_2.arg0 = globals.players___4580; - s.tmp_2.arg1 = ps_inline__P12172; - s.callLocIdx = 907; s.pc = 24; return s.tmp_2; - case 24: - r0 = s.retval; - s.ps___12170 = (r0); - s.tmp_0 = helpers_arrayForEach__P109_mk(s); - s.tmp_0.arg0 = s.ps___12170; - s.tmp_0.arg1 = info_initHUD_inline__P12181; - s.callLocIdx = 909; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.tmp_0 = helpers_arrayForEach__P109_mk(s); - s.tmp_0.arg0 = s.ps___12170; - s.tmp_0.arg1 = info_initHUD_inline__P12187; - s.callLocIdx = 911; s.pc = 26; return s.tmp_0; - case 26: - r0 = s.retval; - { step = 12; continue; } - case 3: - s.p___12192 = (globals.player1___2497); - s.tmp_1 = info_PlayerInfoImpl_hasScore__P2446_mk(s); - r0 = s.p___12192.fields["impl"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 912; 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___4579.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__P2492_mk(s); - s.tmp_4.arg0 = s.p___12192; - s.callLocIdx = 913; s.pc = 28; return s.tmp_4; - case 28: - r0 = s.retval; - case 6: - case 7: - s.tmp_1 = info_PlayerInfoImpl_hasLife__P2450_mk(s); - r0 = s.p___12192.fields["impl"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 914; 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___4579.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__P2493_mk(s); - s.tmp_4.arg0 = s.p___12192; - s.callLocIdx = 915; s.pc = 30; return s.tmp_4; - case 30: - r0 = s.retval; - case 10: - case 11: - s.tmp_0 = info_PlayerInfoImpl_raiseLifeZero__P2453_mk(s); - r0 = s.p___12192.fields["impl"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = true; - s.callLocIdx = 916; s.pc = 31; return s.tmp_0; - case 31: - r0 = s.retval; - case 12: - r0 = globals.infoState___4579.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___4579.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__P2792_mk(s); - s.callLocIdx = 917; s.pc = 32; return s.tmp_4; - case 32: - r0 = s.retval; - s.scene___12229 = (r0); - r0 = globals.infoState___4579.fields["gameEnd"]; - s.tmp_0 = r0; - r0 = s.scene___12229.fields["_millis"]; - s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.elapsed___12232 = (r0); - s.tmp_0 = info_drawTimer__P4630_mk(s); - s.tmp_0.arg0 = s.elapsed___12232; - s.callLocIdx = 919; s.pc = 33; return s.tmp_0; - case 33: r0 = s.retval; - r0 = (s.elapsed___12232 / 1000); - s.t___12240 = (r0); - r0 = (s.t___12240 <= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 19; continue; } - s.t___12240 = (0); - r0 = globals.infoState___4579.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___4579).fields["countdownExpired"] = (true); - r0 = (globals.infoState___4579).fields["gameEnd"] = (undefined); - r0 = globals.infoState___4579.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___4579; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "countdownEndHandler"), 1); - s.callLocIdx = 920; 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 = 920; s.pc = 34; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 920; s.pc = 34; return s.tmp_1;; } - else { s.callLocIdx = 920; s.pc = 34; return s.tmp_1; } - } - case 34: - r0 = s.retval; - { step = 16; continue; } - case 15: - s.tmp_0 = game_over__P2802_mk(s); - s.tmp_0.arg0 = false; - s.tmp_0.arg1 = undefined; - s.callLocIdx = 921; s.pc = 35; return s.tmp_0; - case 35: + s.tmp_4 = helpers_pack__P4454_mk(s); + s.tmp_4.arg0 = s.arg3; + s.tmp_4.arg1 = s.arg4; + s.callLocIdx = 160; s.pc = 2; return s.tmp_4; + case 2: r0 = s.retval; - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: + 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() } } } -info_initHUD_inline__P12161.info = {"start":3083,"length":1923,"line":114,"column":12,"endLine":155,"endColumn":13,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} +helpers_imageDrawLine__P1805.info = {"start":5161,"length":159,"line":164,"column":4,"endLine":166,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]} -function info_initHUD_inline__P12161_mk(s) { +function helpers_imageDrawLine__P1805_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_initHUD_inline__P12161, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawLine__P1805, depth: s.depth + 1, pc: 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___12170: undefined, - p___12192: undefined, - scene___12229: undefined, - elapsed___12232: undefined, - t___12240: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function ps_inline__P12172(s) { +function scene_createRenderable__P2640(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20171,38 +22602,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.renderable___13262 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = pxsim_pxtcore_mkClassInstance(scene_Renderable__C2635_VT); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + s.tmp_1 = r0 = s.arg2; + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 1; continue; } + r0 = s.tmp_1; + { step = 2; continue; } + case 1: + r0 = renderable_inline__P13268; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + s.tmp_3 = scene_Renderable_constructor__P2636_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 = 1161; s.pc = 3; return s.tmp_3; + case 3: + r0 = s.retval; + s.renderable___13262 = (s.tmp_0); + r0 = s.renderable___13262; return leave(s, r0) default: oops() } } } -ps_inline__P12172.info = {"start":3331,"length":8,"line":119,"column":46,"endLine":119,"endColumn":54,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} +scene_createRenderable__P2640.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 ps_inline__P12172_mk(s) { +function scene_createRenderable__P2640_mk(s) { checkStack(s.depth); return { - parent: s, fn: ps_inline__P12172, depth: s.depth + 1, + parent: s, fn: scene_createRenderable__P2640, depth: s.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___13262: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function info_initHUD_inline__P12181(s) { +function renderable_inline__P13268(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20212,35 +22665,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = info_PlayerInfo_drawPlayer__P2491_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 908; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = true; return leave(s, r0) default: oops() } } } -info_initHUD_inline__P12181.info = {"start":3415,"length":19,"line":121,"column":31,"endLine":121,"endColumn":50,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} +renderable_inline__P13268.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} -function info_initHUD_inline__P12181_mk(s) { +function renderable_inline__P13268_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_initHUD_inline__P12181, depth: s.depth + 1, + parent: s, fn: renderable_inline__P13268, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, } } -function info_initHUD_inline__P12187(s) { +function scene_Renderable_constructor__P2636(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20252,35 +22694,44 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - s.tmp_0 = info_PlayerInfoImpl_raiseLifeZero__P2453_mk(s); - r0 = s.arg0.fields["impl"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = false; - s.callLocIdx = 910; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, scene_Renderable__C2635_VT)) failedCast(r0); + r0 = (s.arg0).fields["handler"] = (s.arg1); + r0 = (s.arg0).fields["shouldBeVisible"] = (s.arg2); + s.tmp_0 = sprites_BaseSprite_constructor__P1940_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg3; + s.callLocIdx = 1158; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -info_initHUD_inline__P12187.info = {"start":3517,"length":32,"line":123,"column":31,"endLine":123,"endColumn":63,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} +scene_Renderable_constructor__P2636.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 info_initHUD_inline__P12187_mk(s) { +function scene_Renderable_constructor__P2636_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_initHUD_inline__P12187, depth: s.depth + 1, + parent: s, fn: scene_Renderable_constructor__P2636, 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 info_drawTimer__P4630(s) { +function tiles_TileMap_scale__P2575(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20290,319 +22741,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.font___12269 = undefined; - s.smallFont___12271 = undefined; - s.seconds___12273 = undefined; - s.width___12277 = undefined; - s.left___12282 = undefined; - s.color1___12292 = undefined; - s.color2___12296 = undefined; - s.temp___12309 = undefined; - s.remainder___12345 = undefined; - s.decimalLeft___12364 = undefined; - s.minutes___12382 = undefined; - s.remainder___12386 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 < 0); + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C2571_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.arg0 = (0); - case 1: - case 2: - r0 = (s.arg0 | 0); - s.arg0 = (r0); - s.font___12269 = (globals.font8___1820); - s.smallFont___12271 = (globals.font5___1825); - r0 = pxsim.Math_.idiv(s.arg0, 1000); - s.seconds___12273 = (r0); - s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.font___12269; - 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 = 940; 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___12277 = (r0); - r0 = pxsim_ImageMethods.width(globals.screen___1877); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.width___12277 >> 1); - s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - s.left___12282 = (r0); - r0 = globals.infoState___4579.fields["fontColor"]; - s.color1___12292 = (r0); - r0 = globals.infoState___4579.fields["bgColor"]; - s.color2___12296 = (r0); - r0 = (s.seconds___12273 < 10); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } + s.tmp_1 = tiles_TileMapData_scale__P2558_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 1070; s.pc = 3; return s.tmp_1; case 3: - r0 = (s.seconds___12273 & 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___1877); - 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 = 7; continue; } - s.temp___12309 = (s.color1___12292); - s.color1___12292 = (s.color2___12296); - s.color2___12296 = (s.temp___12309); - case 7: - case 8: - s.tmp_0 = helpers_imageFillRect__P1803_mk(s); - s.tmp_0.arg0 = globals.screen___1877; - r0 = (s.left___12282 - 3); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 0; - r0 = (s.width___12277 + 6); - s.tmp_0.arg3 = r0; - s.tmp_2 = if_charHeight_1_mk(s); - s.tmp_2.arg0 = s.font___12269; - 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 = 941; 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___4579.fields["borderColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 942; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1803_mk(s); - s.tmp_0.arg0 = globals.screen___1877; - r0 = (s.left___12282 - 2); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 0; - r0 = (s.width___12277 + 4); - s.tmp_0.arg3 = r0; - s.tmp_2 = if_charHeight_1_mk(s); - s.tmp_2.arg0 = s.font___12269; - 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 = 943; 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___12296; - s.callLocIdx = 944; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - r0 = (s.seconds___12273 < 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___12345 = (r0); - s.tmp_0 = helpers_imagePrint__P1835_mk(s); - s.tmp_0.arg0 = globals.screen___1877; - s.tmp_3 = info_formatDecimal__P4633_mk(s); - s.tmp_3.arg0 = s.seconds___12273; - s.callLocIdx = 945; 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___12282; - s.tmp_0.arg3 = 1; - s.tmp_0.arg4 = s.color1___12292; - s.tmp_0.arg5 = s.font___12269; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 946; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - s.tmp_0 = r0 = s.left___12282; - s.tmp_3 = if_charWidth_1_mk(s); - s.tmp_3.arg0 = s.font___12269; - 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 = 947; 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___12364 = (r0); - s.tmp_0 = helpers_imagePrint__P1835_mk(s); - s.tmp_0.arg0 = globals.screen___1877; - s.tmp_1 = info_formatDecimal__P4633_mk(s); - s.tmp_1.arg0 = s.remainder___12345; - s.callLocIdx = 948; s.pc = 21; return s.tmp_1; - case 21: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.decimalLeft___12364; - s.tmp_0.arg3 = 3; - s.tmp_0.arg4 = s.color1___12292; - s.tmp_0.arg5 = s.smallFont___12271; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 949; s.pc = 20; return s.tmp_0; - case 20: - r0 = s.retval; - { step = 10; continue; } - case 9: - r0 = pxsim.Math_.idiv(s.seconds___12273, 60); - s.minutes___12382 = (r0); - r0 = (s.seconds___12273 % 60); - s.remainder___12386 = (r0); - s.tmp_0 = helpers_imagePrint__P1835_mk(s); - s.tmp_0.arg0 = globals.screen___1877; - s.tmp_5 = info_formatDecimal__P4633_mk(s); - s.tmp_5.arg0 = s.minutes___12382; - s.callLocIdx = 950; 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.tmp_1 = r0; - s.tmp_8 = info_formatDecimal__P4633_mk(s); - s.tmp_8.arg0 = s.remainder___12386; - s.callLocIdx = 951; 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___12282; - s.tmp_0.arg3 = 1; - s.tmp_0.arg4 = s.color1___12292; - s.tmp_0.arg5 = s.font___12269; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 952; s.pc = 22; return s.tmp_0; - case 22: - r0 = s.retval; - case 10: + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -info_drawTimer__P4630.info = {"start":15756,"length":1328,"line":529,"column":4,"endLine":564,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"drawTimer","argumentNames":["millis"]} +tiles_TileMap_scale__P2575.info = {"start":9270,"length":144,"line":314,"column":8,"endLine":319,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} -function info_drawTimer__P4630_mk(s) { +function tiles_TileMap_scale__P2575_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_drawTimer__P4630, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_scale__P2575, depth: s.depth + 1, pc: 0, retval: undefined, 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, - font___12269: undefined, - smallFont___12271: undefined, - seconds___12273: undefined, - width___12277: undefined, - left___12282: undefined, - color1___12292: undefined, - color2___12296: undefined, - temp___12309: undefined, - remainder___12345: undefined, - decimalLeft___12364: undefined, - minutes___12382: undefined, - remainder___12386: undefined, arg0: undefined, + arg1: undefined, } } -function info_formatDecimal__P4633(s) { +function tiles_TileMapData_scale__P2558(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20614,49 +22795,38 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - 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; } - 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.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C2553_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 = pxsim_String__concat("0", s.tmp_1); - { step = 3; continue; } - case 1: - case 2: - r0 = pxsim_numops.toString(s.arg0); - case 3: + r0 = (s.tmp_0).fields["cachedTileView"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -info_formatDecimal__P4633.info = {"start":36271,"length":156,"line":1186,"column":4,"endLine":1192,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"formatDecimal","argumentNames":["val"]} +tiles_TileMapData_scale__P2558.info = {"start":6640,"length":102,"line":226,"column":8,"endLine":229,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} -function info_formatDecimal__P4633_mk(s) { +function tiles_TileMapData_scale__P2558_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_formatDecimal__P4633, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P2558, 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 info_InfoState_constructor__P4577(s) { +function tiles_TileMap_scale__P2574(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20671,89 +22841,243 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_InfoState__C4576_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__P4627_mk(s); - s.callLocIdx = 900; s.pc = 7; return s.tmp_2; - case 7: + if (!checkSubtype(r0, tiles_TileMap__C2571_VT)) failedCast(r0); + r0 = s.arg0.fields["_scale"]; + return leaveAccessor(s, r0) + default: oops() +} } } +tiles_TileMap_scale__P2574.info = {"start":9205,"length":55,"line":310,"column":8,"endLine":312,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]} +tiles_TileMap_scale__P2574.isGetter = true; + +function tiles_TileMap_scale__P2574_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_TileMap_scale__P2574, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function controller_Controller_moveSprite__P1994(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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, controller_Controller__C1978_VT)) failedCast(r0); + s.tmp_0 = controller_Controller__moveSpriteInternal__P1995_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.callLocIdx = 236; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_Controller_moveSprite__P1994.info = {"start":4688,"length":128,"line":167,"column":8,"endLine":169,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"moveSprite","argumentNames":["this","sprite","vx","vy"]} + +function controller_Controller_moveSprite__P1994_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Controller_moveSprite__P1994, 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 controller_Controller__moveSpriteInternal__P1995(s) { +let r0 = s.r0, 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.cp___13317 = 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__C1978_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["heartImage"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.image.ofBuffer(_hex13144); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["multiplierImage"] = (s.tmp_1); - r0 = pxsim_ImageMethods.isMono(globals.screen___1877); + 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 = 2; continue; } + { step = 15; continue; } case 1: - r0 = 1; 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___1877); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + s.tmp_5 = controller_Controller__controlledSprites__P1983_mk(s); + s.tmp_5.arg0 = s.arg0; + s.callLocIdx = 237; 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; } - r0 = 1; - { step = 4; continue; } + s.tmp_6 = controller_Controller__controlledSprites__P1984_mk(s); + s.tmp_6.arg0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_6.arg1 = r0; + s.callLocIdx = 238; s.pc = 17; return s.tmp_6; + case 17: + r0 = s.retval; case 3: - r0 = 3; case 4: - // jmp value (already in r0) + r0 = pxsim_pxtcore_mkAction(1, cp_inline__P13320); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + s.tmp_1 = helpers_arrayFind__P111_mk(s); + s.tmp_2 = controller_Controller__controlledSprites__P1983_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 239; 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 = 240; s.pc = 18; return s.tmp_1; + case 18: + r0 = s.retval; + s.cp___13317 = (r0); + r0 = pxsim_numops_toBoolDecr(s.cp___13317); s.tmp_1 = r0; - r0 = (s.arg0).fields["borderColor"] = (s.tmp_1); - r0 = pxsim_ImageMethods.isMono(globals.screen___1877); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = 1; - { step = 6; continue; } + r0 = pxsim_pxtcore_mkClassInstance(controller_ControlledSprite__C1974_VT); + s.tmp_2 = r0; + s.tmp_3 = controller_ControlledSprite_constructor__P1976_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 = 241; s.pc = 20; return s.tmp_3; + case 20: + r0 = s.retval; + s.cp___13317 = (s.tmp_2); + s.tmp_1 = controller_Controller__controlledSprites__P1983_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 242; 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___13317); case 5: - r0 = 3; case 6: + r0 = s.cp___13317.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 = (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_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 9; continue; } + s.tmp_2 = Sprite_vx__P2200_mk(s); + r0 = s.cp___13317.fields["s"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 0; + s.callLocIdx = 243; s.pc = 22; return s.tmp_2; + case 22: + r0 = s.retval; + case 9: + case 10: + r0 = s.cp___13317.fields["vy"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 11; continue; } + r0 = s.tmp_0; + { step = 12; continue; } + case 11: + r0 = (s.arg3 == 0); + case 12: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_0).fields["playerStates"] = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 13; continue; } + s.tmp_2 = Sprite_vy__P2202_mk(s); + r0 = s.cp___13317.fields["s"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 0; + s.callLocIdx = 244; s.pc = 23; return s.tmp_2; + case 23: + r0 = s.retval; + case 13: + case 14: + r0 = (s.cp___13317).fields["vx"] = (s.arg2); + r0 = (s.cp___13317).fields["vy"] = (s.arg3); + case 15: r0 = undefined; return leave(s, r0) default: oops() } } } -info_InfoState_constructor__P4577.info = {"start":1373,"length":674,"line":53,"column":8,"endLine":71,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this"]} +controller_Controller__moveSpriteInternal__P1995.info = {"start":4953,"length":617,"line":173,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSpriteInternal","argumentNames":["this","sprite","vx","vy"]} -function info_InfoState_constructor__P4577_mk(s) { +function controller_Controller__moveSpriteInternal__P1995_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_InfoState_constructor__P4577, depth: s.depth + 1, + parent: s, fn: controller_Controller__moveSpriteInternal__P1995, depth: s.depth + 1, pc: 0, retval: undefined, 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___13317: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -const _hex13144 = pxsim.BufferMethods.createBufferFromHex("87040500050000000100010010100000000100001010000001000100") -function info_defaultHeartImage__P4627(s) { +function cp_inline__P13320(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20763,39 +23087,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_ImageMethods.isMono(globals.screen___1877); + 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(_hex13172); - { step = 2; continue; } - case 1: - r0 = pxsim.image.ofBuffer(_hex13174); - 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() } } } -info_defaultHeartImage__P4627.info = {"start":5428,"length":592,"line":172,"column":4,"endLine":193,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"defaultHeartImage","argumentNames":[]} +cp_inline__P13320.info = {"start":5182,"length":26,"line":176,"column":50,"endLine":176,"endColumn":76,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["cp"]} -function info_defaultHeartImage__P4627_mk(s) { +function cp_inline__P13320_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_defaultHeartImage__P4627, depth: s.depth + 1, + parent: s, fn: cp_inline__P13320, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + arg0: undefined, } } -const _hex13172 = pxsim.BufferMethods.createBufferFromHex("87040800070000001011000001000100010010001000000101001000010001001011000000000000") -const _hex13174 = pxsim.BufferMethods.createBufferFromHex("8704080007000000c0cc00002c220c002222c2002222220c20222202222422004222020020220000") -function info_PlayerInfo_drawLives__P2493(s) { +function controller_Controller__controlledSprites__P1984(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20805,316 +23126,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___12423 = undefined; - s.font___12429 = undefined; - s.i___12473 = undefined; - s.num___12495 = undefined; - s.textWidth___12502 = undefined; - s.mult___12555 = 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__C2454_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfo_getState__P2479_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 999; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.state___12423 = (r0); - r0 = s.state___12423.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; } + if (!checkSubtype(r0, controller_Controller__C1978_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P2792_mk(s); + s.callLocIdx = 231; s.pc = 1; return s.tmp_1; case 1: - case 2: - s.font___12429 = (globals.font8___1820); - r0 = s.state___12423.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__P1803_mk(s); - s.tmp_2.arg0 = globals.screen___1877; - s.tmp_2.arg1 = 0; - s.tmp_2.arg2 = 0; - r0 = s.state___12423.fields["life"]; - s.tmp_4 = r0; - r0 = globals.infoState___4579.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___4579.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___4579.fields["borderColor"]; - s.tmp_2.arg5 = r0; - s.callLocIdx = 1000; s.pc = 9; return s.tmp_2; - case 9: - r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1803_mk(s); - s.tmp_0.arg0 = globals.screen___1877; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 0; - r0 = s.state___12423.fields["life"]; - s.tmp_2 = r0; - r0 = globals.infoState___4579.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___4579.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___4579.fields["bgColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 1001; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - s.i___12473 = (0); - case 3: - r0 = s.state___12423.fields["life"]; - s.tmp_1 = r0; - r0 = (s.i___12473 < 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___1877; - r0 = globals.infoState___4579.fields["heartImage"]; - s.tmp_3 = r0; - s.tmp_6 = r0 = s.i___12473; - r0 = globals.infoState___4579.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___12473 + 1); - s.i___12473 = (r0); - { step = 3; continue; } - case 4: - { step = 6; continue; } - case 5: - r0 = s.state___12423.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___12495 = (r0); - r0 = pxsim_String_.length(s.num___12495); - s.tmp_1 = r0; - s.tmp_3 = if_charWidth_1_mk(s); - s.tmp_3.arg0 = s.font___12429; - 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 = 1002; 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___12502 = (r0); - s.tmp_0 = helpers_imageFillRect__P1803_mk(s); - s.tmp_0.arg0 = globals.screen___1877; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 0; - r0 = globals.infoState___4579.fields["heartImage"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_4); - s.tmp_3 = r0; - r0 = globals.infoState___4579.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___12502); - s.tmp_1 = r0; - r0 = (s.tmp_1 + 5); - s.tmp_0.arg3 = r0; - r0 = globals.infoState___4579.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___4579.fields["borderColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 1003; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1803_mk(s); - s.tmp_0.arg0 = globals.screen___1877; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 0; - r0 = globals.infoState___4579.fields["heartImage"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_4); - s.tmp_3 = r0; - r0 = globals.infoState___4579.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___12502); - s.tmp_1 = r0; - r0 = (s.tmp_1 + 4); - s.tmp_0.arg3 = r0; - r0 = globals.infoState___4579.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___4579.fields["bgColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 1004; s.pc = 14; return s.tmp_0; - case 14: r0 = s.retval; - r0 = globals.infoState___4579.fields["heartImage"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___1877, s.tmp_0, 1, 1); - r0 = globals.infoState___4579.fields["multiplierImage"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.clone(s.tmp_0); - s.mult___12555 = (r0); - r0 = globals.infoState___4579.fields["fontColor"]; + r0 = r0.fields["controlledSprites"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.replace(s.mult___12555, 1, s.tmp_0); - s.tmp_0 = r0 = globals.screen___1877; - s.tmp_1 = r0 = s.mult___12555; - r0 = globals.infoState___4579.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___12429; - 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 = 1005; s.pc = 15; return s.tmp_8; } - } - case 15: - r0 = s.retval; - s.tmp_7 = r0; - r0 = globals.infoState___4579.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__P1835_mk(s); - s.tmp_0.arg0 = globals.screen___1877; - s.tmp_0.arg1 = s.num___12495; - r0 = globals.infoState___4579.fields["heartImage"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_3); + r0 = s.arg0.fields["playerIndex"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + 3); - s.tmp_1 = r0; - r0 = globals.infoState___4579.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___4579.fields["fontColor"]; - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.font___12429; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1006; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - case 6: - case 7: + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_2, s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfo_drawLives__P2493.info = {"start":33801,"length":2458,"line":1117,"column":8,"endLine":1183,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"drawLives","argumentNames":["this"]} +controller_Controller__controlledSprites__P1984.info = {"start":2403,"length":134,"line":81,"column":8,"endLine":83,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this","cps"]} -function info_PlayerInfo_drawLives__P2493_mk(s) { +function controller_Controller__controlledSprites__P1984_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_drawLives__P2493, depth: s.depth + 1, + parent: s, fn: controller_Controller__controlledSprites__P1984, depth: s.depth + 1, pc: 0, retval: undefined, 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___12423: undefined, - font___12429: undefined, - i___12473: undefined, - num___12495: undefined, - textWidth___12502: undefined, - mult___12555: undefined, arg0: undefined, + arg1: undefined, } } -function info_PlayerInfo_getState__P2479(s) { +function controller_Controller__controlledSprites__P1983(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21129,28 +23179,26 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C2454_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfo_init__P4632_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 973; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, controller_Controller__C1978_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P2792_mk(s); + s.callLocIdx = 230; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - r0 = globals.infoState___4579.fields["playerStates"]; + r0 = r0.fields["controlledSprites"]; s.tmp_0 = r0; - r0 = s.arg0.fields["_player"]; + r0 = s.arg0.fields["playerIndex"]; 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) + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2); + return leaveAccessor(s, r0) default: oops() } } } -info_PlayerInfo_getState__P2479.info = {"start":25215,"length":121,"line":843,"column":8,"endLine":846,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"getState","argumentNames":["this"]} +controller_Controller__controlledSprites__P1983.info = {"start":2261,"length":132,"line":77,"column":8,"endLine":79,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this"]} +controller_Controller__controlledSprites__P1983.isGetter = true; -function info_PlayerInfo_getState__P2479_mk(s) { +function controller_Controller__controlledSprites__P1983_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_getState__P2479, depth: s.depth + 1, + parent: s, fn: controller_Controller__controlledSprites__P1983, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21162,7 +23210,7 @@ function info_PlayerInfo_getState__P2479_mk(s) { -function info_PlayerInfo_init__P4632(s) { +function controller_ControlledSprite_constructor__P1976(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21174,81 +23222,38 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C2454_VT)) failedCast(r0); - s.tmp_0 = info_initHUD__P4625_mk(s); - s.callLocIdx = 970; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - 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 = 1; continue; } - s.tmp_2 = info_initMultiHUD__P4626_mk(s); - s.callLocIdx = 971; s.pc = 6; return s.tmp_2; - case 6: - r0 = s.retval; - case 1: - case 2: - r0 = globals.infoState___4579.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); - s.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__C2394_VT); - s.tmp_6 = r0; - r0 = undefined; - r0 = globals.infoState___4579.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: + if (!checkSubtype(r0, controller_ControlledSprite__C1974_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() } } } -info_PlayerInfo_init__P4632.info = {"start":23175,"length":252,"line":747,"column":8,"endLine":753,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"init","argumentNames":["this"]} +controller_ControlledSprite_constructor__P1976.info = {"start":979,"length":117,"line":36,"column":8,"endLine":40,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","s","vx","vy"]} -function info_PlayerInfo_init__P4632_mk(s) { +function controller_ControlledSprite_constructor__P1976_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_init__P4632, depth: s.depth + 1, + parent: s, fn: controller_ControlledSprite_constructor__P1976, depth: s.depth + 1, pc: 0, retval: undefined, 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, + arg3: undefined, } } -function info_initMultiHUD__P4626(s) { +function helpers_arrayFind__P111(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21258,71 +23263,69 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.infoState___4579.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 = 1; continue; } - { step = 5; continue; } + s.len___13368 = undefined; + s.i___13371 = undefined; + s.v___13376 = 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___13368 = (r0); + s.i___13371 = (0); case 1: - case 2: - s.tmp_2 = r0 = globals.infoState___4579; - 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___4579.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); + r0 = (s.i___13371 < s.len___13368); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_4 = r0 = globals.infoState___4579; - s.tmp_6 = info_defaultMultiplayerHeartImage__P4628_mk(s); - s.callLocIdx = 923; s.pc = 6; return s.tmp_6; + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.arg0, s.i___13371); + s.v___13376 = (r0); + s.tmp_1 = lambda_3_mk(s); + s.tmp_1.argL = s.arg1; + s.tmp_1.arg0 = s.v___13376; + s.tmp_1.arg1 = s.i___13371; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 8; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_4).fields["heartImage"] = (s.tmp_5); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + r0 = s.v___13376; + { step = 5; continue; } + case 2: case 3: + r0 = (s.i___13371 + 1); + s.i___13371 = (r0); + { step = 1; continue; } case 4: - s.tmp_0 = r0 = globals.infoState___4579; - r0 = pxsim.image.ofBuffer(_hex12648); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["multiplierImage"] = (s.tmp_1); - case 5: r0 = undefined; + case 5: return leave(s, r0) default: oops() } } } -info_initMultiHUD__P4626.info = {"start":5029,"length":393,"line":159,"column":4,"endLine":170,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"initMultiHUD","argumentNames":[]} +helpers_arrayFind__P111.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 info_initMultiHUD__P4626_mk(s) { +function helpers_arrayFind__P111_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_initMultiHUD__P4626, depth: s.depth + 1, + parent: s, fn: helpers_arrayFind__P111, depth: s.depth + 1, pc: 0, retval: undefined, 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, + len___13368: undefined, + i___13371: undefined, + v___13376: undefined, + arg0: undefined, + arg1: undefined, } } -const _hex12648 = pxsim.BufferMethods.createBufferFromHex("8704030003000000010100001000000001010000") -function info_defaultMultiplayerHeartImage__P4628(s) { +function Sprite_ay__P2206(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21332,39 +23335,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_ImageMethods.isMono(globals.screen___1877); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.image.ofBuffer(_hex12652); - { step = 2; continue; } - case 1: - r0 = pxsim.image.ofBuffer(_hex12654); - case 2: - // jmp value (already in r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C2182_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_1; + r0 = (s.tmp_0).fields["_ay"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -info_defaultMultiplayerHeartImage__P4628.info = {"start":6026,"length":503,"line":195,"column":4,"endLine":212,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"defaultMultiplayerHeartImage","argumentNames":[]} +Sprite_ay__P2206.info = {"start":4435,"length":51,"line":170,"column":4,"endLine":172,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this","v"]} -function info_defaultMultiplayerHeartImage__P4628_mk(s) { +function Sprite_ay__P2206_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_defaultMultiplayerHeartImage__P4628, depth: s.depth + 1, + parent: s, fn: Sprite_ay__P2206, 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, } } -const _hex12652 = pxsim.BufferMethods.createBufferFromHex("870407000500000000000000100100000110000010000100011000001001000000000000") -const _hex12654 = pxsim.BufferMethods.createBufferFromHex("870407000500000000000000100100002112000010240100411200001001000000000000") -function info_PlayerState_constructor__P2399(s) { +function Sprite_ay__P2205(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21379,18 +23385,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerState__C2394_VT)) failedCast(r0); - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + r0 = s.arg0.fields["_ay"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -info_PlayerState_constructor__P2399.info = {"start":936,"length":17,"line":37,"column":8,"endLine":37,"endColumn":25,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this"]} +Sprite_ay__P2205.info = {"start":4269,"length":60,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this"]} +Sprite_ay__P2205.isGetter = true; -function info_PlayerState_constructor__P2399_mk(s) { +function Sprite_ay__P2205_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerState_constructor__P2399, depth: s.depth + 1, + parent: s, fn: Sprite_ay__P2205, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -21398,7 +23408,7 @@ function info_PlayerState_constructor__P2399_mk(s) { -function info_PlayerInfo_drawScore__P2492(s) { +function controller_moveSprite__P2010(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21408,162 +23418,121 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___12669 = undefined; - s.font___12675 = undefined; - s.offsetY___12676 = undefined; - s.num___12685 = undefined; - s.width___12689 = 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, info_PlayerInfo__C2454_VT)) failedCast(r0); - s.tmp_1 = info_PlayerInfoImpl_score__P2443_mk(s); - r0 = s.arg0.fields["impl"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 992; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 | 0); - s.s___12669 = (r0); - r0 = (s.s___12669 >= 1000000); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.offsetY___12676 = (2); - s.font___12675 = (globals.font5___1825); - { step = 2; continue; } - case 1: - s.offsetY___12676 = (1); - s.font___12675 = (globals.font8___1820); + s.tmp_0 = controller_Controller__moveSpriteInternal__P1995_mk(s); + s.tmp_1 = controller__player1__P1972_mk(s); + s.callLocIdx = 279; s.pc = 2; return s.tmp_1; case 2: - r0 = pxsim_numops.toString(s.s___12669); - s.num___12685 = (r0); - r0 = pxsim_String_.length(s.num___12685); - s.tmp_0 = r0; - s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.font___12675; - 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 = 993; 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___12689 = (r0); - s.tmp_0 = helpers_imageFillRect__P1803_mk(s); - s.tmp_0.arg0 = globals.screen___1877; - r0 = pxsim_ImageMethods.width(globals.screen___1877); - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.width___12689); - 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___1877); - s.tmp_0.arg3 = r0; - s.tmp_4 = if_charHeight_1_mk(s); - s.tmp_4.arg0 = globals.font8___1820; - 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 = 994; 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___4579.fields["borderColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 995; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1803_mk(s); - s.tmp_0.arg0 = globals.screen___1877; - r0 = pxsim_ImageMethods.width(globals.screen___1877); - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.width___12689); - 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___1877); - s.tmp_0.arg3 = r0; - s.tmp_4 = if_charHeight_1_mk(s); - s.tmp_4.arg0 = globals.font8___1820; - 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 = 996; 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___4579.fields["bgColor"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 997; s.pc = 7; return s.tmp_0; - case 7: r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P1835_mk(s); - s.tmp_0.arg0 = globals.screen___1877; - s.tmp_0.arg1 = s.num___12685; - r0 = pxsim_ImageMethods.width(globals.screen___1877); - s.tmp_1 = r0; - r0 = (s.tmp_1 - s.width___12689); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.offsetY___12676; - r0 = globals.infoState___4579.fields["fontColor"]; - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.font___12675; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 998; s.pc = 9; return s.tmp_0; - case 9: + 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 = 280; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfo_drawScore__P2492.info = {"start":32738,"length":1053,"line":1077,"column":8,"endLine":1115,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"drawScore","argumentNames":["this"]} +controller_moveSprite__P2010.info = {"start":13677,"length":142,"line":411,"column":4,"endLine":413,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"moveSprite","argumentNames":["sprite","vx","vy"]} -function info_PlayerInfo_drawScore__P2492_mk(s) { +function controller_moveSprite__P2010_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_drawScore__P2492, depth: s.depth + 1, + parent: s, fn: controller_moveSprite__P2010, depth: s.depth + 1, pc: 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___12669: undefined, - font___12675: undefined, - offsetY___12676: undefined, - num___12685: undefined, - width___12689: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function info_PlayerInfoImpl_score__P2443(s) { +function controller__player1__P1972(s) { +let r0 = s.r0, 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___4533); + 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___4533, 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__C1978_VT); + s.tmp_5 = r0; + r0 = pxsim_Array__mk(); + s.tmp_6 = r0; + r0 = pxsim_Array__push(s.tmp_6, globals.left___1959); + r0 = pxsim_Array__push(s.tmp_6, globals.up___1960); + r0 = pxsim_Array__push(s.tmp_6, globals.right___1961); + r0 = pxsim_Array__push(s.tmp_6, globals.down___1962); + r0 = pxsim_Array__push(s.tmp_6, globals.A___1957); + r0 = pxsim_Array__push(s.tmp_6, globals.B___1958); + r0 = pxsim_Array__push(s.tmp_6, globals.menu___1963); + s.tmp_7 = controller_Controller_constructor__P1982_mk(s); + s.tmp_7.arg0 = s.tmp_5; + s.tmp_7.arg1 = 1; + s.tmp_7.arg2 = s.tmp_6; + s.callLocIdx = 222; s.pc = 5; return s.tmp_7; + case 5: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_Array__getAt(globals._players___4533, 0); + return leave(s, r0) + default: oops() +} } } +controller__player1__P1972.info = {"start":484,"length":258,"line":23,"column":4,"endLine":27,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} + +function controller__player1__P1972_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller__player1__P1972, depth: s.depth + 1, + pc: 0, retval: undefined, 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__P1982(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21573,68 +23542,120 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___12750 = undefined; + s.leftId___13462 = undefined; + s.i___13470 = undefined; + s.i___13488 = 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, info_PlayerInfoImpl__C2428_VT)) failedCast(r0); - r0 = s.arg0.fields["showScore"]; + if (!checkSubtype(r0, controller_Controller__C1978_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.control.allocateNotifyEvent(); s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + 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["showScore"] = (true); + r0 = (s.arg0).fields["buttons"] = (s.arg2); + { step = 4; continue; } case 1: - case 2: - r0 = s.arg0.fields["showPlayer"]; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); + 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___13462 = (r0); + s.i___13470 = (0); + case 2: + r0 = (s.i___13470 < 7); 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_PlayerInfoImpl_getState__P2441_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 957; s.pc = 7; return s.tmp_0; + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C2032_VT); + s.tmp_1 = r0; + s.tmp_2 = controller_Button_constructor__P2038_mk(s); + s.tmp_2.arg0 = s.tmp_1; + r0 = (s.leftId___13462 + s.i___13470); + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = -1; + s.callLocIdx = 228; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; - s.state___12750 = (r0); - r0 = s.state___12750.fields["score"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == null); + r0 = s.arg0.fields["buttons"]; + s.tmp_3 = r0; + r0 = pxsim_Array__push(s.tmp_3, s.tmp_1); + r0 = (s.i___13470 + 1); + s.i___13470 = (r0); + { step = 2; continue; } + case 3: + case 4: + s.i___13488 = (0); + case 5: + s.tmp_1 = r0 = s.i___13488; + 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 = 5; continue; } - r0 = (s.state___12750).fields["score"] = (0); - case 5: + if (!r0) { step = 6; continue; } + r0 = s.arg0.fields["buttons"]; + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(s.tmp_5, s.i___13488); + s.tmp_4 = r0; + r0 = (s.tmp_4).fields["_owner"] = (s.arg0); + r0 = (s.i___13488 + 1); + s.i___13488 = (r0); + { step = 5; continue; } case 6: - r0 = s.state___12750.fields["score"]; + s.tmp_0 = controller_addController__P4534_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 229; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfoImpl_score__P2443.info = {"start":19878,"length":314,"line":641,"column":8,"endLine":650,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"score","argumentNames":["this"]} +controller_Controller_constructor__P1982.info = {"start":1555,"length":696,"line":58,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","playerIndex","buttons"]} -function info_PlayerInfoImpl_score__P2443_mk(s) { +function controller_Controller_constructor__P1982_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfoImpl_score__P2443, depth: s.depth + 1, + parent: s, fn: controller_Controller_constructor__P1982, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - state___12750: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + leftId___13462: undefined, + i___13470: undefined, + i___13488: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function info_PlayerInfo_drawPlayer__P2491(s) { +function controller_addController__P4534(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21644,668 +23665,469 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___12793 = undefined; - s.font___12796 = undefined; - s.score___12798 = undefined; - s.life___12799 = undefined; - s.height___12800 = undefined; - s.scoreWidth___12801 = undefined; - s.lifeWidth___12802 = undefined; - s.offsetY___12805 = undefined; - s.showScore___12806 = undefined; - s.showLife___12815 = undefined; - s.width___12884 = undefined; - s.x___12894 = undefined; - s.y___12903 = undefined; - s.bump___12940 = undefined; - s.xLoc___12967 = undefined; - s.mult___12979 = undefined; - s.pNum___13044 = undefined; - s.iconWidth___13051 = undefined; - s.iconHeight___13059 = undefined; - s.iconX___13067 = undefined; - s.iconY___13080 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfo__C2454_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfo_getState__P2479_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 975; s.pc = 43; return s.tmp_0; - case 43: - r0 = s.retval; - s.state___12793 = (r0); - s.font___12796 = (globals.font5___1825); - s.height___12800 = (4); - s.scoreWidth___12801 = (0); - s.lifeWidth___12802 = (0); - s.offsetY___12805 = (2); - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["showScore"]; + r0 = pxsim_numops_toBoolDecr(globals._players___4533); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_Array__mk(); + globals._players___4533 = (r0); case 1: - r0 = s.state___12793.fields["score"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); case 2: - // jmp value (already in r0) + s.tmp_0 = r0 = globals._players___4533; + r0 = s.arg0.fields["playerIndex"]; s.tmp_2 = r0; - s.showScore___12806 = (s.tmp_2); - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["showLife"]; + 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__P4534.info = {"start":321,"length":157,"line":16,"column":4,"endLine":21,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} + +function controller_addController__P4534_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_addController__P4534, 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 sprites_create__P2118(s) { +let r0 = s.r0, 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___13517 = undefined; + s.sprite___13520 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + s.tmp_0 = game_currentScene__P2792_mk(s); + s.callLocIdx = 381; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.scene___13517 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(Sprite__C2182_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } + s.tmp_1 = Sprite_constructor__P2229_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.callLocIdx = 382; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.sprite___13520 = (s.tmp_0); + s.tmp_0 = Sprite_setKind__P2249_mk(s); + s.tmp_0.arg0 = s.sprite___13520; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 383; s.pc = 3; return s.tmp_0; case 3: - r0 = s.state___12793.fields["life"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); + r0 = s.retval; + s.tmp_0 = PhysicsEngine__C2352_v0_2_mk(s); + r0 = s.scene___13517.fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.sprite___13520; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2352_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: - // jmp value (already in r0) - s.tmp_2 = r0; - s.showLife___12815 = (s.tmp_2); - r0 = pxsim_numops_toBoolDecr(s.showScore___12806); - if (!r0) { step = 5; continue; } - r0 = pxsim_String_.mkEmpty(); - s.tmp_0 = r0; - r0 = s.state___12793.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; + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P13535); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + r0 = pxsim_pxtcore_mkAction(1, sprites_create_inline__P13541); s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.score___12798 = (r0); - r0 = pxsim_String_.length(s.score___12798); - s.tmp_1 = r0; - s.tmp_3 = if_charWidth_1_mk(s); - s.tmp_3.arg0 = s.font___12796; - 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 = 976; s.pc = 45; return s.tmp_3; } - } - case 45: + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___13520); + s.tmp_2 = helpers_arrayForEach__P109_mk(s); + s.tmp_3 = helpers_arrayFilter__P110_mk(s); + r0 = s.scene___13517.fields["createdHandlers"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.tmp_0; + s.callLocIdx = 384; 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_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 386; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; + r0 = s.sprite___13520; + return leave(s, r0) + default: oops() +} } } +sprites_create__P2118.info = {"start":890,"length":400,"line":35,"column":4,"endLine":47,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"create","argumentNames":["img","kind"]} + +function sprites_create__P2118_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_create__P2118, depth: s.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___13517: undefined, + sprite___13520: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function forEach_inline__P13535(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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["kind"]; s.tmp_0 = r0; - r0 = (s.tmp_0 + 3); - s.scoreWidth___12801 = (r0); - s.tmp_0 = r0 = s.height___12800; - s.tmp_2 = if_charHeight_1_mk(s); - s.tmp_2.arg0 = s.font___12796; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); + r0 = (s.tmp_0 == s.caps[0]); + return leave(s, r0) + default: oops() +} } } +forEach_inline__P13535.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} + +function forEach_inline__P13535_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: forEach_inline__P13535, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function sprites_create_inline__P13541(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = 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 = 385; s.pc = 1; return s.tmp_0; } 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 = 977; s.pc = 46; return s.tmp_2; } + 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 = 385; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 385; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 385; s.pc = 1; return s.tmp_0; } } - case 46: + case 1: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.height___12800 = (r0); - s.tmp_0 = r0 = s.offsetY___12805; - s.tmp_3 = if_charHeight_1_mk(s); - s.tmp_3.arg0 = s.font___12796; - 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 = 978; s.pc = 47; return s.tmp_3; } + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +sprites_create_inline__P13541.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} + +function sprites_create_inline__P13541_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_create_inline__P13541, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function info_setLife__P2409(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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 47: + s.tmp_0 = info_PlayerInfoImpl_setLife__P2448_mk(s); + r0 = globals.player1___2497.fields["impl"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 971; s.pc = 1; return s.tmp_0; + case 1: 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___12805 = (r0); - case 5: - case 6: - r0 = pxsim_numops_toBoolDecr(s.showLife___12815); - if (!r0) { step = 9; continue; } - r0 = s.state___12793.fields["life"]; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +info_setLife__P2409.info = {"start":9083,"length":83,"line":314,"column":4,"endLine":316,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"setLife","argumentNames":["value"]} + +function info_setLife__P2409_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: info_setLife__P2409, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function info_PlayerInfo_constructor__P2456(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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, info_PlayerInfo__C2454_VT)) failedCast(r0); + r0 = (s.arg0).fields["_player"] = (s.arg1); + r0 = pxsim_pxtcore_mkClassInstance(info_PlayerInfoImpl__C2428_VT); 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: + s.tmp_1 = info_PlayerInfoImpl_constructor__P2440_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 1003; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_String__concat(s.tmp_2, s.tmp_3); - s.life___12799 = (r0); - r0 = globals.infoState___4579.fields["heartImage"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_3); - s.tmp_2 = r0; - r0 = globals.infoState___4579.fields["multiplierImage"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_2 + s.tmp_4); + r0 = (s.arg0).fields["impl"] = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals.players___4620); s.tmp_1 = r0; - r0 = pxsim_String_.length(s.life___12799); - s.tmp_7 = r0; - s.tmp_9 = if_charWidth_1_mk(s); - s.tmp_9.arg0 = s.font___12796; - 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 = 979; 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); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = (s.tmp_0 + 3); - s.lifeWidth___12802 = (r0); - s.tmp_0 = r0 = s.height___12800; - r0 = globals.infoState___4579.fields["heartImage"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_Array__mk(); + globals.players___4620 = (r0); + case 1: + case 2: + s.tmp_0 = r0 = globals.players___4620; + r0 = s.arg0.fields["_player"]; 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___12800 = (r0); - case 9: - case 10: - s.tmp_0 = Math_max__P130_mk(s); - s.tmp_0.arg0 = s.scoreWidth___12801; - s.tmp_0.arg1 = s.lifeWidth___12802; - s.callLocIdx = 980; s.pc = 50; return s.tmp_0; - case 50: - r0 = s.retval; - s.width___12884 = (r0); - s.tmp_0 = r0 = s.showScore___12806; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 11; continue; } - r0 = s.tmp_0; - { step = 12; continue; } - case 11: - r0 = s.showLife___12815; - case 12: - // jmp value (already in r0) + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.arg0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +info_PlayerInfo_constructor__P2456.info = {"start":22952,"length":213,"line":739,"column":8,"endLine":745,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this","player"]} + +function info_PlayerInfo_constructor__P2456_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: info_PlayerInfo_constructor__P2456, 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 info_PlayerInfoImpl_constructor__P2440(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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, info_PlayerInfoImpl__C2428_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["visibility"] = (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 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 13; continue; } - r0 = (s.height___12800 + 1); - s.height___12800 = (r0); - case 13: - case 14: - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["left"]; + r0 = (s.tmp_1 === 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - r0 = s.width___12884; - { step = 16; continue; } - case 15: + if (!r0) { step = 3; continue; } + r0 = pxsim_ImageMethods.isMono(globals.screen___1877); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 1; continue; } r0 = 0; - case 16: + { step = 2; continue; } + case 1: + r0 = 2; + case 2: // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["x"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.tmp_1); - s.x___12894 = (r0); - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["up"]; + 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 = 17; continue; } - r0 = s.height___12800; - { step = 18; continue; } - case 17: - r0 = 0; - case 18: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["y"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.tmp_1); - s.y___12903 = (r0); - s.tmp_0 = r0 = s.showScore___12806; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 19; continue; } - r0 = s.tmp_0; - { step = 20; continue; } - case 19: - r0 = s.showLife___12815; - case 20: - // jmp value (already in r0) + if (!r0) { step = 6; continue; } + r0 = pxsim_ImageMethods.isMono(globals.screen___1877); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 21; continue; } - s.tmp_2 = helpers_imageFillRect__P1803_mk(s); - s.tmp_2.arg0 = globals.screen___1877; - s.tmp_2.arg1 = s.x___12894; - s.tmp_2.arg2 = s.y___12903; - s.tmp_2.arg3 = s.width___12884; - s.tmp_2.arg4 = s.height___12800; - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["border"]; - s.tmp_2.arg5 = r0; - s.callLocIdx = 981; s.pc = 51; return s.tmp_2; - case 51: - r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P1803_mk(s); - s.tmp_0.arg0 = globals.screen___1877; - r0 = (s.x___12894 + 1); - s.tmp_0.arg1 = r0; - r0 = (s.y___12903 + 1); - s.tmp_0.arg2 = r0; - r0 = (s.width___12884 - 2); - s.tmp_0.arg3 = r0; - r0 = (s.height___12800 - 2); - s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["bg"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 982; s.pc = 52; return s.tmp_0; - case 52: - r0 = s.retval; - case 21: - case 22: - r0 = pxsim_numops_toBoolDecr(s.showScore___12806); - if (!r0) { step = 25; continue; } - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["left"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 23; continue; } - r0 = (s.width___12884 - s.scoreWidth___12801); - { step = 24; continue; } - case 23: + if (!r0) { step = 4; continue; } r0 = 0; - case 24: + { step = 5; continue; } + case 4: + r0 = 8; + case 5: // jmp value (already in r0) - s.tmp_1 = r0; - s.bump___12940 = (s.tmp_1); - s.tmp_0 = helpers_imagePrint__P1835_mk(s); - s.tmp_0.arg0 = globals.screen___1877; - s.tmp_0.arg1 = s.score___12798; - r0 = (s.x___12894 + 1); s.tmp_2 = r0; - r0 = (s.tmp_2 + s.bump___12940); + r0 = (s.arg0).fields["bg"] = (s.tmp_2); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___1877); s.tmp_1 = r0; - r0 = (s.tmp_1 + 1); - s.tmp_0.arg2 = r0; - r0 = (s.y___12903 + 2); - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["fc"]; - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.font___12796; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 983; s.pc = 53; return s.tmp_0; - case 53: - r0 = s.retval; - case 25: - case 26: - r0 = pxsim_numops_toBoolDecr(s.showLife___12815); - if (!r0) { step = 29; continue; } - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["left"]; + 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 = 27; continue; } - r0 = (s.width___12884 - s.lifeWidth___12802); - { step = 28; continue; } - case 27: + if (!r0) { step = 9; continue; } + r0 = pxsim_ImageMethods.isMono(globals.screen___1877); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 7; continue; } r0 = 0; - case 28: + { step = 8; continue; } + case 7: + r0 = 4; + case 8: // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.x___12894 + 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.tmp_1); - s.xLoc___12967 = (r0); - r0 = globals.infoState___4579.fields["multiplierImage"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.clone(s.tmp_0); - s.mult___12979 = (r0); - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["fc"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.replace(s.mult___12979, 1, s.tmp_0); - s.tmp_0 = r0 = globals.screen___1877; - r0 = globals.infoState___4579.fields["heartImage"]; - s.tmp_1 = r0; - s.tmp_2 = r0 = s.xLoc___12967; - r0 = (s.y___12903 + s.offsetY___12805); - 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___1877; - s.tmp_1 = r0 = s.mult___12979; - s.tmp_3 = r0 = s.xLoc___12967; - r0 = globals.infoState___4579.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___12903 + s.offsetY___12805); - s.tmp_9 = r0; - s.tmp_11 = if_charHeight_1_mk(s); - s.tmp_11.arg0 = s.font___12796; - 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 = 984; 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___4579.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__P1835_mk(s); - s.tmp_0.arg0 = globals.screen___1877; - s.tmp_0.arg1 = s.life___12799; - s.tmp_3 = r0 = s.xLoc___12967; - r0 = globals.infoState___4579.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___4579.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___12903 + s.offsetY___12805); - s.tmp_0.arg3 = r0; - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["fc"]; - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.font___12796; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 985; s.pc = 55; return s.tmp_0; - case 55: - r0 = s.retval; - case 29: - case 30: - r0 = s.arg0.fields["impl"]; - r0 = r0.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___13044 = (r0); - r0 = pxsim_String_.length(s.pNum___13044); - s.tmp_1 = r0; - s.tmp_3 = if_charWidth_1_mk(s); - s.tmp_3.arg0 = s.font___12796; - 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 = 986; 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___13051 = (r0); - s.tmp_0 = Math_max__P130_mk(s); - s.tmp_0.arg0 = s.height___12800; - s.tmp_2 = if_charHeight_1_mk(s); - s.tmp_2.arg0 = s.font___12796; - 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 = 987; s.pc = 59; return s.tmp_2; } - } - case 59: - r0 = s.retval; + 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___1877); s.tmp_1 = r0; - r0 = (s.tmp_1 + 2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 988; s.pc = 58; return s.tmp_0; - case 58: - r0 = s.retval; - s.iconHeight___13059 = (r0); - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["left"]; + 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___1877); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 31; continue; } - r0 = (s.x___12894 - s.iconWidth___13051); - s.tmp_1 = r0; - r0 = (s.tmp_1 + 1); - { step = 32; continue; } - case 31: - r0 = (s.x___12894 + s.width___12884); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - case 32: + if (!r0) { step = 10; continue; } + r0 = 0; + { step = 11; continue; } + case 10: + r0 = 7; + case 11: // jmp value (already in r0) - s.tmp_3 = r0; - s.iconX___13067 = (s.tmp_3); - s.iconY___13080 = (s.y___12903); - r0 = pxsim_numops_toBoolDecr(s.showScore___12806); 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___12815); - 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["impl"]; - r0 = r0.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___13067 + s.tmp_5); - s.iconX___13067 = (r0); - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["up"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 37; continue; } - r0 = (s.iconY___13080 - 3); - s.iconY___13080 = (r0); - case 37: - case 38: - case 39: - case 40: - s.tmp_0 = helpers_imageFillRect__P1803_mk(s); - s.tmp_0.arg0 = globals.screen___1877; - s.tmp_0.arg1 = s.iconX___13067; - s.tmp_0.arg2 = s.iconY___13080; - s.tmp_0.arg3 = s.iconWidth___13051; - s.tmp_0.arg4 = s.iconHeight___13059; - r0 = s.arg0.fields["impl"]; - r0 = r0.fields["border"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 989; s.pc = 60; return s.tmp_0; - case 60: - r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P1835_mk(s); - s.tmp_0.arg0 = globals.screen___1877; - s.tmp_0.arg1 = s.pNum___13044; - r0 = (s.iconX___13067 + 1); - s.tmp_0.arg2 = r0; - s.tmp_2 = r0 = s.iconY___13080; - r0 = (s.iconHeight___13059 >> 1); - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + r0 = (s.arg0).fields["bg"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___1877); s.tmp_1 = r0; - s.tmp_6 = if_charHeight_1_mk(s); - s.tmp_6.arg0 = s.font___12796; - 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 = 990; 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["impl"]; - r0 = r0.fields["bg"]; - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.font___12796; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 991; s.pc = 61; return s.tmp_0; - case 61: - r0 = s.retval; - case 41: - case 42: + r0 = (s.tmp_0).fields["x"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.height(globals.screen___1877); + 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 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfo_drawPlayer__P2491.info = {"start":28998,"length":3730,"line":972,"column":8,"endLine":1075,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"drawPlayer","argumentNames":["this"]} +info_PlayerInfoImpl_constructor__P2440.info = {"start":18085,"length":1283,"line":587,"column":8,"endLine":621,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this","player"]} -function info_PlayerInfo_drawPlayer__P2491_mk(s) { +function info_PlayerInfoImpl_constructor__P2440_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfo_drawPlayer__P2491, depth: s.depth + 1, + parent: s, fn: info_PlayerInfoImpl_constructor__P2440, depth: s.depth + 1, pc: 0, retval: undefined, 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___12793: undefined, - font___12796: undefined, - score___12798: undefined, - life___12799: undefined, - height___12800: undefined, - scoreWidth___12801: undefined, - lifeWidth___12802: undefined, - offsetY___12805: undefined, - showScore___12806: undefined, - showLife___12815: undefined, - width___12884: undefined, - x___12894: undefined, - y___12903: undefined, - bump___12940: undefined, - xLoc___12967: undefined, - mult___12979: undefined, - pNum___13044: undefined, - iconWidth___13051: undefined, - iconHeight___13059: undefined, - iconX___13067: undefined, - iconY___13080: undefined, arg0: undefined, + arg1: undefined, } } -function info_PlayerInfoImpl_raiseLifeZero__P2453(s) { +function info_PlayerInfoImpl_setLife__P2448(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22315,7 +24137,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___12771 = undefined; + s.state___13658 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -22325,76 +24147,54 @@ switch (step) { if (!checkSubtype(r0, info_PlayerInfoImpl__C2428_VT)) failedCast(r0); s.tmp_0 = info_PlayerInfoImpl_getState__P2441_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 966; s.pc = 9; return s.tmp_0; - case 9: + s.callLocIdx = 994; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.state___12771 = (r0); - r0 = s.state___12771.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___12771.fields["life"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 <= 0); - case 2: - // jmp value (already in r0) + s.state___13658 = (r0); + r0 = globals.infoState___4619.fields["visibilityFlag"]; s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 7; continue; } - r0 = (s.state___12771).fields["life"] = (null); - r0 = s.state___12771.fields["lifeZeroHandler"]; + r0 = (s.tmp_3 & 128); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_1 = if_lifeZeroHandler_1_mk(s); - s.tmp_1.arg0 = s.state___12771; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "lifeZeroHandler"), 1); - s.callLocIdx = 967; 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 = 967; s.pc = 10; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 967; s.pc = 10; return s.tmp_1;; } - else { s.callLocIdx = 967; 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__P2802_mk(s); - s.tmp_0.arg0 = false; - s.tmp_0.arg1 = undefined; - s.callLocIdx = 968; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; + if (!r0) { step = 1; continue; } + s.tmp_4 = info_updateFlag__P4669_mk(s); + s.tmp_4.arg0 = 4; + s.tmp_4.arg1 = true; + s.callLocIdx = 995; s.pc = 4; return s.tmp_4; case 4: + r0 = s.retval; + case 1: + case 2: + s.tmp_0 = info_PlayerInfoImpl_life__P2447_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 996; s.pc = 5; return s.tmp_0; case 5: - case 6: - case 7: - case 8: + r0 = s.retval; + s.tmp_0 = r0 = s.state___13658; + r0 = (s.arg1 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["life"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfoImpl_raiseLifeZero__P2453.info = {"start":22417,"length":374,"line":720,"column":8,"endLine":730,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"raiseLifeZero","argumentNames":["this","gameOver"]} +info_PlayerInfoImpl_setLife__P2448.info = {"start":21505,"length":319,"line":691,"column":8,"endLine":699,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"setLife","argumentNames":["this","value"]} -function info_PlayerInfoImpl_raiseLifeZero__P2453_mk(s) { +function info_PlayerInfoImpl_setLife__P2448_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfoImpl_raiseLifeZero__P2453, depth: s.depth + 1, + parent: s, fn: info_PlayerInfoImpl_setLife__P2448, depth: s.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___12771: undefined, + tmp_4: undefined, + state___13658: undefined, arg0: undefined, arg1: undefined, } } @@ -22403,7 +24203,7 @@ function info_PlayerInfoImpl_raiseLifeZero__P2453_mk(s) { -function info_PlayerInfoImpl_hasLife__P2450(s) { +function info_updateFlag__P4669(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22413,58 +24213,61 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___12656 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfoImpl__C2428_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfoImpl_getState__P2441_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 965; s.pc = 3; return s.tmp_0; + s.tmp_0 = info_initHUD__P4665_mk(s); + s.callLocIdx = 973; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.state___12656 = (r0); - r0 = s.state___12656.fields["life"]; + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 1; continue; } + s.tmp_0 = r0 = globals.infoState___4619; + r0 = s.tmp_0.fields["visibilityFlag"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | s.arg0); 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; + r0 = (s.tmp_0).fields["visibilityFlag"] = (s.tmp_1); { step = 2; continue; } case 1: - r0 = s.state___12656.fields["life"]; + s.tmp_0 = r0 = globals.infoState___4619; + r0 = globals.infoState___4619.fields["visibilityFlag"]; + s.tmp_4 = r0; + r0 = (~ s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 | s.arg0); s.tmp_2 = r0; - r0 = (s.tmp_2 !== null); + r0 = (~ s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["visibilityFlag"] = (s.tmp_1); case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = s.tmp_3; + r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfoImpl_hasLife__P2450.info = {"start":21936,"length":141,"line":705,"column":8,"endLine":708,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"hasLife","argumentNames":["this"]} +info_updateFlag__P4669.info = {"start":13723,"length":204,"line":460,"column":4,"endLine":464,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"updateFlag","argumentNames":["flag","on"]} -function info_PlayerInfoImpl_hasLife__P2450_mk(s) { +function info_updateFlag__P4669_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfoImpl_hasLife__P2450, depth: s.depth + 1, + parent: s, fn: info_updateFlag__P4669, depth: s.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___12656: undefined, + tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function info_PlayerInfoImpl_hasScore__P2446(s) { +function info_initHUD__P4665(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22474,42 +24277,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___12762 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfoImpl__C2428_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfoImpl_getState__P2441_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 958; s.pc = 1; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(globals.infoState___4619); + if (!r0) { step = 1; continue; } + { step = 3; continue; } case 1: - r0 = s.retval; - s.state___12762 = (r0); - r0 = s.state___12762.fields["score"]; + case 2: + r0 = pxsim_pxtcore_mkClassInstance(info_InfoState__C4616_VT); s.tmp_0 = r0; - r0 = (s.tmp_0 !== undefined); + s.tmp_1 = info_InfoState_constructor__P4617_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 940; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + globals.infoState___4619 = (s.tmp_0); + s.tmp_0 = scene_createRenderable__P2640_mk(s); + s.tmp_0.arg0 = 100; + s.tmp_0.arg1 = info_initHUD_inline__P13725; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 956; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + case 3: + r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfoImpl_hasScore__P2446.info = {"start":21040,"length":111,"line":675,"column":8,"endLine":678,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"hasScore","argumentNames":["this"]} +info_initHUD__P4665.info = {"start":2923,"length":2100,"line":107,"column":4,"endLine":157,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"initHUD","argumentNames":[]} -function info_PlayerInfoImpl_hasScore__P2446_mk(s) { +function info_initHUD__P4665_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfoImpl_hasScore__P2446, depth: s.depth + 1, + parent: s, fn: info_initHUD__P4665, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - state___12762: undefined, - arg0: undefined, + tmp_1: undefined, } } -function info_PlayerInfoImpl_life__P2447(s) { +function info_initHUD_inline__P13725(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22519,213 +24327,221 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___12112 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfoImpl__C2428_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfoImpl_getState__P2441_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 959; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.state___12112 = (r0); - r0 = s.arg0.fields["showLife"]; + s.ps___13734 = undefined; + s.p___13756 = undefined; + s.scene___13793 = undefined; + s.elapsed___13796 = undefined; + s.t___13804 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.infoState___4619); s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); + 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["showLife"] = (true); + { step = 23; continue; } case 1: case 2: - r0 = s.arg0.fields["showPlayer"]; + r0 = globals.infoState___4619.fields["visibilityFlag"]; s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); + r0 = (s.tmp_1 & 16); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = (s.arg0).fields["showPlayer"] = (true); + s.tmp_2 = helpers_arrayFilter__P110_mk(s); + s.tmp_2.arg0 = globals.players___4620; + s.tmp_2.arg1 = ps_inline__P13736; + s.callLocIdx = 941; s.pc = 24; return s.tmp_2; + case 24: + r0 = s.retval; + s.ps___13734 = (r0); + s.tmp_0 = helpers_arrayForEach__P109_mk(s); + s.tmp_0.arg0 = s.ps___13734; + s.tmp_0.arg1 = info_initHUD_inline__P13745; + s.callLocIdx = 943; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.tmp_0 = helpers_arrayForEach__P109_mk(s); + s.tmp_0.arg0 = s.ps___13734; + s.tmp_0.arg1 = info_initHUD_inline__P13751; + s.callLocIdx = 945; s.pc = 26; return s.tmp_0; + case 26: + r0 = s.retval; + { step = 12; continue; } case 3: - case 4: - r0 = s.state___12112.fields["life"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); + s.p___13756 = (globals.player1___2497); + s.tmp_1 = info_PlayerInfoImpl_hasScore__P2446_mk(s); + r0 = s.p___13756.fields["impl"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 946; s.pc = 27; return s.tmp_1; + case 27: + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = (s.state___12112).fields["life"] = (3); + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 4; continue; } + r0 = s.tmp_0; + { step = 5; continue; } + case 4: + r0 = globals.infoState___4619.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__P2492_mk(s); + s.tmp_4.arg0 = s.p___13756; + s.callLocIdx = 947; s.pc = 28; return s.tmp_4; + case 28: + r0 = s.retval; case 6: - r0 = s.state___12112.fields["life"]; + case 7: + s.tmp_1 = info_PlayerInfoImpl_hasLife__P2450_mk(s); + r0 = s.p___13756.fields["impl"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 948; 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 = 7; continue; } + if (r0) { step = 8; continue; } r0 = s.tmp_0; - { step = 8; continue; } - case 7: - r0 = 0; + { step = 9; continue; } case 8: + r0 = globals.infoState___4619.fields["visibilityFlag"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & 4); + case 9: // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.tmp_1; - return leave(s, r0) - default: oops() -} } } -info_PlayerInfoImpl_life__P2447.info = {"start":21161,"length":334,"line":680,"column":8,"endLine":689,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"life","argumentNames":["this"]} - -function info_PlayerInfoImpl_life__P2447_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: info_PlayerInfoImpl_life__P2447, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - state___12112: undefined, - arg0: undefined, -} } - - - - - -function info_PlayerInfoImpl_getState__P2441(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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, info_PlayerInfoImpl__C2428_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfoImpl_init__P4631_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 956; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 10; continue; } + s.tmp_4 = info_PlayerInfo_drawLives__P2493_mk(s); + s.tmp_4.arg0 = s.p___13756; + s.callLocIdx = 949; s.pc = 30; return s.tmp_4; + case 30: + r0 = s.retval; + case 10: + case 11: + s.tmp_0 = info_PlayerInfoImpl_raiseLifeZero__P2453_mk(s); + r0 = s.p___13756.fields["impl"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = true; + s.callLocIdx = 950; s.pc = 31; return s.tmp_0; + case 31: r0 = s.retval; - r0 = globals.infoState___4579.fields["playerStates"]; + case 12: + r0 = globals.infoState___4619.fields["gameEnd"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); s.tmp_0 = r0; - r0 = s.arg0.fields["_player"]; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 13; continue; } + r0 = s.tmp_0; + { step = 14; continue; } + case 13: + r0 = globals.infoState___4619.fields["visibilityFlag"]; 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() -} } } -info_PlayerInfoImpl_getState__P2441.info = {"start":19640,"length":121,"line":631,"column":8,"endLine":634,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"getState","argumentNames":["this"]} - -function info_PlayerInfoImpl_getState__P2441_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: info_PlayerInfoImpl_getState__P2441, 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 info_PlayerInfoImpl_init__P4631(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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, info_PlayerInfoImpl__C2428_VT)) failedCast(r0); - s.tmp_0 = info_initHUD__P4625_mk(s); - s.callLocIdx = 953; s.pc = 5; return s.tmp_0; - case 5: + 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__P2792_mk(s); + s.callLocIdx = 951; s.pc = 32; return s.tmp_4; + case 32: r0 = s.retval; - r0 = s.arg0.fields["_player"]; + s.scene___13793 = (r0); + r0 = globals.infoState___4619.fields["gameEnd"]; + s.tmp_0 = r0; + r0 = s.scene___13793.fields["_millis"]; s.tmp_1 = r0; - r0 = (s.tmp_1 > 1); + r0 = (s.tmp_0 - s.tmp_1); + s.elapsed___13796 = (r0); + s.tmp_0 = info_drawTimer__P4670_mk(s); + s.tmp_0.arg0 = s.elapsed___13796; + s.callLocIdx = 953; s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + r0 = (s.elapsed___13796 / 1000); + s.t___13804 = (r0); + r0 = (s.t___13804 <= 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = info_initMultiHUD__P4626_mk(s); - s.callLocIdx = 954; s.pc = 6; return s.tmp_2; - case 6: - r0 = s.retval; - case 1: - case 2: - r0 = globals.infoState___4579.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); + if (!r0) { step = 19; continue; } + s.t___13804 = (0); + r0 = globals.infoState___4619.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 = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(info_PlayerState__C2394_VT); - s.tmp_6 = r0; - r0 = undefined; - r0 = globals.infoState___4579.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: + if (!r0) { step = 17; continue; } + r0 = (globals.infoState___4619).fields["countdownExpired"] = (true); + r0 = (globals.infoState___4619).fields["gameEnd"] = (undefined); + r0 = globals.infoState___4619.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___4619; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "countdownEndHandler"), 1); + s.callLocIdx = 954; 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 = 954; s.pc = 34; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 954; s.pc = 34; return s.tmp_1;; } + else { s.callLocIdx = 954; s.pc = 34; return s.tmp_1; } + } + case 34: + r0 = s.retval; + { step = 16; continue; } + case 15: + s.tmp_0 = game_over__P2802_mk(s); + s.tmp_0.arg0 = false; + s.tmp_0.arg1 = undefined; + s.callLocIdx = 955; 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() } } } -info_PlayerInfoImpl_init__P4631.info = {"start":19378,"length":252,"line":623,"column":8,"endLine":629,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"init","argumentNames":["this"]} +info_initHUD_inline__P13725.info = {"start":3083,"length":1923,"line":114,"column":12,"endLine":155,"endColumn":13,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} -function info_PlayerInfoImpl_init__P4631_mk(s) { +function info_initHUD_inline__P13725_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfoImpl_init__P4631, depth: s.depth + 1, + parent: s, fn: info_initHUD_inline__P13725, depth: s.depth + 1, pc: 0, retval: undefined, 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, + ps___13734: undefined, + p___13756: undefined, + scene___13793: undefined, + elapsed___13796: undefined, + t___13804: undefined, } } -function game_over__P2802(s) { +function ps_inline__P13736(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22735,220 +24551,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scoreInfo___13222 = undefined; - s.highScore___13226 = undefined; - s.overDialog___13255 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P4708_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 1227; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals.__isOver___4707); - if (!r0) { step = 1; continue; } - { step = 17; continue; } - case 1: - case 2: - globals.__isOver___4707 = (true); - r0 = pxsim_numops_toBoolDecr(globals.__gameOverHandler___4705); - if (!r0) { step = 3; continue; } - s.tmp_0 = lambda_2_mk(s); - s.tmp_0.argL = globals.__gameOverHandler___4705; - s.tmp_0.arg0 = s.arg0; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 1228; 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 = 6; continue; } r0 = pxsim_numops_toBoolDecr(s.arg0); - if (!r0) { step = 4; continue; } - r0 = globals.winEffect___2790; - { step = 5; continue; } - case 4: - r0 = globals.loseEffect___2791; - case 5: - // jmp value (already in r0) s.tmp_2 = r0; - s.arg1 = (s.tmp_2); - case 6: - case 7: - s.tmp_0 = info_saveAllScores__P2400_mk(s); - s.callLocIdx = 1229; s.pc = 20; return s.tmp_0; - case 20: - r0 = s.retval; - s.tmp_0 = info_PlayerInfo_getState__P2479_mk(s); - s.tmp_0.arg0 = globals.player1___2497; - s.callLocIdx = 1230; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - s.scoreInfo___13222 = (r0); - s.tmp_0 = info_highScore__P2404_mk(s); - s.callLocIdx = 1231; s.pc = 22; return s.tmp_0; - case 22: - r0 = s.retval; - s.highScore___13226 = (r0); - r0 = s.scoreInfo___13222.fields["score"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 > s.highScore___13226); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.tmp_2 = info_saveHighScore__P2401_mk(s); - s.callLocIdx = 1232; s.pc = 23; return s.tmp_2; - case 23: - r0 = s.retval; - case 8: - case 9: - case 10: - s.tmp_0 = r0 = globals._sceneStack___4701; - 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___4701); - case 12: - // jmp value (already in r0) + r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 13; continue; } - s.tmp_2 = scene_Scene_destroy__P2705_mk(s); - s.tmp_2.arg0 = globals._scene___4700; - s.callLocIdx = 1233; s.pc = 24; return s.tmp_2; - case 24: - r0 = s.retval; - s.tmp_0 = game_popScene__P2797_mk(s); - s.callLocIdx = 1234; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - { step = 10; continue; } - case 13: - s.tmp_0 = game_pushScene__P2796_mk(s); - s.callLocIdx = 1235; s.pc = 26; return s.tmp_0; - case 26: - r0 = s.retval; - s.tmp_0 = scene_setBackgroundImage__P2719_mk(s); - r0 = pxsim_ImageMethods.clone(globals.screen___1877); - s.tmp_0.arg0 = r0; - s.callLocIdx = 1236; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg0); - if (!r0) { step = 14; continue; } - s.tmp_0 = music_Melody_play__P1633_mk(s); - s.tmp_0.arg0 = globals.winSound___4699; - s.tmp_0.arg1 = 255; - s.callLocIdx = 1237; s.pc = 28; return s.tmp_0; - case 28: - r0 = s.retval; - { step = 15; continue; } - case 14: - s.tmp_0 = music_Melody_play__P1633_mk(s); - s.tmp_0.arg0 = globals.loseSound___4697; - s.tmp_0.arg1 = 255; - s.callLocIdx = 1238; s.pc = 29; return s.tmp_0; - case 29: - 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 = 1239; s.pc = 30; 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 = 1239; s.pc = 30; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1239; s.pc = 30; return s.tmp_0;; } - else { s.callLocIdx = 1239; s.pc = 30; return s.tmp_0; } - } - case 30: - r0 = s.retval; - s.tmp_0 = pause__P413_mk(s); - s.tmp_0.arg0 = 400; - s.callLocIdx = 1240; s.pc = 31; return s.tmp_0; - case 31: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(game_GameOverDialog__C2776_VT); - s.tmp_0 = r0; - s.tmp_1 = game_GameOverDialog_constructor__P2777_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - r0 = s.scoreInfo___13222.fields["score"]; - s.tmp_1.arg2 = r0; - s.tmp_1.arg3 = s.highScore___13226; - s.callLocIdx = 1241; s.pc = 32; return s.tmp_1; - case 32: - r0 = s.retval; - s.overDialog___13255 = (s.tmp_0); - r0 = pxsim_pxtcore_mkAction(1, game_over_inline__P13265); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.overDialog___13255); - s.tmp_1 = scene_createRenderable__P2640_mk(s); - s.tmp_1.arg0 = 100; - s.tmp_1.arg1 = s.tmp_0; - s.tmp_1.arg2 = undefined; - s.callLocIdx = 1242; s.pc = 33; return s.tmp_1; - case 33: - r0 = s.retval; - s.tmp_0 = pause__P413_mk(s); - s.tmp_0.arg0 = 500; - s.callLocIdx = 1243; s.pc = 34; return s.tmp_0; - case 34: - r0 = s.retval; - s.tmp_0 = game_GameOverDialog_displayCursor__P2778_mk(s); - s.tmp_0.arg0 = s.overDialog___13255; - s.callLocIdx = 1244; s.pc = 35; return s.tmp_0; - case 35: - r0 = s.retval; - s.tmp_0 = game_waitAnyButton__P2794_mk(s); - s.callLocIdx = 1245; s.pc = 36; return s.tmp_0; - case 36: - r0 = s.retval; - setupResume(s, 37); - pxsim.control.reset(); - checkResumeConsumed(); - return; - case 37: - r0 = s.retval; - case 16: - case 17: - r0 = undefined; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -game_over__P2802.info = {"start":5382,"length":1865,"line":181,"column":4,"endLine":235,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"over","argumentNames":["win","effect"]} +ps_inline__P13736.info = {"start":3331,"length":8,"line":119,"column":46,"endLine":119,"endColumn":54,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} -function game_over__P2802_mk(s) { +function ps_inline__P13736_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_over__P2802, depth: s.depth + 1, + parent: s, fn: ps_inline__P13736, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - scoreInfo___13222: undefined, - highScore___13226: undefined, - overDialog___13255: undefined, arg0: undefined, - arg1: undefined, } } -function game_over_inline__P13265(s) { +function info_initHUD_inline__P13745(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22962,45 +24596,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_GameOverDialog__C2776_v0_1_mk(s); - s.tmp_0.arg0 = s.caps[0]; - if (!checkSubtype(s.tmp_0.arg0, game_GameOverDialog__C2776_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; - s.pc = 1; return s.tmp_0; + s.tmp_0 = info_PlayerInfo_drawPlayer__P2491_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 942; 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___1877); - 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() } } } -game_over_inline__P13265.info = {"start":6812,"length":254,"line":221,"column":48,"endLine":228,"endColumn":13,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["target"]} +info_initHUD_inline__P13745.info = {"start":3415,"length":19,"line":121,"column":31,"endLine":121,"endColumn":50,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} -function game_over_inline__P13265_mk(s) { +function info_initHUD_inline__P13745_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_over_inline__P13265, depth: s.depth + 1, + parent: s, fn: info_initHUD_inline__P13745, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -23008,7 +24620,7 @@ function game_over_inline__P13265_mk(s) { -function game_init__P4708(s) { +function info_initHUD_inline__P13751(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23022,95 +24634,25 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scene___4700); - 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 = info_PlayerInfoImpl_raiseLifeZero__P2453_mk(s); + r0 = s.arg0.fields["impl"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = false; + s.callLocIdx = 944; s.pc = 1; return s.tmp_0; 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__C2678_VT); - s.tmp_3 = r0; - s.tmp_4 = scene_Scene_constructor__P2700_mk(s); - s.tmp_4.arg0 = s.tmp_3; - s.tmp_5 = control_pushEventContext__P409_mk(s); - s.callLocIdx = 1212; s.pc = 14; return s.tmp_5; - case 14: - r0 = s.retval; - s.tmp_4.arg1 = r0; - s.tmp_4.arg2 = globals._scene___4700; - s.callLocIdx = 1213; s.pc = 13; return s.tmp_4; - case 13: - r0 = s.retval; - globals._scene___4700 = (s.tmp_3); - case 3: - case 4: - s.tmp_0 = scene_Scene_init__P2701_mk(s); - s.tmp_0.arg0 = globals._scene___4700; - s.callLocIdx = 1214; s.pc = 15; return s.tmp_0; - case 15: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals.winEffect___2790); - s.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___2790 = (globals.confetti___3062); - case 5: - case 6: - r0 = pxsim_numops_toBoolDecr(globals.loseEffect___2791); - s.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___2791 = (globals.melt___3083); - case 7: - case 8: - r0 = pxsim_numops_toBoolDecr(globals.winSound___4699); - s.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___4699 = (globals.powerUp___1646); - case 9: - case 10: - r0 = pxsim_numops_toBoolDecr(globals.loseSound___4697); - s.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___4697 = (globals.wawawawaa___1643); - case 11: - case 12: r0 = undefined; return leave(s, r0) default: oops() } } } -game_init__P4708.info = {"start":1202,"length":452,"line":45,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} +info_initHUD_inline__P13751.info = {"start":3517,"length":32,"line":123,"column":31,"endLine":123,"endColumn":63,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} -function game_init__P4708_mk(s) { +function info_initHUD_inline__P13751_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_init__P4708, depth: s.depth + 1, + parent: s, fn: info_initHUD_inline__P13751, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -23118,7 +24660,7 @@ function game_init__P4708_mk(s) { -function melt_inline__P15494(s) { +function info_drawTimer__P4670(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23128,202 +24670,289 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rounds___15497 = undefined; - s.j___15505 = undefined; - s.x___15510 = undefined; - s.y___15516 = undefined; - s.c___15522 = undefined; + s.font___13833 = undefined; + s.smallFont___13835 = undefined; + s.seconds___13837 = undefined; + s.width___13841 = undefined; + s.left___13846 = undefined; + s.color1___13856 = undefined; + s.color2___13860 = undefined; + s.temp___13873 = undefined; + s.remainder___13909 = undefined; + s.decimalLeft___13928 = undefined; + s.minutes___13946 = undefined; + s.remainder___13950 = 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); + r0 = (s.arg0 < 0); s.tmp_0 = r0; - r0 = (s.tmp_0 >> 5); - s.rounds___15497 = (r0); - s.j___15505 = (0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.arg0 = (0); case 1: - r0 = (s.j___15505 < s.rounds___15497); + case 2: + r0 = (s.arg0 | 0); + s.arg0 = (r0); + s.font___13833 = (globals.font8___1820); + s.smallFont___13835 = (globals.font5___1825); + r0 = pxsim.Math_.idiv(s.arg0, 1000); + s.seconds___13837 = (r0); + s.tmp_2 = if_charWidth_1_mk(s); + s.tmp_2.arg0 = s.font___13833; + 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 = 974; 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 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P2851_mk(s); - s.tmp_1.arg0 = s.arg1; - s.tmp_1.arg1 = 0; - r0 = pxsim_ImageMethods.width(s.arg0); + r0 = (s.tmp_0 - 2); + s.width___13841 = (r0); + r0 = pxsim_ImageMethods.width(globals.screen___1877); s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1.arg2 = r0; - s.callLocIdx = 62; s.pc = 3; return s.tmp_1; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.width___13841 >> 1); + s.tmp_3 = r0; + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 1); + s.left___13846 = (r0); + r0 = globals.infoState___4619.fields["fontColor"]; + s.color1___13856 = (r0); + r0 = globals.infoState___4619.fields["bgColor"]; + s.color2___13860 = (r0); + r0 = (s.seconds___13837 < 10); + 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___13837 & 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___1877); + 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 = 7; continue; } + s.temp___13873 = (s.color1___13856); + s.color1___13856 = (s.color2___13860); + s.color2___13860 = (s.temp___13873); + case 7: + case 8: + s.tmp_0 = helpers_imageFillRect__P1803_mk(s); + s.tmp_0.arg0 = globals.screen___1877; + r0 = (s.left___13846 - 3); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + r0 = (s.width___13841 + 6); + s.tmp_0.arg3 = r0; + s.tmp_2 = if_charHeight_1_mk(s); + s.tmp_2.arg0 = s.font___13833; + 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 = 975; s.pc = 13; return s.tmp_2; } + } + case 13: r0 = s.retval; - s.x___15510 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P2851_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 = 63; s.pc = 4; return s.tmp_0; - case 4: + r0 = (s.tmp_1 + 3); + s.tmp_0.arg4 = r0; + r0 = globals.infoState___4619.fields["borderColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 976; s.pc = 12; return s.tmp_0; + case 12: r0 = s.retval; - s.y___15516 = (r0); - r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___15510, s.y___15516); - s.c___15522 = (r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___15510; - r0 = (s.y___15516 + 1); - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___15522); - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___15510; - r0 = (s.y___15516 + 2); - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___15522); - r0 = (s.j___15505 + 1); - s.j___15505 = (r0); - { step = 1; continue; } - case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -melt_inline__P15494.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 melt_inline__P15494_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: melt_inline__P15494, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - rounds___15497: undefined, - j___15505: undefined, - x___15510: undefined, - y___15516: undefined, - c___15522: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function Math_FastRandom_randomRange__P2851(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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; + s.tmp_0 = helpers_imageFillRect__P1803_mk(s); + s.tmp_0.arg0 = globals.screen___1877; + r0 = (s.left___13846 - 2); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + r0 = (s.width___13841 + 4); + s.tmp_0.arg3 = r0; + s.tmp_2 = if_charHeight_1_mk(s); + s.tmp_2.arg0 = s.font___13833; + 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 = 977; s.pc = 15; return s.tmp_2; } } - r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C2847_VT)) failedCast(r0); - r0 = (s.arg2 > s.arg1); + 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___13860; + s.callLocIdx = 978; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + r0 = (s.seconds___13837 < 60); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = Math_FastRandom_next__P2850_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 1261; s.pc = 3; return s.tmp_2; - case 3: + if (!r0) { step = 9; continue; } + r0 = (s.arg0 % 1000); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_1, 10); + s.remainder___13909 = (r0); + s.tmp_0 = helpers_imagePrint__P1835_mk(s); + s.tmp_0.arg0 = globals.screen___1877; + s.tmp_3 = info_formatDecimal__P4673_mk(s); + s.tmp_3.arg0 = s.seconds___13837; + s.callLocIdx = 979; 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 = (s.arg2 - s.arg1); - s.tmp_4 = r0; - r0 = (s.tmp_4 + 1); - s.tmp_3 = r0; - r0 = (s.tmp_1 % s.tmp_3); - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = (s.arg1 + s.tmp_5); - return leave(s, r0) - default: oops() -} } } -Math_FastRandom_randomRange__P2851.info = {"start":2079,"length":131,"line":62,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"randomRange","argumentNames":["this","min","max"]} - -function Math_FastRandom_randomRange__P2851_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Math_FastRandom_randomRange__P2851, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function Math_FastRandom_next__P2850(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; + r0 = pxsim_String__concat(s.tmp_1, "."); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.left___13846; + s.tmp_0.arg3 = 1; + s.tmp_0.arg4 = s.color1___13856; + s.tmp_0.arg5 = s.font___13833; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 980; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + s.tmp_0 = r0 = s.left___13846; + s.tmp_3 = if_charWidth_1_mk(s); + s.tmp_3.arg0 = s.font___13833; + 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 = 981; s.pc = 19; return s.tmp_3; } } - r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C2847_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["lfsr"]; + 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___13928 = (r0); + s.tmp_0 = helpers_imagePrint__P1835_mk(s); + s.tmp_0.arg0 = globals.screen___1877; + s.tmp_1 = info_formatDecimal__P4673_mk(s); + s.tmp_1.arg0 = s.remainder___13909; + s.callLocIdx = 982; s.pc = 21; return s.tmp_1; + case 21: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.decimalLeft___13928; + s.tmp_0.arg3 = 3; + s.tmp_0.arg4 = s.color1___13856; + s.tmp_0.arg5 = s.smallFont___13835; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 983; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + { step = 10; continue; } + case 9: + r0 = pxsim.Math_.idiv(s.seconds___13837, 60); + s.minutes___13946 = (r0); + r0 = (s.seconds___13837 % 60); + s.remainder___13950 = (r0); + s.tmp_0 = helpers_imagePrint__P1835_mk(s); + s.tmp_0.arg0 = globals.screen___1877; + s.tmp_5 = info_formatDecimal__P4673_mk(s); + s.tmp_5.arg0 = s.minutes___13946; + s.callLocIdx = 984; 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 >> 1); + r0 = pxsim_String__concat(s.tmp_3, ":"); s.tmp_2 = r0; - r0 = s.arg0.fields["lfsr"]; + 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.tmp_1 = r0; + s.tmp_8 = info_formatDecimal__P4673_mk(s); + s.tmp_8.arg0 = s.remainder___13950; + s.callLocIdx = 985; s.pc = 26; return s.tmp_8; + case 26: + r0 = s.retval; s.tmp_7 = r0; - r0 = (s.tmp_7 & 1); + 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 = (0 - s.tmp_6); - s.tmp_5 = r0; - r0 = (s.tmp_5 & 46080); - s.tmp_4 = r0; - r0 = (s.tmp_2 ^ s.tmp_4); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lfsr"] = (s.tmp_1); - r0 = s.tmp_1; + r0 = pxsim_String__concat(s.tmp_1, s.tmp_6); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.left___13846; + s.tmp_0.arg3 = 1; + s.tmp_0.arg4 = s.color1___13856; + s.tmp_0.arg5 = s.font___13833; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 986; s.pc = 22; return s.tmp_0; + case 22: + r0 = s.retval; + case 10: + r0 = undefined; return leave(s, r0) default: oops() } } } -Math_FastRandom_next__P2850.info = {"start":1713,"length":107,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"next","argumentNames":["this"]} +info_drawTimer__P4670.info = {"start":15756,"length":1328,"line":529,"column":4,"endLine":564,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"drawTimer","argumentNames":["millis"]} -function Math_FastRandom_next__P2850_mk(s) { +function info_drawTimer__P4670_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_next__P2850, depth: s.depth + 1, + parent: s, fn: info_drawTimer__P4670, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23333,6 +24962,19 @@ function Math_FastRandom_next__P2850_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, + tmp_8: undefined, + font___13833: undefined, + smallFont___13835: undefined, + seconds___13837: undefined, + width___13841: undefined, + left___13846: undefined, + color1___13856: undefined, + color2___13860: undefined, + temp___13873: undefined, + remainder___13909: undefined, + decimalLeft___13928: undefined, + minutes___13946: undefined, + remainder___13950: undefined, arg0: undefined, } } @@ -23340,7 +24982,7 @@ function Math_FastRandom_next__P2850_mk(s) { -function effects_ImageEffect_constructor__P3078(s) { +function info_formatDecimal__P4673(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23352,47 +24994,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, effects_ImageEffect__C3077_VT)) failedCast(r0); - r0 = (s.arg0).fields["effect"] = (s.arg2); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C2847_VT); + r0 = (s.arg0 | 0); + s.arg0 = (r0); + r0 = (s.arg0 < 10); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P2849_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = undefined; - s.callLocIdx = 1633; s.pc = 1; return s.tmp_1; - case 1: + 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.arg0).fields["fastRandom"] = (s.tmp_0); - r0 = (s.arg0).fields["preferredDelay"] = (s.arg1); - r0 = (s.arg0).fields["times"] = (undefined); - r0 = undefined; + s.tmp_1 = r0; + r0 = pxsim_String__concat("0", s.tmp_1); + { step = 3; continue; } + case 1: + case 2: + r0 = pxsim_numops.toString(s.arg0); + case 3: return leave(s, r0) default: oops() } } } -effects_ImageEffect_constructor__P3078.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"]} +info_formatDecimal__P4673.info = {"start":36271,"length":156,"line":1186,"column":4,"endLine":1192,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"formatDecimal","argumentNames":["val"]} -function effects_ImageEffect_constructor__P3078_mk(s) { +function info_formatDecimal__P4673_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_constructor__P3078, depth: s.depth + 1, + parent: s, fn: info_formatDecimal__P4673, 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 confetti_inline__P15602(s) { +function info_InfoState_constructor__P4617(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23402,98 +25046,94 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.factory___15605 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C3006_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 = 36; s.pc = 3; return s.tmp_2; } - } - case 3: + r0 = s.arg0; + if (!checkSubtype(r0, info_InfoState__C4616_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__P4667_mk(s); + s.callLocIdx = 934; s.pc = 7; return s.tmp_2; + case 7: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = (s.tmp_0).fields["heartImage"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.image.ofBuffer(_hex14708); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["multiplierImage"] = (s.tmp_1); + r0 = pxsim_ImageMethods.isMono(globals.screen___1877); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = if_width_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "width"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["width"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["width"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 37; s.pc = 4; return s.tmp_3; } - } - case 4: - r0 = s.retval; + r0 = 0; { step = 2; continue; } case 1: - r0 = 16; + r0 = 1; case 2: // jmp value (already in r0) - s.tmp_4 = r0; - s.tmp_5 = particles_ConfettiFactory_constructor__P3007_mk(s); - s.tmp_5.arg0 = s.tmp_0; - s.tmp_5.arg1 = s.tmp_4; - s.tmp_5.arg2 = 16; - s.callLocIdx = 38; s.pc = 5; return s.tmp_5; + s.tmp_1 = r0; + r0 = (s.arg0).fields["bgColor"] = (s.tmp_1); + r0 = pxsim_ImageMethods.isMono(globals.screen___1877); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + 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___1877); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = 1; + { step = 6; continue; } case 5: - r0 = s.retval; - s.factory___15605 = (s.tmp_0); - s.tmp_0 = particles_SprayFactory_setSpeed__P2983_mk(s); - s.tmp_0.arg0 = s.factory___15605; - s.tmp_0.arg1 = 30; - s.callLocIdx = 39; s.pc = 6; return s.tmp_0; + r0 = 3; case 6: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C2939_VT); - s.tmp_0 = r0; - s.tmp_1 = particles_ParticleSource_constructor__P2944_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___15605; - s.callLocIdx = 40; s.pc = 7; return s.tmp_1; - case 7: - r0 = s.retval; - r0 = s.tmp_0; + // 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() } } } -confetti_inline__P15602.info = {"start":7534,"length":284,"line":191,"column":59,"endLine":195,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} +info_InfoState_constructor__P4617.info = {"start":1373,"length":674,"line":53,"column":8,"endLine":71,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this"]} -function confetti_inline__P15602_mk(s) { +function info_InfoState_constructor__P4617_mk(s) { checkStack(s.depth); return { - parent: s, fn: confetti_inline__P15602, depth: s.depth + 1, + parent: s, fn: info_InfoState_constructor__P4617, depth: s.depth + 1, pc: 0, retval: undefined, 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___15605: undefined, arg0: undefined, - arg1: undefined, } } +const _hex14708 = pxsim.BufferMethods.createBufferFromHex("87040500050000000100010010100000000100001010000001000100") -function particles_ConfettiFactory_constructor__P3007(s) { +function info_defaultHeartImage__P4667(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23503,99 +25143,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.confetti___15622 = undefined; - s.i___15638 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ConfettiFactory__C3006_VT)) failedCast(r0); - r0 = pxsim_Array__mk(); - s.tmp_0 = r0; - r0 = pxsim.image.ofBuffer(_hex15625); - s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - r0 = pxsim.image.ofBuffer(_hex15627); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); - r0 = pxsim.image.ofBuffer(_hex15629); - s.tmp_3 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_3); - r0 = pxsim.image.ofBuffer(_hex15631); - s.tmp_4 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_4); - r0 = pxsim.image.ofBuffer(_hex15633); - s.tmp_5 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_5); - s.confetti___15622 = (s.tmp_0); - s.tmp_0 = particles_ShapeFactory_constructor__P3002_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___15622, 0); - s.tmp_0.arg3 = r0; - s.callLocIdx = 1547; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.i___15638 = (1); - case 1: - s.tmp_1 = r0 = s.i___15638; - r0 = pxsim_Array__length(s.confetti___15622); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = pxsim_ImageMethods.isMono(globals.screen___1877); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_3 = particles_ShapeFactory_addShape__P3003_mk(s); - s.tmp_3.arg0 = s.arg0; - r0 = pxsim_Array__getAt(s.confetti___15622, s.i___15638); - s.tmp_3.arg1 = r0; - s.callLocIdx = 1548; s.pc = 4; return s.tmp_3; - case 4: - r0 = s.retval; - r0 = (s.i___15638 + 1); - s.i___15638 = (r0); - { step = 1; continue; } + if (!r0) { step = 1; continue; } + r0 = pxsim.image.ofBuffer(_hex14736); + { step = 2; continue; } + case 1: + r0 = pxsim.image.ofBuffer(_hex14738); case 2: - r0 = (s.arg0).fields["minLifespan"] = (1000); - r0 = (s.arg0).fields["maxLifespan"] = (4500); - r0 = undefined; + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -particles_ConfettiFactory_constructor__P3007.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"]} +info_defaultHeartImage__P4667.info = {"start":5428,"length":592,"line":172,"column":4,"endLine":193,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"defaultHeartImage","argumentNames":[]} -function particles_ConfettiFactory_constructor__P3007_mk(s) { +function info_defaultHeartImage__P4667_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ConfettiFactory_constructor__P3007, depth: s.depth + 1, + parent: s, fn: info_defaultHeartImage__P4667, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - confetti___15622: undefined, - i___15638: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, } } -const _hex15625 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") -const _hex15627 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") -const _hex15629 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") -const _hex15631 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") -const _hex15633 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") +const _hex14736 = pxsim.BufferMethods.createBufferFromHex("87040800070000001011000001000100010010001000000101001000010001001011000000000000") +const _hex14738 = pxsim.BufferMethods.createBufferFromHex("8704080007000000c0cc00002c220c002222c2002222220c20222202222422004222020020220000") -function scene_Scene_init__P2701(s) { +function info_PlayerInfo_drawLives__P2493(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23605,126 +25185,308 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.state___13987 = undefined; + s.font___13993 = undefined; + s.i___14037 = undefined; + s.num___14059 = undefined; + s.textWidth___14066 = undefined; + s.mult___14119 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C2678_VT)) failedCast(r0); - r0 = s.arg0.fields["allSprites"]; + if (!checkSubtype(r0, info_PlayerInfo__C2454_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfo_getState__P2479_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1033; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.state___13987 = (r0); + r0 = s.state___13987.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 = 3; continue; } + { step = 7; continue; } case 1: case 2: - s.tmp_1 = power_poke__P1778_mk(s); - s.callLocIdx = 1131; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + s.font___13993 = (globals.font8___1820); + r0 = s.state___13987.fields["life"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["allSprites"] = (s.tmp_1); - r0 = (s.arg0).fields["spriteNextId"] = (0); - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P15666); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P403_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 = 1134; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P403_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 13; - s.tmp_0.arg2 = controller__moveSprites__P1977; - s.callLocIdx = 1135; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P15689); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P403_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 = 1137; s.pc = 7; return s.tmp_1; - case 7: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P15702); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P403_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 = 1141; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P15723); + r0 = (s.tmp_1 <= 4); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P403_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 = 1143; s.pc = 9; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_2 = helpers_imageFillRect__P1803_mk(s); + s.tmp_2.arg0 = globals.screen___1877; + s.tmp_2.arg1 = 0; + s.tmp_2.arg2 = 0; + r0 = s.state___13987.fields["life"]; + s.tmp_4 = r0; + r0 = globals.infoState___4619.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___4619.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___4619.fields["borderColor"]; + s.tmp_2.arg5 = r0; + s.callLocIdx = 1034; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P15731); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P403_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 = 1147; s.pc = 10; return s.tmp_1; + s.tmp_0 = helpers_imageFillRect__P1803_mk(s); + s.tmp_0.arg0 = globals.screen___1877; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + r0 = s.state___13987.fields["life"]; + s.tmp_2 = r0; + r0 = globals.infoState___4619.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___4619.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___4619.fields["bgColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 1035; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P403_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 200; - s.tmp_0.arg2 = control___screen_update__P1838; - s.callLocIdx = 1148; s.pc = 11; return s.tmp_0; + s.i___14037 = (0); + case 3: + r0 = s.state___13987.fields["life"]; + s.tmp_1 = r0; + r0 = (s.i___14037 < 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___1877; + r0 = globals.infoState___4619.fields["heartImage"]; + s.tmp_3 = r0; + s.tmp_6 = r0 = s.i___14037; + r0 = globals.infoState___4619.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___14037 + 1); + s.i___14037 = (r0); + { step = 3; continue; } + case 4: + { step = 6; continue; } + case 5: + r0 = s.state___13987.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 = multiplayer_initServer__P3198_mk(s); - s.callLocIdx = 1149; s.pc = 12; return s.tmp_0; + s.tmp_0 = r0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_0, s.tmp_2); + s.num___14059 = (r0); + r0 = pxsim_String_.length(s.num___14059); + s.tmp_1 = r0; + s.tmp_3 = if_charWidth_1_mk(s); + s.tmp_3.arg0 = s.font___13993; + 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 = 1036; s.pc = 12; return s.tmp_3; } + } case 12: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P15761); + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P109_mk(s); - s.tmp_1.arg0 = globals.scene_Scene_initializers___2699; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1151; s.pc = 13; return s.tmp_1; + r0 = (s.tmp_0 - 1); + s.textWidth___14066 = (r0); + s.tmp_0 = helpers_imageFillRect__P1803_mk(s); + s.tmp_0.arg0 = globals.screen___1877; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + r0 = globals.infoState___4619.fields["heartImage"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_4); + s.tmp_3 = r0; + r0 = globals.infoState___4619.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___14066); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 5); + s.tmp_0.arg3 = r0; + r0 = globals.infoState___4619.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___4619.fields["borderColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 1037; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - case 3: + s.tmp_0 = helpers_imageFillRect__P1803_mk(s); + s.tmp_0.arg0 = globals.screen___1877; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + r0 = globals.infoState___4619.fields["heartImage"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_4); + s.tmp_3 = r0; + r0 = globals.infoState___4619.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___14066); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 4); + s.tmp_0.arg3 = r0; + r0 = globals.infoState___4619.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___4619.fields["bgColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 1038; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + r0 = globals.infoState___4619.fields["heartImage"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___1877, s.tmp_0, 1, 1); + r0 = globals.infoState___4619.fields["multiplierImage"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.clone(s.tmp_0); + s.mult___14119 = (r0); + r0 = globals.infoState___4619.fields["fontColor"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.replace(s.mult___14119, 1, s.tmp_0); + s.tmp_0 = r0 = globals.screen___1877; + s.tmp_1 = r0 = s.mult___14119; + r0 = globals.infoState___4619.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___13993; + 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 = 1039; s.pc = 15; return s.tmp_8; } + } + case 15: + r0 = s.retval; + s.tmp_7 = r0; + r0 = globals.infoState___4619.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__P1835_mk(s); + s.tmp_0.arg0 = globals.screen___1877; + s.tmp_0.arg1 = s.num___14059; + r0 = globals.infoState___4619.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___4619.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___4619.fields["fontColor"]; + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.font___13993; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1040; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + case 6: + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_init__P2701.info = {"start":4387,"length":2515,"line":126,"column":8,"endLine":185,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]} +info_PlayerInfo_drawLives__P2493.info = {"start":33801,"length":2458,"line":1117,"column":8,"endLine":1183,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"drawLives","argumentNames":["this"]} -function scene_Scene_init__P2701_mk(s) { +function info_PlayerInfo_drawLives__P2493_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init__P2701, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_drawLives__P2493, depth: s.depth + 1, pc: 0, retval: undefined, 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___13987: undefined, + font___13993: undefined, + i___14037: undefined, + num___14059: undefined, + textWidth___14066: undefined, + mult___14119: undefined, arg0: undefined, } } @@ -23732,7 +25494,7 @@ function scene_Scene_init__P2701_mk(s) { -function scene_Scene_init_inline__P15666(s) { +function info_PlayerInfo_getState__P2479(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23742,47 +25504,131 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = r0 = s.caps[0]; - r0 = s.tmp_0.fields["_millis"]; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfo__C2454_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfo_init__P4672_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1007; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = globals.infoState___4619.fields["playerStates"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["_player"]; s.tmp_2 = r0; - r0 = s.caps[0].fields["eventContext"]; - r0 = r0.fields["deltaTimeMillis"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + r0 = (s.tmp_2 - 1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_millis"] = (s.tmp_1); - s.tmp_0 = controller___update__P2008_mk(s); - r0 = s.caps[0].fields["eventContext"]; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leave(s, r0) + default: oops() +} } } +info_PlayerInfo_getState__P2479.info = {"start":25215,"length":121,"line":843,"column":8,"endLine":846,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"getState","argumentNames":["this"]} + +function info_PlayerInfo_getState__P2479_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: info_PlayerInfo_getState__P2479, 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 info_PlayerInfo_init__P4672(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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, info_PlayerInfo__C2454_VT)) failedCast(r0); + s.tmp_0 = info_initHUD__P4665_mk(s); + s.callLocIdx = 1004; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + r0 = s.arg0.fields["_player"]; s.tmp_1 = r0; - r0 = s.tmp_1.fields["deltaTimeMillis"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 / 1000); - s.tmp_0.arg0 = r0; - s.callLocIdx = 1133; s.pc = 1; return s.tmp_0; - case 1: + r0 = (s.tmp_1 > 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = info_initMultiHUD__P4666_mk(s); + s.callLocIdx = 1005; s.pc = 6; return s.tmp_2; + case 6: r0 = s.retval; + case 1: + case 2: + r0 = globals.infoState___4619.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); + s.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__C2394_VT); + s.tmp_6 = r0; + r0 = undefined; + r0 = globals.infoState___4619.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 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_init_inline__P15666.info = {"start":4677,"length":217,"line":133,"column":72,"endLine":137,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +info_PlayerInfo_init__P4672.info = {"start":23175,"length":252,"line":747,"column":8,"endLine":753,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"init","argumentNames":["this"]} -function scene_Scene_init_inline__P15666_mk(s) { +function info_PlayerInfo_init__P4672_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P15666, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_init__P4672, depth: s.depth + 1, pc: 0, retval: undefined, 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 scene_Scene_init_inline__P15689(s) { +function info_initMultiHUD__P4666(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23792,41 +25638,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = PhysicsEngine__C2352_v4_2_mk(s); - r0 = s.caps[0].fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - r0 = s.caps[0].fields["eventContext"]; + r0 = globals.infoState___4619.fields["visibilityFlag"]; 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__C2352_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.move; - s.pc = 1; return s.tmp_0; + r0 = (s.tmp_1 & 16); + 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 = globals.infoState___4619; + 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___4619.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); + if (!r0) { step = 3; continue; } + s.tmp_4 = r0 = globals.infoState___4619; + s.tmp_6 = info_defaultMultiplayerHeartImage__P4668_mk(s); + s.callLocIdx = 957; s.pc = 6; return s.tmp_6; + case 6: 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___4619; + r0 = pxsim.image.ofBuffer(_hex14212); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["multiplierImage"] = (s.tmp_1); + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_init_inline__P15689.info = {"start":5189,"length":159,"line":142,"column":69,"endLine":145,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +info_initMultiHUD__P4666.info = {"start":5029,"length":393,"line":159,"column":4,"endLine":170,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"initMultiHUD","argumentNames":[]} -function scene_Scene_init_inline__P15689_mk(s) { +function info_initMultiHUD__P4666_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P15689, depth: s.depth + 1, + parent: s, fn: info_initMultiHUD__P4666, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } +const _hex14212 = pxsim.BufferMethods.createBufferFromHex("8704030003000000010100001000000001010000") -function scene_Scene_init_inline__P15702(s) { +function info_defaultMultiplayerHeartImage__P4668(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23836,80 +25712,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dt___15703 = undefined; - s.s___15711 = undefined; - s.unnamed98___U2 = undefined; - s.unnamed99___U3 = undefined; - r0 = s.caps[0].fields["eventContext"]; + r0 = pxsim_ImageMethods.isMono(globals.screen___1877); s.tmp_0 = r0; - r0 = s.tmp_0.fields["deltaTimeMillis"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 / 1000); - s.dt___15703 = (r0); - s.tmp_0 = scene_Camera_update__P2633_mk(s); - r0 = s.caps[0].fields["camera"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 1139; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.s___15711 = (undefined); - r0 = s.caps[0].fields["allSprites"]; - s.unnamed98___U2 = (r0); - s.unnamed99___U3 = (0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.image.ofBuffer(_hex14216); + { step = 2; continue; } case 1: - s.tmp_0 = r0 = s.unnamed99___U3; - r0 = pxsim_Array__length(s.unnamed98___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed98___U2, s.unnamed99___U3); - s.s___15711 = (r0); - s.tmp_2 = if___update_3_mk(s); - s.tmp_2.arg0 = s.s___15711; - r0 = s.caps[0].fields["camera"]; - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = s.dt___15703; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3); - s.callLocIdx = 1140; 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 = 1140; s.pc = 4; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1140; s.pc = 4; return s.tmp_2;; } - else { s.callLocIdx = 1140; s.pc = 4; return s.tmp_2; } - } - case 4: - r0 = s.retval; - r0 = (s.unnamed99___U3 + 1); - s.unnamed99___U3 = (r0); - { step = 1; continue; } + r0 = pxsim.image.ofBuffer(_hex14218); case 2: - s.unnamed98___U2 = (undefined); - r0 = undefined; + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -scene_Scene_init_inline__P15702.info = {"start":5537,"length":214,"line":151,"column":79,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +info_defaultMultiplayerHeartImage__P4668.info = {"start":6026,"length":503,"line":195,"column":4,"endLine":212,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"defaultMultiplayerHeartImage","argumentNames":[]} -function scene_Scene_init_inline__P15702_mk(s) { +function info_defaultMultiplayerHeartImage__P4668_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P15702, depth: s.depth + 1, + parent: s, fn: info_defaultMultiplayerHeartImage__P4668, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - dt___15703: undefined, - s___15711: undefined, - unnamed98___U2: undefined, - unnamed99___U3: undefined, } } +const _hex14216 = pxsim.BufferMethods.createBufferFromHex("870407000500000000000000100100000110000010000100011000001001000000000000") +const _hex14218 = pxsim.BufferMethods.createBufferFromHex("870407000500000000000000100100002112000010240100411200001001000000000000") -function scene_Scene_init_inline__P15723(s) { +function info_PlayerState_constructor__P2399(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23919,30 +25754,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_Scene_render__P2706_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 1142; 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, info_PlayerState__C2394_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_init_inline__P15723.info = {"start":5892,"length":109,"line":162,"column":76,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +info_PlayerState_constructor__P2399.info = {"start":936,"length":17,"line":37,"column":8,"endLine":37,"endColumn":25,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["this"]} -function scene_Scene_init_inline__P15723_mk(s) { +function info_PlayerState_constructor__P2399_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P15723, depth: s.depth + 1, + parent: s, fn: info_PlayerState_constructor__P2399, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, + arg0: undefined, } } -function scene_Scene_init_inline__P15731(s) { +function info_PlayerInfo_drawScore__P2492(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23952,108 +25788,162 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = r0 = globals.stats___2789; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; + s.s___14233 = undefined; + s.font___14239 = undefined; + s.offsetY___14240 = undefined; + s.num___14249 = undefined; + s.width___14253 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfo__C2454_VT)) failedCast(r0); + s.tmp_1 = info_PlayerInfoImpl_score__P2443_mk(s); + r0 = s.arg0.fields["impl"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 1026; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.tmp_0 = r0; + r0 = (s.tmp_0 | 0); + s.s___14233 = (r0); + r0 = (s.s___14233 >= 1000000); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.offsetY___14240 = (2); + s.font___14239 = (globals.font5___1825); { step = 2; continue; } case 1: - r0 = globals.control_EventContext_onStats___398; + s.offsetY___14240 = (1); + s.font___14239 = (globals.font8___1820); case 2: - // jmp value (already in r0) + r0 = pxsim_numops.toString(s.s___14233); + s.num___14249 = (r0); + r0 = pxsim_String_.length(s.num___14249); + s.tmp_0 = r0; + s.tmp_2 = if_charWidth_1_mk(s); + s.tmp_2.arg0 = s.font___14239; + 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 = 1027; s.pc = 4; return s.tmp_2; } + } + case 4: + r0 = s.retval; 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___398; - if ((globals.control_EventContext_lastStats___397) && (globals.control_EventContext_lastStats___397).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(globals.control_EventContext_lastStats___397); - checkResumeConsumed(); - return; - } else { s.retval = (globals.control_EventContext_lastStats___397) + ""; } - case 8: + r0 = (s.tmp_0 * s.tmp_1); + s.width___14253 = (r0); + s.tmp_0 = helpers_imageFillRect__P1803_mk(s); + s.tmp_0.arg0 = globals.screen___1877; + r0 = pxsim_ImageMethods.width(globals.screen___1877); + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.width___14253); + 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___1877); + s.tmp_0.arg3 = r0; + s.tmp_4 = if_charHeight_1_mk(s); + s.tmp_4.arg0 = globals.font8___1820; + 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 = 1028; s.pc = 6; return s.tmp_4; } + } + case 6: 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.tmp_3 + 3); + s.tmp_0.arg4 = r0; + r0 = globals.infoState___4619.fields["borderColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 1029; s.pc = 5; return s.tmp_0; + case 5: 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: + s.tmp_0 = helpers_imageFillRect__P1803_mk(s); + s.tmp_0.arg0 = globals.screen___1877; + r0 = pxsim_ImageMethods.width(globals.screen___1877); + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.width___14253); + 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___1877); + s.tmp_0.arg3 = r0; + s.tmp_4 = if_charHeight_1_mk(s); + s.tmp_4.arg0 = globals.font8___1820; + 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 = 1030; s.pc = 8; return s.tmp_4; } + } + case 8: 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 = 1144; s.pc = 7; return s.tmp_2; + s.tmp_3 = r0; + r0 = (s.tmp_3 + 2); + s.tmp_0.arg4 = r0; + r0 = globals.infoState___4619.fields["bgColor"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 1031; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(globals.debug___2788); - if (!r0) { step = 5; continue; } - s.tmp_0 = PhysicsEngine__C2352_v3_1_mk(s); - r0 = s.caps[0].fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2352_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__P2915_mk(s); - s.callLocIdx = 1145; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.tmp_0 = power_checkDeepSleep__P1779_mk(s); - s.callLocIdx = 1146; s.pc = 13; return s.tmp_0; - case 13: + s.tmp_0 = helpers_imagePrint__P1835_mk(s); + s.tmp_0.arg0 = globals.screen___1877; + s.tmp_0.arg1 = s.num___14249; + r0 = pxsim_ImageMethods.width(globals.screen___1877); + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.width___14253); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.offsetY___14240; + r0 = globals.infoState___4619.fields["fontColor"]; + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.font___14239; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1032; s.pc = 9; return s.tmp_0; + case 9: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_init_inline__P15731.info = {"start":6118,"length":504,"line":167,"column":80,"endLine":179,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +info_PlayerInfo_drawScore__P2492.info = {"start":32738,"length":1053,"line":1077,"column":8,"endLine":1115,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"drawScore","argumentNames":["this"]} -function scene_Scene_init_inline__P15731_mk(s) { +function info_PlayerInfo_drawScore__P2492_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P15731, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_drawScore__P2492, depth: s.depth + 1, pc: 0, retval: undefined, 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, + s___14233: undefined, + font___14239: undefined, + offsetY___14240: undefined, + num___14249: undefined, + width___14253: undefined, + arg0: undefined, } } -function scene_Scene_init_inline__P15761(s) { +function info_PlayerInfoImpl_score__P2443(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24063,125 +25953,68 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.state___14314 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = lambda_2_mk(s); - s.tmp_0.argL = s.arg0; - s.tmp_0.arg0 = s.caps[0]; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 1150; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_Scene_init_inline__P15761.info = {"start":6878,"length":12,"line":184,"column":39,"endLine":184,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]} - -function scene_Scene_init_inline__P15761_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Scene_init_inline__P15761, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function multiplayer_initServer__P3198(s) { -let r0 = s.r0, 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.multiplayer.getOrigin(); + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfoImpl__C2428_VT)) failedCast(r0); + r0 = s.arg0.fields["showScore"]; s.tmp_1 = r0; - r0 = (s.tmp_1 === "server"); + r0 = (s.tmp_1 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = control_EventContext_registerFrameHandler__P403_mk(s); - s.tmp_3 = game_eventContext__P2795_mk(s); - s.callLocIdx = 1677; s.pc = 4; return s.tmp_3; - case 4: - r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = 210; - s.tmp_2.arg2 = multiplayer_initServer_inline__P15770; - s.callLocIdx = 1678; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; + r0 = (s.arg0).fields["showScore"] = (true); case 1: case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -multiplayer_initServer__P3198.info = {"start":919,"length":307,"line":27,"column":4,"endLine":35,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"initServer","argumentNames":[]} - -function multiplayer_initServer__P3198_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: multiplayer_initServer__P3198, depth: s.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 multiplayer_initServer_inline__P15770(s) { -let r0 = s.r0, 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.multiplayer.getOrigin(); + r0 = s.arg0.fields["showPlayer"]; s.tmp_1 = r0; - r0 = (s.tmp_1 === "server"); + r0 = (s.tmp_1 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.multiplayer.postImage(globals.screen___1877); - case 1: - case 2: - r0 = undefined; + if (!r0) { step = 3; continue; } + r0 = (s.arg0).fields["showPlayer"] = (true); + case 3: + case 4: + s.tmp_0 = info_PlayerInfoImpl_getState__P2441_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 991; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.state___14314 = (r0); + r0 = s.state___14314.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___14314).fields["score"] = (0); + case 5: + case 6: + r0 = s.state___14314.fields["score"]; return leave(s, r0) default: oops() } } } -multiplayer_initServer_inline__P15770.info = {"start":1083,"length":126,"line":29,"column":93,"endLine":33,"endColumn":13,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} +info_PlayerInfoImpl_score__P2443.info = {"start":19878,"length":314,"line":641,"column":8,"endLine":650,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"score","argumentNames":["this"]} -function multiplayer_initServer_inline__P15770_mk(s) { +function info_PlayerInfoImpl_score__P2443_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_initServer_inline__P15770, depth: s.depth + 1, + parent: s, fn: info_PlayerInfoImpl_score__P2443, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + state___14314: undefined, + arg0: undefined, } } -function game_consoleOverlay_draw__P2915(s) { +function info_PlayerInfo_drawPlayer__P2491(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24191,441 +26024,668 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.height___15823 = undefined; - s.top___15828 = undefined; - s.i___15834 = undefined; - s.t___15847 = undefined; - s.tOff___15854 = undefined; - s.tab___15856 = undefined; - s.unnamed102___U6 = undefined; - s.unnamed103___U7 = undefined; - s.padding___15858 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___4998); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + s.state___14357 = undefined; + s.font___14360 = undefined; + s.score___14362 = undefined; + s.life___14363 = undefined; + s.height___14364 = undefined; + s.scoreWidth___14365 = undefined; + s.lifeWidth___14366 = undefined; + s.offsetY___14369 = undefined; + s.showScore___14370 = undefined; + s.showLife___14379 = undefined; + s.width___14448 = undefined; + s.x___14458 = undefined; + s.y___14467 = undefined; + s.bump___14504 = undefined; + s.xLoc___14531 = undefined; + s.mult___14543 = undefined; + s.pNum___14608 = undefined; + s.iconWidth___14615 = undefined; + s.iconHeight___14623 = undefined; + s.iconX___14631 = undefined; + s.iconY___14644 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfo__C2454_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfo_getState__P2479_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1009; s.pc = 43; return s.tmp_0; + case 43: + r0 = s.retval; + s.state___14357 = (r0); + s.font___14360 = (globals.font5___1825); + s.height___14364 = (4); + s.scoreWidth___14365 = (0); + s.lifeWidth___14366 = (0); + s.offsetY___14369 = (2); + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["showScore"]; s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } + if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_numops_toBoolDecr(globals.instance___4952); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = s.state___14357.fields["score"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); 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; } + s.tmp_2 = r0; + s.showScore___14370 = (s.tmp_2); + r0 = s.arg0.fields["impl"]; + r0 = r0.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___14357.fields["life"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); case 4: - s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = globals.consoleFont___5006; - if (!s.tmp_7.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight"); + // jmp value (already in r0) + s.tmp_2 = r0; + s.showLife___14379 = (s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.showScore___14370); + if (!r0) { step = 5; continue; } + r0 = pxsim_String_.mkEmpty(); + s.tmp_0 = r0; + r0 = s.state___14357.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___14362 = (r0); + r0 = pxsim_String_.length(s.score___14362); + s.tmp_1 = r0; + s.tmp_3 = if_charWidth_1_mk(s); + s.tmp_3.arg0 = s.font___14360; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charWidth"); } 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 = 1425; s.pc = 14; return s.tmp_7; } + 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 = 1010; s.pc = 45; return s.tmp_3; } } - case 14: + case 45: r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 + 2); - s.height___15823 = (r0); - r0 = pxsim_numops_toBoolDecr(globals.stats___2789); - if (!r0) { step = 5; continue; } - r0 = s.height___15823; - { step = 6; continue; } + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 3); + s.scoreWidth___14365 = (r0); + s.tmp_0 = r0 = s.height___14364; + s.tmp_2 = if_charHeight_1_mk(s); + s.tmp_2.arg0 = s.font___14360; + 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 = 1011; 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___14364 = (r0); + s.tmp_0 = r0 = s.offsetY___14369; + s.tmp_3 = if_charHeight_1_mk(s); + s.tmp_3.arg0 = s.font___14360; + 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 = 1012; 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___14369 = (r0); case 5: - r0 = 0; case 6: - // jmp value (already in r0) + r0 = pxsim_numops_toBoolDecr(s.showLife___14379); + if (!r0) { step = 9; continue; } + r0 = s.state___14357.fields["life"]; s.tmp_0 = r0; - r0 = (2 + s.tmp_0); - s.top___15828 = (r0); - s.i___15834 = (0); + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } case 7: - s.tmp_1 = r0 = s.i___15834; - r0 = pxsim_Array__length(globals.consoleStrings___4998); + r0 = 0; + case 8: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_String_.mkEmpty(); 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___4998, s.i___15834); + 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___14363 = (r0); + r0 = globals.infoState___4619.fields["heartImage"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_3); + s.tmp_2 = r0; + r0 = globals.infoState___4619.fields["multiplierImage"]; s.tmp_5 = r0; - r0 = pxsim_String_.indexOf(s.tmp_5, "\t", undefined); + r0 = pxsim_ImageMethods.width(s.tmp_5); 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__P122_mk(s); - r0 = pxsim_Array__getAt(globals.consoleStrings___4998, s.i___15834); - s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = "\t"; - s.tmp_6.arg2 = undefined; - s.callLocIdx = 1426; s.pc = 15; return s.tmp_6; - case 15: - r0 = s.retval; - s.t___15847 = (r0); - s.tOff___15854 = (0); - s.tab___15856 = (undefined); - s.unnamed102___U6 = (s.t___15847); - s.unnamed103___U7 = (0); - case 8: - s.tmp_0 = r0 = s.unnamed103___U7; - r0 = pxsim_Array__length(s.unnamed102___U6); + r0 = (s.tmp_2 + s.tmp_4); s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 9; continue; } - r0 = pxsim_Array__getAt(s.unnamed102___U6, s.unnamed103___U7); - s.tab___15856 = (r0); - s.tmp_2 = r0 = globals.tabSize___5000; - s.tmp_5 = r0 = s.tOff___15854; - r0 = pxsim_String_.length(s.tab___15856); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_4 % globals.tabSize___5000); - s.tmp_3 = r0; - r0 = (s.tmp_2 - s.tmp_3); - s.padding___15858 = (r0); - s.tmp_0 = helpers_imagePrint__P1835_mk(s); - s.tmp_0.arg0 = globals.screen___1877; - s.tmp_0.arg1 = s.tab___15856; - s.tmp_2 = r0 = s.tOff___15854; - s.tmp_4 = if_charWidth_1_mk(s); - s.tmp_4.arg0 = globals.consoleFont___5006; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); + r0 = pxsim_String_.length(s.life___14363); + s.tmp_7 = r0; + s.tmp_9 = if_charWidth_1_mk(s); + s.tmp_9.arg0 = s.font___14360; + if (!s.tmp_9.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.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 = 1427; s.pc = 17; return s.tmp_4; } + 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 = 1013; s.pc = 49; return s.tmp_9; } } - case 17: + case 49: 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___15828; - r0 = (s.i___15834 * s.height___15823); + s.tmp_8 = r0; + r0 = (s.tmp_7 * s.tmp_8); s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___4997; - s.tmp_0.arg5 = globals.consoleFont___5006; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1428; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - s.tmp_0 = r0 = s.tOff___15854; - r0 = pxsim_String_.length(s.tab___15856); + r0 = (s.tmp_1 + s.tmp_6); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 3); + s.lifeWidth___14366 = (r0); + s.tmp_0 = r0 = s.height___14364; + r0 = globals.infoState___4619.fields["heartImage"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.padding___15858); + r0 = pxsim_ImageMethods.height(s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); - s.tOff___15854 = (r0); - r0 = (s.unnamed103___U7 + 1); - s.unnamed103___U7 = (r0); - { step = 8; continue; } + s.height___14364 = (r0); case 9: - s.unnamed102___U6 = (undefined); - { step = 11; continue; } case 10: - s.tmp_0 = helpers_imagePrint__P1835_mk(s); - s.tmp_0.arg0 = globals.screen___1877; - r0 = pxsim_Array__getAt(globals.consoleStrings___4998, s.i___15834); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 4; - s.tmp_1 = r0 = s.top___15828; - r0 = (s.i___15834 * s.height___15823); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___4997; - s.tmp_0.arg5 = globals.consoleFont___5006; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1429; s.pc = 18; return s.tmp_0; - case 18: + s.tmp_0 = Math_max__P130_mk(s); + s.tmp_0.arg0 = s.scoreWidth___14365; + s.tmp_0.arg1 = s.lifeWidth___14366; + s.callLocIdx = 1014; s.pc = 50; return s.tmp_0; + case 50: r0 = s.retval; + s.width___14448 = (r0); + s.tmp_0 = r0 = s.showScore___14370; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 11; continue; } + r0 = s.tmp_0; + { step = 12; continue; } case 11: - r0 = (s.i___15834 + 1); - s.i___15834 = (r0); - { step = 7; continue; } + r0 = s.showLife___14379; case 12: - case 13: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -game_consoleOverlay_draw__P2915.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} - -function game_consoleOverlay_draw__P2915_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_consoleOverlay_draw__P2915, depth: s.depth + 1, - pc: 0, retval: undefined, 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___15823: undefined, - top___15828: undefined, - i___15834: undefined, - t___15847: undefined, - tOff___15854: undefined, - tab___15856: undefined, - unnamed102___U6: undefined, - unnamed103___U7: undefined, - padding___15858: undefined, -} } - - - - - -function scene_systemMenu_isVisible__P2896(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = pxsim_numops_toBoolDecr(globals.instance___4952); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + // jmp value (already in r0) 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() -} } } -scene_systemMenu_isVisible__P2896.info = {"start":13170,"length":62,"line":395,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} - -function scene_systemMenu_isVisible__P2896_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_isVisible__P2896, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, -} } - - - - - -function helpers_stringSplit__P122(s) { -let r0 = s.r0, 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.A___15912 = undefined; - s.lim___15914 = undefined; - s.s___15930 = undefined; - s.p___15933 = undefined; - s.R___15934 = undefined; - s.z___15948 = undefined; - s.T___15961 = undefined; - s.q___15962 = undefined; - s.e___15968 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = pxsim_Array__mk(); - s.A___15912 = (r0); - s.lim___15914 = (0); - r0 = (s.arg2 === undefined); + if (!r0) { step = 13; continue; } + r0 = (s.height___14364 + 1); + s.height___14364 = (r0); + case 13: + case 14: + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["left"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (536870912 - 1); - s.lim___15914 = (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___15914 = (0); - { step = 3; continue; } - case 2: - r0 = (s.arg2 | 0); - s.lim___15914 = (r0); - case 3: - case 4: - r0 = pxsim_String_.length(s.arg0); - s.s___15930 = (r0); - s.p___15933 = (0); - s.R___15934 = (s.arg1); - r0 = (s.lim___15914 == 0); + if (!r0) { step = 15; continue; } + r0 = s.width___14448; + { step = 16; continue; } + case 15: + r0 = 0; + case 16: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["x"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.tmp_1); + s.x___14458 = (r0); + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["up"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.A___15912; - { step = 21; continue; } - case 5: - case 6: - r0 = (s.arg1 === undefined); + if (!r0) { step = 17; continue; } + r0 = s.height___14364; + { step = 18; continue; } + case 17: + r0 = 0; + case 18: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["y"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.tmp_1); + s.y___14467 = (r0); + s.tmp_0 = r0 = s.showScore___14370; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 19; continue; } + r0 = s.tmp_0; + { step = 20; continue; } + case 19: + r0 = s.showLife___14379; + case 20: + // jmp value (already in r0) s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 7; continue; } - r0 = pxsim_Array_.setAt(s.A___15912, 0, s.arg0); - r0 = s.A___15912; - { step = 21; continue; } - case 7: - case 8: - r0 = (s.s___15930 == 0); + if (!r0) { step = 21; continue; } + s.tmp_2 = helpers_imageFillRect__P1803_mk(s); + s.tmp_2.arg0 = globals.screen___1877; + s.tmp_2.arg1 = s.x___14458; + s.tmp_2.arg2 = s.y___14467; + s.tmp_2.arg3 = s.width___14448; + s.tmp_2.arg4 = s.height___14364; + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["border"]; + s.tmp_2.arg5 = r0; + s.callLocIdx = 1015; s.pc = 51; return s.tmp_2; + case 51: + r0 = s.retval; + s.tmp_0 = helpers_imageFillRect__P1803_mk(s); + s.tmp_0.arg0 = globals.screen___1877; + r0 = (s.x___14458 + 1); + s.tmp_0.arg1 = r0; + r0 = (s.y___14467 + 1); + s.tmp_0.arg2 = r0; + r0 = (s.width___14448 - 2); + s.tmp_0.arg3 = r0; + r0 = (s.height___14364 - 2); + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["bg"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 1016; s.pc = 52; return s.tmp_0; + case 52: + r0 = s.retval; + case 21: + case 22: + r0 = pxsim_numops_toBoolDecr(s.showScore___14370); + if (!r0) { step = 25; continue; } + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["left"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.tmp_1 = helpers_splitMatch__P4252_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = 0; - s.tmp_1.arg2 = s.R___15934; - s.callLocIdx = 12; s.pc = 22; return s.tmp_1; - case 22: + if (!r0) { step = 23; continue; } + r0 = (s.width___14448 - s.scoreWidth___14365); + { step = 24; continue; } + case 23: + r0 = 0; + case 24: + // jmp value (already in r0) + s.tmp_1 = r0; + s.bump___14504 = (s.tmp_1); + s.tmp_0 = helpers_imagePrint__P1835_mk(s); + s.tmp_0.arg0 = globals.screen___1877; + s.tmp_0.arg1 = s.score___14362; + r0 = (s.x___14458 + 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.bump___14504); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 1); + s.tmp_0.arg2 = r0; + r0 = (s.y___14467 + 2); + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["fc"]; + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.font___14360; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1017; s.pc = 53; return s.tmp_0; + case 53: r0 = s.retval; - s.z___15948 = (r0); - r0 = (s.z___15948 > -1); + case 25: + case 26: + r0 = pxsim_numops_toBoolDecr(s.showLife___14379); + if (!r0) { step = 29; continue; } + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["left"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = s.A___15912; - { step = 21; continue; } - case 9: - case 10: - r0 = pxsim_Array_.setAt(s.A___15912, 0, s.arg0); - r0 = s.A___15912; - { step = 21; continue; } - case 11: - case 12: - s.q___15962 = (s.p___15933); - case 13: - r0 = (s.q___15962 != s.s___15930); + if (!r0) { step = 27; continue; } + r0 = (s.width___14448 - s.lifeWidth___14366); + { step = 28; continue; } + case 27: + r0 = 0; + case 28: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.x___14458 + 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.tmp_1); + s.xLoc___14531 = (r0); + r0 = globals.infoState___4619.fields["multiplierImage"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - s.tmp_1 = helpers_splitMatch__P4252_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.q___15962; - s.tmp_1.arg2 = s.R___15934; - s.callLocIdx = 13; s.pc = 23; return s.tmp_1; - case 23: + r0 = pxsim_ImageMethods.clone(s.tmp_0); + s.mult___14543 = (r0); + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["fc"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.replace(s.mult___14543, 1, s.tmp_0); + s.tmp_0 = r0 = globals.screen___1877; + r0 = globals.infoState___4619.fields["heartImage"]; + s.tmp_1 = r0; + s.tmp_2 = r0 = s.xLoc___14531; + r0 = (s.y___14467 + s.offsetY___14369); + 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___1877; + s.tmp_1 = r0 = s.mult___14543; + s.tmp_3 = r0 = s.xLoc___14531; + r0 = globals.infoState___4619.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___14467 + s.offsetY___14369); + s.tmp_9 = r0; + s.tmp_11 = if_charHeight_1_mk(s); + s.tmp_11.arg0 = s.font___14360; + 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 = 1018; 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___4619.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__P1835_mk(s); + s.tmp_0.arg0 = globals.screen___1877; + s.tmp_0.arg1 = s.life___14363; + s.tmp_3 = r0 = s.xLoc___14531; + r0 = globals.infoState___4619.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___4619.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___14467 + s.offsetY___14369); + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["fc"]; + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.font___14360; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1019; s.pc = 55; return s.tmp_0; + case 55: r0 = s.retval; - s.e___15968 = (r0); - r0 = (s.e___15968 < 0); + case 29: + case 30: + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["showPlayer"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = (s.q___15962 + 1); - s.q___15962 = (r0); - { step = 19; continue; } - case 14: - r0 = (s.e___15968 == s.p___15933); + 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___14608 = (r0); + r0 = pxsim_String_.length(s.pNum___14608); + s.tmp_1 = r0; + s.tmp_3 = if_charWidth_1_mk(s); + s.tmp_3.arg0 = s.font___14360; + 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 = 1020; 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 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - r0 = (s.q___15962 + 1); - s.q___15962 = (r0); - { step = 18; continue; } - case 15: - s.tmp_0 = helpers_stringSlice__P119_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___15933; - s.tmp_0.arg2 = s.q___15962; - s.callLocIdx = 14; s.pc = 24; return s.tmp_0; - case 24: + r0 = (s.tmp_0 + 1); + s.iconWidth___14615 = (r0); + s.tmp_0 = Math_max__P130_mk(s); + s.tmp_0.arg0 = s.height___14364; + s.tmp_2 = if_charHeight_1_mk(s); + s.tmp_2.arg0 = s.font___14360; + 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 = 1021; 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 = 1022; s.pc = 58; return s.tmp_0; + case 58: r0 = s.retval; - s.T___15961 = (r0); - r0 = pxsim_Array__push(s.A___15912, s.T___15961); - r0 = pxsim_Array__length(s.A___15912); + s.iconHeight___14623 = (r0); + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["left"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 31; continue; } + r0 = (s.x___14458 - s.iconWidth___14615); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 1); + { step = 32; continue; } + case 31: + r0 = (s.x___14458 + s.width___14448); + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + case 32: + // jmp value (already in r0) + s.tmp_3 = r0; + s.iconX___14631 = (s.tmp_3); + s.iconY___14644 = (s.y___14467); + r0 = pxsim_numops_toBoolDecr(s.showScore___14370); s.tmp_1 = r0; - r0 = (s.tmp_1 == s.lim___15914); + 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___14379); + 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["impl"]; + r0 = r0.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___14631 + s.tmp_5); + s.iconX___14631 = (r0); + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["up"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - r0 = s.A___15912; - { step = 21; continue; } - case 16: - case 17: - s.p___15933 = (s.e___15968); - s.q___15962 = (s.p___15933); - case 18: - case 19: - { step = 13; continue; } - case 20: - s.tmp_0 = helpers_stringSlice__P119_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___15933; - s.tmp_0.arg2 = s.q___15962; - s.callLocIdx = 15; s.pc = 25; return s.tmp_0; - case 25: + if (!r0) { step = 37; continue; } + r0 = (s.iconY___14644 - 3); + s.iconY___14644 = (r0); + case 37: + case 38: + case 39: + case 40: + s.tmp_0 = helpers_imageFillRect__P1803_mk(s); + s.tmp_0.arg0 = globals.screen___1877; + s.tmp_0.arg1 = s.iconX___14631; + s.tmp_0.arg2 = s.iconY___14644; + s.tmp_0.arg3 = s.iconWidth___14615; + s.tmp_0.arg4 = s.iconHeight___14623; + r0 = s.arg0.fields["impl"]; + r0 = r0.fields["border"]; + s.tmp_0.arg5 = r0; + s.callLocIdx = 1023; s.pc = 60; return s.tmp_0; + case 60: r0 = s.retval; - s.T___15961 = (r0); - r0 = pxsim_Array__push(s.A___15912, s.T___15961); - r0 = s.A___15912; - case 21: + s.tmp_0 = helpers_imagePrint__P1835_mk(s); + s.tmp_0.arg0 = globals.screen___1877; + s.tmp_0.arg1 = s.pNum___14608; + r0 = (s.iconX___14631 + 1); + s.tmp_0.arg2 = r0; + s.tmp_2 = r0 = s.iconY___14644; + r0 = (s.iconHeight___14623 >> 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___14360; + 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 = 1024; 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["impl"]; + r0 = r0.fields["bg"]; + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.font___14360; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1025; s.pc = 61; return s.tmp_0; + case 61: + r0 = s.retval; + case 41: + case 42: + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_stringSplit__P122.info = {"start":12919,"length":1319,"line":434,"column":4,"endLine":478,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSplit","argumentNames":["S","separator","limit"]} +info_PlayerInfo_drawPlayer__P2491.info = {"start":28998,"length":3730,"line":972,"column":8,"endLine":1075,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"drawPlayer","argumentNames":["this"]} -function helpers_stringSplit__P122_mk(s) { +function info_PlayerInfo_drawPlayer__P2491_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSplit__P122, depth: s.depth + 1, + parent: s, fn: info_PlayerInfo_drawPlayer__P2491, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - A___15912: undefined, - lim___15914: undefined, - s___15930: undefined, - p___15933: undefined, - R___15934: undefined, - z___15948: undefined, - T___15961: undefined, - q___15962: undefined, - e___15968: 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___14357: undefined, + font___14360: undefined, + score___14362: undefined, + life___14363: undefined, + height___14364: undefined, + scoreWidth___14365: undefined, + lifeWidth___14366: undefined, + offsetY___14369: undefined, + showScore___14370: undefined, + showLife___14379: undefined, + width___14448: undefined, + x___14458: undefined, + y___14467: undefined, + bump___14504: undefined, + xLoc___14531: undefined, + mult___14543: undefined, + pNum___14608: undefined, + iconWidth___14615: undefined, + iconHeight___14623: undefined, + iconX___14631: undefined, + iconY___14644: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function helpers_splitMatch__P4252(s) { +function info_PlayerInfoImpl_raiseLifeZero__P2453(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24635,85 +26695,95 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___16013 = undefined; - s.s___16016 = undefined; - s.i___16026 = undefined; + s.state___14335 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_String_.length(s.arg2); - s.r___16013 = (r0); - r0 = pxsim_String_.length(s.arg0); - s.s___16016 = (r0); - r0 = (s.arg1 + s.r___16013); + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfoImpl__C2428_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfoImpl_getState__P2441_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1000; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.state___14335 = (r0); + r0 = s.state___14335.fields["life"]; s.tmp_1 = r0; - r0 = (s.tmp_1 > s.s___16016); + r0 = (s.tmp_1 !== null); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = -1; - { step = 7; continue; } + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = s.state___14335.fields["life"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 <= 0); case 2: - s.i___16026 = (0); - case 3: - r0 = (s.i___16026 < s.r___16013); + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 7; continue; } + r0 = (s.state___14335).fields["life"] = (null); + r0 = s.state___14335.fields["lifeZeroHandler"]; 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___16026); - 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___16026); - s.tmp_5 = r0; - r0 = (s.tmp_2 != s.tmp_5); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + s.tmp_1 = if_lifeZeroHandler_1_mk(s); + s.tmp_1.arg0 = s.state___14335; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "lifeZeroHandler"), 1); + s.callLocIdx = 1001; 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 = 1001; s.pc = 10; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 1001; s.pc = 10; return s.tmp_1;; } + else { s.callLocIdx = 1001; 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; } - r0 = -1; - { step = 7; continue; } + s.tmp_0 = game_over__P2802_mk(s); + s.tmp_0.arg0 = false; + s.tmp_0.arg1 = undefined; + s.callLocIdx = 1002; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; case 4: case 5: - r0 = (s.i___16026 + 1); - s.i___16026 = (r0); - { step = 3; continue; } case 6: - r0 = (s.arg1 + s.r___16013); case 7: + case 8: + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_splitMatch__P4252.info = {"start":14244,"length":289,"line":480,"column":4,"endLine":489,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"splitMatch","argumentNames":["S","q","R"]} +info_PlayerInfoImpl_raiseLifeZero__P2453.info = {"start":22417,"length":374,"line":720,"column":8,"endLine":730,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"raiseLifeZero","argumentNames":["this","gameOver"]} -function helpers_splitMatch__P4252_mk(s) { +function info_PlayerInfoImpl_raiseLifeZero__P2453_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_splitMatch__P4252, depth: s.depth + 1, + parent: s, fn: info_PlayerInfoImpl_raiseLifeZero__P2453, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - r___16013: undefined, - s___16016: undefined, - i___16026: undefined, + state___14335: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function helpers_stringSlice__P119(s) { +function info_PlayerInfoImpl_hasLife__P2450(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24723,81 +26793,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___15352 = undefined; + s.state___14220 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_String_.length(s.arg0); - s.len___15352 = (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__P130_mk(s); - r0 = (s.len___15352 + s.arg1); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 11; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - s.arg1 = (r0); - case 1: - case 2: - r0 = (s.arg2 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.arg2 = (s.len___15352); - { step = 6; continue; } + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfoImpl__C2428_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfoImpl_getState__P2441_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 999; s.pc = 3; return s.tmp_0; case 3: - r0 = (s.arg2 === null); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.arg2 = (0); - case 4: - case 5: - case 6: - r0 = (s.arg2 < 0); + r0 = s.retval; + s.state___14220 = (r0); + r0 = s.state___14220.fields["life"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = (s.len___15352 + s.arg2); - s.arg2 = (r0); - case 7: - case 8: - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - r0 = (s.arg2 - s.arg1); + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.state___14220.fields["life"]; s.tmp_2 = r0; - r0 = pxsim_String_.substr(s.tmp_0, s.tmp_1, s.tmp_2); + 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() } } } -helpers_stringSlice__P119.info = {"start":11496,"length":440,"line":384,"column":4,"endLine":402,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSlice","argumentNames":["s","start","end"]} +info_PlayerInfoImpl_hasLife__P2450.info = {"start":21936,"length":141,"line":705,"column":8,"endLine":708,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"hasLife","argumentNames":["this"]} -function helpers_stringSlice__P119_mk(s) { +function info_PlayerInfoImpl_hasLife__P2450_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSlice__P119, depth: s.depth + 1, + parent: s, fn: info_PlayerInfoImpl_hasLife__P2450, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - len___15352: undefined, + tmp_3: undefined, + state___14220: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function scene_Scene_render__P2706(s) { +function info_PlayerInfoImpl_hasScore__P2446(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24807,139 +26854,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___16110 = undefined; - s.unnamed100___U1 = undefined; - s.unnamed101___U2 = undefined; + s.state___14326 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C2678_VT)) failedCast(r0); - r0 = s.arg0.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 4); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 11; continue; } + if (!checkSubtype(r0, info_PlayerInfoImpl__C2428_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfoImpl_getState__P2441_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 992; s.pc = 1; return s.tmp_0; case 1: - case 2: - s.tmp_2 = r0 = s.arg0; - r0 = s.tmp_2.fields["flags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 | 4); - s.tmp_3 = r0; - r0 = (s.tmp_2).fields["flags"] = (s.tmp_3); - r0 = s.arg0.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = s.arg0.fields["previousScene"]; - case 4: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 5; continue; } - s.tmp_3 = scene_Scene_render__P2706_mk(s); - r0 = s.arg0.fields["previousScene"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 1153; s.pc = 12; return s.tmp_3; - case 12: - r0 = s.retval; - { step = 6; continue; } - case 5: - s.tmp_0 = scene_Background_draw__P2514_mk(s); - r0 = s.arg0.fields["background"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 1154; s.pc = 13; return s.tmp_0; - case 13: r0 = s.retval; - case 6: - r0 = s.arg0.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 1); + s.state___14326 = (r0); + r0 = s.state___14326.fields["score"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_2 = helpers_arraySort__P105_mk(s); - r0 = s.arg0.fields["allSprites"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = scene_Scene_render_inline__P16087; - s.callLocIdx = 1159; s.pc = 14; return s.tmp_2; - case 14: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 & -2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - case 7: - case 8: - s.s___16110 = (undefined); - r0 = s.arg0.fields["allSprites"]; - s.unnamed100___U1 = (r0); - s.unnamed101___U2 = (0); - case 9: - s.tmp_0 = r0 = s.unnamed101___U2; - r0 = pxsim_Array__length(s.unnamed100___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 10; continue; } - r0 = pxsim_Array__getAt(s.unnamed100___U1, s.unnamed101___U2); - s.s___16110 = (r0); - s.tmp_2 = if___draw_2_mk(s); - s.tmp_2.arg0 = s.s___16110; - 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 = 1160; 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 = 1160; s.pc = 15; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1160; s.pc = 15; return s.tmp_2;; } - else { s.callLocIdx = 1160; s.pc = 15; return s.tmp_2; } - } - case 15: - r0 = s.retval; - r0 = (s.unnamed101___U2 + 1); - s.unnamed101___U2 = (r0); - { step = 9; continue; } - case 10: - s.unnamed100___U1 = (undefined); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 & -5); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - case 11: - r0 = undefined; + r0 = (s.tmp_0 !== undefined); return leave(s, r0) default: oops() } } } -scene_Scene_render__P2706.info = {"start":8101,"length":917,"line":226,"column":8,"endLine":250,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]} +info_PlayerInfoImpl_hasScore__P2446.info = {"start":21040,"length":111,"line":675,"column":8,"endLine":678,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"hasScore","argumentNames":["this"]} -function scene_Scene_render__P2706_mk(s) { +function info_PlayerInfoImpl_hasScore__P2446_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_render__P2706, depth: s.depth + 1, + parent: s, fn: info_PlayerInfoImpl_hasScore__P2446, depth: s.depth + 1, pc: 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___16110: undefined, - unnamed100___U1: undefined, - unnamed101___U2: undefined, + state___14326: undefined, arg0: undefined, } } @@ -24947,7 +26889,7 @@ function scene_Scene_render__P2706_mk(s) { -function scene_Scene_render_inline__P16087(s) { +function info_PlayerInfoImpl_life__P2447(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24957,104 +26899,79 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.state___13676 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_2 = if_z_1_mk(s); - s.tmp_2.arg0 = s.arg0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "z"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["z"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["z"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1155; s.pc = 3; return s.tmp_2; } - } - case 3: + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfoImpl__C2428_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfoImpl_getState__P2441_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 993; s.pc = 9; return s.tmp_0; + case 9: r0 = s.retval; + s.state___13676 = (r0); + r0 = s.arg0.fields["showLife"]; s.tmp_1 = r0; - s.tmp_4 = if_z_1_mk(s); - s.tmp_4.arg0 = s.arg1; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "z"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["z"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["z"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 1156; s.pc = 4; return s.tmp_4; } - } - case 4: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); + r0 = (s.tmp_1 === undefined); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = (s.arg0).fields["showLife"] = (true); case 1: - s.tmp_6 = if_id_1_mk(s); - s.tmp_6.arg0 = s.arg0; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "id"); - } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["id"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["id"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 1157; s.pc = 5; return s.tmp_6; } - } + 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: + r0 = s.state___13676.fields["life"]; + 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 = (s.state___13676).fields["life"] = (3); case 5: - r0 = s.retval; - s.tmp_5 = r0; - s.tmp_8 = if_id_1_mk(s); - s.tmp_8.arg0 = s.arg1; - if (!s.tmp_8.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_8.arg0, "id"); - } else { - s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["id"]; - if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["id"]; } - else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } - else { s.callLocIdx = 1158; s.pc = 6; return s.tmp_8; } - } case 6: - r0 = s.retval; - s.tmp_7 = r0; - r0 = (s.tmp_5 - s.tmp_7); - case 2: + r0 = s.state___13676.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_9 = r0; - r0 = s.tmp_9; + s.tmp_1 = r0; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -scene_Scene_render_inline__P16087.info = {"start":8679,"length":52,"line":240,"column":37,"endLine":240,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]} +info_PlayerInfoImpl_life__P2447.info = {"start":21161,"length":334,"line":680,"column":8,"endLine":689,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"life","argumentNames":["this"]} -function scene_Scene_render_inline__P16087_mk(s) { +function info_PlayerInfoImpl_life__P2447_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_render_inline__P16087, depth: s.depth + 1, + parent: s, fn: info_PlayerInfoImpl_life__P2447, depth: s.depth + 1, pc: 0, retval: undefined, 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, + state___13676: undefined, arg0: undefined, - arg1: undefined, } } -function scene_Background_draw__P2514(s) { +function info_PlayerInfoImpl_getState__P2441(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25069,45 +26986,28 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C2505_VT)) failedCast(r0); - r0 = s.arg0.fields["color"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.fill(globals.screen___1877, 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___1877, s.tmp_1, 0, 0); + if (!checkSubtype(r0, info_PlayerInfoImpl__C2428_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfoImpl_init__P4671_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 990; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = s.arg0.fields["_layers"]; + r0 = s.retval; + r0 = globals.infoState___4619.fields["playerStates"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, scene_Background_draw_inline__P16142); + r0 = s.arg0.fields["_player"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P109_mk(s); - r0 = s.arg0.fields["_layers"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 1009; s.pc = 5; return s.tmp_2; - case 5: - r0 = s.retval; - case 3: - case 4: - r0 = undefined; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); return leave(s, r0) default: oops() } } } -scene_Background_draw__P2514.info = {"start":1166,"length":545,"line":48,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this"]} +info_PlayerInfoImpl_getState__P2441.info = {"start":19640,"length":121,"line":631,"column":8,"endLine":634,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"getState","argumentNames":["this"]} -function scene_Background_draw__P2514_mk(s) { +function info_PlayerInfoImpl_getState__P2441_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_draw__P2514, depth: s.depth + 1, + parent: s, fn: info_PlayerInfoImpl_getState__P2441, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25119,7 +27019,7 @@ function scene_Background_draw__P2514_mk(s) { -function scene_Background_draw_inline__P16142(s) { +function info_PlayerInfoImpl_init__P4671(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25129,58 +27029,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___16144 = undefined; - s.oy___16155 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.caps[0].fields["camera"]; - r0 = r0.fields["drawOffsetX"]; + r0 = s.arg0; + if (!checkSubtype(r0, info_PlayerInfoImpl__C2428_VT)) failedCast(r0); + s.tmp_0 = info_initHUD__P4665_mk(s); + s.callLocIdx = 987; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + r0 = s.arg0.fields["_player"]; s.tmp_1 = r0; - r0 = s.arg0.fields["distance"]; - s.tmp_3 = r0; - r0 = (1 + s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 / s.tmp_2); + r0 = (s.tmp_1 > 1); s.tmp_0 = r0; - r0 = pxsim.Math_.round(s.tmp_0); - s.ox___16144 = (r0); - r0 = s.caps[0].fields["camera"]; - r0 = r0.fields["drawOffsetY"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["distance"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = info_initMultiHUD__P4666_mk(s); + s.callLocIdx = 988; s.pc = 6; return s.tmp_2; + case 6: + r0 = s.retval; + case 1: + case 2: + r0 = globals.infoState___4619.fields["playerStates"]; s.tmp_3 = r0; - r0 = (1 + s.tmp_3); + 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 = (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.Math_.round(s.tmp_0); - s.oy___16155 = (r0); - s.tmp_0 = scene_BackgroundLayer_draw__P2523_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ox___16144; - s.tmp_0.arg2 = s.oy___16155; - s.callLocIdx = 1008; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkClassInstance(info_PlayerState__C2394_VT); + s.tmp_6 = r0; + r0 = undefined; + r0 = globals.infoState___4619.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 = undefined; return leave(s, r0) default: oops() } } } -scene_Background_draw_inline__P16142.info = {"start":1373,"length":312,"line":53,"column":37,"endLine":58,"endColumn":17,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["layer"]} +info_PlayerInfoImpl_init__P4671.info = {"start":19378,"length":252,"line":623,"column":8,"endLine":629,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"init","argumentNames":["this"]} -function scene_Background_draw_inline__P16142_mk(s) { +function info_PlayerInfoImpl_init__P4671_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_draw_inline__P16142, depth: s.depth + 1, + parent: s, fn: info_PlayerInfoImpl_init__P4671, depth: s.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___16144: undefined, - oy___16155: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, arg0: undefined, } } @@ -25188,7 +27105,7 @@ function scene_Background_draw_inline__P16142_mk(s) { -function scene_BackgroundLayer_draw__P2523(s) { +function game_showLongText__P2781(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25198,251 +27115,271 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___16173 = undefined; - s.h___16176 = undefined; - s.pw___16179 = undefined; - s.ph___16183 = undefined; - s.rx___16192 = undefined; - s.ry___16195 = undefined; - s.y___16264 = undefined; - s.py___16265 = undefined; - s.dh___16274 = undefined; - s.x___16282 = undefined; - s.rxl___16283 = undefined; - s.px___16289 = undefined; - s.dw___16293 = undefined; + s.width___14780 = undefined; + s.height___14781 = undefined; + s.top___14782 = undefined; + s.left___14783 = undefined; + s.dialog___14894 = undefined; + s.s___14902 = undefined; + s.pressed___14918 = undefined; + s.done___14919 = undefined; + s.upPressed___14920 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_BackgroundLayer__C2515_VT)) failedCast(r0); + s.tmp_0 = console_inspect__P382_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 20; + s.callLocIdx = 1266; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.arg0 = (r0); + s.tmp_0 = controller__setUserEventsEnabled__P2049_mk(s); + s.tmp_0.arg0 = false; + s.callLocIdx = 1267; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = game_pushScene__P2796_mk(s); + s.callLocIdx = 1268; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + s.tmp_1 = game_currentScene__P2792_mk(s); + s.callLocIdx = 1269; s.pc = 11; return s.tmp_1; + case 11: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 | 2); + s.tmp_2 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_2); + s.tmp_0 = r0 = s.arg1; + r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = s.tmp_0; + { step = 7; continue; } + case 1: r0 = pxsim_ImageMethods.width(globals.screen___1877); - s.w___16173 = (r0); + s.tmp_1 = r0; + r0 = (s.tmp_1 - 4); + s.width___14780 = (r0); r0 = pxsim_ImageMethods.height(globals.screen___1877); - s.h___16176 = (r0); - r0 = s.arg0.fields["img"]; + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_1, 3); s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_0); - s.pw___16179 = (r0); - r0 = s.arg0.fields["img"]; + r0 = (s.tmp_0 + 5); + s.height___14781 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___1877); s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_0); - s.ph___16183 = (r0); - r0 = pxsim_numops_toBoolDecr(s.pw___16179); + r0 = (s.tmp_0 - s.height___14781); + s.top___14782 = (r0); + r0 = pxsim_ImageMethods.width(globals.screen___1877); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 - s.width___14780); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_numops_toBoolDecr(s.ph___16183); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = (s.tmp_0 >> 1); + s.left___14783 = (r0); + { step = 7; continue; } case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - { step = 23; continue; } + r0 = pxsim_ImageMethods.width(globals.screen___1877); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 4); + s.width___14780 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___1877); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_1, 3); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 5); + s.height___14781 = (r0); + s.top___14782 = (0); + r0 = pxsim_ImageMethods.width(globals.screen___1877); + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.width___14780); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 1); + s.left___14783 = (r0); + { step = 7; continue; } case 3: + r0 = pxsim_ImageMethods.width(globals.screen___1877); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_1, 3); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 5); + s.width___14780 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___1877); + s.height___14781 = (r0); + s.top___14782 = (0); + s.left___14783 = (0); + { step = 7; continue; } case 4: - r0 = (0 - s.arg1); - s.rx___16192 = (r0); - r0 = (0 - s.arg2); - s.ry___16195 = (r0); - r0 = s.arg0.fields["alignX"]; + r0 = pxsim_ImageMethods.width(globals.screen___1877); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_1, 3); s.tmp_0 = r0; - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 6; continue; } - r0 = s.tmp_0; + r0 = (s.tmp_0 + 5); + s.width___14780 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___1877); + s.height___14781 = (r0); + s.top___14782 = (0); + r0 = pxsim_ImageMethods.width(globals.screen___1877); + s.tmp_0 = r0; + r0 = (s.tmp_0 - s.width___14780); + s.left___14783 = (r0); { step = 7; continue; } case 5: - s.tmp_1 = r0 = s.rx___16192; - r0 = (s.w___16173 + s.pw___16179); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.rx___16192 = (r0); - { step = 7; continue; } - case 6: - s.tmp_0 = r0 = s.rx___16192; - r0 = (s.w___16173 + s.pw___16179); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); + r0 = pxsim_ImageMethods.width(globals.screen___1877); s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.rx___16192 = (r0); - case 7: - r0 = s.arg0.fields["alignY"]; + r0 = (s.tmp_1 << 1); s.tmp_0 = r0; - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); - if (r0) { step = 8; continue; } - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 9; continue; } - r0 = s.tmp_0; - { step = 10; continue; } - case 8: - s.tmp_1 = r0 = s.ry___16195; - r0 = (s.h___16176 + s.ph___16183); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.ry___16195 = (r0); - { step = 10; continue; } - case 9: - s.tmp_0 = r0 = s.ry___16195; - r0 = (s.h___16176 + s.ph___16183); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); + r0 = pxsim.Math_.idiv(s.tmp_0, 3); + s.width___14780 = (r0); + r0 = pxsim_ImageMethods.width(globals.screen___1877); s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.ry___16195 = (r0); - case 10: - r0 = (s.rx___16192 % s.w___16173); - s.rx___16192 = (r0); - r0 = (s.rx___16192 < 0); + r0 = (s.tmp_1 << 1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - r0 = (s.rx___16192 + s.w___16173); - s.rx___16192 = (r0); - case 11: - case 12: - r0 = (s.ry___16195 % s.h___16176); - s.ry___16195 = (r0); - r0 = (s.ry___16195 < 0); + r0 = pxsim.Math_.idiv(s.tmp_0, 3); + s.height___14781 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___1877); + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.height___14781); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = (s.ry___16195 + s.h___16176); - s.ry___16195 = (r0); + r0 = (s.tmp_0 >> 1); + s.top___14782 = (r0); + r0 = pxsim_ImageMethods.width(globals.screen___1877); + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.width___14780); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 1); + s.left___14783 = (r0); + { step = 7; continue; } + case 6: + r0 = pxsim_ImageMethods.width(globals.screen___1877); + s.width___14780 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___1877); + s.height___14781 = (r0); + s.top___14782 = (0); + s.left___14783 = (0); + case 7: + r0 = pxsim_pxtcore_mkClassInstance(game_Dialog__C2754_VT); + s.tmp_0 = r0; + s.tmp_1 = game_Dialog_constructor__P2757_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.width___14780; + s.tmp_1.arg2 = s.height___14781; + s.tmp_1.arg3 = undefined; + s.tmp_1.arg4 = undefined; + s.tmp_1.arg5 = undefined; + s.callLocIdx = 1270; s.pc = 12; return s.tmp_1; + case 12: + r0 = s.retval; + s.dialog___14894 = (s.tmp_0); + s.tmp_0 = sprites_create__P2118_mk(s); + r0 = s.dialog___14894.fields["image"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = -1; + s.callLocIdx = 1271; s.pc = 13; return s.tmp_0; case 13: + r0 = s.retval; + s.s___14902 = (r0); + s.tmp_0 = Sprite_top__P2245_mk(s); + s.tmp_0.arg0 = s.s___14902; + s.tmp_0.arg1 = s.top___14782; + s.callLocIdx = 1272; s.pc = 14; return s.tmp_0; case 14: - r0 = pxsim.Math_.floor(s.rx___16192); - s.rx___16192 = (r0); - r0 = pxsim.Math_.floor(s.ry___16195); - s.ry___16195 = (r0); - s.y___16264 = (0); - s.py___16265 = (0); + r0 = s.retval; + s.tmp_0 = Sprite_left__P2241_mk(s); + s.tmp_0.arg0 = s.s___14902; + s.tmp_0.arg1 = s.left___14783; + s.callLocIdx = 1273; s.pc = 15; return s.tmp_0; case 15: - r0 = (s.y___16264 < s.h___16176); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - r0 = (s.y___16264 % s.ph___16183); - s.py___16265 = (r0); - s.tmp_0 = Math_min__P131_mk(s); - r0 = (s.ph___16183 - s.py___16265); - s.tmp_0.arg0 = r0; - r0 = (s.h___16176 - s.ry___16195); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1011; s.pc = 24; return s.tmp_0; - case 24: r0 = s.retval; - s.dh___16274 = (r0); - s.x___16282 = (0); - s.rxl___16283 = (s.rx___16192); + s.tmp_0 = game_Dialog__C2754_v1_2_mk(s); + s.tmp_0.arg0 = s.dialog___14894; + s.tmp_0.arg1 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, game_Dialog__C2754_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.setText; + s.pc = 16; return s.tmp_0; case 16: - r0 = (s.x___16282 < s.w___16173); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 19; continue; } - r0 = (s.x___16282 % s.pw___16179); - s.px___16289 = (r0); - s.tmp_0 = Math_min__P131_mk(s); - r0 = (s.pw___16179 - s.px___16289); - s.tmp_0.arg0 = r0; - r0 = (s.w___16173 - s.rxl___16283); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1012; s.pc = 25; return s.tmp_0; - case 25: r0 = s.retval; - s.dw___16293 = (r0); - r0 = s.arg0.fields["img"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.drawImage(globals.screen___1877, s.tmp_0, s.rxl___16283, s.ry___16195); - r0 = (s.rxl___16283 + s.dw___16293); - s.tmp_0 = r0; - r0 = (s.tmp_0 % s.w___16173); - s.rxl___16283 = (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___16293; - { step = 18; continue; } + r0 = pxsim_pxtrt.mklocRef(); + s.pressed___14918 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.pressed___14918, true); + r0 = pxsim_pxtrt.mklocRef(); + s.done___14919 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.done___14919, false); + r0 = pxsim_pxtrt.mklocRef(); + s.upPressed___14920 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.upPressed___14920, true); + r0 = pxsim_pxtcore_mkAction(4, game_showLongText_inline__P14922); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dialog___14894); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.pressed___14918); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.done___14919); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.upPressed___14920); + s.tmp_1 = game_onUpdate__P2811_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 1280; s.pc = 17; return s.tmp_1; case 17: - r0 = s.w___16173; + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, game_showLongText_inline__P14970); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.done___14919); + s.tmp_1 = pauseUntil__P367_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1281; s.pc = 18; return s.tmp_1; case 18: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.x___16282 + s.tmp_1); - s.x___16282 = (r0); - { step = 16; continue; } + r0 = s.retval; + s.tmp_0 = controller__setUserEventsEnabled__P2049_mk(s); + s.tmp_0.arg0 = true; + s.callLocIdx = 1282; s.pc = 19; return s.tmp_0; case 19: - r0 = (s.ry___16195 + s.dh___16274); - s.tmp_0 = r0; - r0 = (s.tmp_0 % s.h___16176); - s.ry___16195 = (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___16274; - { step = 21; continue; } - case 20: - r0 = s.h___16176; - case 21: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.y___16264 + s.tmp_1); - s.y___16264 = (r0); - { step = 15; continue; } - case 22: - case 23: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_BackgroundLayer_draw__P2523.info = {"start":3063,"length":1537,"line":99,"column":8,"endLine":144,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this","offsetX","offsetY"]} +game_showLongText__P2781.info = {"start":13437,"length":3072,"line":414,"column":4,"endLine":507,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"showLongText","argumentNames":["str","layout"]} -function scene_BackgroundLayer_draw__P2523_mk(s) { +function game_showLongText__P2781_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_BackgroundLayer_draw__P2523, depth: s.depth + 1, + parent: s, fn: game_showLongText__P2781, depth: s.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___16173: undefined, - h___16176: undefined, - pw___16179: undefined, - ph___16183: undefined, - rx___16192: undefined, - ry___16195: undefined, - y___16264: undefined, - py___16265: undefined, - dh___16274: undefined, - x___16282: undefined, - rxl___16283: undefined, - px___16289: undefined, - dw___16293: undefined, + width___14780: undefined, + height___14781: undefined, + top___14782: undefined, + left___14783: undefined, + dialog___14894: undefined, + s___14902: undefined, + pressed___14918: undefined, + done___14919: undefined, + upPressed___14920: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function scene_Camera_update__P2633(s) { +function game_showLongText_inline__P14922(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25452,188 +27389,188 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.elapsed___16375 = undefined; - s.percentComplete___16388 = undefined; - s.damp___16395 = undefined; - s.f___16404 = undefined; - s.x___16409 = undefined; - s.y___16416 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2617_VT)) failedCast(r0); - r0 = s.arg0.fields["sprite"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + s.currentState___14925 = undefined; + s.moveBack___14950 = undefined; + s.tmp_0 = game_BaseDialog__C2737_v0_1_mk(s); + s.tmp_0.arg0 = s.caps[0]; + if (!checkSubtype(s.tmp_0.arg0, game_BaseDialog__C2737_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; + s.pc = 23; return s.tmp_0; + case 23: + r0 = s.retval; + s.tmp_1 = controller_Button__C2032_v0_1_mk(s); + s.tmp_1.arg0 = globals.A___1957; + if (!checkSubtype(s.tmp_1.arg0, controller_Button__C2032_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; + s.pc = 24; return s.tmp_1; + case 24: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = scene_Camera_offsetX__P2623_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_3 = Sprite_x__P2195_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 1113; s.pc = 10; return s.tmp_3; - case 10: + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_2 = controller_Button__C2032_v0_1_mk(s); + s.tmp_2.arg0 = globals.down___1962; + if (!checkSubtype(s.tmp_2.arg0, controller_Button__C2032_VT)) failedCast(s.tmp_2.arg0); + s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.isPressed; + s.pc = 25; return s.tmp_2; + case 25: r0 = s.retval; + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + s.currentState___14925 = (s.tmp_3); + s.tmp_0 = r0 = s.currentState___14925; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___1877); - 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 = 1114; s.pc = 9; return s.tmp_1; - case 9: + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + case 4: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 7; continue; } + r0 = pxsim_pxtrt_stlocRef(s.caps[1], true); + s.tmp_1 = game_Dialog_hasNext__P2758_mk(s); + s.tmp_1.arg0 = s.caps[0]; + s.callLocIdx = 1274; s.pc = 26; return s.tmp_1; + case 26: r0 = s.retval; - s.tmp_0 = scene_Camera_offsetY__P2625_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_y__P2197_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 1115; s.pc = 12; return s.tmp_2; - case 12: + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_2 = game_Dialog_nextPage__P2760_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.callLocIdx = 1275; s.pc = 27; return s.tmp_2; + case 27: + r0 = s.retval; + { step = 6; continue; } + case 5: + s.tmp_0 = scene_setBackgroundImage__P2719_mk(s); + s.tmp_0.arg0 = null; + s.callLocIdx = 1276; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; + s.tmp_0 = game_popScene__P2797_mk(s); + s.callLocIdx = 1277; s.pc = 29; return s.tmp_0; + case 29: r0 = s.retval; + r0 = pxsim_pxtrt_stlocRef(s.caps[2], true); + case 6: + { step = 12; continue; } + case 7: + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + 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 = pxsim_numops_toBoolDecr(s.currentState___14925); s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___1877); - 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 = 1116; s.pc = 11; return s.tmp_0; + r0 = pxsim_Boolean__bang(s.tmp_1); + case 9: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 10; continue; } + r0 = pxsim_pxtrt_stlocRef(s.caps[1], false); + case 10: case 11: + case 12: + s.tmp_0 = controller_Button__C2032_v0_1_mk(s); + s.tmp_0.arg0 = globals.up___1960; + if (!checkSubtype(s.tmp_0.arg0, controller_Button__C2032_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.isPressed; + s.pc = 30; return s.tmp_0; + case 30: r0 = s.retval; - case 1: - case 2: - s.tmp_0 = scene_Camera_offsetX__P2623_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = s.arg0.fields["_offsetX"]; - s.tmp_1 = r0; - r0 = pxsim.Math_.floor(s.tmp_1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1118; s.pc = 13; return s.tmp_0; + s.moveBack___14950 = (r0); + s.tmp_0 = r0 = s.moveBack___14950; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 13; continue; } + r0 = s.tmp_0; + { step = 14; continue; } case 13: - r0 = s.retval; - s.tmp_0 = scene_Camera_offsetY__P2625_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = s.arg0.fields["_offsetY"]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim.Math_.floor(s.tmp_1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1120; s.pc = 14; return s.tmp_0; + r0 = pxsim_Boolean__bang(s.tmp_1); case 14: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["_offsetX"]; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["drawOffsetX"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["_offsetY"]; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); - r0 = s.arg0.fields["shakeStartTime"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = pxsim.control.millis(); - s.tmp_2 = r0; - r0 = s.arg0.fields["shakeStartTime"]; + // jmp value (already in r0) s.tmp_3 = r0; - r0 = (s.tmp_2 - s.tmp_3); - s.elapsed___16375 = (r0); - r0 = s.arg0.fields["shakeDuration"]; - s.tmp_1 = r0; - r0 = (s.elapsed___16375 >= s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = (s.arg0).fields["shakeStartTime"] = (undefined); - { step = 6; continue; } - case 3: - r0 = s.arg0.fields["shakeDuration"]; - s.tmp_0 = r0; - r0 = (s.elapsed___16375 / s.tmp_0); - s.percentComplete___16388 = (r0); - s.damp___16395 = (1); - r0 = (s.percentComplete___16388 >= 0.75); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 17; continue; } + r0 = pxsim_pxtrt_stlocRef(s.caps[3], true); + s.tmp_1 = game_Dialog_hasPrev__P2759_mk(s); + s.tmp_1.arg0 = s.caps[0]; + s.callLocIdx = 1278; s.pc = 31; return s.tmp_1; + case 31: + r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_1 = Math_max__P130_mk(s); - s.tmp_1.arg0 = 0; - r0 = (1 - s.percentComplete___16388); - s.tmp_1.arg1 = r0; - s.callLocIdx = 1123; s.pc = 15; return s.tmp_1; - case 15: + if (!r0) { step = 15; continue; } + s.tmp_2 = game_Dialog_prevPage__P2761_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.callLocIdx = 1279; s.pc = 32; return s.tmp_2; + case 32: r0 = s.retval; - s.damp___16395 = (r0); - case 4: - case 5: - r0 = s.arg0.fields["shakeAmplitude"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 * s.damp___16395); - s.f___16404 = (r0); - r0 = pxsim.Math_.random(); - s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___16404); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 0); - s.x___16409 = (r0); - r0 = pxsim.Math_.random(); - s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___16404); + case 15: + case 16: + { step = 22; continue; } + case 17: + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); s.tmp_0 = r0; - r0 = (s.tmp_0 >> 0); - s.y___16416 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["drawOffsetX"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.x___16409); + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 18; continue; } + r0 = s.tmp_0; + { step = 19; continue; } + case 18: + r0 = pxsim_numops_toBoolDecr(s.moveBack___14950); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["drawOffsetX"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["drawOffsetY"]; + r0 = pxsim_Boolean__bang(s.tmp_1); + case 19: + // jmp value (already in r0) s.tmp_2 = r0; - r0 = (s.tmp_2 + s.y___16416); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); - case 6: - case 7: - case 8: + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 20; continue; } + r0 = pxsim_pxtrt_stlocRef(s.caps[3], false); + case 20: + case 21: + case 22: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Camera_update__P2633.info = {"start":2285,"length":1409,"line":77,"column":8,"endLine":111,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]} +game_showLongText_inline__P14922.info = {"start":15490,"length":931,"line":475,"column":22,"endLine":503,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":[]} -function scene_Camera_update__P2633_mk(s) { +function game_showLongText_inline__P14922_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_update__P2633, depth: s.depth + 1, + parent: s, fn: game_showLongText_inline__P14922, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - elapsed___16375: undefined, - percentComplete___16388: undefined, - damp___16395: undefined, - f___16404: undefined, - x___16409: undefined, - y___16416: undefined, - arg0: undefined, + currentState___14925: undefined, + moveBack___14950: undefined, } } -function scene_Camera_offsetY__P2625(s) { +function game_showLongText_inline__P14970(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25643,87 +27580,111 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___16435 = 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__C2617_VT)) failedCast(r0); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + return leave(s, r0) + default: oops() +} } } +game_showLongText_inline__P14970.info = {"start":16443,"length":10,"line":505,"column":19,"endLine":505,"endColumn":29,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":[]} + +function game_showLongText_inline__P14970_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_showLongText_inline__P14970, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, +} } + + + + + +function game_popScene__P2797(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.oldScene___14990 = undefined; s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1110; s.pc = 5; return s.tmp_0; - case 5: + s.callLocIdx = 1312; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; - s.scene___16435 = (r0); - r0 = s.scene___16435.fields["tileMap"]; - s.tmp_0 = r0; + s.oldScene___14990 = (r0); + s.tmp_0 = r0 = globals._sceneStack___4741; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___16435.fields["tileMap"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["_map"]; - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = pxsim_Array__length(globals._sceneStack___4741); case 2: // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 3; continue; } - s.tmp_7 = r0 = s.arg0; - s.tmp_9 = tiles_TileMap_offsetY__P2578_mk(s); - r0 = s.scene___16435.fields["tileMap"]; - s.tmp_9.arg0 = r0; - s.tmp_9.arg1 = s.arg1; - s.callLocIdx = 1112; s.pc = 6; return s.tmp_9; - case 6: + r0 = pxsim_Array_.pop(globals._sceneStack___4741); + globals._scene___4740 = (r0); + s.tmp_0 = control_popEventContext__P410_mk(s); + s.callLocIdx = 1313; s.pc = 12; return s.tmp_0; + case 12: r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_7).fields["_offsetY"] = (s.tmp_8); - { step = 4; continue; } + { step = 6; continue; } case 3: - r0 = (s.arg0).fields["_offsetY"] = (s.arg1); + r0 = pxsim_numops_toBoolDecr(globals._scene___4740); + if (!r0) { step = 4; continue; } + s.tmp_0 = control_popEventContext__P410_mk(s); + s.callLocIdx = 1314; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + globals._scene___4740 = (undefined); case 4: + case 5: + case 6: + r0 = pxsim_numops_toBoolDecr(globals._scene___4740); + if (!r0) { step = 7; continue; } + s.tmp_0 = particles_enableAll__P2971_mk(s); + s.callLocIdx = 1315; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + case 7: + case 8: + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___4743); + if (!r0) { step = 9; continue; } + r0 = pxsim_pxtcore_mkAction(1, game_popScene_inline__P15011); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___14990); + s.tmp_1 = helpers_arrayForEach__P109_mk(s); + s.tmp_1.arg0 = globals._scenePopHandlers___4743; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1317; s.pc = 15; return s.tmp_1; + case 15: + r0 = s.retval; + case 9: + case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Camera_offsetY__P2625.info = {"start":1034,"length":267,"line":37,"column":8,"endLine":44,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this","v"]} +game_popScene__P2797.info = {"start":2033,"length":548,"line":75,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]} -function scene_Camera_offsetY__P2625_mk(s) { +function game_popScene__P2797_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetY__P2625, depth: s.depth + 1, + parent: s, fn: game_popScene__P2797, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - scene___16435: undefined, - arg0: undefined, - arg1: undefined, + oldScene___14990: undefined, } } -function tiles_TileMap_offsetY__P2578(s) { +function game_popScene_inline__P15011(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25735,57 +27696,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, tiles_TileMap__C2571_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P127_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P130_mk(s); - s.tmp_3 = tiles_TileMap_areaHeight__P2580_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1040; s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___1877); - s.tmp_4 = r0; - r0 = (s.tmp_2 - s.tmp_4); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 1041; 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 = 1042; 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 = 1316; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_offsetY__P2578.info = {"start":9630,"length":123,"line":329,"column":8,"endLine":331,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetY","argumentNames":["this","value"]} +game_popScene_inline__P15011.info = {"start":2545,"length":18,"line":91,"column":38,"endLine":91,"endColumn":56,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} -function tiles_TileMap_offsetY__P2578_mk(s) { +function game_popScene_inline__P15011_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetY__P2578, depth: s.depth + 1, + parent: s, fn: game_popScene_inline__P15011, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_TileMap_areaHeight__P2580(s) { +function particles_enableAll__P2971(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25795,53 +27734,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2571_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + s.sources___15015 = undefined; + s.tmp_0 = particles_particleSources__P5089_mk(s); + s.callLocIdx = 1586; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.sources___15015 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___15015); if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["_map"]; - s.tmp_2 = r0; - r0 = s.tmp_2.fields["_height"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 << s.tmp_3); - { step = 2; continue; } + s.tmp_0 = helpers_arrayForEach__P109_mk(s); + s.tmp_0.arg0 = s.sources___15015; + s.tmp_0.arg1 = particles_enableAll_inline__P15021; + s.callLocIdx = 1588; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = particles_pruneParticles__P5085_mk(s); + s.callLocIdx = 1589; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; case 1: - r0 = 0; case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_areaHeight__P2580.info = {"start":9864,"length":93,"line":337,"column":8,"endLine":339,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} +particles_enableAll__P2971.info = {"start":12649,"length":193,"line":413,"column":4,"endLine":419,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]} -function tiles_TileMap_areaHeight__P2580_mk(s) { +function particles_enableAll__P2971_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_areaHeight__P2580, depth: s.depth + 1, + parent: s, fn: particles_enableAll__P2971, depth: s.depth + 1, pc: 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, + sources___15015: undefined, } } -function scene_Camera_offsetY__P2624(s) { +function particles_enableAll_inline__P15021(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25855,20 +27787,24 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2617_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetY"]; - return leaveAccessor(s, r0) + s.tmp_0 = particles_ParticleSource_enabled__P2952_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = true; + s.callLocIdx = 1587; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = true; + return leave(s, r0) default: oops() } } } -scene_Camera_offsetY__P2624.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__P2624.isGetter = true; +particles_enableAll_inline__P15021.info = {"start":12773,"length":21,"line":416,"column":28,"endLine":416,"endColumn":49,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function scene_Camera_offsetY__P2624_mk(s) { +function particles_enableAll_inline__P15021_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetY__P2624, depth: s.depth + 1, + parent: s, fn: particles_enableAll_inline__P15021, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -25876,7 +27812,7 @@ function scene_Camera_offsetY__P2624_mk(s) { -function scene_Camera_offsetX__P2623(s) { +function control_popEventContext__P410(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25886,87 +27822,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___16477 = 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__C2617_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1107; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.scene___16477 = (r0); - r0 = s.scene___16477.fields["tileMap"]; + s.ctx___15028 = undefined; + s.context___15036 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___4369); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 7; continue; } case 1: - r0 = s.scene___16477.fields["tileMap"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["_map"]; - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); case 2: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); + r0 = pxsim_Array_.pop(globals.eventContexts___4369); + s.ctx___15028 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___15028); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_7 = r0 = s.arg0; - s.tmp_9 = tiles_TileMap_offsetX__P2577_mk(s); - r0 = s.scene___16477.fields["tileMap"]; - s.tmp_9.arg0 = r0; - s.tmp_9.arg1 = s.arg1; - s.callLocIdx = 1109; s.pc = 6; return s.tmp_9; - case 6: - r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_7).fields["_offsetX"] = (s.tmp_8); - { step = 4; continue; } + { step = 7; continue; } case 3: - r0 = (s.arg0).fields["_offsetX"] = (s.arg1); case 4: + s.tmp_2 = control_EventContext_unregister__P402_mk(s); + s.tmp_2.arg0 = s.ctx___15028; + s.callLocIdx = 68; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + s.tmp_0 = r0 = globals.eventContexts___4369; + r0 = pxsim_Array__length(globals.eventContexts___4369); + 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___15036 = (r0); + r0 = pxsim_numops_toBoolDecr(s.context___15036); + if (!r0) { step = 5; continue; } + s.tmp_0 = control_EventContext_register__P401_mk(s); + s.tmp_0.arg0 = s.context___15036; + s.callLocIdx = 69; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + { step = 6; continue; } + case 5: + globals.eventContexts___4369 = (undefined); + case 6: + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Camera_offsetX__P2623.info = {"start":690,"length":267,"line":26,"column":8,"endLine":33,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this","v"]} +control_popEventContext__P410.info = {"start":7755,"length":413,"line":236,"column":4,"endLine":250,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]} -function scene_Camera_offsetX__P2623_mk(s) { +function control_popEventContext__P410_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetX__P2623, depth: s.depth + 1, + parent: s, fn: control_popEventContext__P410, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - scene___16477: undefined, - arg0: undefined, - arg1: undefined, + ctx___15028: undefined, + context___15036: undefined, } } -function tiles_TileMap_offsetX__P2577(s) { +function control_EventContext_unregister__P402(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25976,59 +27900,68 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.h___15057 = undefined; + s.unnamed66___U1 = undefined; + s.unnamed67___U2 = 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__C2571_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P127_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P130_mk(s); - s.tmp_3 = tiles_TileMap_areaWidth__P2579_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1037; s.pc = 3; return s.tmp_3; + if (!checkSubtype(r0, control_EventContext__C395_VT)) failedCast(r0); + s.h___15057 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed66___U1 = (r0); + s.unnamed67___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed67___U2; + r0 = pxsim_Array__length(s.unnamed66___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed66___U1, s.unnamed67___U2); + s.h___15057 = (r0); + s.tmp_2 = control_EventHandler_unregister__P4363_mk(s); + s.tmp_2.arg0 = s.h___15057; + s.callLocIdx = 61; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; + r0 = (s.unnamed67___U2 + 1); + s.unnamed67___U2 = (r0); + { step = 1; continue; } + case 2: + s.unnamed66___U1 = (undefined); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["frameWorker"]; s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___1877); - s.tmp_4 = r0; - r0 = (s.tmp_2 - s.tmp_4); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 1038; 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 = 1039; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + 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() } } } -tiles_TileMap_offsetX__P2577.info = {"start":9499,"length":121,"line":325,"column":8,"endLine":327,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetX","argumentNames":["this","value"]} +control_EventContext_unregister__P402.info = {"start":4721,"length":131,"line":141,"column":8,"endLine":145,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} -function tiles_TileMap_offsetX__P2577_mk(s) { +function control_EventContext_unregister__P402_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetX__P2577, depth: s.depth + 1, + parent: s, fn: control_EventContext_unregister__P402, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, + h___15057: undefined, + unnamed66___U1: undefined, + unnamed67___U2: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_TileMap_areaWidth__P2579(s) { +function control_EventHandler_unregister__P4363(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26043,75 +27976,28 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C2571_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; + if (!checkSubtype(r0, control_EventHandler__C4361_VT)) failedCast(r0); + r0 = s.arg0.fields["src"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["_map"]; - s.tmp_2 = r0; - r0 = s.tmp_2.fields["_width"]; + r0 = s.arg0.fields["value"]; s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 << s.tmp_3); - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; + r0 = s.arg0.fields["flags"]; + s.tmp_2 = r0; + r0 = pxsim.control.internalOnEvent(s.tmp_0, s.tmp_1, control_doNothing__P4365, s.tmp_2); + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_areaWidth__P2579.info = {"start":9763,"length":91,"line":333,"column":8,"endLine":335,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]} +control_EventHandler_unregister__P4363.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} -function tiles_TileMap_areaWidth__P2579_mk(s) { +function control_EventHandler_unregister__P4363_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_areaWidth__P2579, depth: s.depth + 1, + parent: s, fn: control_EventHandler_unregister__P4363, depth: s.depth + 1, pc: 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_Camera_offsetX__P2622(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C2617_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetX"]; - return leaveAccessor(s, r0) - default: oops() -} } } -scene_Camera_offsetX__P2622.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__P2622.isGetter = true; - -function scene_Camera_offsetX__P2622_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Camera_offsetX__P2622, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -26119,7 +28005,7 @@ function scene_Camera_offsetX__P2622_mk(s) { -function PhysicsEngine_move__P2358(s) { +function control_doNothing__P4365(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26129,33 +28015,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C2352_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_move__P2358.info = {"start":351,"length":20,"line":18,"column":4,"endLine":18,"endColumn":24,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} +control_doNothing__P4365.info = {"start":1254,"length":24,"line":41,"column":4,"endLine":41,"endColumn":28,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"doNothing","argumentNames":[]} -function PhysicsEngine_move__P2358_mk(s) { +function control_doNothing__P4365_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_move__P2358, depth: s.depth + 1, + parent: s, fn: control_doNothing__P4365, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, } } -function PhysicsEngine_draw__P2357(s) { +function control_EventContext_register__P401(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26165,77 +28042,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.h___15049 = undefined; + s.unnamed64___U1 = undefined; + s.unnamed65___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C2352_VT)) failedCast(r0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -PhysicsEngine_draw__P2357.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__P2357_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: PhysicsEngine_draw__P2357, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function controller___update__P2008(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.dtms___16722 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = (s.arg0 * 1000); - s.tmp_0 = r0; - r0 = (s.tmp_0 | 0); - s.dtms___16722 = (r0); - r0 = pxsim_pxtcore_mkAction(1, controller___update_inline__P16729); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___16722); - s.tmp_1 = helpers_arrayForEach__P109_mk(s); - s.tmp_2 = controller_players__P1973_mk(s); - s.callLocIdx = 242; 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 = 244; s.pc = 1; return s.tmp_1; + if (!checkSubtype(r0, control_EventContext__C395_VT)) failedCast(r0); + s.h___15049 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed64___U1 = (r0); + s.unnamed65___U2 = (0); case 1: + s.tmp_0 = r0 = s.unnamed65___U2; + r0 = pxsim_Array__length(s.unnamed64___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed64___U1, s.unnamed65___U2); + s.h___15049 = (r0); + s.tmp_2 = control_EventHandler_register__P4362_mk(s); + s.tmp_2.arg0 = s.h___15049; + s.callLocIdx = 59; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + r0 = (s.unnamed65___U2 + 1); + s.unnamed65___U2 = (r0); + { step = 1; continue; } + case 2: + s.unnamed64___U1 = (undefined); + s.tmp_0 = control_EventContext_registerFrameCallbacks__P4367_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 60; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller___update__P2008.info = {"start":12647,"length":137,"line":385,"column":4,"endLine":388,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]} +control_EventContext_register__P401.info = {"start":4573,"length":138,"line":135,"column":8,"endLine":139,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} -function controller___update__P2008_mk(s) { +function control_EventContext_register__P401_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller___update__P2008, depth: s.depth + 1, + parent: s, fn: control_EventContext_register__P401, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - dtms___16722: undefined, + h___15049: undefined, + unnamed64___U1: undefined, + unnamed65___U2: undefined, arg0: undefined, } } @@ -26243,7 +28102,7 @@ function controller___update__P2008_mk(s) { -function controller___update_inline__P16729(s) { +function game_pushScene__P2796(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26253,96 +28112,70 @@ 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 = controller_Controller___update__P2006_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - s.callLocIdx = 243; s.pc = 1; return s.tmp_0; - case 1: + s.oldScene___15836 = undefined; + s.tmp_0 = game_currentScene__P2792_mk(s); + s.callLocIdx = 1306; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -controller___update_inline__P16729.info = {"start":12749,"length":27,"line":387,"column":26,"endLine":387,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} - -function controller___update_inline__P16729_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller___update_inline__P16729, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function controller_Controller___update__P2006(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C1978_VT)) failedCast(r0); - r0 = pxsim_pxtrt.mklocRef(); + s.oldScene___15836 = (r0); + s.tmp_0 = particles_clearAll__P2969_mk(s); + s.callLocIdx = 1307; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = particles_disableAll__P2970_mk(s); + s.callLocIdx = 1308; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals._sceneStack___4741); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1); - s.arg1 = (s.tmp_0); - s.tmp_1 = r0 = s.arg1; - r0 = pxsim_pxtrt_ldlocRef(s.arg1); - s.tmp_3 = r0; - r0 = (s.tmp_3 | 0); - s.tmp_2 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2); - r0 = pxsim_pxtcore_mkAction(1, controller_Controller___update_inline__P16742); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_Array__mk(); + globals._sceneStack___4741 = (r0); + case 1: + case 2: + r0 = pxsim_Array__push(globals._sceneStack___4741, globals._scene___4740); + s.tmp_0 = game_init__P4748_mk(s); + s.tmp_0.arg0 = true; + s.callLocIdx = 1309; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___4742); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkAction(1, game_pushScene_inline__P15853); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___15836); s.tmp_1 = helpers_arrayForEach__P109_mk(s); - r0 = s.arg0.fields["buttons"]; - s.tmp_1.arg0 = r0; + s.tmp_1.arg0 = globals._scenePushHandlers___4742; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 241; s.pc = 1; return s.tmp_1; - case 1: + s.callLocIdx = 1311; s.pc = 9; return s.tmp_1; + case 9: r0 = s.retval; + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller___update__P2006.info = {"start":12125,"length":124,"line":367,"column":8,"endLine":370,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} +game_pushScene__P2796.info = {"start":1660,"length":367,"line":62,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"pushScene","argumentNames":[]} -function controller_Controller___update__P2006_mk(s) { +function game_pushScene__P2796_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___update__P2006, depth: s.depth + 1, + parent: s, fn: game_pushScene__P2796, depth: s.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___15836: undefined, } } -function controller_Controller___update_inline__P16742(s) { +function game_pushScene_inline__P15853(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26356,23 +28189,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = controller_Button___update__P2046_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_0.arg1 = r0; - s.callLocIdx = 240; 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 = 1310; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller___update_inline__P16742.info = {"start":12212,"length":25,"line":369,"column":33,"endLine":369,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} +game_pushScene_inline__P15853.info = {"start":1991,"length":18,"line":71,"column":39,"endLine":71,"endColumn":57,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} -function controller_Controller___update_inline__P16742_mk(s) { +function game_pushScene_inline__P15853_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___update_inline__P16742, depth: s.depth + 1, + parent: s, fn: game_pushScene_inline__P15853, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -26382,7 +28215,7 @@ function controller_Controller___update_inline__P16742_mk(s) { -function controller_Button___update__P2046(s) { +function game_init__P4748(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26392,105 +28225,92 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.delay___16758 = undefined; - s.interval___16767 = undefined; - s.count___16780 = 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__C2032_VT)) failedCast(r0); - r0 = s.arg0.fields["_pressed"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = pxsim_numops_toBoolDecr(globals._scene___4740); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 11; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = s.arg0; case 2: - s.tmp_3 = r0 = s.arg0; - r0 = s.tmp_3.fields["_pressedElasped"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 + s.arg1); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["_pressedElasped"] = (s.tmp_4); - r0 = s.arg0.fields["repeatDelay"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 3; continue; } - r0 = globals.defaultRepeatDelay___4512; - { step = 4; continue; } + r0 = pxsim_pxtcore_mkClassInstance(scene_Scene__C2678_VT); + s.tmp_3 = r0; + s.tmp_4 = scene_Scene_constructor__P2700_mk(s); + s.tmp_4.arg0 = s.tmp_3; + s.tmp_5 = control_pushEventContext__P409_mk(s); + s.callLocIdx = 1303; s.pc = 14; return s.tmp_5; + case 14: + r0 = s.retval; + s.tmp_4.arg1 = r0; + s.tmp_4.arg2 = globals._scene___4740; + s.callLocIdx = 1304; s.pc = 13; return s.tmp_4; + case 13: + r0 = s.retval; + globals._scene___4740 = (s.tmp_3); case 3: - r0 = s.arg0.fields["repeatDelay"]; case 4: - // jmp value (already in r0) - s.tmp_2 = r0; - s.delay___16758 = (s.tmp_2); - r0 = s.arg0.fields["repeatInterval"]; + s.tmp_0 = scene_Scene_init__P2701_mk(s); + s.tmp_0.arg0 = globals._scene___4740; + s.callLocIdx = 1305; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals.winEffect___2790); s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); + 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.defaultRepeatInterval___4514; - { step = 6; continue; } + globals.winEffect___2790 = (globals.confetti___3062); case 5: - r0 = s.arg0.fields["repeatInterval"]; case 6: - // jmp value (already in r0) - s.tmp_2 = r0; - s.interval___16767 = (s.tmp_2); - r0 = s.arg0.fields["_pressedElasped"]; + r0 = pxsim_numops_toBoolDecr(globals.loseEffect___2791); s.tmp_1 = r0; - r0 = (s.tmp_1 < s.delay___16758); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - { step = 11; continue; } + globals.loseEffect___2791 = (globals.melt___3083); case 7: case 8: - r0 = s.arg0.fields["_pressedElasped"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 - s.delay___16758); - s.tmp_4 = r0; - r0 = (s.tmp_4 - s.interval___16767); - s.tmp_3 = r0; - r0 = (s.tmp_3 / s.interval___16767); - s.tmp_2 = r0; - r0 = pxsim.Math_.floor(s.tmp_2); - s.count___16780 = (r0); - r0 = s.arg0.fields["_repeatCount"]; + r0 = pxsim_numops_toBoolDecr(globals.winSound___4739); s.tmp_1 = r0; - r0 = (s.count___16780 != s.tmp_1); + r0 = pxsim_Boolean__bang(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__P4501_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 258; s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; - r0 = (s.arg0).fields["_repeatCount"] = (s.count___16780); + globals.winSound___4739 = (globals.powerUp___1646); case 9: case 10: + r0 = pxsim_numops_toBoolDecr(globals.loseSound___4737); + s.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___4737 = (globals.wawawawaa___1643); case 11: + case 12: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button___update__P2046.info = {"start":7291,"length":704,"line":217,"column":8,"endLine":234,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"__update","argumentNames":["this","dtms"]} +game_init__P4748.info = {"start":1202,"length":452,"line":45,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} -function controller_Button___update__P2046_mk(s) { +function game_init__P4748_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button___update__P2046, depth: s.depth + 1, + parent: s, fn: game_init__P4748, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26498,18 +28318,14 @@ function controller_Button___update__P2046_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - delay___16758: undefined, - interval___16767: undefined, - count___16780: undefined, arg0: undefined, - arg1: undefined, } } -function controller_Button_raiseButtonRepeat__P4501(s) { +function melt_inline__P15888(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26519,43 +28335,96 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.rounds___15891 = undefined; + s.j___15899 = undefined; + s.x___15904 = undefined; + s.y___15910 = undefined; + s.c___15916 = 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__C2032_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___4510); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["id"]; + 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 = pxsim.control.raiseEvent(2054, s.tmp_0); - { step = 2; continue; } + r0 = (s.tmp_0 >> 5); + s.rounds___15891 = (r0); + s.j___15899 = (0); case 1: - r0 = s.arg0.fields["id"]; + r0 = (s.j___15899 < s.rounds___15891); s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2055, s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = Math_FastRandom_randomRange__P2851_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 = 68; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.x___15904 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P2851_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 = 69; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.y___15910 = (r0); + r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___15904, s.y___15910); + s.c___15916 = (r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.x___15904; + r0 = (s.y___15910 + 1); + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___15916); + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.x___15904; + r0 = (s.y___15910 + 2); + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___15916); + r0 = (s.j___15899 + 1); + s.j___15899 = (r0); + { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonRepeat__P4501.info = {"start":3303,"length":211,"line":110,"column":8,"endLine":115,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]} +melt_inline__P15888.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 controller_Button_raiseButtonRepeat__P4501_mk(s) { +function melt_inline__P15888_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonRepeat__P4501, depth: s.depth + 1, + parent: s, fn: melt_inline__P15888, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + rounds___15891: undefined, + j___15899: undefined, + x___15904: undefined, + y___15910: undefined, + c___15916: undefined, arg0: undefined, + arg1: undefined, } } -function controller_players__P1973(s) { +function Math_FastRandom_randomRange__P2851(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26565,34 +28434,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller__player1__P1972_mk(s); - s.callLocIdx = 189; s.pc = 1; return s.tmp_0; - case 1: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Math_FastRandom__C2847_VT)) failedCast(r0); + r0 = (s.arg2 > s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = Math_FastRandom_next__P2850_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1352; s.pc = 3; return s.tmp_2; + case 3: r0 = s.retval; - s.tmp_0 = helpers_arrayFilter__P110_mk(s); - s.tmp_0.arg0 = globals._players___4493; - s.tmp_0.arg1 = controller_players_inline__P16712; - s.callLocIdx = 190; s.pc = 2; return s.tmp_0; + s.tmp_1 = r0; + r0 = (s.arg2 - s.arg1); + s.tmp_4 = r0; + r0 = (s.tmp_4 + 1); + s.tmp_3 = r0; + r0 = (s.tmp_1 % s.tmp_3); + { step = 2; continue; } + case 1: + r0 = 0; case 2: - r0 = s.retval; + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = (s.arg1 + s.tmp_5); return leave(s, r0) default: oops() } } } -controller_players__P1973.info = {"start":748,"length":144,"line":29,"column":4,"endLine":32,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} +Math_FastRandom_randomRange__P2851.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 controller_players__P1973_mk(s) { +function Math_FastRandom_randomRange__P2851_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_players__P1973, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_randomRange__P2851, depth: s.depth + 1, pc: 0, retval: undefined, 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 controller_players_inline__P16712(s) { +function Math_FastRandom_next__P2850(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26606,26 +28503,43 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, Math_FastRandom__C2847_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 = pxsim_Boolean__bang(s.tmp_2); + 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 = pxsim_numops_toBoolDecr(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + r0 = (s.tmp_0).fields["lfsr"] = (s.tmp_1); + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -controller_players_inline__P16712.info = {"start":870,"length":14,"line":31,"column":31,"endLine":31,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +Math_FastRandom_next__P2850.info = {"start":1713,"length":107,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"next","argumentNames":["this"]} -function controller_players_inline__P16712_mk(s) { +function Math_FastRandom_next__P2850_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_players_inline__P16712, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_next__P2850, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -26633,7 +28547,7 @@ function controller_players_inline__P16712_mk(s) { -function controller__moveSprites__P1977(s) { +function effects_ImageEffect_constructor__P3078(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26643,36 +28557,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = helpers_arrayForEach__P109_mk(s); - s.tmp_1 = controller_players__P1973_mk(s); - s.callLocIdx = 191; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = controller__moveSprites_inline__P16523; - s.callLocIdx = 193; 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, effects_ImageEffect__C3077_VT)) failedCast(r0); + r0 = (s.arg0).fields["effect"] = (s.arg2); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C2847_VT); + s.tmp_0 = r0; + s.tmp_1 = Math_FastRandom_constructor__P2849_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1730; s.pc = 1; return s.tmp_1; 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; return leave(s, r0) default: oops() } } } -controller__moveSprites__P1977.info = {"start":1108,"length":180,"line":43,"column":4,"endLine":47,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]} +effects_ImageEffect_constructor__P3078.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 controller__moveSprites__P1977_mk(s) { +function effects_ImageEffect_constructor__P3078_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__moveSprites__P1977, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_constructor__P3078, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function controller__moveSprites_inline__P16523(s) { +function confetti_inline__P15996(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26682,35 +28609,98 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.factory___15999 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = controller_Controller___preUpdate__P2005_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 192; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C3006_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 = 36; 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 = 37; 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__P3007_mk(s); + s.tmp_5.arg0 = s.tmp_0; + s.tmp_5.arg1 = s.tmp_4; + s.tmp_5.arg2 = 16; + s.callLocIdx = 38; s.pc = 5; return s.tmp_5; + case 5: + r0 = s.retval; + s.factory___15999 = (s.tmp_0); + s.tmp_0 = particles_SprayFactory_setSpeed__P2983_mk(s); + s.tmp_0.arg0 = s.factory___15999; + s.tmp_0.arg1 = 30; + s.callLocIdx = 39; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C2939_VT); + s.tmp_0 = r0; + s.tmp_1 = particles_ParticleSource_constructor__P2944_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___15999; + s.callLocIdx = 40; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + r0 = s.tmp_0; + return leave(s, r0) default: oops() } } } -controller__moveSprites_inline__P16523.info = {"start":1254,"length":26,"line":46,"column":26,"endLine":46,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +confetti_inline__P15996.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 controller__moveSprites_inline__P16523_mk(s) { +function confetti_inline__P15996_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__moveSprites_inline__P16523, depth: s.depth + 1, + parent: s, fn: confetti_inline__P15996, depth: s.depth + 1, pc: 0, retval: undefined, 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___15999: undefined, arg0: undefined, + arg1: undefined, } } -function controller_Controller___preUpdate__P2005(s) { +function particles_ConfettiFactory_constructor__P3007(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26720,308 +28710,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.deadSprites___16530 = undefined; - s.svx___16531 = undefined; - s.svy___16532 = undefined; - s.svxInCricle___16567 = undefined; - s.svyInCircle___16569 = undefined; - s.sq___16571 = undefined; - s.scale___16586 = undefined; + s.confetti___16016 = undefined; + s.i___16032 = 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__C1978_VT)) failedCast(r0); - s.tmp_3 = controller_Controller__controlledSprites__P1983_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 215; s.pc = 18; return s.tmp_3; - case 18: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 17; continue; } - case 1: - case 2: - r0 = pxsim_pxtrt.mklocRef(); - s.deadSprites___16530 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.deadSprites___16530, false); - r0 = pxsim_pxtrt.mklocRef(); - s.svx___16531 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svx___16531, 0); - r0 = pxsim_pxtrt.mklocRef(); - s.svy___16532 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svy___16532, 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___16531; - s.tmp_5 = controller_Button_pressureLevel__P2044_mk(s); - s.tmp_6 = controller_Controller_right__P1988_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 216; s.pc = 20; return s.tmp_6; - case 20: - r0 = s.retval; - s.tmp_5.arg0 = r0; - s.callLocIdx = 217; s.pc = 19; return s.tmp_5; - case 19: - r0 = s.retval; - s.tmp_4 = r0; - s.tmp_8 = controller_Button_pressureLevel__P2044_mk(s); - s.tmp_9 = controller_Controller_left__P1987_mk(s); - s.tmp_9.arg0 = s.arg0; - s.callLocIdx = 218; s.pc = 22; return s.tmp_9; - case 22: - r0 = s.retval; - s.tmp_8.arg0 = r0; - s.callLocIdx = 219; s.pc = 21; return s.tmp_8; - case 21: - r0 = s.retval; - s.tmp_7 = r0; - r0 = (s.tmp_4 - s.tmp_7); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2); - s.tmp_0 = r0 = s.svy___16532; - s.tmp_4 = controller_Button_pressureLevel__P2044_mk(s); - s.tmp_5 = controller_Controller_down__P1990_mk(s); - s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 220; s.pc = 24; return s.tmp_5; - case 24: - r0 = s.retval; - s.tmp_4.arg0 = r0; - s.callLocIdx = 221; s.pc = 23; return s.tmp_4; - case 23: - r0 = s.retval; - s.tmp_3 = r0; - s.tmp_7 = controller_Button_pressureLevel__P2044_mk(s); - s.tmp_8 = controller_Controller_up__P1989_mk(s); - s.tmp_8.arg0 = s.arg0; - s.callLocIdx = 222; s.pc = 26; return s.tmp_8; - case 26: - r0 = s.retval; - s.tmp_7.arg0 = r0; - s.callLocIdx = 223; s.pc = 25; return s.tmp_7; - case 25: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_3 - s.tmp_6); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - { step = 12; continue; } - case 3: - s.tmp_1 = controller_Button__C2032_v0_1_mk(s); - s.tmp_2 = controller_Controller_right__P1988_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 224; 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__C2032_VT)) failedCast(s.tmp_1.arg0); - s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; - s.pc = 27; return s.tmp_1; - case 27: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = 256; - { step = 5; continue; } - case 4: - r0 = 0; - case 5: - // jmp value (already in r0) - s.tmp_3 = r0; - s.tmp_5 = controller_Button__C2032_v0_1_mk(s); - s.tmp_6 = controller_Controller_left__P1987_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 225; 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__C2032_VT)) failedCast(s.tmp_5.arg0); - s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.isPressed; - s.pc = 29; return s.tmp_5; - case 29: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 6; continue; } - r0 = 256; - { step = 7; continue; } - case 6: - r0 = 0; - case 7: - // jmp value (already in r0) - s.tmp_7 = r0; - s.tmp_8 = r0 = s.svx___16531; - 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__C2032_v0_1_mk(s); - s.tmp_2 = controller_Controller_down__P1990_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 226; 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__C2032_VT)) failedCast(s.tmp_1.arg0); - s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; - s.pc = 31; return s.tmp_1; - case 31: - r0 = s.retval; + if (!checkSubtype(r0, particles_ConfettiFactory__C3006_VT)) failedCast(r0); + r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - r0 = 256; - { step = 9; continue; } - case 8: - r0 = 0; - case 9: - // jmp value (already in r0) - s.tmp_3 = r0; - s.tmp_5 = controller_Button__C2032_v0_1_mk(s); - s.tmp_6 = controller_Controller_up__P1989_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 227; 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__C2032_VT)) failedCast(s.tmp_5.arg0); - s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.isPressed; - s.pc = 33; return s.tmp_5; - case 33: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 10; continue; } - r0 = 256; - { step = 11; continue; } - case 10: - r0 = 0; - case 11: - // jmp value (already in r0) - s.tmp_7 = r0; - s.tmp_8 = r0 = s.svy___16532; - 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___16567 = (r0); - s.tmp_0 = r0 = s.svxInCricle___16567; - r0 = pxsim_pxtrt_ldlocRef(s.svx___16531); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt.mklocRef(); - s.svyInCircle___16569 = (r0); - s.tmp_0 = r0 = s.svyInCircle___16569; - r0 = pxsim_pxtrt_ldlocRef(s.svy___16532); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_ldlocRef(s.svx___16531); + r0 = pxsim.image.ofBuffer(_hex16019); s.tmp_1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svx___16531); + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + r0 = pxsim.image.ofBuffer(_hex16021); s.tmp_2 = r0; - r0 = (s.tmp_1 * s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___16532); - s.tmp_4 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___16532); - s.tmp_5 = r0; - r0 = (s.tmp_4 * s.tmp_5); + r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); + r0 = pxsim.image.ofBuffer(_hex16023); s.tmp_3 = r0; - r0 = (s.tmp_0 + s.tmp_3); - s.sq___16571 = (r0); - r0 = (s.sq___16571 > 65536); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = (65536 / s.sq___16571); - s.tmp_1 = r0; - r0 = pxsim.Math_.sqrt(s.tmp_1); - s.scale___16586 = (r0); - s.tmp_0 = r0 = s.svxInCricle___16567; - s.tmp_3 = r0 = s.scale___16586; - r0 = pxsim_pxtrt_ldlocRef(s.svx___16531); - 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___16569; - s.tmp_3 = r0 = s.scale___16586; - r0 = pxsim_pxtrt_ldlocRef(s.svy___16532); + r0 = pxsim_Array__push(s.tmp_0, s.tmp_3); + r0 = pxsim.image.ofBuffer(_hex16025); s.tmp_4 = r0; - r0 = (s.tmp_3 * s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - case 13: - case 14: - r0 = pxsim_pxtcore_mkAction(5, controller_Controller___preUpdate_inline__P16604); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___16530); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___16531); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___16532); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___16567); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___16569); - s.tmp_1 = helpers_arrayForEach__P109_mk(s); - s.tmp_2 = controller_Controller__controlledSprites__P1983_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 228; 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 = 236; s.pc = 35; return s.tmp_1; - case 35: + r0 = pxsim_Array__push(s.tmp_0, s.tmp_4); + r0 = pxsim.image.ofBuffer(_hex16027); + s.tmp_5 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_5); + s.confetti___16016 = (s.tmp_0); + s.tmp_0 = particles_ShapeFactory_constructor__P3002_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___16016, 0); + s.tmp_0.arg3 = r0; + s.callLocIdx = 1638; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___16530); + s.i___16032 = (1); + case 1: + s.tmp_1 = r0 = s.i___16032; + r0 = pxsim_Array__length(s.confetti___16016); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - s.tmp_1 = controller_Controller__controlledSprites__P1984_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_2 = helpers_arrayFilter__P110_mk(s); - s.tmp_3 = controller_Controller__controlledSprites__P1983_mk(s); + if (!r0) { step = 2; continue; } + s.tmp_3 = particles_ShapeFactory_addShape__P3003_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 237; s.pc = 39; return s.tmp_3; - case 39: - r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = controller_Controller___preUpdate_inline__P16661; - s.callLocIdx = 238; s.pc = 38; return s.tmp_2; - case 38: - r0 = s.retval; - s.tmp_1.arg1 = r0; - s.callLocIdx = 239; s.pc = 37; return s.tmp_1; - case 37: + r0 = pxsim_Array__getAt(s.confetti___16016, s.i___16032); + s.tmp_3.arg1 = r0; + s.callLocIdx = 1639; s.pc = 4; return s.tmp_3; + case 4: r0 = s.retval; - case 15: - case 16: - case 17: + r0 = (s.i___16032 + 1); + s.i___16032 = (r0); + { step = 1; continue; } + case 2: + r0 = (s.arg0).fields["minLifespan"] = (1000); + r0 = (s.arg0).fields["maxLifespan"] = (4500); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller___preUpdate__P2005.info = {"start":9580,"length":2535,"line":301,"column":8,"endLine":365,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]} +particles_ConfettiFactory_constructor__P3007.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 controller_Controller___preUpdate__P2005_mk(s) { +function particles_ConfettiFactory_constructor__P3007_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___preUpdate__P2005, depth: s.depth + 1, + parent: s, fn: particles_ConfettiFactory_constructor__P3007, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27029,25 +28786,23 @@ function controller_Controller___preUpdate__P2005_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - deadSprites___16530: undefined, - svx___16531: undefined, - svy___16532: undefined, - svxInCricle___16567: undefined, - svyInCircle___16569: undefined, - sq___16571: undefined, - scale___16586: undefined, + confetti___16016: undefined, + i___16032: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } +const _hex16019 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") +const _hex16021 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") +const _hex16023 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") +const _hex16025 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") +const _hex16027 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") -function controller_Controller___preUpdate_inline__P16604(s) { +function scene_Scene_init__P2701(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27057,167 +28812,126 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___16607 = undefined; - s.vx___16608 = undefined; - s.vy___16609 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = if_s_1_mk(s); - s.tmp_1 = r0 = s.arg0; - s.tmp_0.arg0 = r0; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "s"); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["s"]; - if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["s"]; } - else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } - else { s.callLocIdx = 229; s.pc = 22; return s.tmp_0; } - } - case 22: - r0 = s.retval; - s.s___16607 = (r0); - s.tmp_2 = if_vx_1_mk(s); - s.tmp_2.arg0 = s.tmp_1; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "vx"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["vx"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["vx"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 230; s.pc = 23; return s.tmp_2; } - } - case 23: - r0 = s.retval; - s.vx___16608 = (r0); - s.tmp_3 = if_vy_1_mk(s); - s.tmp_3.arg0 = s.tmp_1; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "vy"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["vy"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["vy"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 231; s.pc = 24; return s.tmp_3; } - } - case 24: - r0 = s.retval; - s.vy___16609 = (r0); - r0 = s.s___16607.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 2); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Scene__C2678_VT)) failedCast(r0); + r0 = s.arg0.fields["allSprites"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtrt_stlocRef(s.caps[0], true); - { step = 21; continue; } + { step = 3; continue; } case 1: case 2: - r0 = s.arg0.fields["_inputLastFrame"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = pxsim_numops_toBoolDecr(s.vx___16608); - if (!r0) { step = 3; continue; } - r0 = (s.s___16607).fields["_vx"] = (0); - case 3: + s.tmp_1 = power_poke__P1778_mk(s); + s.callLocIdx = 1165; s.pc = 4; return s.tmp_1; case 4: - r0 = pxsim_numops_toBoolDecr(s.vy___16609); - if (!r0) { step = 5; continue; } - r0 = (s.s___16607).fields["_vy"] = (0); + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["allSprites"] = (s.tmp_1); + r0 = (s.arg0).fields["spriteNextId"] = (0); + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P16060); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P403_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 = 1168; s.pc = 5; return s.tmp_1; case 5: + r0 = s.retval; + s.tmp_0 = control_EventContext_registerFrameHandler__P403_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 13; + s.tmp_0.arg2 = controller__moveSprites__P1977; + s.callLocIdx = 1169; s.pc = 6; return s.tmp_0; case 6: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P16083); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P403_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 = 1171; s.pc = 7; return s.tmp_1; case 7: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P16096); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P403_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 = 1175; s.pc = 8; return s.tmp_1; case 8: - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P16117); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = s.tmp_0; - { step = 10; continue; } + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P403_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 = 1177; s.pc = 9; return s.tmp_1; case 9: - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P16125); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P403_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 = 1181; s.pc = 10; return s.tmp_1; case 10: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 19; continue; } - s.tmp_2 = r0 = s.vx___16608; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 11; continue; } - r0 = s.tmp_2; - { step = 12; continue; } + r0 = s.retval; + s.tmp_0 = control_EventContext_registerFrameHandler__P403_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 200; + s.tmp_0.arg2 = control___screen_update__P1838; + s.callLocIdx = 1182; s.pc = 11; return s.tmp_0; case 11: - r0 = s.vy___16609; + r0 = s.retval; + s.tmp_0 = multiplayer_initServer__P3198_mk(s); + s.callLocIdx = 1183; s.pc = 12; return s.tmp_0; 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___16607; - r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); - s.tmp_6 = r0; - r0 = pxsim.Math_.imul(s.tmp_6, s.vx___16608); - s.tmp_5 = r0; - r0 = (s.tmp_4).fields["_vx"] = (s.tmp_5); - s.tmp_0 = r0 = s.s___16607; - r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___16609); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); - { step = 18; continue; } + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P16155); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = helpers_arrayForEach__P109_mk(s); + s.tmp_1.arg0 = globals.scene_Scene_initializers___2699; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1185; s.pc = 13; return s.tmp_1; case 13: - r0 = pxsim_numops_toBoolDecr(s.vx___16608); - if (!r0) { step = 14; continue; } - s.tmp_0 = r0 = s.s___16607; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vx___16608); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); - { step = 17; continue; } - case 14: - r0 = pxsim_numops_toBoolDecr(s.vy___16609); - if (!r0) { step = 15; continue; } - s.tmp_0 = r0 = s.s___16607; - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___16609); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); - case 15: - case 16: - case 17: - case 18: - r0 = (s.arg0).fields["_inputLastFrame"] = (true); - { step = 20; continue; } - case 19: - r0 = (s.arg0).fields["_inputLastFrame"] = (false); - case 20: - case 21: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller___preUpdate_inline__P16604.info = {"start":10763,"length":1171,"line":332,"column":44,"endLine":360,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} +scene_Scene_init__P2701.info = {"start":4387,"length":2515,"line":126,"column":8,"endLine":185,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]} -function controller_Controller___preUpdate_inline__P16604_mk(s) { +function scene_Scene_init__P2701_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___preUpdate_inline__P16604, depth: s.depth + 1, + parent: s, fn: scene_Scene_init__P2701, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - s___16607: undefined, - vx___16608: undefined, - vy___16609: undefined, arg0: undefined, } } @@ -27225,7 +28939,7 @@ function controller_Controller___preUpdate_inline__P16604_mk(s) { -function controller_Controller___preUpdate_inline__P16661(s) { +function scene_Scene_init_inline__P16060(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27235,112 +28949,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.fields["s"]; - r0 = r0.fields["flags"]; + s.tmp_0 = r0 = s.caps[0]; + r0 = s.tmp_0.fields["_millis"]; s.tmp_2 = r0; - r0 = (s.tmp_2 & 2); + r0 = s.caps[0].fields["eventContext"]; + r0 = r0.fields["deltaTimeMillis"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leave(s, r0) - default: oops() -} } } -controller_Controller___preUpdate_inline__P16661.info = {"start":12061,"length":42,"line":364,"column":28,"endLine":364,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]} - -function controller_Controller___preUpdate_inline__P16661_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Controller___preUpdate_inline__P16661, 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__P2044(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C2032_VT)) failedCast(r0); - r0 = pxsim.control.deviceDalVersion(); + r0 = (s.tmp_0).fields["_millis"] = (s.tmp_1); + s.tmp_0 = controller___update__P2008_mk(s); + r0 = s.caps[0].fields["eventContext"]; 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__C2032_v0_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C2032_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; - s.pc = 6; return s.tmp_3; - case 6: - r0 = s.retval; + r0 = s.tmp_1.fields["deltaTimeMillis"]; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 1; continue; } - r0 = 512; - { step = 2; continue; } + r0 = (s.tmp_2 / 1000); + s.tmp_0.arg0 = r0; + s.callLocIdx = 1167; s.pc = 1; return s.tmp_0; case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; - { step = 5; continue; } - { step = 4; continue; } - case 3: - r0 = s.arg0.fields["id"]; - s.tmp_5 = r0; - r0 = pxsim_pxtcore.pressureLevelByButtonId(s.tmp_5, -1); - { step = 5; continue; } - case 4: + r0 = s.retval; r0 = undefined; - case 5: return leave(s, r0) default: oops() } } } -controller_Button_pressureLevel__P2044.info = {"start":6453,"length":311,"line":192,"column":8,"endLine":199,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"pressureLevel","argumentNames":["this"]} +scene_Scene_init_inline__P16060.info = {"start":4677,"length":217,"line":133,"column":72,"endLine":137,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function controller_Button_pressureLevel__P2044_mk(s) { +function scene_Scene_init_inline__P16060_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_pressureLevel__P2044, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P16060, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - arg0: undefined, } } -function controller_Button_isPressed__P2043(s) { +function scene_Scene_init_inline__P16083(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27350,31 +28999,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C2032_VT)) failedCast(r0); - r0 = s.arg0.fields["_pressed"]; + s.tmp_0 = PhysicsEngine__C2352_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__C2352_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() } } } -controller_Button_isPressed__P2043.info = {"start":6303,"length":57,"line":185,"column":8,"endLine":187,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"isPressed","argumentNames":["this"]} +scene_Scene_init_inline__P16083.info = {"start":5189,"length":159,"line":142,"column":69,"endLine":145,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function controller_Button_isPressed__P2043_mk(s) { +function scene_Scene_init_inline__P16083_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_isPressed__P2043, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P16083, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, } } -function controller_Controller_down__P1990(s) { +function scene_Scene_init_inline__P16096(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27384,38 +29043,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C1978_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; + s.dt___16097 = undefined; + s.s___16105 = undefined; + s.unnamed98___U2 = undefined; + s.unnamed99___U3 = undefined; + r0 = s.caps[0].fields["eventContext"]; s.tmp_0 = r0; - r0 = (4 - 1); + r0 = s.tmp_0.fields["deltaTimeMillis"]; s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) + r0 = (s.tmp_1 / 1000); + s.dt___16097 = (r0); + s.tmp_0 = scene_Camera_update__P2633_mk(s); + r0 = s.caps[0].fields["camera"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 1173; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.s___16105 = (undefined); + r0 = s.caps[0].fields["allSprites"]; + s.unnamed98___U2 = (r0); + s.unnamed99___U3 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed99___U3; + r0 = pxsim_Array__length(s.unnamed98___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed98___U2, s.unnamed99___U3); + s.s___16105 = (r0); + s.tmp_2 = if___update_3_mk(s); + s.tmp_2.arg0 = s.s___16105; + r0 = s.caps[0].fields["camera"]; + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = s.dt___16097; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3); + s.callLocIdx = 1174; 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 = 1174; s.pc = 4; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1174; s.pc = 4; return s.tmp_2;; } + else { s.callLocIdx = 1174; s.pc = 4; return s.tmp_2; } + } + case 4: + r0 = s.retval; + r0 = (s.unnamed99___U3 + 1); + s.unnamed99___U3 = (r0); + { step = 1; continue; } + case 2: + s.unnamed98___U2 = (undefined); + r0 = undefined; + return leave(s, r0) default: oops() } } } -controller_Controller_down__P1990.info = {"start":3234,"length":77,"line":121,"column":8,"endLine":123,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"down","argumentNames":["this"]} -controller_Controller_down__P1990.isGetter = true; +scene_Scene_init_inline__P16096.info = {"start":5537,"length":214,"line":151,"column":79,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function controller_Controller_down__P1990_mk(s) { +function scene_Scene_init_inline__P16096_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_down__P1990, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P16096, 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, + dt___16097: undefined, + s___16105: undefined, + unnamed98___U2: undefined, + unnamed99___U3: undefined, } } -function controller_Controller_button__P4495(s) { +function scene_Scene_init_inline__P16117(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27425,39 +29126,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C1978_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; - s.tmp_0 = r0; - r0 = (s.arg1 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + s.tmp_0 = scene_Scene_render__P2706_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 1176; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller_button__P4495.info = {"start":5580,"length":105,"line":191,"column":8,"endLine":193,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"button","argumentNames":["this","button"]} +scene_Scene_init_inline__P16117.info = {"start":5892,"length":109,"line":162,"column":76,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function controller_Controller_button__P4495_mk(s) { +function scene_Scene_init_inline__P16117_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_button__P4495, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P16117, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, - arg1: undefined, } } -function controller_Controller_up__P1989(s) { +function scene_Scene_init_inline__P16125(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27467,38 +29159,108 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C1978_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; - s.tmp_0 = r0; - r0 = (2 - 1); + s.tmp_0 = r0 = globals.stats___2789; + 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___398; + case 2: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) + r0 = 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___398; + if ((globals.control_EventContext_lastStats___397) && (globals.control_EventContext_lastStats___397).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(globals.control_EventContext_lastStats___397); + checkResumeConsumed(); + return; + } else { s.retval = (globals.control_EventContext_lastStats___397) + ""; } + 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 = 1178; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_numops_toBoolDecr(globals.debug___2788); + if (!r0) { step = 5; continue; } + s.tmp_0 = PhysicsEngine__C2352_v3_1_mk(s); + r0 = s.caps[0].fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2352_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__P2915_mk(s); + s.callLocIdx = 1179; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.tmp_0 = power_checkDeepSleep__P1779_mk(s); + s.callLocIdx = 1180; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -controller_Controller_up__P1989.info = {"start":3082,"length":73,"line":113,"column":8,"endLine":115,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"up","argumentNames":["this"]} -controller_Controller_up__P1989.isGetter = true; +scene_Scene_init_inline__P16125.info = {"start":6118,"length":504,"line":167,"column":80,"endLine":179,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function controller_Controller_up__P1989_mk(s) { +function scene_Scene_init_inline__P16125_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_up__P1989, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P16125, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, } } -function controller_Controller_right__P1988(s) { +function scene_Scene_init_inline__P16155(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27512,26 +29274,25 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C1978_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; - s.tmp_0 = r0; - r0 = (3 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) + s.tmp_0 = 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 = 1184; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -controller_Controller_right__P1988.info = {"start":2926,"length":79,"line":105,"column":8,"endLine":107,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"right","argumentNames":["this"]} -controller_Controller_right__P1988.isGetter = true; +scene_Scene_init_inline__P16155.info = {"start":6878,"length":12,"line":184,"column":39,"endLine":184,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]} -function controller_Controller_right__P1988_mk(s) { +function scene_Scene_init_inline__P16155_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_right__P1988, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P16155, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -27539,7 +29300,7 @@ function controller_Controller_right__P1988_mk(s) { -function controller_Controller_left__P1987(s) { +function multiplayer_initServer__P3198(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27549,38 +29310,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, controller_Controller__C1978_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; - s.tmp_0 = r0; - r0 = (1 - 1); + r0 = pxsim.multiplayer.getOrigin(); s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) + r0 = (s.tmp_1 === "server"); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = control_EventContext_registerFrameHandler__P403_mk(s); + s.tmp_3 = game_eventContext__P2795_mk(s); + s.callLocIdx = 1774; s.pc = 4; return s.tmp_3; + case 4: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 210; + s.tmp_2.arg2 = multiplayer_initServer_inline__P16164; + s.callLocIdx = 1775; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) default: oops() } } } -controller_Controller_left__P1987.info = {"start":2769,"length":77,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"left","argumentNames":["this"]} -controller_Controller_left__P1987.isGetter = true; +multiplayer_initServer__P3198.info = {"start":919,"length":307,"line":27,"column":4,"endLine":35,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"initServer","argumentNames":[]} -function controller_Controller_left__P1987_mk(s) { +function multiplayer_initServer__P3198_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_left__P1987, depth: s.depth + 1, + parent: s, fn: multiplayer_initServer__P3198, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, + tmp_2: undefined, + tmp_3: undefined, } } -function Fx_imul__P161(s) { +function multiplayer_initServer_inline__P16164(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27590,31 +29360,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = pxsim.Math_.imul(s.arg0, s.arg1); + r0 = pxsim.multiplayer.getOrigin(); + s.tmp_1 = r0; + r0 = (s.tmp_1 === "server"); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.multiplayer.postImage(globals.screen___1877); + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_imul__P161.info = {"start":1010,"length":130,"line":32,"column":4,"endLine":34,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"imul","argumentNames":["a","b"]} +multiplayer_initServer_inline__P16164.info = {"start":1083,"length":126,"line":29,"column":93,"endLine":33,"endColumn":13,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} -function Fx_imul__P161_mk(s) { +function multiplayer_initServer_inline__P16164_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_imul__P161, depth: s.depth + 1, + parent: s, fn: multiplayer_initServer_inline__P16164, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, + tmp_0: undefined, + tmp_1: undefined, } } -function power_checkDeepSleep__P1779(s) { +function game_consoleOverlay_draw__P2915(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27624,77 +29398,191 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___15778 = undefined; - s.to___15781 = undefined; - s.tmp_0 = power_init__P4404_mk(s); - s.callLocIdx = 119; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = r0 = globals._poked___4402; + s.height___16217 = undefined; + s.top___16222 = undefined; + s.i___16228 = undefined; + s.t___16241 = undefined; + s.tOff___16248 = undefined; + s.tab___16250 = undefined; + s.unnamed102___U6 = undefined; + s.unnamed103___U7 = undefined; + s.padding___16252 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___5038); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = 0; + r0 = pxsim_numops_toBoolDecr(globals.instance___4992); + 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_1 = r0; - s.p___15778 = (s.tmp_1); - s.tmp_0 = r0 = globals._timeout___4403; - r0 = pxsim_numops_toBool(s.tmp_0); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } + { step = 13; continue; } case 3: - r0 = 0; case 4: - // jmp value (already in r0) - s.tmp_1 = r0; - s.to___15781 = (s.tmp_1); - r0 = (s.to___15781 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; + s.tmp_7 = if_charHeight_1_mk(s); + s.tmp_7.arg0 = globals.consoleFont___5046; + 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 = 1516; s.pc = 14; return s.tmp_7; } + } + case 14: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_6 + 2); + s.height___16217 = (r0); + r0 = pxsim_numops_toBoolDecr(globals.stats___2789); + if (!r0) { step = 5; continue; } + r0 = s.height___16217; { step = 6; continue; } case 5: - r0 = pxsim.control.millis(); - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.p___15778); - s.tmp_1 = r0; - r0 = (s.tmp_1 > s.to___15781); + r0 = 0; case 6: // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (r0) { step = 7; continue; } - r0 = s.tmp_3; - { step = 8; continue; } + s.tmp_0 = r0; + r0 = (2 + s.tmp_0); + s.top___16222 = (r0); + s.i___16228 = (0); case 7: - r0 = pxsim.control.isUSBInitialized(); + s.tmp_1 = r0 = s.i___16228; + r0 = pxsim_Array__length(globals.consoleStrings___5038); + 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___5038, s.i___16228); s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); + r0 = pxsim_String_.indexOf(s.tmp_5, "\t", undefined); s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); + 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__P122_mk(s); + r0 = pxsim_Array__getAt(globals.consoleStrings___5038, s.i___16228); + s.tmp_6.arg0 = r0; + s.tmp_6.arg1 = "\t"; + s.tmp_6.arg2 = undefined; + s.callLocIdx = 1517; s.pc = 15; return s.tmp_6; + case 15: + r0 = s.retval; + s.t___16241 = (r0); + s.tOff___16248 = (0); + s.tab___16250 = (undefined); + s.unnamed102___U6 = (s.t___16241); + s.unnamed103___U7 = (0); case 8: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); + s.tmp_0 = r0 = s.unnamed103___U7; + r0 = pxsim_Array__length(s.unnamed102___U6); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore.deepSleep(); + r0 = pxsim_Array__getAt(s.unnamed102___U6, s.unnamed103___U7); + s.tab___16250 = (r0); + s.tmp_2 = r0 = globals.tabSize___5040; + s.tmp_5 = r0 = s.tOff___16248; + r0 = pxsim_String_.length(s.tab___16250); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_4 % globals.tabSize___5040); + s.tmp_3 = r0; + r0 = (s.tmp_2 - s.tmp_3); + s.padding___16252 = (r0); + s.tmp_0 = helpers_imagePrint__P1835_mk(s); + s.tmp_0.arg0 = globals.screen___1877; + s.tmp_0.arg1 = s.tab___16250; + s.tmp_2 = r0 = s.tOff___16248; + s.tmp_4 = if_charWidth_1_mk(s); + s.tmp_4.arg0 = globals.consoleFont___5046; + 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 = 1518; 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___16222; + r0 = (s.i___16228 * s.height___16217); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.consoleColor___5037; + s.tmp_0.arg5 = globals.consoleFont___5046; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1519; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + s.tmp_0 = r0 = s.tOff___16248; + r0 = pxsim_String_.length(s.tab___16250); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.padding___16252); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.tOff___16248 = (r0); + r0 = (s.unnamed103___U7 + 1); + s.unnamed103___U7 = (r0); + { step = 8; continue; } case 9: + s.unnamed102___U6 = (undefined); + { step = 11; continue; } case 10: + s.tmp_0 = helpers_imagePrint__P1835_mk(s); + s.tmp_0.arg0 = globals.screen___1877; + r0 = pxsim_Array__getAt(globals.consoleStrings___5038, s.i___16228); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 4; + s.tmp_1 = r0 = s.top___16222; + r0 = (s.i___16228 * s.height___16217); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.consoleColor___5037; + s.tmp_0.arg5 = globals.consoleFont___5046; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1520; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + case 11: + r0 = (s.i___16228 + 1); + s.i___16228 = (r0); + { step = 7; continue; } + case 12: + case 13: r0 = undefined; return leave(s, r0) default: oops() } } } -power_checkDeepSleep__P1779.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]} +game_consoleOverlay_draw__P2915.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} -function power_checkDeepSleep__P1779_mk(s) { +function game_consoleOverlay_draw__P2915_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_checkDeepSleep__P1779, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_draw__P2915, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27703,15 +29591,23 @@ function power_checkDeepSleep__P1779_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - p___15778: undefined, - to___15781: undefined, + tmp_7: undefined, + height___16217: undefined, + top___16222: undefined, + i___16228: undefined, + t___16241: undefined, + tOff___16248: undefined, + tab___16250: undefined, + unnamed102___U6: undefined, + unnamed103___U7: undefined, + padding___16252: undefined, } } -function power_init__P4404(s) { +function scene_systemMenu_isVisible__P2896(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27721,54 +29617,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals._timeout___4403 !== undefined); + r0 = pxsim_numops_toBoolDecr(globals.instance___4992); + 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_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 7; continue; } - case 1: - case 2: - r0 = pxsim_pxtcore.getConfig(212, -1); - s.tmp_1 = r0; - r0 = (s.tmp_1 * 1000); - globals._timeout___4403 = (r0); - r0 = (globals._timeout___4403 > 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___4403 < 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___4403 = (300000); - case 5: - case 6: - case 7: - r0 = undefined; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -power_init__P4404.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]} +scene_systemMenu_isVisible__P2896.info = {"start":13170,"length":62,"line":395,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} -function power_init__P4404_mk(s) { +function scene_systemMenu_isVisible__P2896_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_init__P4404, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_isVisible__P2896, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, } } -function power_poke__P1778(s) { +function helpers_stringSplit__P122(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27778,31 +29653,186 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = power_init__P4404_mk(s); - s.callLocIdx = 118; s.pc = 1; return s.tmp_0; + s.A___16306 = undefined; + s.lim___16308 = undefined; + s.s___16324 = undefined; + s.p___16327 = undefined; + s.R___16328 = undefined; + s.z___16342 = undefined; + s.T___16355 = undefined; + s.q___16356 = undefined; + s.e___16362 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = pxsim_Array__mk(); + s.A___16306 = (r0); + s.lim___16308 = (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___16308 = (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___16308 = (0); + { step = 3; continue; } + case 2: + r0 = (s.arg2 | 0); + s.lim___16308 = (r0); + case 3: + case 4: + r0 = pxsim_String_.length(s.arg0); + s.s___16324 = (r0); + s.p___16327 = (0); + s.R___16328 = (s.arg1); + r0 = (s.lim___16308 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.A___16306; + { step = 21; continue; } + case 5: + case 6: + r0 = (s.arg1 === undefined); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 7; continue; } + r0 = pxsim_Array_.setAt(s.A___16306, 0, s.arg0); + r0 = s.A___16306; + { step = 21; continue; } + case 7: + case 8: + r0 = (s.s___16324 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + s.tmp_1 = helpers_splitMatch__P4292_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = 0; + s.tmp_1.arg2 = s.R___16328; + s.callLocIdx = 12; s.pc = 22; return s.tmp_1; + case 22: r0 = s.retval; - r0 = pxsim.control.millis(); - globals._poked___4402 = (r0); - r0 = undefined; + s.z___16342 = (r0); + r0 = (s.z___16342 > -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = s.A___16306; + { step = 21; continue; } + case 9: + case 10: + r0 = pxsim_Array_.setAt(s.A___16306, 0, s.arg0); + r0 = s.A___16306; + { step = 21; continue; } + case 11: + case 12: + s.q___16356 = (s.p___16327); + case 13: + r0 = (s.q___16356 != s.s___16324); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + s.tmp_1 = helpers_splitMatch__P4292_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.q___16356; + s.tmp_1.arg2 = s.R___16328; + s.callLocIdx = 13; s.pc = 23; return s.tmp_1; + case 23: + r0 = s.retval; + s.e___16362 = (r0); + r0 = (s.e___16362 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = (s.q___16356 + 1); + s.q___16356 = (r0); + { step = 19; continue; } + case 14: + r0 = (s.e___16362 == s.p___16327); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + r0 = (s.q___16356 + 1); + s.q___16356 = (r0); + { step = 18; continue; } + case 15: + s.tmp_0 = helpers_stringSlice__P119_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.p___16327; + s.tmp_0.arg2 = s.q___16356; + s.callLocIdx = 14; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.T___16355 = (r0); + r0 = pxsim_Array__push(s.A___16306, s.T___16355); + r0 = pxsim_Array__length(s.A___16306); + s.tmp_1 = r0; + r0 = (s.tmp_1 == s.lim___16308); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + r0 = s.A___16306; + { step = 21; continue; } + case 16: + case 17: + s.p___16327 = (s.e___16362); + s.q___16356 = (s.p___16327); + case 18: + case 19: + { step = 13; continue; } + case 20: + s.tmp_0 = helpers_stringSlice__P119_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.p___16327; + s.tmp_0.arg2 = s.q___16356; + s.callLocIdx = 15; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.T___16355 = (r0); + r0 = pxsim_Array__push(s.A___16306, s.T___16355); + r0 = s.A___16306; + case 21: return leave(s, r0) default: oops() } } } -power_poke__P1778.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]} +helpers_stringSplit__P122.info = {"start":12919,"length":1319,"line":434,"column":4,"endLine":478,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSplit","argumentNames":["S","separator","limit"]} -function power_poke__P1778_mk(s) { +function helpers_stringSplit__P122_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_poke__P1778, depth: s.depth + 1, + parent: s, fn: helpers_stringSplit__P122, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + A___16306: undefined, + lim___16308: undefined, + s___16324: undefined, + p___16327: undefined, + R___16328: undefined, + z___16342: undefined, + T___16355: undefined, + q___16356: undefined, + e___16362: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function control_EventContext_deltaTime__P400(s) { +function helpers_splitMatch__P4292(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27812,35 +29842,85 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.r___16442 = undefined; + s.s___16445 = undefined; + s.i___16455 = 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__C395_VT)) failedCast(r0); - r0 = s.arg0.fields["deltaTimeMillis"]; + r0 = pxsim_String_.length(s.arg2); + s.r___16442 = (r0); + r0 = pxsim_String_.length(s.arg0); + s.s___16445 = (r0); + r0 = (s.arg1 + s.r___16442); + s.tmp_1 = r0; + r0 = (s.tmp_1 > s.s___16445); s.tmp_0 = r0; - r0 = (s.tmp_0 / 1000); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = -1; + { step = 7; continue; } + case 1: + case 2: + s.i___16455 = (0); + case 3: + r0 = (s.i___16455 < s.r___16442); + 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___16455); + 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___16455); + s.tmp_5 = r0; + r0 = (s.tmp_2 != s.tmp_5); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 4; continue; } + r0 = -1; + { step = 7; continue; } + case 4: + case 5: + r0 = (s.i___16455 + 1); + s.i___16455 = (r0); + { step = 3; continue; } + case 6: + r0 = (s.arg1 + s.r___16442); + case 7: + return leave(s, r0) default: oops() } } } -control_EventContext_deltaTime__P400.info = {"start":2135,"length":75,"line":71,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"deltaTime","argumentNames":["this"]} -control_EventContext_deltaTime__P400.isGetter = true; +helpers_splitMatch__P4292.info = {"start":14244,"length":289,"line":480,"column":4,"endLine":489,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"splitMatch","argumentNames":["S","q","R"]} -function control_EventContext_deltaTime__P400_mk(s) { +function helpers_splitMatch__P4292_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_deltaTime__P400, depth: s.depth + 1, + parent: s, fn: helpers_splitMatch__P4292, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + r___16442: undefined, + s___16445: undefined, + i___16455: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function scene_Scene_constructor__P2700(s) { +function helpers_stringSlice__P119(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27850,108 +29930,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.len___16407 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C2678_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__C2368_VT); + r0 = pxsim_String_.length(s.arg0); + s.len___16407 = (r0); + r0 = (s.arg1 < 0); s.tmp_0 = r0; - s.tmp_1 = ArcadePhysicsEngine_constructor__P2369_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 = 1128; s.pc = 1; return s.tmp_1; - case 1: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = Math_max__P130_mk(s); + r0 = (s.len___16407 + s.arg1); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 11; s.pc = 9; return s.tmp_1; + case 9: r0 = s.retval; - r0 = (s.arg0).fields["physicsEngine"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_Camera__C2617_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_Camera_constructor__P2621_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 1129; s.pc = 2; return s.tmp_1; + s.arg1 = (r0); + case 1: case 2: - r0 = s.retval; - r0 = (s.arg0).fields["camera"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_Background__C2505_VT); + r0 = (s.arg2 === undefined); s.tmp_0 = r0; - s.tmp_1 = scene_Background_constructor__P2509_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = s.arg0.fields["camera"]; - s.tmp_1.arg1 = r0; - s.callLocIdx = 1130; s.pc = 3; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.arg2 = (s.len___16407); + { step = 6; continue; } case 3: - r0 = s.retval; - r0 = (s.arg0).fields["background"] = (s.tmp_0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["destroyedHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["createdHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["overlapHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtrt.mkMap(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["overlapMap"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["tileOverlapHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["collisionHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["wallCollisionHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["gameForeverHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtrt.mkMap(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["spritesByKind"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["controlledSprites"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["buttonEventHandlers"] = (s.tmp_1); + r0 = (s.arg2 === null); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.arg2 = (0); + case 4: + case 5: + case 6: + r0 = (s.arg2 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = (s.len___16407 + s.arg2); + s.arg2 = (r0); + case 7: + case 8: s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtrt.mkMap(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_data"] = (s.tmp_1); - r0 = (s.arg0).fields["_millis"] = (0); - r0 = undefined; + s.tmp_1 = r0 = s.arg1; + r0 = (s.arg2 - s.arg1); + s.tmp_2 = r0; + r0 = pxsim_String_.substr(s.tmp_0, s.tmp_1, s.tmp_2); return leave(s, r0) default: oops() } } } -scene_Scene_constructor__P2700.info = {"start":3541,"length":836,"line":105,"column":8,"endLine":124,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","eventContext","previousScene"]} +helpers_stringSlice__P119.info = {"start":11496,"length":440,"line":384,"column":4,"endLine":402,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSlice","argumentNames":["s","start","end"]} -function scene_Scene_constructor__P2700_mk(s) { +function helpers_stringSlice__P119_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_constructor__P2700, depth: s.depth + 1, + parent: s, fn: helpers_stringSlice__P119, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + len___16407: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -27961,7 +30004,7 @@ function scene_Scene_constructor__P2700_mk(s) { -function scene_Camera_constructor__P2621(s) { +function scene_Scene_render__P2706(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27971,27 +30014,139 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.s___16539 = undefined; + s.unnamed100___U1 = undefined; + s.unnamed101___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C2617_VT)) failedCast(r0); - r0 = (s.arg0).fields["_offsetX"] = (0); - r0 = (s.arg0).fields["_offsetY"] = (0); - r0 = (s.arg0).fields["drawOffsetX"] = (0); - r0 = (s.arg0).fields["drawOffsetY"] = (0); + if (!checkSubtype(r0, scene_Scene__C2678_VT)) failedCast(r0); + r0 = s.arg0.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 4); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 11; continue; } + case 1: + case 2: + s.tmp_2 = r0 = s.arg0; + r0 = s.tmp_2.fields["flags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 | 4); + s.tmp_3 = r0; + r0 = (s.tmp_2).fields["flags"] = (s.tmp_3); + r0 = s.arg0.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + r0 = s.arg0.fields["previousScene"]; + case 4: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 5; continue; } + s.tmp_3 = scene_Scene_render__P2706_mk(s); + r0 = s.arg0.fields["previousScene"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 1187; s.pc = 12; return s.tmp_3; + case 12: + r0 = s.retval; + { step = 6; continue; } + case 5: + s.tmp_0 = scene_Background_draw__P2514_mk(s); + r0 = s.arg0.fields["background"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 1188; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + case 6: + r0 = s.arg0.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_2 = helpers_arraySort__P105_mk(s); + r0 = s.arg0.fields["allSprites"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = scene_Scene_render_inline__P16516; + s.callLocIdx = 1193; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & -2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + case 7: + case 8: + s.s___16539 = (undefined); + r0 = s.arg0.fields["allSprites"]; + s.unnamed100___U1 = (r0); + s.unnamed101___U2 = (0); + case 9: + s.tmp_0 = r0 = s.unnamed101___U2; + r0 = pxsim_Array__length(s.unnamed100___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 10; continue; } + r0 = pxsim_Array__getAt(s.unnamed100___U1, s.unnamed101___U2); + s.s___16539 = (r0); + s.tmp_2 = if___draw_2_mk(s); + s.tmp_2.arg0 = s.s___16539; + 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 = 1194; 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 = 1194; s.pc = 15; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1194; s.pc = 15; return s.tmp_2;; } + else { s.callLocIdx = 1194; s.pc = 15; return s.tmp_2; } + } + case 15: + r0 = s.retval; + r0 = (s.unnamed101___U2 + 1); + s.unnamed101___U2 = (r0); + { step = 9; continue; } + case 10: + s.unnamed100___U1 = (undefined); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & -5); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + case 11: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Camera_constructor__P2621.info = {"start":456,"length":156,"line":15,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"inline","argumentNames":["this"]} +scene_Scene_render__P2706.info = {"start":8101,"length":917,"line":226,"column":8,"endLine":250,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]} -function scene_Camera_constructor__P2621_mk(s) { +function scene_Scene_render__P2706_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_constructor__P2621, depth: s.depth + 1, + parent: s, fn: scene_Scene_render__P2706, depth: s.depth + 1, pc: 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___16539: undefined, + unnamed100___U1: undefined, + unnamed101___U2: undefined, arg0: undefined, } } @@ -27999,7 +30154,7 @@ function scene_Camera_constructor__P2621_mk(s) { -function scene_Background_constructor__P2509(s) { +function scene_Scene_render_inline__P16516(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28014,27 +30169,90 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C2505_VT)) failedCast(r0); - r0 = (s.arg0).fields["color"] = (0); - r0 = (s.arg0).fields["camera"] = (s.arg1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + s.tmp_2 = if_z_1_mk(s); + s.tmp_2.arg0 = s.arg0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "z"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["z"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["z"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1189; s.pc = 3; return s.tmp_2; } + } + case 3: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_layers"] = (s.tmp_1); - r0 = undefined; + s.tmp_4 = if_z_1_mk(s); + s.tmp_4.arg0 = s.arg1; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "z"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["z"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["z"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 1190; s.pc = 4; return s.tmp_4; } + } + case 4: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_6 = if_id_1_mk(s); + s.tmp_6.arg0 = s.arg0; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "id"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["id"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["id"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 1191; s.pc = 5; return s.tmp_6; } + } + case 5: + r0 = s.retval; + s.tmp_5 = r0; + s.tmp_8 = if_id_1_mk(s); + s.tmp_8.arg0 = s.arg1; + if (!s.tmp_8.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_8.arg0, "id"); + } else { + s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["id"]; + if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["id"]; } + else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } + else { s.callLocIdx = 1192; s.pc = 6; return s.tmp_8; } + } + case 6: + r0 = s.retval; + s.tmp_7 = r0; + r0 = (s.tmp_5 - s.tmp_7); + case 2: + // jmp value (already in r0) + s.tmp_9 = r0; + r0 = s.tmp_9; return leave(s, r0) default: oops() } } } -scene_Background_constructor__P2509.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_Scene_render_inline__P16516.info = {"start":8679,"length":52,"line":240,"column":37,"endLine":240,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]} -function scene_Background_constructor__P2509_mk(s) { +function scene_Scene_render_inline__P16516_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_constructor__P2509, depth: s.depth + 1, + parent: s, fn: scene_Scene_render_inline__P16516, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -28043,7 +30261,7 @@ function scene_Background_constructor__P2509_mk(s) { -function ArcadePhysicsEngine_constructor__P2369(s) { +function scene_Background_draw__P2514(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28055,68 +30273,60 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2368_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__C2287_VT); + if (!checkSubtype(r0, scene_Background__C2505_VT)) failedCast(r0); + r0 = s.arg0.fields["color"]; s.tmp_0 = r0; - s.tmp_1 = sprites_SpriteMap_constructor__P2288_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 640; s.pc = 1; return s.tmp_1; + r0 = pxsim_ImageMethods.fill(globals.screen___1877, 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___1877, s.tmp_1, 0, 0); case 1: - r0 = s.retval; - r0 = (s.arg0).fields["map"] = (s.tmp_0); - s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P2371_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 641; s.pc = 2; return s.tmp_0; 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, scene_Background_draw_inline__P16571); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); + s.tmp_2 = helpers_arrayForEach__P109_mk(s); + r0 = s.arg0.fields["_layers"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 1043; s.pc = 5; return s.tmp_2; + case 5: r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_maxStep__P2375_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg3; - s.callLocIdx = 642; s.pc = 3; return s.tmp_0; case 3: - r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_minStep__P2373_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 643; s.pc = 4; return s.tmp_0; case 4: - r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_constructor__P2369.info = {"start":1601,"length":277,"line":58,"column":4,"endLine":65,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","maxVelocity","minSingleStep","maxSingleStep"]} +scene_Background_draw__P2514.info = {"start":1166,"length":545,"line":48,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this"]} -function ArcadePhysicsEngine_constructor__P2369_mk(s) { +function scene_Background_draw__P2514_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_constructor__P2369, depth: s.depth + 1, + parent: s, fn: scene_Background_draw__P2514, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function ArcadePhysicsEngine_maxStep__P2375(s) { +function scene_Background_draw_inline__P16571(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28126,42 +30336,66 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.ox___16573 = undefined; + s.oy___16584 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2368_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + r0 = s.caps[0].fields["camera"]; + r0 = r0.fields["drawOffsetX"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["distance"]; + s.tmp_3 = r0; + r0 = (1 + s.tmp_3); s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = (s.tmp_1 / s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim.Math_.round(s.tmp_0); + s.ox___16573 = (r0); + r0 = s.caps[0].fields["camera"]; + r0 = r0.fields["drawOffsetY"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxSingleStep"] = (s.tmp_1); + r0 = s.arg0.fields["distance"]; + s.tmp_3 = r0; + r0 = (1 + s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 / s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim.Math_.round(s.tmp_0); + s.oy___16584 = (r0); + s.tmp_0 = scene_BackgroundLayer_draw__P2523_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.ox___16573; + s.tmp_0.arg2 = s.oy___16584; + s.callLocIdx = 1042; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxStep__P2375.info = {"start":2329,"length":67,"line":88,"column":4,"endLine":90,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this","v"]} +scene_Background_draw_inline__P16571.info = {"start":1373,"length":312,"line":53,"column":37,"endLine":58,"endColumn":17,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["layer"]} -function ArcadePhysicsEngine_maxStep__P2375_mk(s) { +function scene_Background_draw_inline__P16571_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P2375, depth: s.depth + 1, + parent: s, fn: scene_Background_draw_inline__P16571, depth: s.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___16573: undefined, + oy___16584: undefined, arg0: undefined, - arg1: undefined, } } -function ArcadePhysicsEngine_maxStep__P2374(s) { +function scene_BackgroundLayer_draw__P2523(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28171,38 +30405,251 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.w___16602 = undefined; + s.h___16605 = undefined; + s.pw___16608 = undefined; + s.ph___16612 = undefined; + s.rx___16621 = undefined; + s.ry___16624 = undefined; + s.y___16693 = undefined; + s.py___16694 = undefined; + s.dh___16703 = undefined; + s.x___16711 = undefined; + s.rxl___16712 = undefined; + s.px___16718 = undefined; + s.dw___16722 = 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__C2368_VT)) failedCast(r0); - r0 = s.arg0.fields["maxSingleStep"]; + if (!checkSubtype(r0, scene_BackgroundLayer__C2515_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.width(globals.screen___1877); + s.w___16602 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___1877); + s.h___16605 = (r0); + r0 = s.arg0.fields["img"]; s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); + r0 = pxsim_ImageMethods.width(s.tmp_0); + s.pw___16608 = (r0); + r0 = s.arg0.fields["img"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_0); + s.ph___16612 = (r0); + r0 = pxsim_numops_toBoolDecr(s.pw___16608); s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - return leaveAccessor(s, r0) + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_numops_toBoolDecr(s.ph___16612); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + { step = 23; continue; } + case 3: + case 4: + r0 = (0 - s.arg1); + s.rx___16621 = (r0); + r0 = (0 - s.arg2); + s.ry___16624 = (r0); + r0 = s.arg0.fields["alignX"]; + s.tmp_0 = r0; + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = s.tmp_0; + { step = 7; continue; } + case 5: + s.tmp_1 = r0 = s.rx___16621; + r0 = (s.w___16602 + s.pw___16608); + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.rx___16621 = (r0); + { step = 7; continue; } + case 6: + s.tmp_0 = r0 = s.rx___16621; + r0 = (s.w___16602 + s.pw___16608); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.rx___16621 = (r0); + case 7: + r0 = s.arg0.fields["alignY"]; + s.tmp_0 = r0; + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 8; continue; } + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } + case 8: + s.tmp_1 = r0 = s.ry___16624; + r0 = (s.h___16605 + s.ph___16612); + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.ry___16624 = (r0); + { step = 10; continue; } + case 9: + s.tmp_0 = r0 = s.ry___16624; + r0 = (s.h___16605 + s.ph___16612); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.ry___16624 = (r0); + case 10: + r0 = (s.rx___16621 % s.w___16602); + s.rx___16621 = (r0); + r0 = (s.rx___16621 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + r0 = (s.rx___16621 + s.w___16602); + s.rx___16621 = (r0); + case 11: + case 12: + r0 = (s.ry___16624 % s.h___16605); + s.ry___16624 = (r0); + r0 = (s.ry___16624 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = (s.ry___16624 + s.h___16605); + s.ry___16624 = (r0); + case 13: + case 14: + r0 = pxsim.Math_.floor(s.rx___16621); + s.rx___16621 = (r0); + r0 = pxsim.Math_.floor(s.ry___16624); + s.ry___16624 = (r0); + s.y___16693 = (0); + s.py___16694 = (0); + case 15: + r0 = (s.y___16693 < s.h___16605); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + r0 = (s.y___16693 % s.ph___16612); + s.py___16694 = (r0); + s.tmp_0 = Math_min__P131_mk(s); + r0 = (s.ph___16612 - s.py___16694); + s.tmp_0.arg0 = r0; + r0 = (s.h___16605 - s.ry___16624); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1045; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.dh___16703 = (r0); + s.x___16711 = (0); + s.rxl___16712 = (s.rx___16621); + case 16: + r0 = (s.x___16711 < s.w___16602); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 19; continue; } + r0 = (s.x___16711 % s.pw___16608); + s.px___16718 = (r0); + s.tmp_0 = Math_min__P131_mk(s); + r0 = (s.pw___16608 - s.px___16718); + s.tmp_0.arg0 = r0; + r0 = (s.w___16602 - s.rxl___16712); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1046; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.dw___16722 = (r0); + r0 = s.arg0.fields["img"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.drawImage(globals.screen___1877, s.tmp_0, s.rxl___16712, s.ry___16624); + r0 = (s.rxl___16712 + s.dw___16722); + s.tmp_0 = r0; + r0 = (s.tmp_0 % s.w___16602); + s.rxl___16712 = (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___16722; + { step = 18; continue; } + case 17: + r0 = s.w___16602; + case 18: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.x___16711 + s.tmp_1); + s.x___16711 = (r0); + { step = 16; continue; } + case 19: + r0 = (s.ry___16624 + s.dh___16703); + s.tmp_0 = r0; + r0 = (s.tmp_0 % s.h___16605); + s.ry___16624 = (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___16703; + { step = 21; continue; } + case 20: + r0 = s.h___16605; + case 21: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.y___16693 + s.tmp_1); + s.y___16693 = (r0); + { step = 15; continue; } + case 22: + case 23: + r0 = undefined; + return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxStep__P2374.info = {"start":2249,"length":74,"line":84,"column":4,"endLine":86,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this"]} -ArcadePhysicsEngine_maxStep__P2374.isGetter = true; +scene_BackgroundLayer_draw__P2523.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 ArcadePhysicsEngine_maxStep__P2374_mk(s) { +function scene_BackgroundLayer_draw__P2523_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P2374, depth: s.depth + 1, + parent: s, fn: scene_BackgroundLayer_draw__P2523, depth: s.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___16602: undefined, + h___16605: undefined, + pw___16608: undefined, + ph___16612: undefined, + rx___16621: undefined, + ry___16624: undefined, + y___16693: undefined, + py___16694: undefined, + dh___16703: undefined, + x___16711: undefined, + rxl___16712: undefined, + px___16718: undefined, + dw___16722: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function Fx_toInt__P172(s) { +function scene_Camera_update__P2633(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28212,24 +30659,180 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.elapsed___16804 = undefined; + s.percentComplete___16817 = undefined; + s.damp___16824 = undefined; + s.f___16833 = undefined; + s.x___16838 = undefined; + s.y___16845 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (s.arg0 + 128); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C2617_VT)) failedCast(r0); + r0 = s.arg0.fields["sprite"]; s.tmp_0 = r0; - r0 = (s.tmp_0 >> 8); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = scene_Camera_offsetX__P2623_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_3 = Sprite_x__P2195_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 1147; s.pc = 10; return s.tmp_3; + case 10: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___1877); + 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 = 1148; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + s.tmp_0 = scene_Camera_offsetY__P2625_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_2 = Sprite_y__P2197_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 1149; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___1877); + 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 = 1150; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + case 1: + case 2: + s.tmp_0 = scene_Camera_offsetX__P2623_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = s.arg0.fields["_offsetX"]; + s.tmp_1 = r0; + r0 = pxsim.Math_.floor(s.tmp_1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1152; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = scene_Camera_offsetY__P2625_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = s.arg0.fields["_offsetY"]; + s.tmp_1 = r0; + r0 = pxsim.Math_.floor(s.tmp_1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1154; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["_offsetX"]; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["drawOffsetX"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["_offsetY"]; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); + r0 = s.arg0.fields["shakeStartTime"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = pxsim.control.millis(); + s.tmp_2 = r0; + r0 = s.arg0.fields["shakeStartTime"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 - s.tmp_3); + s.elapsed___16804 = (r0); + r0 = s.arg0.fields["shakeDuration"]; + s.tmp_1 = r0; + r0 = (s.elapsed___16804 >= s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = (s.arg0).fields["shakeStartTime"] = (undefined); + { step = 6; continue; } + case 3: + r0 = s.arg0.fields["shakeDuration"]; + s.tmp_0 = r0; + r0 = (s.elapsed___16804 / s.tmp_0); + s.percentComplete___16817 = (r0); + s.damp___16824 = (1); + r0 = (s.percentComplete___16817 >= 0.75); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_1 = Math_max__P130_mk(s); + s.tmp_1.arg0 = 0; + r0 = (1 - s.percentComplete___16817); + s.tmp_1.arg1 = r0; + s.callLocIdx = 1157; s.pc = 15; return s.tmp_1; + case 15: + r0 = s.retval; + s.damp___16824 = (r0); + case 4: + case 5: + r0 = s.arg0.fields["shakeAmplitude"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 * s.damp___16824); + s.f___16833 = (r0); + r0 = pxsim.Math_.random(); + s.tmp_1 = r0; + r0 = (s.tmp_1 * s.f___16833); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 0); + s.x___16838 = (r0); + r0 = pxsim.Math_.random(); + s.tmp_1 = r0; + r0 = (s.tmp_1 * s.f___16833); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 0); + s.y___16845 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["drawOffsetX"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.x___16838); + 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___16845); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); + case 6: + case 7: + case 8: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_toInt__P172.info = {"start":2379,"length":86,"line":74,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]} +scene_Camera_update__P2633.info = {"start":2285,"length":1409,"line":77,"column":8,"endLine":111,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]} -function Fx_toInt__P172_mk(s) { +function scene_Camera_update__P2633_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toInt__P172, depth: s.depth + 1, + parent: s, fn: scene_Camera_update__P2633, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + elapsed___16804: undefined, + percentComplete___16817: undefined, + damp___16824: undefined, + f___16833: undefined, + x___16838: undefined, + y___16845: undefined, arg0: undefined, } } @@ -28237,7 +30840,7 @@ function Fx_toInt__P172_mk(s) { -function ArcadePhysicsEngine_minStep__P2373(s) { +function scene_Camera_offsetY__P2625(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28247,33 +30850,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___16864 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2368_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, scene_Camera__C2617_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P2792_mk(s); + s.callLocIdx = 1144; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.scene___16864 = (r0); + r0 = s.scene___16864.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___16864.fields["tileMap"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["minSingleStep"] = (s.tmp_1); + r0 = s.tmp_1.fields["_map"]; + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 3; continue; } + s.tmp_7 = r0 = s.arg0; + s.tmp_9 = tiles_TileMap_offsetY__P2578_mk(s); + r0 = s.scene___16864.fields["tileMap"]; + s.tmp_9.arg0 = r0; + s.tmp_9.arg1 = s.arg1; + s.callLocIdx = 1146; s.pc = 6; return s.tmp_9; + case 6: + r0 = s.retval; + s.tmp_8 = r0; + r0 = (s.tmp_7).fields["_offsetY"] = (s.tmp_8); + { step = 4; continue; } + case 3: + r0 = (s.arg0).fields["_offsetY"] = (s.arg1); + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_minStep__P2373.info = {"start":2176,"length":67,"line":80,"column":4,"endLine":82,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this","v"]} +scene_Camera_offsetY__P2625.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 ArcadePhysicsEngine_minStep__P2373_mk(s) { +function scene_Camera_offsetY__P2625_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P2373, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetY__P2625, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + scene___16864: undefined, arg0: undefined, arg1: undefined, } } @@ -28282,7 +30930,7 @@ function ArcadePhysicsEngine_minStep__P2373_mk(s) { -function ArcadePhysicsEngine_minStep__P2372(s) { +function tiles_TileMap_offsetY__P2578(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28294,36 +30942,57 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2368_VT)) failedCast(r0); - r0 = s.arg0.fields["minSingleStep"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, tiles_TileMap__C2571_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P127_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_1 = Math_max__P130_mk(s); + s.tmp_3 = tiles_TileMap_areaHeight__P2580_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1074; s.pc = 3; return s.tmp_3; + case 3: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___1877); + s.tmp_4 = r0; + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 1075; 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 = 1076; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_minStep__P2372.info = {"start":2096,"length":74,"line":76,"column":4,"endLine":78,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this"]} -ArcadePhysicsEngine_minStep__P2372.isGetter = true; +tiles_TileMap_offsetY__P2578.info = {"start":9630,"length":123,"line":329,"column":8,"endLine":331,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetY","argumentNames":["this","value"]} -function ArcadePhysicsEngine_minStep__P2372_mk(s) { +function tiles_TileMap_offsetY__P2578_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P2372, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_offsetY__P2578, depth: s.depth + 1, pc: 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 ArcadePhysicsEngine_maxSpeed__P2371(s) { +function tiles_TileMap_areaHeight__P2580(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28335,46 +31004,51 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2368_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"]; + if (!checkSubtype(r0, tiles_TileMap__C2571_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 = (0 - s.tmp_2); + r0 = s.tmp_2.fields["_height"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxNegativeVelocity"] = (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() } } } -ArcadePhysicsEngine_maxSpeed__P2371.info = {"start":1963,"length":127,"line":71,"column":4,"endLine":74,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this","v"]} +tiles_TileMap_areaHeight__P2580.info = {"start":9864,"length":93,"line":337,"column":8,"endLine":339,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} -function ArcadePhysicsEngine_maxSpeed__P2371_mk(s) { +function tiles_TileMap_areaHeight__P2580_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P2371, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaHeight__P2580, depth: s.depth + 1, pc: 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 Fx_neg__P155(s) { +function scene_Camera_offsetY__P2624(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28388,16 +31062,19 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (0 - s.arg0); - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C2617_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetY"]; + return leaveAccessor(s, r0) default: oops() } } } -Fx_neg__P155.info = {"start":311,"length":88,"line":14,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"neg","argumentNames":["a"]} +scene_Camera_offsetY__P2624.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__P2624.isGetter = true; -function Fx_neg__P155_mk(s) { +function scene_Camera_offsetY__P2624_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_neg__P155, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetY__P2624, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -28406,7 +31083,7 @@ function Fx_neg__P155_mk(s) { -function ArcadePhysicsEngine_maxSpeed__P2370(s) { +function scene_Camera_offsetX__P2623(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28416,38 +31093,87 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___16906 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C2368_VT)) failedCast(r0); - r0 = s.arg0.fields["maxVelocity"]; + if (!checkSubtype(r0, scene_Camera__C2617_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P2792_mk(s); + s.callLocIdx = 1141; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.scene___16906 = (r0); + r0 = s.scene___16906.fields["tileMap"]; s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.scene___16906.fields["tileMap"]; s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - return leaveAccessor(s, r0) + r0 = s.tmp_1.fields["_map"]; + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 3; continue; } + s.tmp_7 = r0 = s.arg0; + s.tmp_9 = tiles_TileMap_offsetX__P2577_mk(s); + r0 = s.scene___16906.fields["tileMap"]; + s.tmp_9.arg0 = r0; + s.tmp_9.arg1 = s.arg1; + s.callLocIdx = 1143; s.pc = 6; return s.tmp_9; + case 6: + r0 = s.retval; + s.tmp_8 = r0; + r0 = (s.tmp_7).fields["_offsetX"] = (s.tmp_8); + { step = 4; continue; } + case 3: + r0 = (s.arg0).fields["_offsetX"] = (s.arg1); + case 4: + r0 = undefined; + return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxSpeed__P2370.info = {"start":1884,"length":73,"line":67,"column":4,"endLine":69,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this"]} -ArcadePhysicsEngine_maxSpeed__P2370.isGetter = true; +scene_Camera_offsetX__P2623.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 ArcadePhysicsEngine_maxSpeed__P2370_mk(s) { +function scene_Camera_offsetX__P2623_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P2370, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetX__P2623, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + scene___16906: undefined, arg0: undefined, + arg1: undefined, } } -function PhysicsEngine_constructor__P2353(s) { +function tiles_TileMap_offsetX__P2577(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28459,29 +31185,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, PhysicsEngine__C2352_VT)) failedCast(r0); - r0 = undefined; + if (!checkSubtype(r0, tiles_TileMap__C2571_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P127_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_1 = Math_max__P130_mk(s); + s.tmp_3 = tiles_TileMap_areaWidth__P2579_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1071; s.pc = 3; return s.tmp_3; + case 3: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___1877); + s.tmp_4 = r0; + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 1072; 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 = 1073; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -PhysicsEngine_constructor__P2353.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]} +tiles_TileMap_offsetX__P2577.info = {"start":9499,"length":121,"line":325,"column":8,"endLine":327,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetX","argumentNames":["this","value"]} -function PhysicsEngine_constructor__P2353_mk(s) { +function tiles_TileMap_offsetX__P2577_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_constructor__P2353, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_offsetX__P2577, depth: s.depth + 1, pc: 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 sprites_SpriteMap_constructor__P2288(s) { +function tiles_TileMap_areaWidth__P2579(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28496,24 +31250,40 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C2287_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + if (!checkSubtype(r0, tiles_TileMap__C2571_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["_map"]; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["_width"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["buckets"] = (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() } } } -sprites_SpriteMap_constructor__P2288.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]} +tiles_TileMap_areaWidth__P2579.info = {"start":9763,"length":91,"line":333,"column":8,"endLine":335,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]} -function sprites_SpriteMap_constructor__P2288_mk(s) { +function tiles_TileMap_areaWidth__P2579_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_constructor__P2288, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaWidth__P2579, depth: s.depth + 1, pc: 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, } } @@ -28521,7 +31291,42 @@ function sprites_SpriteMap_constructor__P2288_mk(s) { -function music_Melody_constructor__P1629(s) { +function scene_Camera_offsetX__P2622(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C2617_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetX"]; + return leaveAccessor(s, r0) + default: oops() +} } } +scene_Camera_offsetX__P2622.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__P2622.isGetter = true; + +function scene_Camera_offsetX__P2622_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Camera_offsetX__P2622, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function PhysicsEngine_move__P2358(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28537,18 +31342,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C1626_VT)) failedCast(r0); - r0 = (s.arg0).fields["_text"] = (s.arg1); + if (!checkSubtype(r0, PhysicsEngine__C2352_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_constructor__P1629.info = {"start":6327,"length":67,"line":199,"column":8,"endLine":201,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","text"]} +PhysicsEngine_move__P2358.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 music_Melody_constructor__P1629_mk(s) { +function PhysicsEngine_move__P2358_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_constructor__P1629, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_move__P2358, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -28558,7 +31362,7 @@ function music_Melody_constructor__P1629_mk(s) { -function control_pushEventContext__P409(s) { +function PhysicsEngine_draw__P2357(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28568,63 +31372,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___16821 = undefined; - s.n___16827 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___4329); - s.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___4329 = (r0); - case 1: - case 2: - s.tmp_0 = control_eventContext__P408_mk(s); - s.callLocIdx = 65; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.ctx___16821 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___16821); - if (!r0) { step = 3; continue; } - s.tmp_0 = control_EventContext_unregister__P402_mk(s); - s.tmp_0.arg0 = s.ctx___16821; - s.callLocIdx = 66; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - case 3: - case 4: - r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C395_VT); - s.tmp_0 = r0; - s.tmp_1 = control_EventContext_constructor__P399_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 67; s.pc = 7; return s.tmp_1; - case 7: - r0 = s.retval; - s.n___16827 = (s.tmp_0); - r0 = pxsim_Array__push(globals.eventContexts___4329, s.n___16827); - r0 = s.n___16827; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C2352_VT)) failedCast(r0); + r0 = undefined; return leave(s, r0) default: oops() } } } -control_pushEventContext__P409.info = {"start":7310,"length":340,"line":220,"column":4,"endLine":231,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]} +PhysicsEngine_draw__P2357.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} -function control_pushEventContext__P409_mk(s) { +function PhysicsEngine_draw__P2357_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_pushEventContext__P409, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_draw__P2357, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - ctx___16821: undefined, - n___16827: undefined, + arg0: undefined, } } -function control_EventContext_unregister__P402(s) { +function controller___update__P2008(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28634,60 +31406,43 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___14714 = undefined; - s.unnamed66___U1 = undefined; - s.unnamed67___U2 = undefined; + s.dtms___17147 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C395_VT)) failedCast(r0); - s.h___14714 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed66___U1 = (r0); - s.unnamed67___U2 = (0); + r0 = (s.arg0 * 1000); + s.tmp_0 = r0; + r0 = (s.tmp_0 | 0); + s.dtms___17147 = (r0); + r0 = pxsim_pxtcore_mkAction(1, controller___update_inline__P17154); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___17147); + s.tmp_1 = helpers_arrayForEach__P109_mk(s); + s.tmp_2 = controller_players__P1973_mk(s); + s.callLocIdx = 276; 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 = 278; s.pc = 1; return s.tmp_1; case 1: - s.tmp_0 = r0 = s.unnamed67___U2; - r0 = pxsim_Array__length(s.unnamed66___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed66___U1, s.unnamed67___U2); - s.h___14714 = (r0); - s.tmp_2 = control_EventHandler_unregister__P4323_mk(s); - s.tmp_2.arg0 = s.h___14714; - s.callLocIdx = 61; s.pc = 3; return s.tmp_2; - case 3: r0 = s.retval; - r0 = (s.unnamed67___U2 + 1); - s.unnamed67___U2 = (r0); - { step = 1; continue; } - case 2: - s.unnamed66___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__P402.info = {"start":4721,"length":131,"line":141,"column":8,"endLine":145,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +controller___update__P2008.info = {"start":12647,"length":137,"line":385,"column":4,"endLine":388,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]} -function control_EventContext_unregister__P402_mk(s) { +function controller___update__P2008_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_unregister__P402, depth: s.depth + 1, + parent: s, fn: controller___update__P2008, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - h___14714: undefined, - unnamed66___U1: undefined, - unnamed67___U2: undefined, + dtms___17147: undefined, arg0: undefined, } } @@ -28695,7 +31450,7 @@ function control_EventContext_unregister__P402_mk(s) { -function control_EventHandler_unregister__P4323(s) { +function controller___update_inline__P17154(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28709,29 +31464,24 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C4321_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__P4325, s.tmp_2); + s.tmp_0 = controller_Controller___update__P2006_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + s.callLocIdx = 277; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventHandler_unregister__P4323.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +controller___update_inline__P17154.info = {"start":12749,"length":27,"line":387,"column":26,"endLine":387,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function control_EventHandler_unregister__P4323_mk(s) { +function controller___update_inline__P17154_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_unregister__P4323, depth: s.depth + 1, + parent: s, fn: controller___update_inline__P17154, 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, } } @@ -28739,7 +31489,7 @@ function control_EventHandler_unregister__P4323_mk(s) { -function control_doNothing__P4325(s) { +function controller_Controller___update__P2006(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28749,24 +31499,57 @@ 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, controller_Controller__C1978_VT)) failedCast(r0); + r0 = pxsim_pxtrt.mklocRef(); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1); + s.arg1 = (s.tmp_0); + s.tmp_1 = r0 = s.arg1; + r0 = pxsim_pxtrt_ldlocRef(s.arg1); + s.tmp_3 = r0; + r0 = (s.tmp_3 | 0); + s.tmp_2 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2); + r0 = pxsim_pxtcore_mkAction(1, controller_Controller___update_inline__P17167); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + s.tmp_1 = helpers_arrayForEach__P109_mk(s); + r0 = s.arg0.fields["buttons"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 275; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -control_doNothing__P4325.info = {"start":1254,"length":24,"line":41,"column":4,"endLine":41,"endColumn":28,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"doNothing","argumentNames":[]} +controller_Controller___update__P2006.info = {"start":12125,"length":124,"line":367,"column":8,"endLine":370,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} -function control_doNothing__P4325_mk(s) { +function controller_Controller___update__P2006_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_doNothing__P4325, depth: s.depth + 1, + parent: s, fn: controller_Controller___update__P2006, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, + arg1: undefined, } } -function control_EventContext_constructor__P399(s) { +function controller_Controller___update_inline__P17167(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28780,40 +31563,25 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C395_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___397); - s.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___397 = (r0); + s.tmp_0 = controller_Button___update__P2046_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_0.arg1 = r0; + s.callLocIdx = 274; s.pc = 1; return s.tmp_0; case 1: - case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_constructor__P399.info = {"start":1778,"length":347,"line":59,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} +controller_Controller___update_inline__P17167.info = {"start":12212,"length":25,"line":369,"column":33,"endLine":369,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} -function control_EventContext_constructor__P399_mk(s) { +function controller_Controller___update_inline__P17167_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_constructor__P399, depth: s.depth + 1, + parent: s, fn: controller_Controller___update_inline__P17167, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -28821,7 +31589,7 @@ function control_EventContext_constructor__P399_mk(s) { -function game_popScene__P2797(s) { +function controller_Button___update__P2046(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28831,84 +31599,124 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.oldScene___14647 = undefined; - s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1221; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.oldScene___14647 = (r0); - s.tmp_0 = r0 = globals._sceneStack___4701; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.delay___17183 = undefined; + s.interval___17192 = undefined; + s.count___17205 = 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__C2032_VT)) failedCast(r0); + r0 = s.arg0.fields["_pressed"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 11; continue; } case 1: - r0 = pxsim_Array__length(globals._sceneStack___4701); case 2: - // jmp value (already in r0) + s.tmp_3 = r0 = s.arg0; + r0 = s.tmp_3.fields["_pressedElasped"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 + s.arg1); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["_pressedElasped"] = (s.tmp_4); + r0 = s.arg0.fields["repeatDelay"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = (s.tmp_1 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = pxsim_Array_.pop(globals._sceneStack___4701); - globals._scene___4700 = (r0); - s.tmp_0 = control_popEventContext__P410_mk(s); - s.callLocIdx = 1222; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - { step = 6; continue; } + r0 = globals.defaultRepeatDelay___4552; + { step = 4; continue; } case 3: - r0 = pxsim_numops_toBoolDecr(globals._scene___4700); - if (!r0) { step = 4; continue; } - s.tmp_0 = control_popEventContext__P410_mk(s); - s.callLocIdx = 1223; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - globals._scene___4700 = (undefined); + r0 = s.arg0.fields["repeatDelay"]; case 4: + // jmp value (already in r0) + s.tmp_2 = r0; + s.delay___17183 = (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___4554; + { step = 6; continue; } case 5: + r0 = s.arg0.fields["repeatInterval"]; case 6: - r0 = pxsim_numops_toBoolDecr(globals._scene___4700); + // jmp value (already in r0) + s.tmp_2 = r0; + s.interval___17192 = (s.tmp_2); + r0 = s.arg0.fields["_pressedElasped"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 < s.delay___17183); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_0 = particles_enableAll__P2971_mk(s); - s.callLocIdx = 1224; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; + { step = 11; continue; } case 7: case 8: - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___4703); - if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore_mkAction(1, game_popScene_inline__P14668); + r0 = s.arg0.fields["_pressedElasped"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 - s.delay___17183); + s.tmp_4 = r0; + r0 = (s.tmp_4 - s.interval___17192); + s.tmp_3 = r0; + r0 = (s.tmp_3 / s.interval___17192); + s.tmp_2 = r0; + r0 = pxsim.Math_.floor(s.tmp_2); + s.count___17205 = (r0); + r0 = s.arg0.fields["_repeatCount"]; + s.tmp_1 = r0; + r0 = (s.count___17205 != s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___14647); - s.tmp_1 = helpers_arrayForEach__P109_mk(s); - s.tmp_1.arg0 = globals._scenePopHandlers___4703; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1226; s.pc = 15; return s.tmp_1; - case 15: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + s.tmp_2 = controller_Button_raiseButtonRepeat__P4541_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 292; s.pc = 12; return s.tmp_2; + case 12: r0 = s.retval; + r0 = (s.arg0).fields["_repeatCount"] = (s.count___17205); case 9: case 10: + case 11: r0 = undefined; return leave(s, r0) default: oops() } } } -game_popScene__P2797.info = {"start":2033,"length":548,"line":75,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]} +controller_Button___update__P2046.info = {"start":7291,"length":704,"line":217,"column":8,"endLine":234,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"__update","argumentNames":["this","dtms"]} -function game_popScene__P2797_mk(s) { +function controller_Button___update__P2046_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_popScene__P2797, depth: s.depth + 1, + parent: s, fn: controller_Button___update__P2046, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - oldScene___14647: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + delay___17183: undefined, + interval___17192: undefined, + count___17205: undefined, + arg0: undefined, + arg1: undefined, } } -function game_popScene_inline__P14668(s) { +function controller_Button_raiseButtonRepeat__P4541(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28922,23 +31730,29 @@ 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 = 1225; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C2032_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___4550); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["id"]; + s.tmp_0 = r0; + r0 = pxsim.control.raiseEvent(2054, s.tmp_0); + { step = 2; continue; } case 1: - r0 = s.retval; + r0 = s.arg0.fields["id"]; + s.tmp_0 = r0; + r0 = pxsim.control.raiseEvent(2055, s.tmp_0); + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -game_popScene_inline__P14668.info = {"start":2545,"length":18,"line":91,"column":38,"endLine":91,"endColumn":56,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} +controller_Button_raiseButtonRepeat__P4541.info = {"start":3303,"length":211,"line":110,"column":8,"endLine":115,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]} -function game_popScene_inline__P14668_mk(s) { +function controller_Button_raiseButtonRepeat__P4541_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_popScene_inline__P14668, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonRepeat__P4541, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28948,7 +31762,7 @@ function game_popScene_inline__P14668_mk(s) { -function particles_enableAll__P2971(s) { +function controller_players__P1973(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28958,46 +31772,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___14672 = undefined; - s.tmp_0 = particles_particleSources__P5049_mk(s); - s.callLocIdx = 1495; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.sources___14672 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___14672); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P109_mk(s); - s.tmp_0.arg0 = s.sources___14672; - s.tmp_0.arg1 = particles_enableAll_inline__P14678; - s.callLocIdx = 1497; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P5045_mk(s); - s.callLocIdx = 1498; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; + s.tmp_0 = controller__player1__P1972_mk(s); + s.callLocIdx = 223; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + s.tmp_0 = helpers_arrayFilter__P110_mk(s); + s.tmp_0.arg0 = globals._players___4533; + s.tmp_0.arg1 = controller_players_inline__P17137; + s.callLocIdx = 224; s.pc = 2; return s.tmp_0; case 2: - r0 = undefined; + r0 = s.retval; return leave(s, r0) default: oops() } } } -particles_enableAll__P2971.info = {"start":12649,"length":193,"line":413,"column":4,"endLine":419,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]} +controller_players__P1973.info = {"start":748,"length":144,"line":29,"column":4,"endLine":32,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} -function particles_enableAll__P2971_mk(s) { +function controller_players__P1973_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_enableAll__P2971, depth: s.depth + 1, + parent: s, fn: controller_players__P1973, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___14672: undefined, } } -function particles_enableAll_inline__P14678(s) { +function controller_players_inline__P17137(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29011,24 +31813,26 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_enabled__P2952_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = true; - s.callLocIdx = 1496; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = true; + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -particles_enableAll_inline__P14678.info = {"start":12773,"length":21,"line":416,"column":28,"endLine":416,"endColumn":49,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +controller_players_inline__P17137.info = {"start":870,"length":14,"line":31,"column":31,"endLine":31,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function particles_enableAll_inline__P14678_mk(s) { +function controller_players_inline__P17137_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_enableAll_inline__P14678, depth: s.depth + 1, + parent: s, fn: controller_players_inline__P17137, 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, } } @@ -29036,7 +31840,7 @@ function particles_enableAll_inline__P14678_mk(s) { -function control_popEventContext__P410(s) { +function controller__moveSprites__P1977(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29046,75 +31850,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___14685 = undefined; - s.context___14693 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___4329); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 7; continue; } - case 1: + s.tmp_0 = helpers_arrayForEach__P109_mk(s); + s.tmp_1 = controller_players__P1973_mk(s); + s.callLocIdx = 225; s.pc = 2; return s.tmp_1; case 2: - r0 = pxsim_Array_.pop(globals.eventContexts___4329); - s.ctx___14685 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___14685); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - { step = 7; continue; } - case 3: - case 4: - s.tmp_2 = control_EventContext_unregister__P402_mk(s); - s.tmp_2.arg0 = s.ctx___14685; - s.callLocIdx = 68; s.pc = 8; return s.tmp_2; - case 8: r0 = s.retval; - s.tmp_0 = r0 = globals.eventContexts___4329; - r0 = pxsim_Array__length(globals.eventContexts___4329); - 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___14693 = (r0); - r0 = pxsim_numops_toBoolDecr(s.context___14693); - if (!r0) { step = 5; continue; } - s.tmp_0 = control_EventContext_register__P401_mk(s); - s.tmp_0.arg0 = s.context___14693; - s.callLocIdx = 69; s.pc = 9; return s.tmp_0; - case 9: + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = controller__moveSprites_inline__P16952; + s.callLocIdx = 227; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - { step = 6; continue; } - case 5: - globals.eventContexts___4329 = (undefined); - case 6: - case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -control_popEventContext__P410.info = {"start":7755,"length":413,"line":236,"column":4,"endLine":250,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]} +controller__moveSprites__P1977.info = {"start":1108,"length":180,"line":43,"column":4,"endLine":47,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]} -function control_popEventContext__P410_mk(s) { +function controller__moveSprites__P1977_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_popEventContext__P410, depth: s.depth + 1, + parent: s, fn: controller__moveSprites__P1977, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - ctx___14685: undefined, - context___14693: undefined, } } -function control_EventContext_register__P401(s) { +function controller__moveSprites_inline__P16952(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29124,59 +31889,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___14706 = undefined; - s.unnamed64___U1 = undefined; - s.unnamed65___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C395_VT)) failedCast(r0); - s.h___14706 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed64___U1 = (r0); - s.unnamed65___U2 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed65___U2; - r0 = pxsim_Array__length(s.unnamed64___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed64___U1, s.unnamed65___U2); - s.h___14706 = (r0); - s.tmp_2 = control_EventHandler_register__P4322_mk(s); - s.tmp_2.arg0 = s.h___14706; - s.callLocIdx = 59; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - r0 = (s.unnamed65___U2 + 1); - s.unnamed65___U2 = (r0); - { step = 1; continue; } - case 2: - s.unnamed64___U1 = (undefined); - s.tmp_0 = control_EventContext_registerFrameCallbacks__P4327_mk(s); + s.tmp_0 = controller_Controller___preUpdate__P2005_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 60; s.pc = 4; return s.tmp_0; - case 4: + s.callLocIdx = 226; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_register__P401.info = {"start":4573,"length":138,"line":135,"column":8,"endLine":139,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} +controller__moveSprites_inline__P16952.info = {"start":1254,"length":26,"line":46,"column":26,"endLine":46,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function control_EventContext_register__P401_mk(s) { +function controller__moveSprites_inline__P16952_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_register__P401, depth: s.depth + 1, + parent: s, fn: controller__moveSprites_inline__P16952, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - h___14706: undefined, - unnamed64___U1: undefined, - unnamed65___U2: undefined, arg0: undefined, } } @@ -29184,7 +31917,7 @@ function control_EventContext_register__P401_mk(s) { -function game_pushScene__P2796(s) { +function controller_Controller___preUpdate__P2005(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29194,70 +31927,334 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.oldScene___14604 = undefined; - s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1215; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.oldScene___14604 = (r0); - s.tmp_0 = particles_clearAll__P2969_mk(s); - s.callLocIdx = 1216; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = particles_disableAll__P2970_mk(s); - s.callLocIdx = 1217; s.pc = 7; return s.tmp_0; - case 7: + s.deadSprites___16959 = undefined; + s.svx___16960 = undefined; + s.svy___16961 = undefined; + s.svxInCricle___16996 = undefined; + s.svyInCircle___16998 = undefined; + s.sq___17000 = undefined; + s.scale___17015 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C1978_VT)) failedCast(r0); + s.tmp_3 = controller_Controller__controlledSprites__P1983_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 249; s.pc = 18; return s.tmp_3; + case 18: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._sceneStack___4701); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - globals._sceneStack___4701 = (r0); + { step = 17; continue; } case 1: case 2: - r0 = pxsim_Array__push(globals._sceneStack___4701, globals._scene___4700); - s.tmp_0 = game_init__P4708_mk(s); - s.tmp_0.arg0 = true; - s.callLocIdx = 1218; s.pc = 8; return s.tmp_0; + r0 = pxsim_pxtrt.mklocRef(); + s.deadSprites___16959 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.deadSprites___16959, false); + r0 = pxsim_pxtrt.mklocRef(); + s.svx___16960 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svx___16960, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.svy___16961 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svy___16961, 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___16960; + s.tmp_5 = controller_Button_pressureLevel__P2044_mk(s); + s.tmp_6 = controller_Controller_right__P1988_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 250; s.pc = 20; return s.tmp_6; + case 20: + r0 = s.retval; + s.tmp_5.arg0 = r0; + s.callLocIdx = 251; s.pc = 19; return s.tmp_5; + case 19: + r0 = s.retval; + s.tmp_4 = r0; + s.tmp_8 = controller_Button_pressureLevel__P2044_mk(s); + s.tmp_9 = controller_Controller_left__P1987_mk(s); + s.tmp_9.arg0 = s.arg0; + s.callLocIdx = 252; s.pc = 22; return s.tmp_9; + case 22: + r0 = s.retval; + s.tmp_8.arg0 = r0; + s.callLocIdx = 253; s.pc = 21; return s.tmp_8; + case 21: + r0 = s.retval; + s.tmp_7 = r0; + r0 = (s.tmp_4 - s.tmp_7); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2); + s.tmp_0 = r0 = s.svy___16961; + s.tmp_4 = controller_Button_pressureLevel__P2044_mk(s); + s.tmp_5 = controller_Controller_down__P1990_mk(s); + s.tmp_5.arg0 = s.arg0; + s.callLocIdx = 254; s.pc = 24; return s.tmp_5; + case 24: + r0 = s.retval; + s.tmp_4.arg0 = r0; + s.callLocIdx = 255; s.pc = 23; return s.tmp_4; + case 23: + r0 = s.retval; + s.tmp_3 = r0; + s.tmp_7 = controller_Button_pressureLevel__P2044_mk(s); + s.tmp_8 = controller_Controller_up__P1989_mk(s); + s.tmp_8.arg0 = s.arg0; + s.callLocIdx = 256; s.pc = 26; return s.tmp_8; + case 26: + r0 = s.retval; + s.tmp_7.arg0 = r0; + s.callLocIdx = 257; s.pc = 25; return s.tmp_7; + case 25: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_3 - s.tmp_6); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + { step = 12; continue; } + case 3: + s.tmp_1 = controller_Button__C2032_v0_1_mk(s); + s.tmp_2 = controller_Controller_right__P1988_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 258; 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__C2032_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; + s.pc = 27; return s.tmp_1; + case 27: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + r0 = 256; + { step = 5; continue; } + case 4: + r0 = 0; + case 5: + // jmp value (already in r0) + s.tmp_3 = r0; + s.tmp_5 = controller_Button__C2032_v0_1_mk(s); + s.tmp_6 = controller_Controller_left__P1987_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 259; 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__C2032_VT)) failedCast(s.tmp_5.arg0); + s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.isPressed; + s.pc = 29; return s.tmp_5; + case 29: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 6; continue; } + r0 = 256; + { step = 7; continue; } + case 6: + r0 = 0; + case 7: + // jmp value (already in r0) + s.tmp_7 = r0; + s.tmp_8 = r0 = s.svx___16960; + 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__C2032_v0_1_mk(s); + s.tmp_2 = controller_Controller_down__P1990_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 260; 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__C2032_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; + s.pc = 31; return s.tmp_1; + case 31: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + r0 = 256; + { step = 9; continue; } case 8: + r0 = 0; + case 9: + // jmp value (already in r0) + s.tmp_3 = r0; + s.tmp_5 = controller_Button__C2032_v0_1_mk(s); + s.tmp_6 = controller_Controller_up__P1989_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 261; s.pc = 34; return s.tmp_6; + case 34: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___4702); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, game_pushScene_inline__P14621); + s.tmp_5.arg0 = r0; + if (!checkSubtype(s.tmp_5.arg0, controller_Button__C2032_VT)) failedCast(s.tmp_5.arg0); + s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.isPressed; + s.pc = 33; return s.tmp_5; + case 33: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 10; continue; } + r0 = 256; + { step = 11; continue; } + case 10: + r0 = 0; + case 11: + // jmp value (already in r0) + s.tmp_7 = r0; + s.tmp_8 = r0 = s.svy___16961; + 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___16996 = (r0); + s.tmp_0 = r0 = s.svxInCricle___16996; + r0 = pxsim_pxtrt_ldlocRef(s.svx___16960); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt.mklocRef(); + s.svyInCircle___16998 = (r0); + s.tmp_0 = r0 = s.svyInCircle___16998; + r0 = pxsim_pxtrt_ldlocRef(s.svy___16961); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt_ldlocRef(s.svx___16960); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svx___16960); + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svy___16961); + s.tmp_4 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svy___16961); + s.tmp_5 = r0; + r0 = (s.tmp_4 * s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_0 + s.tmp_3); + s.sq___17000 = (r0); + r0 = (s.sq___17000 > 65536); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = (65536 / s.sq___17000); + s.tmp_1 = r0; + r0 = pxsim.Math_.sqrt(s.tmp_1); + s.scale___17015 = (r0); + s.tmp_0 = r0 = s.svxInCricle___16996; + s.tmp_3 = r0 = s.scale___17015; + r0 = pxsim_pxtrt_ldlocRef(s.svx___16960); + 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___16998; + s.tmp_3 = r0 = s.scale___17015; + r0 = pxsim_pxtrt_ldlocRef(s.svy___16961); + s.tmp_4 = r0; + r0 = (s.tmp_3 * s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + case 13: + case 14: + r0 = pxsim_pxtcore_mkAction(5, controller_Controller___preUpdate_inline__P17033); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___14604); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___16959); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___16960); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___16961); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___16996); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___16998); s.tmp_1 = helpers_arrayForEach__P109_mk(s); - s.tmp_1.arg0 = globals._scenePushHandlers___4702; + s.tmp_2 = controller_Controller__controlledSprites__P1983_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 262; 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 = 1220; s.pc = 9; return s.tmp_1; - case 9: + s.callLocIdx = 270; s.pc = 35; return s.tmp_1; + case 35: r0 = s.retval; - case 3: - case 4: + r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___16959); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + s.tmp_1 = controller_Controller__controlledSprites__P1984_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_2 = helpers_arrayFilter__P110_mk(s); + s.tmp_3 = controller_Controller__controlledSprites__P1983_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 271; s.pc = 39; return s.tmp_3; + case 39: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = controller_Controller___preUpdate_inline__P17090; + s.callLocIdx = 272; s.pc = 38; return s.tmp_2; + case 38: + r0 = s.retval; + s.tmp_1.arg1 = r0; + s.callLocIdx = 273; s.pc = 37; return s.tmp_1; + case 37: + r0 = s.retval; + case 15: + case 16: + case 17: r0 = undefined; return leave(s, r0) default: oops() } } } -game_pushScene__P2796.info = {"start":1660,"length":367,"line":62,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"pushScene","argumentNames":[]} +controller_Controller___preUpdate__P2005.info = {"start":9580,"length":2535,"line":301,"column":8,"endLine":365,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]} -function game_pushScene__P2796_mk(s) { +function controller_Controller___preUpdate__P2005_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_pushScene__P2796, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate__P2005, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - oldScene___14604: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + deadSprites___16959: undefined, + svx___16960: undefined, + svy___16961: undefined, + svxInCricle___16996: undefined, + svyInCircle___16998: undefined, + sq___17000: undefined, + scale___17015: undefined, + arg0: undefined, } } -function game_pushScene_inline__P14621(s) { +function controller_Controller___preUpdate_inline__P17033(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29267,29 +32264,167 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.s___17036 = undefined; + s.vx___17037 = undefined; + s.vy___17038 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = lambda_2_mk(s); - s.tmp_0.argL = s.arg0; - s.tmp_0.arg0 = s.caps[0]; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 1219; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_0 = if_s_1_mk(s); + s.tmp_1 = r0 = s.arg0; + s.tmp_0.arg0 = r0; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "s"); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["s"]; + if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["s"]; } + else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } + else { s.callLocIdx = 263; s.pc = 22; return s.tmp_0; } + } + case 22: + r0 = s.retval; + s.s___17036 = (r0); + s.tmp_2 = if_vx_1_mk(s); + s.tmp_2.arg0 = s.tmp_1; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "vx"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["vx"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["vx"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 264; s.pc = 23; return s.tmp_2; } + } + case 23: + r0 = s.retval; + s.vx___17037 = (r0); + s.tmp_3 = if_vy_1_mk(s); + s.tmp_3.arg0 = s.tmp_1; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "vy"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["vy"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["vy"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 265; s.pc = 24; return s.tmp_3; } + } + case 24: r0 = s.retval; + s.vy___17038 = (r0); + r0 = s.s___17036.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_pxtrt_stlocRef(s.caps[0], true); + { step = 21; continue; } + case 1: + case 2: + r0 = s.arg0.fields["_inputLastFrame"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = pxsim_numops_toBoolDecr(s.vx___17037); + if (!r0) { step = 3; continue; } + r0 = (s.s___17036).fields["_vx"] = (0); + case 3: + case 4: + r0 = pxsim_numops_toBoolDecr(s.vy___17038); + if (!r0) { step = 5; continue; } + r0 = (s.s___17036).fields["_vy"] = (0); + case 5: + case 6: + case 7: + case 8: + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } + case 9: + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + case 10: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 19; continue; } + s.tmp_2 = r0 = s.vx___17037; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 11; continue; } + r0 = s.tmp_2; + { step = 12; continue; } + case 11: + r0 = s.vy___17038; + 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___17036; + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + s.tmp_6 = r0; + r0 = pxsim.Math_.imul(s.tmp_6, s.vx___17037); + s.tmp_5 = r0; + r0 = (s.tmp_4).fields["_vx"] = (s.tmp_5); + s.tmp_0 = r0 = s.s___17036; + r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___17038); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); + { step = 18; continue; } + case 13: + r0 = pxsim_numops_toBoolDecr(s.vx___17037); + if (!r0) { step = 14; continue; } + s.tmp_0 = r0 = s.s___17036; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.vx___17037); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); + { step = 17; continue; } + case 14: + r0 = pxsim_numops_toBoolDecr(s.vy___17038); + if (!r0) { step = 15; continue; } + s.tmp_0 = r0 = s.s___17036; + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___17038); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); + case 15: + case 16: + case 17: + case 18: + r0 = (s.arg0).fields["_inputLastFrame"] = (true); + { step = 20; continue; } + case 19: + r0 = (s.arg0).fields["_inputLastFrame"] = (false); + case 20: + case 21: r0 = undefined; return leave(s, r0) default: oops() } } } -game_pushScene_inline__P14621.info = {"start":1991,"length":18,"line":71,"column":39,"endLine":71,"endColumn":57,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} +controller_Controller___preUpdate_inline__P17033.info = {"start":10763,"length":1171,"line":332,"column":44,"endLine":360,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} -function game_pushScene_inline__P14621_mk(s) { +function controller_Controller___preUpdate_inline__P17033_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_pushScene_inline__P14621, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate_inline__P17033, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + s___17036: undefined, + vx___17037: undefined, + vy___17038: undefined, arg0: undefined, } } @@ -29297,7 +32432,7 @@ function game_pushScene_inline__P14621_mk(s) { -function particles_disableAll__P2970(s) { +function controller_Controller___preUpdate_inline__P17090(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29307,46 +32442,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___14625 = undefined; - s.tmp_0 = particles_particleSources__P5049_mk(s); - s.callLocIdx = 1491; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.sources___14625 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___14625); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P109_mk(s); - s.tmp_0.arg0 = s.sources___14625; - s.tmp_0.arg1 = particles_disableAll_inline__P14631; - s.callLocIdx = 1493; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P5045_mk(s); - s.callLocIdx = 1494; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - case 1: - case 2: - r0 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0.fields["s"]; + r0 = r0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & 2); + 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() } } } -particles_disableAll__P2970.info = {"start":12370,"length":195,"line":402,"column":4,"endLine":408,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"disableAll","argumentNames":[]} +controller_Controller___preUpdate_inline__P17090.info = {"start":12061,"length":42,"line":364,"column":28,"endLine":364,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]} -function particles_disableAll__P2970_mk(s) { +function controller_Controller___preUpdate_inline__P17090_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_disableAll__P2970, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate_inline__P17090, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___14625: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, } } -function particles_disableAll_inline__P14631(s) { +function controller_Button_pressureLevel__P2044(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29360,24 +32488,58 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_enabled__P2952_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = false; - s.callLocIdx = 1492; s.pc = 1; return s.tmp_0; - case 1: + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C2032_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__C2032_v0_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C2032_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; + s.pc = 6; return s.tmp_3; + case 6: r0 = s.retval; - r0 = false; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 1; continue; } + r0 = 512; + { step = 2; continue; } + case 1: + r0 = 0; + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; + { step = 5; continue; } + { step = 4; continue; } + case 3: + r0 = s.arg0.fields["id"]; + s.tmp_5 = r0; + r0 = pxsim_pxtcore.pressureLevelByButtonId(s.tmp_5, -1); + { step = 5; continue; } + case 4: + r0 = undefined; + case 5: return leave(s, r0) default: oops() } } } -particles_disableAll_inline__P14631.info = {"start":12495,"length":22,"line":405,"column":28,"endLine":405,"endColumn":50,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +controller_Button_pressureLevel__P2044.info = {"start":6453,"length":311,"line":192,"column":8,"endLine":199,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"pressureLevel","argumentNames":["this"]} -function particles_disableAll_inline__P14631_mk(s) { +function controller_Button_pressureLevel__P2044_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_disableAll_inline__P14631, depth: s.depth + 1, + parent: s, fn: controller_Button_pressureLevel__P2044, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -29385,56 +32547,7 @@ function particles_disableAll_inline__P14631_mk(s) { -function particles_clearAll__P2969(s) { -let r0 = s.r0, 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___14636 = undefined; - s.tmp_0 = particles_particleSources__P5049_mk(s); - s.callLocIdx = 1487; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.sources___14636 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___14636); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P109_mk(s); - s.tmp_0.arg0 = s.sources___14636; - s.tmp_0.arg1 = particles_clearAll_inline__P14642; - s.callLocIdx = 1489; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P5045_mk(s); - s.callLocIdx = 1490; 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_clearAll__P2969.info = {"start":12098,"length":185,"line":391,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"clearAll","argumentNames":[]} - -function particles_clearAll__P2969_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_clearAll__P2969, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - sources___14636: undefined, -} } - - - - - -function particles_clearAll_inline__P14642(s) { +function controller_Controller_down__P1990(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29448,23 +32561,26 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_clear__P2954_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1488; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C1978_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; + s.tmp_0 = r0; + r0 = (4 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -particles_clearAll_inline__P14642.info = {"start":12221,"length":14,"line":394,"column":28,"endLine":394,"endColumn":42,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +controller_Controller_down__P1990.info = {"start":3234,"length":77,"line":121,"column":8,"endLine":123,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"down","argumentNames":["this"]} +controller_Controller_down__P1990.isGetter = true; -function particles_clearAll_inline__P14642_mk(s) { +function controller_Controller_down__P1990_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_clearAll_inline__P14642, depth: s.depth + 1, + parent: s, fn: controller_Controller_down__P1990, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -29472,7 +32588,7 @@ function particles_clearAll_inline__P14642_mk(s) { -function game_waitAnyButton__P2794(s) { +function controller_Controller_button__P4535(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29482,41 +32598,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.__waitAnyButton___4704); - if (!r0) { step = 1; continue; } - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.__waitAnyButton___4704; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 1209; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - { step = 2; continue; } - case 1: - s.tmp_0 = pause__P413_mk(s); - s.tmp_0.arg0 = 3000; - s.callLocIdx = 1210; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - case 2: - r0 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C1978_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; + s.tmp_0 = r0; + r0 = (s.arg1 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); return leave(s, r0) default: oops() } } } -game_waitAnyButton__P2794.info = {"start":967,"length":111,"line":35,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"waitAnyButton","argumentNames":[]} +controller_Controller_button__P4535.info = {"start":5580,"length":105,"line":191,"column":8,"endLine":193,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"button","argumentNames":["this","button"]} -function game_waitAnyButton__P2794_mk(s) { +function controller_Controller_button__P4535_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_waitAnyButton__P2794, depth: s.depth + 1, + parent: s, fn: controller_Controller_button__P4535, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, + arg1: undefined, } } -function game_GameOverDialog_update__P2779(s) { +function controller_Controller_up__P1989(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29531,40 +32645,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C2776_VT)) failedCast(r0); - s.tmp_0 = game_BaseDialog_clearInterior__P4675_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1202; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = game_GameOverDialog__C2776_v1_1_mk(s); - s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, game_GameOverDialog__C2776_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"]; + if (!checkSubtype(r0, controller_Controller__C1978_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = game_BaseDialog_drawCursorRow__P2753_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 1203; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - case 1: - case 2: - r0 = undefined; - return leave(s, r0) + r0 = (2 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -game_GameOverDialog_update__P2779.info = {"start":11515,"length":173,"line":352,"column":8,"endLine":359,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"update","argumentNames":["this"]} +controller_Controller_up__P1989.info = {"start":3082,"length":73,"line":113,"column":8,"endLine":115,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"up","argumentNames":["this"]} +controller_Controller_up__P1989.isGetter = true; -function game_GameOverDialog_update__P2779_mk(s) { +function controller_Controller_up__P1989_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_update__P2779, depth: s.depth + 1, + parent: s, fn: controller_Controller_up__P1989, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29575,7 +32671,7 @@ function game_GameOverDialog_update__P2779_mk(s) { -function game_BaseDialog_clearInterior__P4675(s) { +function controller_Controller_right__P1988(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29585,96 +32681,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.d___13487 = undefined; - s.s___13494 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2737_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__P4674_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 = 1196; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - { step = 7; continue; } - case 1: - case 2: - s.d___13487 = (1); - case 3: - s.tmp_1 = r0 = s.d___13487; - 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 = 6; continue; } - s.s___13494 = (1); - case 4: - s.tmp_1 = r0 = s.s___13494; - 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); + if (!checkSubtype(r0, controller_Controller__C1978_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_4 = game_BaseDialog_drawPartial__P4676_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = 4; - s.tmp_4.arg2 = s.d___13487; - s.tmp_4.arg3 = s.s___13494; - s.callLocIdx = 1197; s.pc = 9; return s.tmp_4; - case 9: - r0 = s.retval; - r0 = (s.s___13494 + 1); - s.s___13494 = (r0); - { step = 4; continue; } - case 5: - r0 = (s.d___13487 + 1); - s.d___13487 = (r0); - { step = 3; continue; } - case 6: - case 7: - r0 = undefined; - return leave(s, r0) + r0 = (3 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -game_BaseDialog_clearInterior__P4675.info = {"start":3942,"length":342,"line":133,"column":8,"endLine":142,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"clearInterior","argumentNames":["this"]} +controller_Controller_right__P1988.info = {"start":2926,"length":79,"line":105,"column":8,"endLine":107,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"right","argumentNames":["this"]} +controller_Controller_right__P1988.isGetter = true; -function game_BaseDialog_clearInterior__P4675_mk(s) { +function controller_Controller_right__P1988_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_clearInterior__P4675, depth: s.depth + 1, + parent: s, fn: controller_Controller_right__P1988, depth: s.depth + 1, pc: 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___13487: undefined, - s___13494: undefined, arg0: undefined, } } @@ -29682,7 +32712,7 @@ function game_BaseDialog_clearInterior__P4675_mk(s) { -function game_BaseDialog_drawPartial__P4676(s) { +function controller_Controller_left__P1987(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29692,125 +32722,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x0___13512 = undefined; - s.y0___13520 = undefined; - s.xf___13528 = undefined; - s.yf___13535 = undefined; - s.e___13542 = undefined; - s.t___13548 = 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__C2737_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___13512 = (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___13520 = (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___13528 = (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___13535 = (r0); - s.e___13542 = (0); - case 1: - r0 = s.arg0.fields["unit"]; - s.tmp_1 = r0; - r0 = (s.e___13542 < s.tmp_1); + if (!checkSubtype(r0, controller_Controller__C1978_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.t___13548 = (0); - case 2: - r0 = s.arg0.fields["unit"]; + r0 = (1 - 1); s.tmp_1 = r0; - r0 = (s.t___13548 < 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___13512 + s.e___13542); - s.tmp_3 = r0; - r0 = (s.y0___13520 + s.t___13548); - s.tmp_4 = r0; - r0 = s.arg0.fields["frame"]; - s.tmp_6 = r0; - r0 = (s.xf___13528 + s.e___13542); - s.tmp_7 = r0; - r0 = (s.yf___13535 + s.t___13548); - 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___13548 + 1); - s.t___13548 = (r0); - { step = 2; continue; } - case 3: - r0 = (s.e___13542 + 1); - s.e___13542 = (r0); - { step = 1; continue; } - case 4: - r0 = undefined; - return leave(s, r0) + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -game_BaseDialog_drawPartial__P4676.info = {"start":4294,"length":604,"line":144,"column":8,"endLine":159,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawPartial","argumentNames":["this","index","colTo","rowTo"]} +controller_Controller_left__P1987.info = {"start":2769,"length":77,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"left","argumentNames":["this"]} +controller_Controller_left__P1987.isGetter = true; -function game_BaseDialog_drawPartial__P4676_mk(s) { +function controller_Controller_left__P1987_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_drawPartial__P4676, depth: s.depth + 1, + parent: s, fn: controller_Controller_left__P1987, depth: s.depth + 1, pc: 0, retval: undefined, 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, - x0___13512: undefined, - y0___13520: undefined, - xf___13528: undefined, - yf___13535: undefined, - e___13542: undefined, - t___13548: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function game_BaseDialog_fastFill__P4674(s) { +function Fx_imul__P161(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29820,71 +32763,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.color___13584 = 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__C2737_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___13584 = (r0); - s.tmp_0 = helpers_imageFillRect__P1803_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___13584; - s.callLocIdx = 1195; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = pxsim.Math_.imul(s.arg0, s.arg1); return leave(s, r0) default: oops() } } } -game_BaseDialog_fastFill__P4674.info = {"start":3683,"length":249,"line":128,"column":8,"endLine":131,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"fastFill","argumentNames":["this","index","x","y","w","h"]} +Fx_imul__P161.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 game_BaseDialog_fastFill__P4674_mk(s) { +function Fx_imul__P161_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_fastFill__P4674, depth: s.depth + 1, + parent: s, fn: Fx_imul__P161, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - color___13584: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function game_GameOverDialog_drawTextCore__P2780(s) { +function power_checkDeepSleep__P1779(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29894,151 +32797,94 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scoreColor___13407 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C2776_VT)) failedCast(r0); - r0 = s.arg0.fields["win"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + s.p___16172 = undefined; + s.to___16175 = undefined; + s.tmp_0 = power_init__P4444_mk(s); + s.callLocIdx = 153; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = r0 = globals._poked___4442; + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = "YOU WIN!"; + r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = "GAME OVER!"; + r0 = 0; case 2: // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim_ImageMethods.isMono(globals.screen___1877); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.p___16172 = (s.tmp_1); + s.tmp_0 = r0 = globals._timeout___4443; + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = 1; + r0 = s.tmp_0; { step = 4; continue; } case 3: - r0 = 5; + r0 = 0; case 4: // jmp value (already in r0) - s.tmp_3 = r0; - s.tmp_4 = helpers_imagePrintCenter__P1834_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___1820; - s.callLocIdx = 1204; s.pc = 11; return s.tmp_4; - case 11: - r0 = s.retval; - r0 = s.arg0.fields["score"]; s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); + s.to___16175 = (s.tmp_1); + r0 = (s.to___16175 > 0); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = pxsim_ImageMethods.isMono(globals.screen___1877); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 5; continue; } - r0 = 1; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; { step = 6; continue; } case 5: - r0 = 2; + r0 = pxsim.control.millis(); + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.p___16172); + s.tmp_1 = r0; + r0 = (s.tmp_1 > s.to___16175); case 6: // jmp value (already in r0) s.tmp_3 = r0; - s.scoreColor___13407 = (s.tmp_3); - s.tmp_0 = helpers_imagePrintCenter__P1834_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___13407; - s.tmp_0.arg4 = globals.font8___1820; - s.callLocIdx = 1205; 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__P1834_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___13407; - s.tmp_1.arg4 = globals.font5___1825; - s.callLocIdx = 1206; s.pc = 14; return s.tmp_1; - case 14: - r0 = s.retval; + r0 = pxsim_numops_toBool(s.tmp_3); + if (r0) { step = 7; continue; } + r0 = s.tmp_3; { step = 8; continue; } case 7: - s.tmp_0 = helpers_imagePrintCenter__P1834_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___13407; - s.tmp_0.arg4 = globals.font8___1820; - s.callLocIdx = 1207; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; + r0 = pxsim.control.isUSBInitialized(); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); case 8: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 9; continue; } + r0 = pxsim_pxtcore.deepSleep(); case 9: case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -game_GameOverDialog_drawTextCore__P2780.info = {"start":11698,"length":1200,"line":361,"column":8,"endLine":398,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawTextCore","argumentNames":["this"]} +power_checkDeepSleep__P1779.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]} -function game_GameOverDialog_drawTextCore__P2780_mk(s) { +function power_checkDeepSleep__P1779_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_drawTextCore__P2780, depth: s.depth + 1, + parent: s, fn: power_checkDeepSleep__P1779, depth: s.depth + 1, pc: 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___13407: undefined, - arg0: undefined, + tmp_5: undefined, + tmp_6: undefined, + p___16172: undefined, + to___16175: undefined, } } -function helpers_imagePrintCenter__P1834(s) { +function power_init__P4444(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30048,92 +32894,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___13455 = undefined; - s.x___13461 = 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); + r0 = (globals._timeout___4443 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = image_getFontForText__P1822_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 138; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - s.arg4 = (r0); + { step = 7; continue; } case 1: case 2: - r0 = pxsim_String_.length(s.arg1); + r0 = pxsim_pxtcore.getConfig(212, -1); + s.tmp_1 = r0; + r0 = (s.tmp_1 * 1000); + globals._timeout___4443 = (r0); + r0 = (globals._timeout___4443 > 0); 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 = 139; s.pc = 4; return s.tmp_2; } - } + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + r0 = (globals._timeout___4443 < 300000); case 4: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0 * s.tmp_1); - s.w___13455 = (r0); - r0 = pxsim_ImageMethods.width(s.arg0); + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_1 - s.w___13455); - s.tmp_0 = r0; - r0 = (s.tmp_0 / 2); - s.x___13461 = (r0); - s.tmp_0 = helpers_imagePrint__P1835_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.x___13461; - 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 = 140; s.pc = 5; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 5; continue; } + globals._timeout___4443 = (300000); case 5: - r0 = s.retval; + case 6: + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_imagePrintCenter__P1834.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"]} +power_init__P4444.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]} -function helpers_imagePrintCenter__P1834_mk(s) { +function power_init__P4444_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrintCenter__P1834, depth: s.depth + 1, + parent: s, fn: power_init__P4444, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - w___13455: undefined, - x___13461: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function game_BaseDialog_drawCursorRow__P2753(s) { +function power_poke__P1778(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30143,125 +32951,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.offset___13302 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2737_VT)) failedCast(r0); - s.offset___13302 = (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; } - s.offset___13302 = (1); + s.tmp_0 = power_init__P4444_mk(s); + s.callLocIdx = 152; s.pc = 1; return s.tmp_0; case 1: - case 2: - 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_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__P4679_mk(s); - s.tmp_8.arg0 = s.arg0; - s.callLocIdx = 1176; 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___13302); - 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__P4680_mk(s); - s.tmp_19.arg0 = s.arg0; - s.callLocIdx = 1177; 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 = pxsim.control.millis(); + globals._poked___4442 = (r0); r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_drawCursorRow__P2753.info = {"start":1863,"length":479,"line":75,"column":8,"endLine":88,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawCursorRow","argumentNames":["this"]} +power_poke__P1778.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]} -function game_BaseDialog_drawCursorRow__P2753_mk(s) { +function power_poke__P1778_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_drawCursorRow__P2753, depth: s.depth + 1, + parent: s, fn: power_poke__P1778, depth: s.depth + 1, pc: 0, retval: undefined, 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___13302: undefined, - arg0: undefined, } } -function game_BaseDialog_textAreaHeight__P4680(s) { +function control_EventContext_deltaTime__P400(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30276,46 +32990,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2737_VT)) failedCast(r0); - r0 = s.arg0.fields["image"]; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_2); - s.tmp_1 = r0; - r0 = s.arg0.fields["innerTop"]; - s.tmp_5 = r0; - s.tmp_7 = Math_min__P131_mk(s); - r0 = s.arg0.fields["unit"]; - s.tmp_7.arg0 = r0; - s.tmp_7.arg1 = 12; - s.callLocIdx = 1199; s.pc = 1; return s.tmp_7; - case 1: - r0 = s.retval; - 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); + if (!checkSubtype(r0, control_EventContext__C395_VT)) failedCast(r0); + r0 = s.arg0.fields["deltaTimeMillis"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); - return leave(s, r0) + r0 = (s.tmp_0 / 1000); + return leaveAccessor(s, r0) default: oops() } } } -game_BaseDialog_textAreaHeight__P4680.info = {"start":5240,"length":143,"line":173,"column":8,"endLine":175,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"textAreaHeight","argumentNames":["this"]} +control_EventContext_deltaTime__P400.info = {"start":2135,"length":75,"line":71,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"deltaTime","argumentNames":["this"]} +control_EventContext_deltaTime__P400.isGetter = true; -function game_BaseDialog_textAreaHeight__P4680_mk(s) { +function control_EventContext_deltaTime__P400_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_textAreaHeight__P4680, depth: s.depth + 1, + parent: s, fn: control_EventContext_deltaTime__P400, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -30323,7 +33013,7 @@ function game_BaseDialog_textAreaHeight__P4680_mk(s) { -function game_BaseDialog_textAreaWidth__P4679(s) { +function scene_Scene_constructor__P2700(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30335,57 +33025,116 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2737_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; - s.tmp_7 = Math_min__P131_mk(s); - r0 = s.arg0.fields["unit"]; - s.tmp_7.arg0 = r0; - s.tmp_7.arg1 = 12; - s.callLocIdx = 1198; s.pc = 1; return s.tmp_7; + if (!checkSubtype(r0, scene_Scene__C2678_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__C2368_VT); + s.tmp_0 = r0; + s.tmp_1 = ArcadePhysicsEngine_constructor__P2369_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 = 1162; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - 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["physicsEngine"] = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_Camera__C2617_VT); s.tmp_0 = r0; - r0 = (s.tmp_0 - 2); + s.tmp_1 = scene_Camera_constructor__P2621_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 1163; 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__C2505_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_Background_constructor__P2509_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.arg0.fields["camera"]; + s.tmp_1.arg1 = r0; + s.callLocIdx = 1164; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + r0 = (s.arg0).fields["background"] = (s.tmp_0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["destroyedHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["createdHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["overlapHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtrt.mkMap(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["overlapMap"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["tileOverlapHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["collisionHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["wallCollisionHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["gameForeverHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtrt.mkMap(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["spritesByKind"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["controlledSprites"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["buttonEventHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtrt.mkMap(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_data"] = (s.tmp_1); + r0 = (s.arg0).fields["_millis"] = (0); + r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_textAreaWidth__P4679.info = {"start":5088,"length":142,"line":169,"column":8,"endLine":171,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"textAreaWidth","argumentNames":["this"]} +scene_Scene_constructor__P2700.info = {"start":3541,"length":836,"line":105,"column":8,"endLine":124,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","eventContext","previousScene"]} -function game_BaseDialog_textAreaWidth__P4679_mk(s) { +function scene_Scene_constructor__P2700_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_textAreaWidth__P4679, depth: s.depth + 1, + parent: s, fn: scene_Scene_constructor__P2700, depth: s.depth + 1, pc: 0, retval: undefined, 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 game_BaseDialog_cursorRowHeight__P4677(s) { +function scene_Camera_constructor__P2621(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30400,24 +33149,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2737_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); + if (!checkSubtype(r0, scene_Camera__C2617_VT)) failedCast(r0); + r0 = (s.arg0).fields["_offsetX"] = (0); + r0 = (s.arg0).fields["_offsetY"] = (0); + r0 = (s.arg0).fields["drawOffsetX"] = (0); + r0 = (s.arg0).fields["drawOffsetY"] = (0); + r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_cursorRowHeight__P4677.info = {"start":4908,"length":82,"line":161,"column":8,"endLine":163,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"cursorRowHeight","argumentNames":["this"]} +scene_Camera_constructor__P2621.info = {"start":456,"length":156,"line":15,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"inline","argumentNames":["this"]} -function game_BaseDialog_cursorRowHeight__P4677_mk(s) { +function scene_Camera_constructor__P2621_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_cursorRowHeight__P4677, depth: s.depth + 1, + parent: s, fn: scene_Camera_constructor__P2621, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -30425,7 +33172,7 @@ function game_BaseDialog_cursorRowHeight__P4677_mk(s) { -function game_GameOverDialog_displayCursor__P2778(s) { +function scene_Background_constructor__P2509(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30437,30 +33184,39 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C2776_VT)) failedCast(r0); - r0 = (s.arg0).fields["cursorOn"] = (true); + if (!checkSubtype(r0, scene_Background__C2505_VT)) failedCast(r0); + r0 = (s.arg0).fields["color"] = (0); + r0 = (s.arg0).fields["camera"] = (s.arg1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_layers"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -game_GameOverDialog_displayCursor__P2778.info = {"start":11444,"length":61,"line":348,"column":8,"endLine":350,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"displayCursor","argumentNames":["this"]} +scene_Background_constructor__P2509.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 game_GameOverDialog_displayCursor__P2778_mk(s) { +function scene_Background_constructor__P2509_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_displayCursor__P2778, depth: s.depth + 1, + parent: s, fn: scene_Background_constructor__P2509, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, + arg1: undefined, } } -function game_GameOverDialog_constructor__P2777(s) { +function ArcadePhysicsEngine_constructor__P2369(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30478,49 +33234,51 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverDialog__C2776_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__P2749_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C2368_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__C2287_VT); + s.tmp_0 = r0; + s.tmp_1 = sprites_SpriteMap_constructor__P2288_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 674; 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__P2371_mk(s); s.tmp_0.arg0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___1877); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 46; - s.tmp_1 = game_defaultSplashFrame__P4687_mk(s); - s.callLocIdx = 1200; s.pc = 2; return s.tmp_1; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 675; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = undefined; - s.tmp_0.arg5 = undefined; - s.callLocIdx = 1201; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_0 = ArcadePhysicsEngine_maxStep__P2375_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg3; + s.callLocIdx = 676; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = ArcadePhysicsEngine_minStep__P2373_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 677; s.pc = 4; return s.tmp_0; + case 4: 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; return leave(s, r0) default: oops() } } } -game_GameOverDialog_constructor__P2777.info = {"start":11128,"length":306,"line":338,"column":8,"endLine":346,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["this","win","score","highScore"]} +ArcadePhysicsEngine_constructor__P2369.info = {"start":1601,"length":277,"line":58,"column":4,"endLine":65,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","maxVelocity","minSingleStep","maxSingleStep"]} -function game_GameOverDialog_constructor__P2777_mk(s) { +function ArcadePhysicsEngine_constructor__P2369_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverDialog_constructor__P2777, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_constructor__P2369, depth: s.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, @@ -30531,7 +33289,7 @@ function game_GameOverDialog_constructor__P2777_mk(s) { -function game_defaultSplashFrame__P4687(s) { +function ArcadePhysicsEngine_maxStep__P2375(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30541,39 +33299,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_ImageMethods.isMono(globals.screen___1877); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.image.ofBuffer(_hex13627); - { step = 2; continue; } - case 1: - r0 = pxsim.image.ofBuffer(_hex13629); - case 2: - // jmp value (already in r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C2368_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_1; + r0 = (s.tmp_0).fields["maxSingleStep"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -game_defaultSplashFrame__P4687.info = {"start":17077,"length":220,"line":533,"column":4,"endLine":546,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultSplashFrame","argumentNames":[]} +ArcadePhysicsEngine_maxStep__P2375.info = {"start":2329,"length":67,"line":88,"column":4,"endLine":90,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this","v"]} -function game_defaultSplashFrame__P4687_mk(s) { +function ArcadePhysicsEngine_maxStep__P2375_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_defaultSplashFrame__P4687, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxStep__P2375, 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, } } -const _hex13627 = pxsim.BufferMethods.createBufferFromHex("8704030003000000010100000101000001010000") -const _hex13629 = pxsim.BufferMethods.createBufferFromHex("8704030003000000f1010000f1010000f1010000") -function game_BaseDialog_constructor__P2749(s) { +function ArcadePhysicsEngine_maxStep__P2374(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30585,189 +33346,36 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2737_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; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = globals.dialogFrame___4668; - 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__P4686_mk(s); - s.callLocIdx = 1170; s.pc = 13; return s.tmp_3; - case 13: - r0 = s.retval; - s.tmp_2 = r0; - globals.dialogFrame___4668 = (r0); - r0 = s.tmp_2; - 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); - if (!r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 5: - r0 = globals.font8___1820; - 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 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = s.tmp_0; - { step = 8; continue; } - case 7: - r0 = globals.dialogCursor___4669; - case 8: - // jmp value (already in r0) - s.tmp_1 = r0; - 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__P4688_mk(s); - s.callLocIdx = 1171; s.pc = 14; return s.tmp_3; - case 14: - r0 = s.retval; - s.tmp_2 = r0; - globals.dialogCursor___4669 = (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___4670 == undefined); + if (!checkSubtype(r0, ArcadePhysicsEngine__C2368_VT)) failedCast(r0); + r0 = s.arg0.fields["maxSingleStep"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - globals.dialogTextColor___4670 = (15); - r0 = 15; - { step = 12; continue; } - case 11: - r0 = globals.dialogTextColor___4670; - 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); + r0 = (s.tmp_0 + 128); 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__P4673_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1172; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_clearInterior__P4675_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1173; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) default: oops() } } } -game_BaseDialog_constructor__P2749.info = {"start":665,"length":895,"line":37,"column":8,"endLine":59,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["this","width","height","frame","font","cursor"]} +ArcadePhysicsEngine_maxStep__P2374.info = {"start":2249,"length":74,"line":84,"column":4,"endLine":86,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this"]} +ArcadePhysicsEngine_maxStep__P2374.isGetter = true; -function game_BaseDialog_constructor__P2749_mk(s) { +function ArcadePhysicsEngine_maxStep__P2374_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_constructor__P2749, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxStep__P2374, depth: s.depth + 1, pc: 0, retval: undefined, 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__P4688(s) { +function Fx_toInt__P172(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30777,39 +33385,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_ImageMethods.isMono(globals.screen___1877); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = (s.arg0 + 128); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.image.ofBuffer(_hex13813); - { step = 2; continue; } - case 1: - r0 = pxsim.image.ofBuffer(_hex13815); - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.tmp_1; + r0 = (s.tmp_0 >> 8); return leave(s, r0) default: oops() } } } -game_defaultCursorImage__P4688.info = {"start":17303,"length":690,"line":548,"column":4,"endLine":574,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultCursorImage","argumentNames":[]} +Fx_toInt__P172.info = {"start":2379,"length":86,"line":74,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]} -function game_defaultCursorImage__P4688_mk(s) { +function Fx_toInt__P172_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_defaultCursorImage__P4688, depth: s.depth + 1, + parent: s, fn: Fx_toInt__P172, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, + arg0: undefined, } } -const _hex13813 = pxsim.BufferMethods.createBufferFromHex("87040a000800000011111101010000010111010111100001011101010100000101000001100010000001010000100000") -const _hex13815 = pxsim.BufferMethods.createBufferFromHex("87040b000b00000000606686080000006076776686000000607777676608000076171111670800007671177766080000767117776608000076711777660800007617111167080000607777676608000060767766860000000060668608000000") -function game_defaultFrame__P4686(s) { +function ArcadePhysicsEngine_minStep__P2373(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30819,39 +33420,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_ImageMethods.isMono(globals.screen___1877); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.image.ofBuffer(_hex13819); - { step = 2; continue; } - case 1: - r0 = pxsim.image.ofBuffer(_hex13821); - case 2: - // jmp value (already in r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C2368_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_1; + r0 = (s.tmp_0).fields["minSingleStep"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -game_defaultFrame__P4686.info = {"start":16515,"length":556,"line":509,"column":4,"endLine":531,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultFrame","argumentNames":[]} +ArcadePhysicsEngine_minStep__P2373.info = {"start":2176,"length":67,"line":80,"column":4,"endLine":82,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this","v"]} -function game_defaultFrame__P4686_mk(s) { +function ArcadePhysicsEngine_minStep__P2373_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_defaultFrame__P4686, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_minStep__P2373, 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, } } -const _hex13819 = pxsim.BufferMethods.createBufferFromHex("8704030003000000110100000101000011010000") -const _hex13821 = pxsim.BufferMethods.createBufferFromHex("87040c000c0000000000000000000000b0bbbbbbbb0b0000b0bbbbbbbbcb0000b0db1111bdcb0000b01b1111b1cb0000b01b1111b1cb0000b01b1111b1cb0000b01b1111b1cb0000b0db1111bdcb0000b0bbbbbbbbcb0000b0bbbbbbbbcb000000cccccccccc0000") -function game_BaseDialog_drawBorder__P4673(s) { +function ArcadePhysicsEngine_minStep__P2372(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30861,271 +33465,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.y___13744 = undefined; - s.c___13760 = undefined; - s.r___13794 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2737_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__P4674_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 = 1179; s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P4674_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 = 1180; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P4674_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 = 1181; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P4674_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 = 1182; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P4674_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 = 1183; 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___13744 = (r0); - s.tmp_0 = game_BaseDialog_fastFill__P4674_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 6; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = s.y___13744; - s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = 1; - s.callLocIdx = 1184; s.pc = 17; return s.tmp_0; - case 17: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P4674_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 7; - s.tmp_0.arg2 = 1; - s.tmp_0.arg3 = s.y___13744; - 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 = 1185; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_fastFill__P4674_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___13744; - s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = 1; - s.callLocIdx = 1186; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - { step = 11; continue; } - case 1: - case 2: - s.c___13760 = (0); - case 3: - r0 = s.arg0.fields["columns"]; - s.tmp_1 = r0; - r0 = (s.c___13760 < s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - r0 = (s.c___13760 == 0); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 4; continue; } - s.tmp_3 = game_BaseDialog_drawPartial__P4676_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 = 1187; s.pc = 20; return s.tmp_3; - case 20: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_drawPartial__P4676_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 = 1188; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - { step = 7; continue; } - case 4: - s.tmp_1 = r0 = s.c___13760; - 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__P4676_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = 2; - s.tmp_4.arg2 = s.c___13760; - s.tmp_4.arg3 = 0; - s.callLocIdx = 1189; s.pc = 22; return s.tmp_4; - case 22: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_drawPartial__P4676_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 8; - s.tmp_0.arg2 = s.c___13760; - r0 = s.arg0.fields["rows"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg3 = r0; - s.callLocIdx = 1190; s.pc = 23; return s.tmp_0; - case 23: - r0 = s.retval; - { step = 6; continue; } - case 5: - s.tmp_0 = game_BaseDialog_drawPartial__P4676_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = s.c___13760; - s.tmp_0.arg3 = 0; - s.callLocIdx = 1191; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_drawPartial__P4676_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 7; - s.tmp_0.arg2 = s.c___13760; - r0 = s.arg0.fields["rows"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg3 = r0; - s.callLocIdx = 1192; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - case 6: - case 7: - r0 = (s.c___13760 + 1); - s.c___13760 = (r0); - { step = 3; continue; } - case 8: - s.r___13794 = (1); - case 9: - s.tmp_1 = r0 = s.r___13794; - 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); + if (!checkSubtype(r0, ArcadePhysicsEngine__C2368_VT)) failedCast(r0); + r0 = s.arg0.fields["minSingleStep"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - s.tmp_4 = game_BaseDialog_drawPartial__P4676_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = 3; - s.tmp_4.arg2 = 0; - s.tmp_4.arg3 = s.r___13794; - s.callLocIdx = 1193; s.pc = 26; return s.tmp_4; - case 26: - r0 = s.retval; - s.tmp_0 = game_BaseDialog_drawPartial__P4676_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 5; - r0 = s.arg0.fields["columns"]; + r0 = (s.tmp_0 + 128); s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.r___13794; - s.callLocIdx = 1194; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - r0 = (s.r___13794 + 1); - s.r___13794 = (r0); - { step = 9; continue; } - case 10: - case 11: - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) default: oops() } } } -game_BaseDialog_drawBorder__P4673.info = {"start":2352,"length":1321,"line":90,"column":8,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawBorder","argumentNames":["this"]} +ArcadePhysicsEngine_minStep__P2372.info = {"start":2096,"length":74,"line":76,"column":4,"endLine":78,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this"]} +ArcadePhysicsEngine_minStep__P2372.isGetter = true; -function game_BaseDialog_drawBorder__P4673_mk(s) { +function ArcadePhysicsEngine_minStep__P2372_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_drawBorder__P4673, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_minStep__P2372, depth: s.depth + 1, pc: 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___13744: undefined, - c___13760: undefined, - r___13794: undefined, arg0: undefined, } } @@ -31133,7 +33496,7 @@ function game_BaseDialog_drawBorder__P4673_mk(s) { -function scene_Scene_destroy__P2705(s) { +function ArcadePhysicsEngine_maxSpeed__P2371(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31145,46 +33508,46 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C2678_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); + if (!checkSubtype(r0, ArcadePhysicsEngine__C2368_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() } } } -scene_Scene_destroy__P2705.info = {"start":7254,"length":764,"line":203,"column":8,"endLine":221,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"destroy","argumentNames":["this"]} +ArcadePhysicsEngine_maxSpeed__P2371.info = {"start":1963,"length":127,"line":71,"column":4,"endLine":74,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this","v"]} -function scene_Scene_destroy__P2705_mk(s) { +function ArcadePhysicsEngine_maxSpeed__P2371_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_destroy__P2705, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P2371, 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 info_highScore__P2404(s) { +function Fx_neg__P155(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31194,42 +33557,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_1 = settings_readNumber__P1913_mk(s); - s.tmp_1.arg0 = "high-score"; - s.callLocIdx = 936; 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; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = (0 - s.arg0); return leave(s, r0) default: oops() } } } -info_highScore__P2404.info = {"start":7816,"length":98,"line":263,"column":4,"endLine":265,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"highScore","argumentNames":[]} +Fx_neg__P155.info = {"start":311,"length":88,"line":14,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"neg","argumentNames":["a"]} -function info_highScore__P2404_mk(s) { +function Fx_neg__P155_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_highScore__P2404, depth: s.depth + 1, + parent: s, fn: Fx_neg__P155, 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 settings_readNumber__P1913(s) { +function ArcadePhysicsEngine_maxSpeed__P2370(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31239,69 +33589,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___14965 = undefined; - s.nums___14972 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim.settings._get(s.arg0); - s.buf___14965 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___14965); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C2368_VT)) failedCast(r0); + r0 = s.arg0.fields["maxVelocity"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = undefined; - { step = 7; continue; } - { step = 6; continue; } - case 1: - s.tmp_2 = msgpack_unpackNumberArray__P183_mk(s); - s.tmp_2.arg0 = s.buf___14965; - s.tmp_2.arg1 = 0; - s.callLocIdx = 174; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - s.nums___14972 = (r0); - s.tmp_0 = r0 = s.nums___14972; - 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___14972); + r0 = (s.tmp_0 + 128); s.tmp_1 = r0; - r0 = (s.tmp_1 >= 1); - case 3: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.nums___14972, 0); - { step = 7; continue; } - case 4: - case 5: - r0 = undefined; - { step = 7; continue; } - case 6: - r0 = undefined; - case 7: - return leave(s, r0) + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) default: oops() } } } -settings_readNumber__P1913.info = {"start":3283,"length":313,"line":131,"column":4,"endLine":141,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readNumber","argumentNames":["key"]} +ArcadePhysicsEngine_maxSpeed__P2370.info = {"start":1884,"length":73,"line":67,"column":4,"endLine":69,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this"]} +ArcadePhysicsEngine_maxSpeed__P2370.isGetter = true; -function settings_readNumber__P1913_mk(s) { +function ArcadePhysicsEngine_maxSpeed__P2370_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readNumber__P1913, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P2370, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - buf___14965: undefined, - nums___14972: undefined, arg0: undefined, } } @@ -31309,7 +33620,7 @@ function settings_readNumber__P1913_mk(s) { -function settings_readBuffer__P1910(s) { +function PhysicsEngine_constructor__P2353(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31323,16 +33634,18 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim.settings._get(s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C2352_VT)) failedCast(r0); + r0 = undefined; return leave(s, r0) default: oops() } } } -settings_readBuffer__P1910.info = {"start":2694,"length":72,"line":103,"column":4,"endLine":105,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readBuffer","argumentNames":["key"]} +PhysicsEngine_constructor__P2353.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]} -function settings_readBuffer__P1910_mk(s) { +function PhysicsEngine_constructor__P2353_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readBuffer__P1910, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_constructor__P2353, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -31341,7 +33654,7 @@ function settings_readBuffer__P1910_mk(s) { -function msgpack_unpackNumberArray__P183(s) { +function sprites_SpriteMap_constructor__P2288(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31351,120 +33664,103 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___14985 = undefined; - s.fmt___14992 = undefined; - s.v___15001 = 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__C2287_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); - s.res___14985 = (r0); - case 1: - s.tmp_1 = r0 = s.arg1; - r0 = pxsim.BufferMethods.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - s.tmp_3 = r0 = s.arg1; - r0 = (s.tmp_3 + 1); - s.arg1 = (r0); - s.tmp_4 = msgpack_tagFormat__P4265_mk(s); - r0 = pxsim.BufferMethods.getByte(s.arg0, s.tmp_3); - s.tmp_4.arg0 = r0; - s.callLocIdx = 24; s.pc = 12; return s.tmp_4; - case 12: - r0 = s.retval; - s.fmt___14992 = (r0); - r0 = (s.fmt___14992 === null); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["buckets"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +sprites_SpriteMap_constructor__P2288.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__P2288_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_SpriteMap_constructor__P2288, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function control_pushEventContext__P409(s) { +let r0 = s.r0, 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___17246 = undefined; + s.n___17252 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___4369); + s.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; } - s.tmp_1 = r0 = s.arg0; - r0 = (s.arg1 - 1); - s.tmp_2 = r0; - r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 6, s.tmp_2); - s.v___15001 = (r0); - r0 = (-31 <= s.v___15001); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 2; continue; } - r0 = s.tmp_0; - { step = 3; continue; } + if (!r0) { step = 1; continue; } + r0 = pxsim_Array__mk(); + globals.eventContexts___4369 = (r0); + case 1: case 2: - r0 = (s.v___15001 <= 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___14985, s.v___15001); - { step = 5; continue; } - case 4: - r0 = null; - { step = 11; continue; } + s.tmp_0 = control_eventContext__P408_mk(s); + s.callLocIdx = 65; s.pc = 5; return s.tmp_0; case 5: - { step = 7; continue; } + r0 = s.retval; + s.ctx___17246 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___17246); + if (!r0) { step = 3; continue; } + s.tmp_0 = control_EventContext_unregister__P402_mk(s); + s.tmp_0.arg0 = s.ctx___17246; + s.callLocIdx = 66; s.pc = 6; return s.tmp_0; case 6: - s.tmp_0 = r0 = s.res___14985; - r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___14992, 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__P175_mk(s); - s.tmp_2.arg0 = s.fmt___14992; - s.callLocIdx = 25; s.pc = 13; return s.tmp_2; - case 13: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.arg1 = (r0); - case 7: - case 8: - r0 = pxsim.BufferMethods.getByte(s.arg0, s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_1 === 193); + case 3: + case 4: + r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C395_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = (s.arg1 + 1); - s.arg1 = (r0); - { step = 8; continue; } - case 9: - { step = 1; continue; } - case 10: - r0 = s.res___14985; - case 11: + s.tmp_1 = control_EventContext_constructor__P399_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 67; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + s.n___17252 = (s.tmp_0); + r0 = pxsim_Array__push(globals.eventContexts___4369, s.n___17252); + r0 = s.n___17252; return leave(s, r0) default: oops() } } } -msgpack_unpackNumberArray__P183.info = {"start":2650,"length":669,"line":91,"column":4,"endLine":111,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"unpackNumberArray","argumentNames":["buf","offset"]} +control_pushEventContext__P409.info = {"start":7310,"length":340,"line":220,"column":4,"endLine":231,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]} -function msgpack_unpackNumberArray__P183_mk(s) { +function control_pushEventContext__P409_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_unpackNumberArray__P183, depth: s.depth + 1, + parent: s, fn: control_pushEventContext__P409, depth: s.depth + 1, pc: 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___14985: undefined, - fmt___14992: undefined, - v___15001: undefined, - arg0: undefined, - arg1: undefined, + ctx___17246: undefined, + n___17252: undefined, } } -function msgpack_tagFormat__P4265(s) { +function control_EventContext_constructor__P399(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31478,60 +33774,40 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C395_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtcore.switch_eq(203, s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq(204, s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq(205, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(206, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(208, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(209, s.tmp_0); - if (r0) { step = 6; continue; } - r0 = pxsim_pxtcore.switch_eq(210, s.tmp_0); - if (r0) { step = 7; continue; } - r0 = s.tmp_0; - { step = 8; continue; } + 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___397); + s.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___397 = (r0); case 1: - r0 = 16; - { step = 9; continue; } case 2: - r0 = 7; - { step = 9; continue; } - case 3: - r0 = 9; - { step = 9; continue; } - case 4: - r0 = 12; - { step = 9; continue; } - case 5: - r0 = 6; - { step = 9; continue; } - case 6: - r0 = 8; - { step = 9; continue; } - case 7: - r0 = 10; - { step = 9; continue; } - case 8: - r0 = null; - { step = 9; continue; } r0 = undefined; - case 9: return leave(s, r0) default: oops() } } } -msgpack_tagFormat__P4265.info = {"start":1145,"length":481,"line":42,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"tagFormat","argumentNames":["tag"]} +control_EventContext_constructor__P399.info = {"start":1778,"length":347,"line":59,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} -function msgpack_tagFormat__P4265_mk(s) { +function control_EventContext_constructor__P399_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_tagFormat__P4265, depth: s.depth + 1, + parent: s, fn: control_EventContext_constructor__P399, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -31539,7 +33815,7 @@ function msgpack_tagFormat__P4265_mk(s) { -function pins_sizeOf__P175(s) { +function particles_disableAll__P2970(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31549,34 +33825,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = Buffer_sizeOfNumberFormat__P215_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 21; s.pc = 1; return s.tmp_0; - case 1: + s.sources___17430 = undefined; + s.tmp_0 = particles_particleSources__P5089_mk(s); + s.callLocIdx = 1582; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.sources___17430 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___17430); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayForEach__P109_mk(s); + s.tmp_0.arg0 = s.sources___17430; + s.tmp_0.arg1 = particles_disableAll_inline__P17436; + s.callLocIdx = 1584; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = particles_pruneParticles__P5085_mk(s); + s.callLocIdx = 1585; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -pins_sizeOf__P175.info = {"start":42,"length":101,"line":2,"column":4,"endLine":4,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOf","argumentNames":["format"]} +particles_disableAll__P2970.info = {"start":12370,"length":195,"line":402,"column":4,"endLine":408,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"disableAll","argumentNames":[]} -function pins_sizeOf__P175_mk(s) { +function particles_disableAll__P2970_mk(s) { checkStack(s.depth); return { - parent: s, fn: pins_sizeOf__P175, depth: s.depth + 1, + parent: s, fn: particles_disableAll__P2970, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + sources___17430: undefined, } } -function Buffer_sizeOfNumberFormat__P215(s) { +function particles_disableAll_inline__P17436(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31590,77 +33878,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq(6, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(7, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); - if (r0) { step = 6; continue; } - r0 = pxsim_pxtcore.switch_eq(8, s.tmp_0); - if (r0) { step = 7; continue; } - r0 = pxsim_pxtcore.switch_eq(9, s.tmp_0); - if (r0) { step = 8; continue; } - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 9; continue; } - r0 = pxsim_pxtcore.switch_eq(10, s.tmp_0); - if (r0) { step = 10; continue; } - r0 = pxsim_pxtcore.switch_eq(12, s.tmp_0); - if (r0) { step = 11; continue; } - r0 = pxsim_pxtcore.switch_eq(11, s.tmp_0); - if (r0) { step = 12; continue; } - r0 = pxsim_pxtcore.switch_eq(15, s.tmp_0); - if (r0) { step = 13; continue; } - r0 = pxsim_pxtcore.switch_eq(13, s.tmp_0); - if (r0) { step = 14; continue; } - r0 = pxsim_pxtcore.switch_eq(16, s.tmp_0); - if (r0) { step = 15; continue; } - r0 = pxsim_pxtcore.switch_eq(14, s.tmp_0); - if (r0) { step = 16; continue; } - r0 = s.tmp_0; - { step = 17; continue; } + s.tmp_0 = particles_ParticleSource_enabled__P2952_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = false; + s.callLocIdx = 1583; s.pc = 1; return s.tmp_0; case 1: - case 2: - case 3: - case 4: - r0 = 1; - { step = 18; continue; } - case 5: - case 6: - case 7: - case 8: - r0 = 2; - { step = 18; continue; } - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - r0 = 4; - { step = 18; continue; } - case 15: - case 16: - r0 = 8; - { step = 18; continue; } - case 17: - r0 = 0; - case 18: + r0 = s.retval; + r0 = false; return leave(s, r0) default: oops() } } } -Buffer_sizeOfNumberFormat__P215.info = {"start":14912,"length":856,"line":508,"column":4,"endLine":532,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOfNumberFormat","argumentNames":["format"]} +particles_disableAll_inline__P17436.info = {"start":12495,"length":22,"line":405,"column":28,"endLine":405,"endColumn":50,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function Buffer_sizeOfNumberFormat__P215_mk(s) { +function particles_disableAll_inline__P17436_mk(s) { checkStack(s.depth); return { - parent: s, fn: Buffer_sizeOfNumberFormat__P215, depth: s.depth + 1, + parent: s, fn: particles_disableAll_inline__P17436, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -31670,7 +33903,7 @@ function Buffer_sizeOfNumberFormat__P215_mk(s) { -function info_saveHighScore__P2401(s) { +function particles_clearAll__P2969(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31680,84 +33913,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hs___14785 = undefined; - s.curr___14804 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.players___4580); - if (!r0) { step = 5; continue; } - r0 = pxsim_pxtrt.mklocRef(); - s.hs___14785 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.hs___14785, 0); - r0 = pxsim_pxtcore_mkAction(1, info_saveHighScore_inline__P14796); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.hs___14785); - s.tmp_1 = helpers_arrayForEach__P109_mk(s); - s.tmp_2 = helpers_arrayFilter__P110_mk(s); - s.tmp_2.arg0 = globals.players___4580; - s.tmp_2.arg1 = forEach_inline__P14789; - s.callLocIdx = 930; s.pc = 8; return s.tmp_2; - case 8: + s.sources___17441 = undefined; + s.tmp_0 = particles_particleSources__P5089_mk(s); + s.callLocIdx = 1578; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 933; s.pc = 7; return s.tmp_1; - case 7: + s.sources___17441 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___17441); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayForEach__P109_mk(s); + s.tmp_0.arg0 = s.sources___17441; + s.tmp_0.arg1 = particles_clearAll_inline__P17447; + s.callLocIdx = 1580; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - s.tmp_0 = settings_readNumber__P1913_mk(s); - s.tmp_0.arg0 = "high-score"; - s.callLocIdx = 934; s.pc = 9; return s.tmp_0; - case 9: + s.tmp_0 = particles_pruneParticles__P5085_mk(s); + s.callLocIdx = 1581; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; - s.curr___14804 = (r0); - r0 = (s.curr___14804 == 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___14785); - s.tmp_1 = r0; - r0 = (s.tmp_1 > s.curr___14804); 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__P1908_mk(s); - s.tmp_3.arg0 = "high-score"; - r0 = pxsim_pxtrt_ldlocRef(s.hs___14785); - s.tmp_3.arg1 = r0; - s.callLocIdx = 935; s.pc = 10; return s.tmp_3; - case 10: - r0 = s.retval; - case 3: - case 4: - case 5: - case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -info_saveHighScore__P2401.info = {"start":6897,"length":393,"line":227,"column":4,"endLine":237,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"saveHighScore","argumentNames":[]} +particles_clearAll__P2969.info = {"start":12098,"length":185,"line":391,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"clearAll","argumentNames":[]} -function info_saveHighScore__P2401_mk(s) { +function particles_clearAll__P2969_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_saveHighScore__P2401, depth: s.depth + 1, + parent: s, fn: particles_clearAll__P2969, depth: s.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___14785: undefined, - curr___14804: undefined, + sources___17441: undefined, } } -function forEach_inline__P14789(s) { +function particles_clearAll_inline__P17447(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31771,35 +33966,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_0 = particles_ParticleSource_clear__P2954_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1579; s.pc = 1; return s.tmp_0; case 1: - s.tmp_1 = info_PlayerInfoImpl_hasScore__P2446_mk(s); - r0 = s.arg0.fields["impl"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 929; s.pc = 3; return s.tmp_1; - case 3: r0 = s.retval; - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.tmp_2; + r0 = undefined; return leave(s, r0) default: oops() } } } -forEach_inline__P14789.info = {"start":7022,"length":27,"line":231,"column":24,"endLine":231,"endColumn":51,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} +particles_clearAll_inline__P17447.info = {"start":12221,"length":14,"line":394,"column":28,"endLine":394,"endColumn":42,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function forEach_inline__P14789_mk(s) { +function particles_clearAll_inline__P17447_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P14789, depth: s.depth + 1, + parent: s, fn: particles_clearAll_inline__P17447, 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, } } @@ -31807,7 +33990,7 @@ function forEach_inline__P14789_mk(s) { -function info_saveHighScore_inline__P14796(s) { +function game_Dialog_setText__P2763(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31819,47 +34002,55 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.caps[0]; - s.tmp_2 = Math_max__P130_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_2.arg0 = r0; - s.tmp_3 = info_PlayerInfoImpl_score__P2443_mk(s); - r0 = s.arg0.fields["impl"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 931; s.pc = 2; return s.tmp_3; + r0 = s.arg0; + if (!checkSubtype(r0, game_Dialog__C2754_VT)) failedCast(r0); + s.tmp_0 = game_BaseDialog_setFont__P4721_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = image_getFontForText__P1822_mk(s); + s.tmp_1.arg0 = s.arg1; + s.callLocIdx = 1245; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - s.tmp_2.arg1 = r0; - s.callLocIdx = 932; s.pc = 1; return s.tmp_2; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1246; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = game_Dialog_chunkText__P2762_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.arg1; + s.callLocIdx = 1247; s.pc = 3; return s.tmp_2; + case 3: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = s.tmp_1; + r0 = (s.tmp_0).fields["chunks"] = (s.tmp_1); + r0 = (s.arg0).fields["chunkIndex"] = (0); + r0 = undefined; return leave(s, r0) default: oops() } } } -info_saveHighScore_inline__P14796.info = {"start":7076,"length":38,"line":232,"column":25,"endLine":232,"endColumn":63,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} +game_Dialog_setText__P2763.info = {"start":7073,"length":183,"line":228,"column":8,"endLine":232,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"setText","argumentNames":["this","rawString"]} -function info_saveHighScore_inline__P14796_mk(s) { +function game_Dialog_setText__P2763_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_saveHighScore_inline__P14796, depth: s.depth + 1, + parent: s, fn: game_Dialog_setText__P2763, depth: s.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 settings_writeNumber__P1908(s) { +function game_BaseDialog_setFont__P4721(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31874,34 +34065,20 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg1); - s.tmp_1 = settings_writeBuffer__P1905_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_2 = msgpack_packNumberArray__P184_mk(s); - s.tmp_2.arg0 = s.tmp_0; - s.callLocIdx = 170; s.pc = 2; return s.tmp_2; - case 2: - r0 = s.retval; - s.tmp_1.arg1 = r0; - s.callLocIdx = 171; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C2737_VT)) failedCast(r0); + r0 = (s.arg0).fields["font"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -settings_writeNumber__P1908.info = {"start":2265,"length":122,"line":89,"column":4,"endLine":91,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeNumber","argumentNames":["key","value"]} +game_BaseDialog_setFont__P4721.info = {"start":5393,"length":77,"line":177,"column":8,"endLine":179,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"setFont","argumentNames":["this","font"]} -function settings_writeNumber__P1908_mk(s) { +function game_BaseDialog_setFont__P4721_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeNumber__P1908, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_setFont__P4721, 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, } } @@ -31910,7 +34087,7 @@ function settings_writeNumber__P1908_mk(s) { -function settings_writeBuffer__P1905(s) { +function game_Dialog_chunkText__P2762(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31920,151 +34097,165 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.charactersPerRow___15334 = undefined; + s.charactersPerCursorRow___15343 = undefined; + s.rowsOfCharacters___15355 = undefined; + s.rowsWithCursor___15362 = undefined; + s.lineLengths___15370 = undefined; + s.i___15372 = undefined; + s.i___15385 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim.settings._set(s.arg0, s.arg1); + r0 = s.arg0; + if (!checkSubtype(r0, game_Dialog__C2754_VT)) failedCast(r0); + s.tmp_2 = game_BaseDialog_textAreaWidth__P4719_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1238; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; + s.tmp_1 = r0; + s.tmp_4 = if_charWidth_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_4.arg0 = r0; + 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 = 1239; s.pc = 6; return s.tmp_4; } + } + case 6: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_1 / s.tmp_3); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.settings._userClean(); - r0 = pxsim_pxtrt.panic(920); - case 1: - case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -settings_writeBuffer__P1905.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__P1905_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: settings_writeBuffer__P1905, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function msgpack_packNumberArray__P184(s) { -let r0 = s.r0, 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.off___14825 = undefined; - s.n___14827 = undefined; - s.unnamed58___U2 = undefined; - s.unnamed59___U3 = undefined; - s.buf___14837 = undefined; - s.n___14843 = undefined; - s.unnamed60___U6 = undefined; - s.unnamed61___U7 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; + r0 = pxsim.Math_.floor(s.tmp_0); + s.charactersPerRow___15334 = (r0); + s.tmp_1 = r0 = s.charactersPerRow___15334; + r0 = s.arg0.fields["cursor"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_4); + s.tmp_3 = r0; + s.tmp_6 = if_charWidth_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_6.arg0 = r0; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "charWidth"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["charWidth"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["charWidth"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 1240; s.pc = 7; return s.tmp_6; } } - s.off___14825 = (0); - s.n___14827 = (undefined); - s.unnamed58___U2 = (s.arg0); - s.unnamed59___U3 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed59___U3; - r0 = pxsim_Array__length(s.unnamed58___U2); + case 7: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_3 / s.tmp_5); + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim.Math_.floor(s.tmp_0); + s.charactersPerCursorRow___15343 = (r0); + s.tmp_2 = game_BaseDialog_textAreaHeight__P4720_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1241; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed58___U2, s.unnamed59___U3); - s.n___14827 = (r0); - s.tmp_2 = r0 = s.off___14825; - s.tmp_4 = msgpack_packNumberCore__P4266_mk(s); - s.tmp_4.arg0 = null; - s.tmp_4.arg1 = s.off___14825; - s.tmp_4.arg2 = s.n___14827; - s.callLocIdx = 26; s.pc = 5; return s.tmp_4; - case 5: + s.tmp_4 = game_BaseDialog_rowHeight__P4718_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 1242; s.pc = 9; return s.tmp_4; + case 9: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.off___14825 = (r0); - r0 = (s.unnamed59___U3 + 1); - s.unnamed59___U3 = (r0); + r0 = (s.tmp_1 / s.tmp_3); + s.tmp_0 = r0; + r0 = pxsim.Math_.floor(s.tmp_0); + s.rowsOfCharacters___15355 = (r0); + r0 = s.arg0.fields["cursor"]; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_2); + s.tmp_1 = r0; + s.tmp_4 = game_BaseDialog_rowHeight__P4718_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 1243; s.pc = 10; return s.tmp_4; + case 10: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_1 / s.tmp_3); + s.tmp_0 = r0; + r0 = pxsim.Math_.ceil(s.tmp_0); + s.rowsWithCursor___15362 = (r0); + r0 = pxsim_Array__mk(); + s.lineLengths___15370 = (r0); + s.i___15372 = (0); + case 1: + s.tmp_1 = r0 = s.i___15372; + r0 = (s.rowsOfCharacters___15355 - s.rowsWithCursor___15362); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__push(s.lineLengths___15370, s.charactersPerRow___15334); + r0 = (s.i___15372 + 1); + s.i___15372 = (r0); { step = 1; continue; } case 2: - s.unnamed58___U2 = (undefined); - r0 = pxsim.control.createBuffer(s.off___14825); - s.buf___14837 = (r0); - s.off___14825 = (0); - s.n___14843 = (undefined); - s.unnamed60___U6 = (s.arg0); - s.unnamed61___U7 = (0); + s.i___15385 = (0); case 3: - s.tmp_0 = r0 = s.unnamed61___U7; - r0 = pxsim_Array__length(s.unnamed60___U6); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); + r0 = (s.i___15385 < s.rowsWithCursor___15362); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed60___U6, s.unnamed61___U7); - s.n___14843 = (r0); - s.tmp_2 = r0 = s.off___14825; - s.tmp_4 = msgpack_packNumberCore__P4266_mk(s); - s.tmp_4.arg0 = s.buf___14837; - s.tmp_4.arg1 = s.off___14825; - s.tmp_4.arg2 = s.n___14843; - s.callLocIdx = 27; 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___14825 = (r0); - r0 = (s.unnamed61___U7 + 1); - s.unnamed61___U7 = (r0); + r0 = pxsim_Array__push(s.lineLengths___15370, s.charactersPerCursorRow___15343); + r0 = (s.i___15385 + 1); + s.i___15385 = (r0); { step = 3; continue; } case 4: - s.unnamed60___U6 = (undefined); - r0 = s.buf___14837; + s.tmp_0 = game_breakIntoPages__P4730_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.lineLengths___15370; + s.callLocIdx = 1244; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; return leave(s, r0) default: oops() } } } -msgpack_packNumberArray__P184.info = {"start":3427,"length":330,"line":117,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"packNumberArray","argumentNames":["nums"]} +game_Dialog_chunkText__P2762.info = {"start":6328,"length":735,"line":214,"column":8,"endLine":226,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"chunkText","argumentNames":["this","str"]} -function msgpack_packNumberArray__P184_mk(s) { +function game_Dialog_chunkText__P2762_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberArray__P184, depth: s.depth + 1, + parent: s, fn: game_Dialog_chunkText__P2762, depth: s.depth + 1, pc: 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___14825: undefined, - n___14827: undefined, - unnamed58___U2: undefined, - unnamed59___U3: undefined, - buf___14837: undefined, - n___14843: undefined, - unnamed60___U6: undefined, - unnamed61___U7: undefined, + tmp_5: undefined, + tmp_6: undefined, + charactersPerRow___15334: undefined, + charactersPerCursorRow___15343: undefined, + rowsOfCharacters___15355: undefined, + rowsWithCursor___15362: undefined, + lineLengths___15370: undefined, + i___15372: undefined, + i___15385: undefined, arg0: undefined, + arg1: undefined, } } -function msgpack_packNumberCore__P4266(s) { +function game_breakIntoPages__P4730(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32074,133 +34265,293 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tag___14857 = undefined; - s.fmt___14900 = undefined; + s.result___15401 = undefined; + s.currentPage___15403 = undefined; + s.lastBreakLocation___15405 = undefined; + s.lastBreak___15406 = undefined; + s.line___15407 = undefined; + s.lineLength___15408 = undefined; + s.nextLine___15411 = undefined; + s.index___15417 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tag___14857 = (203); - s.tmp_1 = r0 = s.arg2; - r0 = (s.arg2 << 0); - s.tmp_2 = r0; - r0 = (s.tmp_1 == s.tmp_2); + r0 = pxsim_Array__mk(); + s.result___15401 = (r0); + r0 = pxsim_Array__mk(); + s.currentPage___15403 = (r0); + s.lastBreakLocation___15405 = (0); + s.lastBreak___15406 = (0); + r0 = pxsim_pxtrt.mklocRef(); + s.line___15407 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.line___15407, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.lineLength___15408 = (r0); + s.tmp_0 = r0 = s.lineLength___15408; + s.tmp_2 = r0 = s.arg1; + r0 = pxsim_pxtrt_ldlocRef(s.line___15407); + s.tmp_3 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtcore_mkAction(3, nextLine__P15411); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.line___15407); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.lineLength___15408); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg1); + s.nextLine___15411 = (s.tmp_0); + s.index___15417 = (0); case 1: - s.tmp_3 = r0 = s.arg2; - r0 = (s.arg2 >>> 0); + s.tmp_1 = r0 = s.index___15417; + 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 = 18; continue; } + r0 = pxsim_String_.charAt(s.arg0, s.index___15417); s.tmp_4 = r0; - r0 = (s.tmp_3 == s.tmp_4); - case 2: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 19; continue; } - r0 = (-31 <= s.arg2); + r0 = (s.tmp_4 === "\n"); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 2; continue; } + s.tmp_5 = r0 = s.currentPage___15403; + s.tmp_7 = game_formatLine__P4731_mk(s); + s.tmp_8 = helpers_stringSubstr__P118_mk(s); + s.tmp_8.arg0 = s.arg0; + s.tmp_8.arg1 = s.lastBreak___15406; + r0 = (s.index___15417 - s.lastBreak___15406); + s.tmp_8.arg2 = r0; + s.callLocIdx = 1283; s.pc = 24; return s.tmp_8; + case 24: + r0 = s.retval; + s.tmp_7.arg0 = r0; + s.callLocIdx = 1284; s.pc = 23; return s.tmp_7; + case 23: + r0 = s.retval; s.tmp_6 = r0; - r0 = pxsim_numops_toBool(s.tmp_6); + r0 = pxsim_Array__push(s.tmp_5, s.tmp_6); + r0 = (s.index___15417 + 1); + s.index___15417 = (r0); + s.lastBreak___15406 = (s.index___15417); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.nextLine___15411; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1285; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + { step = 9; continue; } + case 2: + r0 = pxsim_String_.charAt(s.arg0, s.index___15417); + s.tmp_1 = r0; + r0 = (s.tmp_1 === "\\"); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 3; continue; } - r0 = s.tmp_6; + r0 = s.tmp_0; { step = 4; continue; } case 3: - r0 = (s.arg2 <= 127); + s.tmp_3 = r0 = s.arg0; + r0 = (s.index___15417 + 1); + s.tmp_4 = r0; + r0 = pxsim_String_.charAt(s.tmp_3, s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_2 === "n"); case 4: // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 7; continue; } - r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 5; continue; } - r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.arg2); + s.tmp_6 = r0 = s.currentPage___15403; + s.tmp_8 = game_formatLine__P4731_mk(s); + s.tmp_9 = helpers_stringSubstr__P118_mk(s); + s.tmp_9.arg0 = s.arg0; + s.tmp_9.arg1 = s.lastBreak___15406; + r0 = (s.index___15417 - s.lastBreak___15406); + s.tmp_9.arg2 = r0; + s.callLocIdx = 1286; s.pc = 27; return s.tmp_9; + case 27: + r0 = s.retval; + s.tmp_8.arg0 = r0; + s.callLocIdx = 1287; s.pc = 26; return s.tmp_8; + case 26: + r0 = s.retval; + s.tmp_7 = r0; + r0 = pxsim_Array__push(s.tmp_6, s.tmp_7); + r0 = (s.index___15417 + 2); + s.index___15417 = (r0); + s.lastBreak___15406 = (s.index___15417); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.nextLine___15411; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1288; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; + { step = 8; continue; } case 5: + s.tmp_1 = game_isBreakCharacter__P4729_mk(s); + r0 = pxsim_String_.charCodeAt(s.arg0, s.index___15417); + s.tmp_1.arg0 = r0; + s.callLocIdx = 1289; s.pc = 29; return s.tmp_1; + case 29: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.lastBreakLocation___15405 = (s.index___15417); case 6: - r0 = 1; - { step = 23; continue; } - { step = 18; continue; } case 7: - r0 = (0 <= s.arg2); + case 8: + case 9: + r0 = (s.index___15417 - s.lastBreak___15406); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.lineLength___15408); + s.tmp_2 = r0; + r0 = (s.tmp_1 === s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - r0 = (s.arg2 <= 255); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 8; continue; } - s.tag___14857 = (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___14857 = (205); - { step = 10; continue; } - case 9: - s.tag___14857 = (206); + if (!r0) { step = 14; continue; } + r0 = (s.lastBreakLocation___15405 === s.index___15417); + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 10; continue; } + r0 = s.tmp_3; + { step = 11; continue; } case 10: + r0 = (s.lastBreakLocation___15405 < s.lastBreak___15406); case 11: - { step = 17; continue; } + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 12; continue; } + s.tmp_5 = r0 = s.currentPage___15403; + s.tmp_7 = game_formatLine__P4731_mk(s); + s.tmp_8 = helpers_stringSubstr__P118_mk(s); + s.tmp_8.arg0 = s.arg0; + s.tmp_8.arg1 = s.lastBreak___15406; + r0 = pxsim_pxtrt_ldlocRef(s.lineLength___15408); + s.tmp_8.arg2 = r0; + s.callLocIdx = 1290; s.pc = 31; return s.tmp_8; + case 31: + r0 = s.retval; + s.tmp_7.arg0 = r0; + s.callLocIdx = 1291; s.pc = 30; return s.tmp_7; + case 30: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_Array__push(s.tmp_5, s.tmp_6); + s.lastBreak___15406 = (s.index___15417); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.nextLine___15411; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1292; s.pc = 32; return s.tmp_0; + case 32: + r0 = s.retval; + { step = 13; continue; } case 12: - r0 = (-127 <= s.arg2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - s.tag___14857 = (208); - { step = 16; continue; } + s.tmp_0 = r0 = s.currentPage___15403; + s.tmp_2 = game_formatLine__P4731_mk(s); + s.tmp_3 = helpers_stringSubstr__P118_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.lastBreak___15406; + r0 = (s.lastBreakLocation___15405 - s.lastBreak___15406); + s.tmp_3.arg2 = r0; + s.callLocIdx = 1293; s.pc = 34; return s.tmp_3; + case 34: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.callLocIdx = 1294; s.pc = 33; return s.tmp_2; + case 33: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + s.lastBreak___15406 = (s.lastBreakLocation___15405); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.nextLine___15411; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1295; s.pc = 35; return s.tmp_0; + case 35: + r0 = s.retval; case 13: - r0 = (-32767 <= s.arg2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - s.tag___14857 = (209); - { step = 15; continue; } case 14: - s.tag___14857 = (210); case 15: + r0 = pxsim_pxtrt_ldlocRef(s.line___15407); + s.tmp_1 = r0; + r0 = pxsim_Array__length(s.arg1); + s.tmp_2 = r0; + r0 = (s.tmp_1 >= s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + r0 = pxsim_pxtrt_stlocRef(s.line___15407, 0); + s.tmp_0 = r0 = s.lineLength___15408; + s.tmp_2 = r0 = s.arg1; + r0 = pxsim_pxtrt_ldlocRef(s.line___15407); + s.tmp_3 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_Array__push(s.result___15401, s.currentPage___15403); + r0 = pxsim_Array__mk(); + s.currentPage___15403 = (r0); case 16: case 17: + r0 = (s.index___15417 + 1); + s.index___15417 = (r0); + { step = 1; continue; } case 18: + s.tmp_0 = r0 = s.currentPage___15403; + s.tmp_2 = game_formatLine__P4731_mk(s); + s.tmp_3 = helpers_stringSubstr__P118_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.lastBreak___15406; + r0 = pxsim_String_.length(s.arg0); + s.tmp_4 = r0; + r0 = (s.tmp_4 - s.lastBreak___15406); + s.tmp_3.arg2 = r0; + s.callLocIdx = 1296; s.pc = 37; return s.tmp_3; + case 37: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.callLocIdx = 1297; s.pc = 36; return s.tmp_2; + case 36: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + r0 = pxsim_Array__length(s.currentPage___15403); + s.tmp_1 = r0; + r0 = (s.tmp_1 > 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 19; continue; } + r0 = s.tmp_0; + { step = 20; continue; } case 19: + r0 = pxsim_Array__getAt(s.currentPage___15403, 0); + s.tmp_2 = r0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_3 = r0; + r0 = (s.tmp_2 !== s.tmp_3); case 20: - s.tmp_0 = msgpack_tagFormat__P4265_mk(s); - s.tmp_0.arg0 = s.tag___14857; - s.callLocIdx = 22; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.fmt___14900 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg0); + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 21; continue; } - r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___14857); - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.fmt___14900; - r0 = (s.arg1 + 1); - s.tmp_2 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, s.tmp_1, s.tmp_2, s.arg2); + r0 = pxsim_Array__push(s.result___15401, s.currentPage___15403); case 21: case 22: - s.tmp_1 = pins_sizeOf__P175_mk(s); - s.tmp_1.arg0 = s.fmt___14900; - s.callLocIdx = 23; s.pc = 25; return s.tmp_1; - case 25: - r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - case 23: + r0 = s.result___15401; return leave(s, r0) default: oops() } } } -msgpack_packNumberCore__P4266.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"]} +game_breakIntoPages__P4730.info = {"start":21243,"length":2187,"line":673,"column":4,"endLine":734,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"breakIntoPages","argumentNames":["text","lineLengths"]} -function msgpack_packNumberCore__P4266_mk(s) { +function game_breakIntoPages__P4730_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberCore__P4266, depth: s.depth + 1, + parent: s, fn: game_breakIntoPages__P4730, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32210,18 +34561,25 @@ function msgpack_packNumberCore__P4266_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tag___14857: undefined, - fmt___14900: undefined, + tmp_8: undefined, + tmp_9: undefined, + result___15401: undefined, + currentPage___15403: undefined, + lastBreakLocation___15405: undefined, + lastBreak___15406: undefined, + line___15407: undefined, + lineLength___15408: undefined, + nextLine___15411: undefined, + index___15417: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function info_saveAllScores__P2400(s) { +function nextLine__P15411(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32231,57 +34589,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.allScoresKey___15050 = undefined; - s.allScores___15052 = undefined; - s.allScoresKey___15050 = ("all-scores"); - r0 = pxsim_numops_toBoolDecr(globals.players___4580); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayMap__P106_mk(s); - s.tmp_1 = helpers_arrayFilter__P110_mk(s); - s.tmp_1.arg0 = globals.players___4580; - s.tmp_1.arg1 = map_inline__P15058; - s.callLocIdx = 925; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = info_saveAllScores_inline__P15063; - s.callLocIdx = 927; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.allScores___15052 = (r0); - { step = 2; continue; } - case 1: - r0 = pxsim_Array__mk(); - s.allScores___15052 = (r0); - case 2: - s.tmp_0 = settings_writeJSON__P1907_mk(s); - s.tmp_0.arg0 = s.allScoresKey___15050; - s.tmp_0.arg1 = s.allScores___15052; - s.callLocIdx = 928; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; + s.tmp_0 = r0 = s.caps[0]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + s.tmp_0 = r0 = s.caps[1]; + s.tmp_2 = r0 = s.caps[2]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_3 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -info_saveAllScores__P2400.info = {"start":6535,"length":356,"line":214,"column":4,"endLine":225,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"saveAllScores","argumentNames":[]} +nextLine__P15411.info = {"start":21536,"length":95,"line":683,"column":8,"endLine":686,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"nextLine","argumentNames":[]} -function info_saveAllScores__P2400_mk(s) { +function nextLine__P15411_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_saveAllScores__P2400, depth: s.depth + 1, + parent: s, fn: nextLine__P15411, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - allScoresKey___15050: undefined, - allScores___15052: undefined, + tmp_2: undefined, + tmp_3: undefined, } } -function map_inline__P15058(s) { +function game_formatLine__P4731(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32291,27 +34633,44 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.i___15605 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = info_PlayerInfoImpl_hasScore__P2446_mk(s); - r0 = s.arg0.fields["impl"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 924; s.pc = 1; return s.tmp_0; + s.i___15605 = (0); case 1: + r0 = pxsim_String_.charAt(s.arg0, s.i___15605); + s.tmp_1 = r0; + r0 = (s.tmp_1 === " "); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + r0 = (s.i___15605 + 1); + s.i___15605 = (r0); + { step = 1; continue; } + case 2: + s.tmp_0 = helpers_stringSubstr__P118_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.i___15605; + r0 = pxsim_String_.length(s.arg0); + s.tmp_0.arg2 = r0; + s.callLocIdx = 1298; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; return leave(s, r0) default: oops() } } } -map_inline__P15058.info = {"start":6707,"length":28,"line":218,"column":39,"endLine":218,"endColumn":67,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["item"]} +game_formatLine__P4731.info = {"start":23436,"length":148,"line":736,"column":4,"endLine":740,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"formatLine","argumentNames":["text"]} -function map_inline__P15058_mk(s) { +function game_formatLine__P4731_mk(s) { checkStack(s.depth); return { - parent: s, fn: map_inline__P15058, depth: s.depth + 1, + parent: s, fn: game_formatLine__P4731, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + i___15605: undefined, arg0: undefined, } } @@ -32319,7 +34678,7 @@ function map_inline__P15058_mk(s) { -function info_saveAllScores_inline__P15063(s) { +function game_isBreakCharacter__P4729(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32333,23 +34692,132 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = info_PlayerInfoImpl_score__P2443_mk(s); - r0 = s.arg0.fields["impl"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 926; s.pc = 1; return s.tmp_0; + r0 = (s.arg0 <= 32); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 4; continue; } case 1: - r0 = s.retval; + r0 = (s.arg0 >= 58); + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 2; continue; } + r0 = s.tmp_1; + { step = 3; continue; } + case 2: + r0 = (s.arg0 <= 64); + case 3: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.tmp_2; + case 4: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 5; continue; } + r0 = s.tmp_3; + { step = 8; continue; } + case 5: + r0 = (s.arg0 >= 91); + s.tmp_4 = r0; + r0 = pxsim_numops_toBool(s.tmp_4); + if (r0) { step = 6; continue; } + r0 = s.tmp_4; + { step = 7; continue; } + case 6: + r0 = (s.arg0 <= 96); + case 7: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = s.tmp_5; + case 8: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBool(s.tmp_6); + if (!r0) { step = 9; continue; } + r0 = s.tmp_6; + { step = 12; continue; } + case 9: + r0 = (s.arg0 >= 123); + s.tmp_7 = r0; + r0 = pxsim_numops_toBool(s.tmp_7); + if (r0) { step = 10; continue; } + r0 = s.tmp_7; + { step = 11; continue; } + case 10: + r0 = (s.arg0 <= 126); + case 11: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = s.tmp_8; + case 12: + // jmp value (already in r0) + s.tmp_9 = r0; + r0 = pxsim_numops_toBool(s.tmp_9); + if (!r0) { step = 13; continue; } + r0 = s.tmp_9; + { step = 16; continue; } + case 13: + r0 = (s.arg0 >= 19968); + s.tmp_10 = r0; + r0 = pxsim_numops_toBool(s.tmp_10); + if (r0) { step = 14; continue; } + r0 = s.tmp_10; + { step = 15; continue; } + case 14: + r0 = (s.arg0 <= 40869); + case 15: + // jmp value (already in r0) + s.tmp_11 = r0; + r0 = s.tmp_11; + case 16: + // jmp value (already in r0) + s.tmp_12 = r0; + r0 = pxsim_numops_toBool(s.tmp_12); + if (!r0) { step = 17; continue; } + r0 = s.tmp_12; + { step = 18; continue; } + case 17: + r0 = (s.arg0 == 12290); + case 18: + // jmp value (already in r0) + s.tmp_13 = r0; + r0 = pxsim_numops_toBool(s.tmp_13); + if (!r0) { step = 19; continue; } + r0 = s.tmp_13; + { step = 20; continue; } + case 19: + r0 = (s.arg0 == 65292); + case 20: + // jmp value (already in r0) + s.tmp_14 = r0; + r0 = s.tmp_14; return leave(s, r0) default: oops() } } } -info_saveAllScores_inline__P15063.info = {"start":6741,"length":25,"line":218,"column":73,"endLine":218,"endColumn":98,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["item"]} +game_isBreakCharacter__P4729.info = {"start":20879,"length":358,"line":663,"column":4,"endLine":671,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"isBreakCharacter","argumentNames":["charCode"]} -function info_saveAllScores_inline__P15063_mk(s) { +function game_isBreakCharacter__P4729_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_saveAllScores_inline__P15063, depth: s.depth + 1, + parent: s, fn: game_isBreakCharacter__P4729, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -32357,7 +34825,7 @@ function info_saveAllScores_inline__P15063_mk(s) { -function settings_writeJSON__P1907(s) { +function helpers_stringSubstr__P118(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32370,43 +34838,56 @@ 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 = settings_writeString__P1906_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = JSON_stringify__P387_mk(s); - s.tmp_1.arg0 = s.arg1; - s.tmp_1.arg1 = null; - s.tmp_1.arg2 = 0; - s.callLocIdx = 168; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 169; s.pc = 1; return s.tmp_0; + r0 = (s.arg2 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_String_.length(s.arg0); + { step = 4; continue; } case 1: - r0 = s.retval; - r0 = undefined; + s.tmp_1 = r0 = s.arg2; + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = s.tmp_1; + { step = 3; continue; } + case 2: + r0 = 0; + case 3: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.tmp_2; + case 4: + // jmp value (already in r0) + s.tmp_3 = r0; + s.arg2 = (s.tmp_3); + r0 = pxsim_String_.substr(s.arg0, s.arg1, s.arg2); return leave(s, r0) default: oops() } } } -settings_writeJSON__P1907.info = {"start":2092,"length":106,"line":82,"column":4,"endLine":84,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeJSON","argumentNames":["key","value"]} +helpers_stringSubstr__P118.info = {"start":11286,"length":204,"line":379,"column":4,"endLine":382,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSubstr","argumentNames":["s","start","length"]} -function settings_writeJSON__P1907_mk(s) { +function helpers_stringSubstr__P118_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeJSON__P1907, depth: s.depth + 1, + parent: s, fn: helpers_stringSubstr__P118, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function settings_writeString__P1906(s) { +function game_BaseDialog_textAreaHeight__P4720(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32418,37 +34899,57 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = settings_writeBuffer__P1905_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = pxsim.control.createBufferFromUTF8(s.arg1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 167; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C2737_VT)) failedCast(r0); + r0 = s.arg0.fields["image"]; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_2); + s.tmp_1 = r0; + r0 = s.arg0.fields["innerTop"]; + s.tmp_5 = r0; + s.tmp_7 = Math_min__P131_mk(s); + r0 = s.arg0.fields["unit"]; + s.tmp_7.arg0 = r0; + s.tmp_7.arg1 = 12; + s.callLocIdx = 1234; s.pc = 1; return s.tmp_7; case 1: r0 = s.retval; - r0 = undefined; + 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); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 1); return leave(s, r0) default: oops() } } } -settings_writeString__P1906.info = {"start":1895,"length":125,"line":75,"column":4,"endLine":77,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeString","argumentNames":["key","value"]} +game_BaseDialog_textAreaHeight__P4720.info = {"start":5240,"length":143,"line":173,"column":8,"endLine":175,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"textAreaHeight","argumentNames":["this"]} -function settings_writeString__P1906_mk(s) { +function game_BaseDialog_textAreaHeight__P4720_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeString__P1906, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_textAreaHeight__P4720, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, arg0: undefined, - arg1: undefined, } } -function JSON_stringify__P387(s) { +function game_BaseDialog_textAreaWidth__P4719(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32458,84 +34959,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ss___15083 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(JSON_Stringifier__C4318_VT); - s.ss___15083 = (r0); - s.tmp_0 = r0 = s.ss___15083; - r0 = pxsim_String_.mkEmpty(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["currIndent"] = (s.tmp_1); - r0 = (s.arg2 | 0); - s.arg2 = (r0); - r0 = (s.arg2 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.arg2 = (0); - case 1: - case 2: - r0 = (s.arg2 > 10); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.arg2 = (10); - case 3: - case 4: - s.tmp_0 = r0 = s.ss___15083; - r0 = pxsim_String_.mkEmpty(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["indentStep"] = (s.tmp_1); - s.tmp_0 = r0 = s.ss___15083; - r0 = pxsim_String_.mkEmpty(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["currIndent"] = (s.tmp_1); - r0 = (s.ss___15083).fields["indent"] = (s.arg2); - case 5: - s.tmp_0 = r0 = s.arg2; - r0 = (s.tmp_0 - 1); - s.arg2 = (r0); - r0 = (s.tmp_0 > 0); + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C2737_VT)) failedCast(r0); + r0 = s.arg0.fields["image"]; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 6; continue; } - s.tmp_2 = r0 = s.ss___15083; - r0 = s.tmp_2.fields["indentStep"]; + r0 = s.arg0.fields["innerLeft"]; s.tmp_5 = r0; - if ((s.tmp_5) && (s.tmp_5).vtable) { - setupResume(s, 7); - pxsim_String__stringConv(s.tmp_5); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_5) + ""; } - case 7: + s.tmp_7 = Math_min__P131_mk(s); + r0 = s.arg0.fields["unit"]; + s.tmp_7.arg0 = r0; + s.tmp_7.arg1 = 12; + s.callLocIdx = 1233; s.pc = 1; return s.tmp_7; + case 1: r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_4, " "); + r0 = (s.tmp_4 << 1); s.tmp_3 = r0; - r0 = (s.tmp_2).fields["indentStep"] = (s.tmp_3); - { step = 5; continue; } - case 6: - s.tmp_0 = JSON_Stringifier_go__P4320_mk(s); - s.tmp_0.arg0 = s.ss___15083; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 50; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 2); return leave(s, r0) default: oops() } } } -JSON_stringify__P387.info = {"start":8773,"length":414,"line":288,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/base/json.ts","functionName":"stringify","argumentNames":["value","replacer","indent"]} +game_BaseDialog_textAreaWidth__P4719.info = {"start":5088,"length":142,"line":169,"column":8,"endLine":171,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"textAreaWidth","argumentNames":["this"]} -function JSON_stringify__P387_mk(s) { +function game_BaseDialog_textAreaWidth__P4719_mk(s) { checkStack(s.depth); return { - parent: s, fn: JSON_stringify__P387, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_textAreaWidth__P4719, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32543,17 +35002,16 @@ function JSON_stringify__P387_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - ss___15083: undefined, + tmp_6: undefined, + tmp_7: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function JSON_Stringifier_go__P4320(s) { +function game_BaseDialog_rowHeight__P4718(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32563,602 +35021,102 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.t___15124 = undefined; - s.arr___15148 = undefined; - s.r___15154 = undefined; - s.i___15171 = undefined; - s.keys___15235 = undefined; - s.r___15242 = undefined; - s.i___15259 = undefined; - s.k___15265 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, JSON_Stringifier__C4318_VT)) failedCast(r0); - r0 = pxsim_pxtcore.typeOf(s.arg1); - s.t___15124 = (r0); - r0 = (s.t___15124 == "string"); + if (!checkSubtype(r0, game_BaseDialog__C2737_VT)) failedCast(r0); + s.tmp_1 = if_charHeight_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_1.arg0 = r0; + 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 = 1232; s.pc = 1; return s.tmp_1; } + } + case 1: + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = JSON_Stringifier_doString__P4319_mk(s); + r0 = (s.tmp_0 + 1); + return leave(s, r0) + default: oops() +} } } +game_BaseDialog_rowHeight__P4718.info = {"start":5000,"length":78,"line":165,"column":8,"endLine":167,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"rowHeight","argumentNames":["this"]} + +function game_BaseDialog_rowHeight__P4718_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_BaseDialog_rowHeight__P4718, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function game_Dialog_prevPage__P2761(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_Dialog__C2754_VT)) failedCast(r0); + s.tmp_1 = game_Dialog_hasPrev__P2759_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 44; s.pc = 38; return s.tmp_1; - case 38: - r0 = s.retval; - { step = 37; continue; } - { step = 36; continue; } - case 1: - r0 = (s.t___15124 == "boolean"); - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (!r0) { step = 2; continue; } - r0 = s.tmp_2; - { step = 3; continue; } - case 2: - r0 = (s.t___15124 == "number"); + s.callLocIdx = 1237; s.pc = 3; return s.tmp_1; case 3: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (!r0) { step = 4; continue; } - r0 = s.tmp_3; - { step = 5; continue; } - case 4: - r0 = (s.arg1 == null); - case 5: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 6; continue; } - r0 = pxsim_String_.mkEmpty(); - s.tmp_5 = r0; - if ((s.arg1) && (s.arg1).vtable) { - setupResume(s, 39); - pxsim_String__stringConv(s.arg1); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg1) + ""; } - case 39: r0 = s.retval; - s.tmp_6 = r0; - r0 = pxsim_String__concat(s.tmp_5, s.tmp_6); - { step = 37; continue; } - { step = 35; continue; } - case 6: - r0 = pxsim_Array_.isArray(s.arg1); - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 19; continue; } - s.arr___15148 = (s.arg1); - r0 = pxsim_Array__length(s.arr___15148); - s.tmp_1 = r0; - r0 = (s.tmp_1 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = "[]"; - { step = 37; continue; } - { step = 18; continue; } - case 7: - s.r___15154 = ("["); - r0 = s.arg0.fields["indent"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.tmp_1 = r0 = s.arg0; - r0 = s.tmp_1.fields["currIndent"]; - s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 40); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 40: - r0 = s.retval; - s.tmp_3 = r0; - r0 = s.arg0.fields["indentStep"]; - s.tmp_6 = r0; - if ((s.tmp_6) && (s.tmp_6).vtable) { - setupResume(s, 41); - pxsim_String__stringConv(s.tmp_6); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_6) + ""; } - case 41: - r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_5); - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); - if ((s.r___15154) && (s.r___15154).vtable) { - setupResume(s, 42); - pxsim_String__stringConv(s.r___15154); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___15154) + ""; } - case 42: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, "\n"); - s.r___15154 = (r0); - case 8: - case 9: - s.i___15171 = (0); - case 10: - s.tmp_1 = r0 = s.i___15171; - r0 = pxsim_Array__length(s.arr___15148); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - if ((s.r___15154) && (s.r___15154).vtable) { - setupResume(s, 43); - pxsim_String__stringConv(s.r___15154); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___15154) + ""; } - case 43: - r0 = s.retval; - s.tmp_3 = r0; - r0 = s.arg0.fields["currIndent"]; - s.tmp_7 = r0; - if ((s.tmp_7) && (s.tmp_7).vtable) { - setupResume(s, 44); - pxsim_String__stringConv(s.tmp_7); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_7) + ""; } - case 44: - r0 = s.retval; - s.tmp_6 = r0; - s.tmp_10 = JSON_Stringifier_go__P4320_mk(s); - s.tmp_10.arg0 = s.arg0; - r0 = pxsim_Array__getAt(s.arr___15148, s.i___15171); - s.tmp_10.arg1 = r0; - s.callLocIdx = 45; s.pc = 45; return s.tmp_10; - case 45: - r0 = s.retval; - s.tmp_9 = r0; - if ((s.tmp_9) && (s.tmp_9).vtable) { - setupResume(s, 46); - pxsim_String__stringConv(s.tmp_9); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_9) + ""; } - case 46: - r0 = s.retval; - s.tmp_8 = r0; - r0 = pxsim_String__concat(s.tmp_6, s.tmp_8); - s.tmp_5 = r0; - if ((s.tmp_5) && (s.tmp_5).vtable) { - setupResume(s, 47); - pxsim_String__stringConv(s.tmp_5); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_5) + ""; } - case 47: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.r___15154 = (r0); - s.tmp_1 = r0 = s.i___15171; - r0 = pxsim_Array__length(s.arr___15148); - 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 = 11; continue; } - if ((s.r___15154) && (s.r___15154).vtable) { - setupResume(s, 48); - pxsim_String__stringConv(s.r___15154); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___15154) + ""; } - case 48: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_4, ","); - s.r___15154 = (r0); - case 11: - case 12: - r0 = s.arg0.fields["indent"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - if ((s.r___15154) && (s.r___15154).vtable) { - setupResume(s, 49); - pxsim_String__stringConv(s.r___15154); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___15154) + ""; } - case 49: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "\n"); - s.r___15154 = (r0); - case 13: - case 14: - r0 = (s.i___15171 + 1); - s.i___15171 = (r0); - { step = 10; continue; } - case 15: - r0 = s.arg0.fields["indent"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - s.tmp_1 = r0 = s.arg0; - s.tmp_3 = helpers_stringSlice__P119_mk(s); - r0 = s.arg0.fields["currIndent"]; - s.tmp_3.arg0 = r0; - r0 = s.arg0.fields["indent"]; - s.tmp_3.arg1 = r0; - s.tmp_3.arg2 = undefined; - s.callLocIdx = 46; s.pc = 50; return s.tmp_3; - case 50: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); - case 16: - case 17: - if ((s.r___15154) && (s.r___15154).vtable) { - setupResume(s, 51); - pxsim_String__stringConv(s.r___15154); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___15154) + ""; } - case 51: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.arg0.fields["currIndent"]; - s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 52); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 52: - 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, 53); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 53: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___15154 = (r0); - r0 = s.r___15154; - { step = 37; continue; } - case 18: - { step = 34; continue; } - case 19: - r0 = pxsim_pxtrt.keysOf(s.arg1); - s.keys___15235 = (r0); - r0 = pxsim_Array__length(s.keys___15235); - 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; } - r0 = "{}"; - { step = 37; continue; } - case 20: - case 21: - s.r___15242 = ("{"); - r0 = s.arg0.fields["indent"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - s.tmp_1 = r0 = s.arg0; - r0 = s.tmp_1.fields["currIndent"]; - s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 54); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 54: - r0 = s.retval; - s.tmp_3 = r0; - r0 = s.arg0.fields["indentStep"]; - s.tmp_6 = r0; - if ((s.tmp_6) && (s.tmp_6).vtable) { - setupResume(s, 55); - pxsim_String__stringConv(s.tmp_6); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_6) + ""; } - case 55: - r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_5); - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); - if ((s.r___15242) && (s.r___15242).vtable) { - setupResume(s, 56); - pxsim_String__stringConv(s.r___15242); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___15242) + ""; } - case 56: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, "\n"); - s.r___15242 = (r0); - case 22: - case 23: - s.i___15259 = (0); - case 24: - s.tmp_1 = r0 = s.i___15259; - r0 = pxsim_Array__length(s.keys___15235); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 31; continue; } - r0 = pxsim_Array__getAt(s.keys___15235, s.i___15259); - s.k___15265 = (r0); - if ((s.r___15242) && (s.r___15242).vtable) { - setupResume(s, 57); - pxsim_String__stringConv(s.r___15242); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___15242) + ""; } - case 57: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.arg0.fields["currIndent"]; - s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 58); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 58: - r0 = s.retval; - s.tmp_3 = r0; - s.tmp_7 = JSON_Stringifier_doString__P4319_mk(s); - s.tmp_7.arg0 = s.arg0; - s.tmp_7.arg1 = s.k___15265; - s.callLocIdx = 47; s.pc = 59; return s.tmp_7; - case 59: - r0 = s.retval; - s.tmp_6 = r0; - if ((s.tmp_6) && (s.tmp_6).vtable) { - setupResume(s, 60); - pxsim_String__stringConv(s.tmp_6); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_6) + ""; } - case 60: - r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_5); - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 61); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 61: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___15242 = (r0); - r0 = s.arg0.fields["indent"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 25; continue; } - if ((s.r___15242) && (s.r___15242).vtable) { - setupResume(s, 62); - pxsim_String__stringConv(s.r___15242); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___15242) + ""; } - case 62: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, ": "); - s.r___15242 = (r0); - { step = 26; continue; } - case 25: - if ((s.r___15242) && (s.r___15242).vtable) { - setupResume(s, 63); - pxsim_String__stringConv(s.r___15242); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___15242) + ""; } - case 63: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, ":"); - s.r___15242 = (r0); - case 26: - if ((s.r___15242) && (s.r___15242).vtable) { - setupResume(s, 64); - pxsim_String__stringConv(s.r___15242); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___15242) + ""; } - case 64: - r0 = s.retval; - s.tmp_0 = r0; - s.tmp_3 = JSON_Stringifier_go__P4320_mk(s); - s.tmp_3.arg0 = s.arg0; - r0 = pxsim_pxtrt.mapGetGeneric(s.arg1, s.k___15265); - s.tmp_3.arg1 = r0; - s.callLocIdx = 48; s.pc = 65; return s.tmp_3; - case 65: - r0 = s.retval; - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 66); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 66: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___15242 = (r0); - s.tmp_1 = r0 = s.i___15259; - r0 = pxsim_Array__length(s.keys___15235); - 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 = 27; continue; } - if ((s.r___15242) && (s.r___15242).vtable) { - setupResume(s, 67); - pxsim_String__stringConv(s.r___15242); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___15242) + ""; } - case 67: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_4, ","); - s.r___15242 = (r0); - case 27: - case 28: - r0 = s.arg0.fields["indent"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 29; continue; } - if ((s.r___15242) && (s.r___15242).vtable) { - setupResume(s, 68); - pxsim_String__stringConv(s.r___15242); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___15242) + ""; } - case 68: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "\n"); - s.r___15242 = (r0); - case 29: - case 30: - r0 = (s.i___15259 + 1); - s.i___15259 = (r0); - { step = 24; continue; } - case 31: - r0 = s.arg0.fields["indent"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 32; continue; } - s.tmp_1 = r0 = s.arg0; - s.tmp_3 = helpers_stringSlice__P119_mk(s); - r0 = s.arg0.fields["currIndent"]; - s.tmp_3.arg0 = r0; - r0 = s.arg0.fields["indent"]; - s.tmp_3.arg1 = r0; - s.tmp_3.arg2 = undefined; - s.callLocIdx = 49; s.pc = 69; return s.tmp_3; - case 69: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); - case 32: - case 33: - if ((s.r___15242) && (s.r___15242).vtable) { - setupResume(s, 70); - pxsim_String__stringConv(s.r___15242); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___15242) + ""; } - case 70: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.arg0.fields["currIndent"]; + if (!r0) { step = 1; continue; } + s.tmp_2 = r0 = s.arg0; + r0 = s.tmp_2.fields["chunkIndex"]; s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 71); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 71: - r0 = s.retval; + r0 = (s.tmp_4 - 1); 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, 72); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 72: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___15242 = (r0); - r0 = s.r___15242; - { step = 37; continue; } - case 34: - case 35: - case 36: + r0 = (s.tmp_2).fields["chunkIndex"] = (s.tmp_3); + case 1: + case 2: r0 = undefined; - case 37: return leave(s, r0) default: oops() } } } -JSON_Stringifier_go__P4320.info = {"start":6319,"length":2076,"line":223,"column":8,"endLine":279,"endColumn":9,"fileName":"pxt_modules/base/json.ts","functionName":"go","argumentNames":["this","v"]} +game_Dialog_prevPage__P2761.info = {"start":6213,"length":105,"line":208,"column":8,"endLine":212,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"prevPage","argumentNames":["this"]} -function JSON_Stringifier_go__P4320_mk(s) { +function game_Dialog_prevPage__P2761_mk(s) { checkStack(s.depth); return { - parent: s, fn: JSON_Stringifier_go__P4320, depth: s.depth + 1, + parent: s, fn: game_Dialog_prevPage__P2761, depth: s.depth + 1, pc: 0, retval: undefined, 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, - t___15124: undefined, - arr___15148: undefined, - r___15154: undefined, - i___15171: undefined, - keys___15235: undefined, - r___15242: undefined, - i___15259: undefined, - k___15265: undefined, arg0: undefined, - arg1: undefined, } } -function JSON_Stringifier_doString__P4319(s) { +function game_Dialog_nextPage__P2760(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33168,134 +35126,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___15386 = undefined; - s.i___15387 = undefined; - s.c___15393 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, JSON_Stringifier__C4318_VT)) failedCast(r0); - s.r___15386 = ("\""); - s.i___15387 = (0); - case 1: - s.tmp_1 = r0 = s.i___15387; - r0 = pxsim_String_.length(s.arg1); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = pxsim_String_.charAt(s.arg1, s.i___15387); - s.c___15393 = (r0); - r0 = (s.c___15393 == "\n"); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.c___15393 = ("\\n"); - { step = 13; continue; } - case 2: - r0 = (s.c___15393 == "\r"); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.c___15393 = ("\\r"); - { step = 12; continue; } + if (!checkSubtype(r0, game_Dialog__C2754_VT)) failedCast(r0); + s.tmp_1 = game_Dialog_hasNext__P2758_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1236; s.pc = 3; return s.tmp_1; case 3: - r0 = (s.c___15393 == "\t"); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.c___15393 = ("\\t"); - { step = 11; continue; } - case 4: - r0 = (s.c___15393 == "\b"); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.c___15393 = ("\\b"); - { step = 10; continue; } - case 5: - r0 = (s.c___15393 == "\\"); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.c___15393 = ("\\\\"); - { step = 9; continue; } - case 6: - r0 = (s.c___15393 == "\""); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.c___15393 = ("\\\""); - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - if ((s.r___15386) && (s.r___15386).vtable) { - setupResume(s, 15); - pxsim_String__stringConv(s.r___15386); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___15386) + ""; } - case 15: - r0 = s.retval; - s.tmp_0 = r0; - if ((s.c___15393) && (s.c___15393).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.c___15393); - checkResumeConsumed(); - return; - } else { s.retval = (s.c___15393) + ""; } - case 16: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___15386 = (r0); - r0 = (s.i___15387 + 1); - s.i___15387 = (r0); - { step = 1; continue; } - case 14: - if ((s.r___15386) && (s.r___15386).vtable) { - setupResume(s, 17); - pxsim_String__stringConv(s.r___15386); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___15386) + ""; } - case 17: r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, "\""); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = r0 = s.arg0; + r0 = s.tmp_2.fields["chunkIndex"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 + 1); + s.tmp_3 = r0; + r0 = (s.tmp_2).fields["chunkIndex"] = (s.tmp_3); + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -JSON_Stringifier_doString__P4319.info = {"start":5837,"length":472,"line":208,"column":8,"endLine":221,"endColumn":9,"fileName":"pxt_modules/base/json.ts","functionName":"doString","argumentNames":["this","s"]} +game_Dialog_nextPage__P2760.info = {"start":6098,"length":105,"line":202,"column":8,"endLine":206,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"nextPage","argumentNames":["this"]} -function JSON_Stringifier_doString__P4319_mk(s) { +function game_Dialog_nextPage__P2760_mk(s) { checkStack(s.depth); return { - parent: s, fn: JSON_Stringifier_doString__P4319, depth: s.depth + 1, + parent: s, fn: game_Dialog_nextPage__P2760, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - r___15386: undefined, - i___15387: undefined, - c___15393: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function helpers_arrayMap__P106(s) { +function game_Dialog_hasPrev__P2759(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33305,67 +35181,144 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___15437 = undefined; - s.len___15439 = undefined; - s.i___15442 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.res___15437 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___15439 = (r0); - s.i___15442 = (0); - case 1: - r0 = (s.i___15442 < s.len___15439); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.res___15437; - s.tmp_3 = lambda_3_mk(s); - s.tmp_3.argL = s.arg1; - r0 = pxsim_Array__getAt(s.arg0, s.i___15442); - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.i___15442; - setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 4; s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, game_Dialog__C2754_VT)) failedCast(r0); + r0 = s.arg0.fields["chunks"]; s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___15442 + 1); - s.i___15442 = (r0); - { step = 1; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["chunks"]; + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 === 0); case 2: - r0 = s.res___15437; - return leave(s, r0) + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 3; continue; } + r0 = false; + { step = 5; continue; } + case 3: + case 4: + r0 = s.arg0.fields["chunkIndex"]; + s.tmp_6 = r0; + r0 = (s.tmp_6 > 0); + case 5: + return leave(s, r0) default: oops() } } } -helpers_arrayMap__P106.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"]} +game_Dialog_hasPrev__P2759.info = {"start":5955,"length":133,"line":197,"column":8,"endLine":200,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"hasPrev","argumentNames":["this"]} -function helpers_arrayMap__P106_mk(s) { +function game_Dialog_hasPrev__P2759_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayMap__P106, depth: s.depth + 1, + parent: s, fn: game_Dialog_hasPrev__P2759, depth: s.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___15437: undefined, - len___15439: undefined, - i___15442: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, arg0: undefined, - arg1: undefined, } } -function music_Melody_play__P1633(s) { +function game_Dialog_hasNext__P2758(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_Dialog__C2754_VT)) failedCast(r0); + r0 = s.arg0.fields["chunks"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["chunks"]; + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 === 0); + case 2: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 3; continue; } + r0 = false; + { step = 5; continue; } + case 3: + case 4: + r0 = s.arg0.fields["chunkIndex"]; + s.tmp_6 = r0; + r0 = s.arg0.fields["chunks"]; + s.tmp_9 = r0; + r0 = pxsim_Array__length(s.tmp_9); + s.tmp_8 = r0; + r0 = (s.tmp_8 - 1); + s.tmp_7 = r0; + r0 = (s.tmp_6 < s.tmp_7); + case 5: + return leave(s, r0) + default: oops() +} } } +game_Dialog_hasNext__P2758.info = {"start":5791,"length":154,"line":192,"column":8,"endLine":195,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"hasNext","argumentNames":["this"]} + +function game_Dialog_hasNext__P2758_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_Dialog_hasNext__P2758, depth: s.depth + 1, + pc: 0, retval: undefined, 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 game_Dialog_constructor__P2757(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33378,38 +35331,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.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C1626_VT)) failedCast(r0); - s.tmp_0 = music_Melody_playCore__P4370_mk(s); + if (!checkSubtype(r0, game_Dialog__C2754_VT)) failedCast(r0); + s.tmp_0 = game_BaseDialog_constructor__P2749_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = false; - s.callLocIdx = 90; s.pc = 1; return s.tmp_0; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = s.arg3; + s.tmp_0.arg4 = s.arg4; + s.tmp_0.arg5 = s.arg5; + s.callLocIdx = 1235; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; + r0 = (s.arg0).fields["chunkIndex"] = (0); r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_play__P1633.info = {"start":9238,"length":71,"line":285,"column":8,"endLine":287,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"play","argumentNames":["this","volume"]} +game_Dialog_constructor__P2757.info = {"start":5588,"length":193,"line":186,"column":8,"endLine":190,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["this","width","height","frame","font","cursor"]} -function music_Melody_play__P1633_mk(s) { +function game_Dialog_constructor__P2757_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_play__P1633, depth: s.depth + 1, + parent: s, fn: game_Dialog_constructor__P2757, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function music_Melody_playCore__P4370(s) { +function game_BaseDialog_constructor__P2749(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33419,66 +35384,191 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___13830 = 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, music_Melody__C1626_VT)) failedCast(r0); - s.tmp_0 = music_Melody_stop__P1631_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 85; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, game_BaseDialog__C2737_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; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = globals.dialogFrame___4708; + 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__P4726_mk(s); + s.callLocIdx = 1204; s.pc = 13; return s.tmp_3; + case 13: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(music_MelodyPlayer__C1636_VT); + s.tmp_2 = r0; + globals.dialogFrame___4708 = (r0); + r0 = s.tmp_2; + 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); + if (!r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 5: + r0 = globals.font8___1820; + 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 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } + case 7: + r0 = globals.dialogCursor___4709; + case 8: + // jmp value (already in r0) + s.tmp_1 = r0; + 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__P4728_mk(s); + s.callLocIdx = 1205; s.pc = 14; return s.tmp_3; + case 14: + r0 = s.retval; + s.tmp_2 = r0; + globals.dialogCursor___4709 = (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___4710 == undefined); s.tmp_0 = r0; - s.tmp_1 = music_MelodyPlayer_constructor__P1639_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.callLocIdx = 86; s.pc = 2; return s.tmp_1; - case 2: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + globals.dialogTextColor___4710 = (15); + r0 = 15; + { step = 12; continue; } + case 11: + r0 = globals.dialogTextColor___4710; + 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__P4713_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1206; s.pc = 15; return s.tmp_0; + case 15: r0 = s.retval; - r0 = (s.arg0).fields["_player"] = (s.tmp_0); - s.p___13830 = (s.tmp_0); - s.tmp_0 = music_Melody_registerMelody__P4368_mk(s); + s.tmp_0 = game_BaseDialog_clearInterior__P4715_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 87; s.pc = 3; return s.tmp_0; - case 3: + s.callLocIdx = 1207; s.pc = 16; return s.tmp_0; + case 16: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(4, music_Melody_playCore_inline__P13840); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.p___13830); - 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); r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_playCore__P4370.info = {"start":7681,"length":815,"line":242,"column":8,"endLine":261,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playCore","argumentNames":["this","volume","loop"]} +game_BaseDialog_constructor__P2749.info = {"start":665,"length":895,"line":37,"column":8,"endLine":59,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["this","width","height","frame","font","cursor"]} -function music_Melody_playCore__P4370_mk(s) { +function game_BaseDialog_constructor__P2749_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_playCore__P4370, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_constructor__P2749, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - p___13830: 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 music_Melody_playCore_inline__P13840(s) { +function game_defaultCursorImage__P4728(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33488,66 +35578,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - case 1: - r0 = s.caps[0].fields["_player"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == s.caps[1]); + r0 = pxsim_ImageMethods.isMono(globals.screen___1877); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.tmp_2 = music_MelodyPlayer_play__P1641_mk(s); - s.tmp_2.arg0 = s.caps[1]; - s.tmp_2.arg1 = s.caps[2]; - s.callLocIdx = 88; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.caps[3]); + if (!r0) { step = 1; continue; } + r0 = pxsim.image.ofBuffer(_hex15827); + { step = 2; continue; } + case 1: + r0 = pxsim.image.ofBuffer(_hex15829); + case 2: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = s.tmp_1; + return leave(s, r0) + default: oops() +} } } +game_defaultCursorImage__P4728.info = {"start":17303,"length":690,"line":548,"column":4,"endLine":574,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultCursorImage","argumentNames":[]} + +function game_defaultCursorImage__P4728_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_defaultCursorImage__P4728, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, +} } + +const _hex15827 = pxsim.BufferMethods.createBufferFromHex("87040a000800000011111101010000010111010111100001011101010100000101000001100010000001010000100000") +const _hex15829 = pxsim.BufferMethods.createBufferFromHex("87040b000b00000000606686080000006076776686000000607777676608000076171111670800007671177766080000767117776608000076711777660800007617111167080000607777676608000060767766860000000060668608000000") + + + + +function game_defaultFrame__P4726(s) { +let r0 = s.r0, 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___1877); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = s.caps[0].fields["_player"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 == s.caps[1]); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 2; continue; } - s.tmp_4 = music_Melody_unregisterMelody__P4369_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.callLocIdx = 89; s.pc = 8; return s.tmp_4; - case 8: - r0 = s.retval; + if (!r0) { step = 1; continue; } + r0 = pxsim.image.ofBuffer(_hex15833); + { step = 2; continue; } + case 1: + r0 = pxsim.image.ofBuffer(_hex15835); case 2: - case 3: - { step = 6; continue; } - case 4: - case 5: - { step = 1; continue; } - case 6: - r0 = undefined; + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -music_Melody_playCore_inline__P13840.info = {"start":7884,"length":601,"line":246,"column":34,"endLine":260,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} +game_defaultFrame__P4726.info = {"start":16515,"length":556,"line":509,"column":4,"endLine":531,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultFrame","argumentNames":[]} -function music_Melody_playCore_inline__P13840_mk(s) { +function game_defaultFrame__P4726_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_playCore_inline__P13840, depth: s.depth + 1, + parent: s, fn: game_defaultFrame__P4726, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, } } +const _hex15833 = pxsim.BufferMethods.createBufferFromHex("8704030003000000110100000101000011010000") +const _hex15835 = pxsim.BufferMethods.createBufferFromHex("87040c000c0000000000000000000000b0bbbbbbbb0b0000b0bbbbbbbbcb0000b0db1111bdcb0000b01b1111b1cb0000b01b1111b1cb0000b01b1111b1cb0000b01b1111b1cb0000b0db1111bdcb0000b0bbbbbbbbcb0000b0bbbbbbbbcb000000cccccccccc0000") -function music_Melody_unregisterMelody__P4369(s) { +function game_BaseDialog_clearInterior__P4715(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33557,28 +35662,96 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.d___15200 = undefined; + s.s___15207 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C1626_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals.music_Melody_playingMelodies___4371); + if (!checkSubtype(r0, game_BaseDialog__C2737_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; } - r0 = pxsim_Array_.removeElement(globals.music_Melody_playingMelodies___4371, s.arg0); + s.tmp_2 = game_BaseDialog_fastFill__P4714_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 = 1230; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + { step = 7; continue; } case 1: case 2: + s.d___15200 = (1); + case 3: + s.tmp_1 = r0 = s.d___15200; + 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 = 6; continue; } + s.s___15207 = (1); + case 4: + s.tmp_1 = r0 = s.s___15207; + 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 = 5; continue; } + s.tmp_4 = game_BaseDialog_drawPartial__P4716_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = 4; + s.tmp_4.arg2 = s.d___15200; + s.tmp_4.arg3 = s.s___15207; + s.callLocIdx = 1231; s.pc = 9; return s.tmp_4; + case 9: + r0 = s.retval; + r0 = (s.s___15207 + 1); + s.s___15207 = (r0); + { step = 4; continue; } + case 5: + r0 = (s.d___15200 + 1); + s.d___15200 = (r0); + { step = 3; continue; } + case 6: + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_unregisterMelody__P4369.info = {"start":7470,"length":201,"line":235,"column":8,"endLine":240,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"unregisterMelody","argumentNames":["this"]} +game_BaseDialog_clearInterior__P4715.info = {"start":3942,"length":342,"line":133,"column":8,"endLine":142,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"clearInterior","argumentNames":["this"]} -function music_Melody_unregisterMelody__P4369_mk(s) { +function game_BaseDialog_clearInterior__P4715_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_unregisterMelody__P4369, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_clearInterior__P4715, depth: s.depth + 1, pc: 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___15200: undefined, + s___15207: undefined, arg0: undefined, } } @@ -33586,7 +35759,7 @@ function music_Melody_unregisterMelody__P4369_mk(s) { -function music_Melody_registerMelody__P4368(s) { +function game_BaseDialog_drawPartial__P4716(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33596,53 +35769,98 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.x0___15225 = undefined; + s.y0___15233 = undefined; + s.xf___15241 = undefined; + s.yf___15248 = undefined; + s.e___15255 = undefined; + s.t___15261 = 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, music_Melody__C1626_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals.music_Melody_playingMelodies___4371); + if (!checkSubtype(r0, game_BaseDialog__C2737_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 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_0 + s.tmp_1); + s.x0___15225 = (r0); + r0 = s.arg0.fields["innerTop"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - globals.music_Melody_playingMelodies___4371 = (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___15233 = (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___15241 = (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___15248 = (r0); + s.e___15255 = (0); case 1: + r0 = s.arg0.fields["unit"]; + s.tmp_1 = r0; + r0 = (s.e___15255 < s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.t___15261 = (0); case 2: - r0 = pxsim_Array__length(globals.music_Melody_playingMelodies___4371); + r0 = s.arg0.fields["unit"]; s.tmp_1 = r0; - r0 = (s.tmp_1 > 4); + r0 = (s.t___15261 < s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_2 = music_Melody_stop__P1631_mk(s); - s.tmp_3 = r0 = globals.music_Melody_playingMelodies___4371; - r0 = pxsim_Array__length(globals.music_Melody_playingMelodies___4371); - s.tmp_5 = r0; - r0 = (s.tmp_5 - 1); + r0 = s.arg0.fields["image"]; + s.tmp_2 = r0; + r0 = (s.x0___15225 + s.e___15255); + s.tmp_3 = r0; + r0 = (s.y0___15233 + s.t___15261); s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); - s.tmp_2.arg0 = r0; - s.callLocIdx = 84; s.pc = 5; return s.tmp_2; - case 5: - r0 = s.retval; + r0 = s.arg0.fields["frame"]; + s.tmp_6 = r0; + r0 = (s.xf___15241 + s.e___15255); + s.tmp_7 = r0; + r0 = (s.yf___15248 + s.t___15261); + 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___15261 + 1); + s.t___15261 = (r0); + { step = 2; continue; } case 3: + r0 = (s.e___15255 + 1); + s.e___15255 = (r0); + { step = 1; continue; } case 4: - r0 = pxsim_Array_.removeElement(globals.music_Melody_playingMelodies___4371, s.arg0); - r0 = pxsim_Array__push(globals.music_Melody_playingMelodies___4371, s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_registerMelody__P4368.info = {"start":6888,"length":573,"line":223,"column":8,"endLine":234,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"registerMelody","argumentNames":["this"]} +game_BaseDialog_drawPartial__P4716.info = {"start":4294,"length":604,"line":144,"column":8,"endLine":159,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawPartial","argumentNames":["this","index","colTo","rowTo"]} -function music_Melody_registerMelody__P4368_mk(s) { +function game_BaseDialog_drawPartial__P4716_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_registerMelody__P4368, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_drawPartial__P4716, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33650,14 +35868,26 @@ function music_Melody_registerMelody__P4368_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + x0___15225: undefined, + y0___15233: undefined, + xf___15241: undefined, + yf___15248: undefined, + e___15255: undefined, + t___15261: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function music_MelodyPlayer_play__P1641(s) { +function game_BaseDialog_fastFill__P4714(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33667,653 +35897,4146 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.notes___13873 = undefined; - s.pos___13877 = undefined; - s.duration___13878 = undefined; - s.octave___13879 = undefined; - s.tempo___13880 = undefined; - s.hz___13881 = undefined; - s.endHz___13882 = undefined; - s.ms___13885 = undefined; - s.timePos___13886 = undefined; - s.startTime___13887 = undefined; - s.now___13890 = undefined; - s.envA___13891 = undefined; - s.envD___13892 = undefined; - s.envS___13893 = undefined; - s.envR___13894 = undefined; - s.soundWave___13895 = undefined; - s.sndInstr___13896 = undefined; - s.sndInstrPtr___13902 = undefined; - s.addForm___13903 = undefined; - s.scanNextWord___13963 = undefined; - s.token___14020 = undefined; - s.tokenKind___14021 = undefined; - s.consumeToken___14024 = undefined; - s.currNote___14100 = undefined; - s.prevNote___14102 = undefined; - s.timeLeft___14105 = undefined; - s.note___14119 = undefined; - s.i___14123 = undefined; - s.noteChar___14129 = undefined; - s.keyNumber___14203 = undefined; - s.currMs___14220 = undefined; - s.beat___14224 = undefined; - s.timeLeft___14281 = undefined; + s.color___15297 = 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, music_MelodyPlayer__C1636_VT)) failedCast(r0); - r0 = pxsim_pxtrt.mklocRef(); + if (!checkSubtype(r0, game_BaseDialog__C2737_VT)) failedCast(r0); + r0 = s.arg0.fields["frame"]; s.tmp_0 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1); - s.arg1 = (s.tmp_0); - r0 = s.arg0.fields["melody"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = (s.arg1 % 3); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.arg1, 3); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_2); + s.color___15297 = (r0); + s.tmp_0 = helpers_imageFillRect__P1803_mk(s); + r0 = s.arg0.fields["image"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["innerLeft"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 1; continue; } - { step = 59; continue; } + 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___15297; + s.callLocIdx = 1229; s.pc = 1; return s.tmp_0; case 1: - case 2: - s.tmp_4 = r0 = s.arg1; - s.tmp_6 = Math_clamp__P127_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__P1621_mk(s); - s.callLocIdx = 91; s.pc = 61; return s.tmp_10; - case 61: - r0 = s.retval; - s.tmp_9 = r0; - r0 = (s.tmp_8 * s.tmp_9); - s.tmp_7 = r0; - r0 = (s.tmp_7 >> 8); - s.tmp_6.arg2 = r0; - s.callLocIdx = 92; 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___13873 = (r0); - r0 = pxsim_pxtrt.mklocRef(); - s.pos___13877 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.pos___13877, 0); - r0 = pxsim_pxtrt.mklocRef(); - s.duration___13878 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.duration___13878, 4); - r0 = pxsim_pxtrt.mklocRef(); - s.octave___13879 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.octave___13879, 4); - r0 = pxsim_pxtrt.mklocRef(); - s.tempo___13880 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.tempo___13880, 120); - r0 = pxsim_pxtrt.mklocRef(); - s.hz___13881 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.hz___13881, 0); - r0 = pxsim_pxtrt.mklocRef(); - s.endHz___13882 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.endHz___13882, -1); - r0 = pxsim_pxtrt.mklocRef(); - s.ms___13885 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.ms___13885, 0); - s.timePos___13886 = (0); - r0 = pxsim.control.millis(); - s.startTime___13887 = (r0); - s.now___13890 = (0); - r0 = pxsim_pxtrt.mklocRef(); - s.envA___13891 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.envA___13891, 0); - r0 = pxsim_pxtrt.mklocRef(); - s.envD___13892 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.envD___13892, 0); - r0 = pxsim_pxtrt.mklocRef(); - s.envS___13893 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.envS___13893, 255); - r0 = pxsim_pxtrt.mklocRef(); - s.envR___13894 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.envR___13894, 0); - r0 = pxsim_pxtrt.mklocRef(); - s.soundWave___13895 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.soundWave___13895, 1); - r0 = pxsim.control.createBuffer(60); - s.sndInstr___13896 = (r0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_BaseDialog_fastFill__P4714.info = {"start":3683,"length":249,"line":128,"column":8,"endLine":131,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"fastFill","argumentNames":["this","index","x","y","w","h"]} + +function game_BaseDialog_fastFill__P4714_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_BaseDialog_fastFill__P4714, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + color___15297: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, +} } + + + + + +function game_BaseDialog_drawBorder__P4713(s) { +let r0 = s.r0, 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___15758 = undefined; + s.c___15774 = undefined; + s.r___15808 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C2737_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__P4714_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 = 1213; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_fastFill__P4714_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 = 1214; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_fastFill__P4714_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 = 1215; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_fastFill__P4714_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 = 1216; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_fastFill__P4714_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 = 1217; 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___15758 = (r0); + s.tmp_0 = game_BaseDialog_fastFill__P4714_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 6; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = s.y___15758; + s.tmp_0.arg4 = 1; + s.tmp_0.arg5 = 1; + s.callLocIdx = 1218; s.pc = 17; return s.tmp_0; + case 17: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_fastFill__P4714_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 7; + s.tmp_0.arg2 = 1; + s.tmp_0.arg3 = s.y___15758; + 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 = 1219; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_fastFill__P4714_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___15758; + s.tmp_0.arg4 = 1; + s.tmp_0.arg5 = 1; + s.callLocIdx = 1220; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + { step = 11; continue; } + case 1: + case 2: + s.c___15774 = (0); + case 3: + r0 = s.arg0.fields["columns"]; + s.tmp_1 = r0; + r0 = (s.c___15774 < s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + r0 = (s.c___15774 == 0); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 4; continue; } + s.tmp_3 = game_BaseDialog_drawPartial__P4716_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 = 1221; s.pc = 20; return s.tmp_3; + case 20: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_drawPartial__P4716_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 = 1222; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + { step = 7; continue; } + case 4: + s.tmp_1 = r0 = s.c___15774; + 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__P4716_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = 2; + s.tmp_4.arg2 = s.c___15774; + s.tmp_4.arg3 = 0; + s.callLocIdx = 1223; s.pc = 22; return s.tmp_4; + case 22: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_drawPartial__P4716_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 8; + s.tmp_0.arg2 = s.c___15774; + r0 = s.arg0.fields["rows"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 1); + s.tmp_0.arg3 = r0; + s.callLocIdx = 1224; s.pc = 23; return s.tmp_0; + case 23: + r0 = s.retval; + { step = 6; continue; } + case 5: + s.tmp_0 = game_BaseDialog_drawPartial__P4716_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 1; + s.tmp_0.arg2 = s.c___15774; + s.tmp_0.arg3 = 0; + s.callLocIdx = 1225; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_drawPartial__P4716_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 7; + s.tmp_0.arg2 = s.c___15774; + r0 = s.arg0.fields["rows"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 1); + s.tmp_0.arg3 = r0; + s.callLocIdx = 1226; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + case 6: + case 7: + r0 = (s.c___15774 + 1); + s.c___15774 = (r0); + { step = 3; continue; } + case 8: + s.r___15808 = (1); + case 9: + s.tmp_1 = r0 = s.r___15808; + 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__P4716_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = 3; + s.tmp_4.arg2 = 0; + s.tmp_4.arg3 = s.r___15808; + s.callLocIdx = 1227; s.pc = 26; return s.tmp_4; + case 26: + r0 = s.retval; + s.tmp_0 = game_BaseDialog_drawPartial__P4716_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___15808; + s.callLocIdx = 1228; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + r0 = (s.r___15808 + 1); + s.r___15808 = (r0); + { step = 9; continue; } + case 10: + case 11: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_BaseDialog_drawBorder__P4713.info = {"start":2352,"length":1321,"line":90,"column":8,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawBorder","argumentNames":["this"]} + +function game_BaseDialog_drawBorder__P4713_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_BaseDialog_drawBorder__P4713, depth: s.depth + 1, + pc: 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___15758: undefined, + c___15774: undefined, + r___15808: undefined, + arg0: undefined, +} } + + + + + +function game_BaseDialog_update__P2750(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C2737_VT)) failedCast(r0); + s.tmp_0 = game_BaseDialog_clearInterior__P4715_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1208; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = game_BaseDialog__C2737_v2_1_mk(s); + s.tmp_0.arg0 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, game_BaseDialog__C2737_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__P2753_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1209; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_BaseDialog_update__P2750.info = {"start":1570,"length":121,"line":61,"column":8,"endLine":65,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"update","argumentNames":["this"]} + +function game_BaseDialog_update__P2750_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_BaseDialog_update__P2750, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function game_BaseDialog_drawCursorRow__P2753(s) { +let r0 = s.r0, 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.offset___15105 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C2737_VT)) failedCast(r0); + s.offset___15105 = (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; } + s.offset___15105 = (1); + case 1: + case 2: + 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_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__P4719_mk(s); + s.tmp_8.arg0 = s.arg0; + s.callLocIdx = 1210; 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___15105); + 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__P4720_mk(s); + s.tmp_19.arg0 = s.arg0; + s.callLocIdx = 1211; 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() +} } } +game_BaseDialog_drawCursorRow__P2753.info = {"start":1863,"length":479,"line":75,"column":8,"endLine":88,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawCursorRow","argumentNames":["this"]} + +function game_BaseDialog_drawCursorRow__P2753_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_BaseDialog_drawCursorRow__P2753, depth: s.depth + 1, + pc: 0, retval: undefined, 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___15105: undefined, + arg0: undefined, +} } + + + + + +function game_BaseDialog_cursorRowHeight__P4717(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C2737_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); + return leave(s, r0) + default: oops() +} } } +game_BaseDialog_cursorRowHeight__P4717.info = {"start":4908,"length":82,"line":161,"column":8,"endLine":163,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"cursorRowHeight","argumentNames":["this"]} + +function game_BaseDialog_cursorRowHeight__P4717_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_BaseDialog_cursorRowHeight__P4717, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function game_BaseDialog_drawTextCore__P2752(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_BaseDialog__C2737_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_BaseDialog_drawTextCore__P2752.info = {"start":1788,"length":65,"line":71,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawTextCore","argumentNames":["this"]} + +function game_BaseDialog_drawTextCore__P2752_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_BaseDialog_drawTextCore__P2752, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function controller__setUserEventsEnabled__P2049(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + globals._userEventsEnabled___4550 = (s.arg0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller__setUserEventsEnabled__P2049.info = {"start":10070,"length":101,"line":291,"column":4,"endLine":293,"endColumn":5,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"_setUserEventsEnabled","argumentNames":["enabled"]} + +function controller__setUserEventsEnabled__P2049_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller__setUserEventsEnabled__P2049, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function controller_Button_isPressed__P2043(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C2032_VT)) failedCast(r0); + r0 = s.arg0.fields["_pressed"]; + return leave(s, r0) + default: oops() +} } } +controller_Button_isPressed__P2043.info = {"start":6303,"length":57,"line":185,"column":8,"endLine":187,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"isPressed","argumentNames":["this"]} + +function controller_Button_isPressed__P2043_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Button_isPressed__P2043, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function console_inspect__P382(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.asArr___17472 = undefined; + s.asString___17490 = undefined; + s.keys___17502 = undefined; + s.snipped___17506 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim_pxtcore.typeOf(s.arg0); + s.tmp_1 = r0; + r0 = (s.tmp_1 == "string"); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0; + { step = 17; continue; } + { step = 16; continue; } + case 1: + r0 = pxsim_pxtcore.typeOf(s.arg0); + s.tmp_3 = r0; + r0 = (s.tmp_3 == "number"); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 2; continue; } + r0 = pxsim_String_.mkEmpty(); + s.tmp_4 = r0; + 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_5 = r0; + r0 = pxsim_String__concat(s.tmp_4, s.tmp_5); + { step = 17; continue; } + { step = 15; continue; } + case 2: + r0 = pxsim_Array_.isArray(s.arg0); + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 5; continue; } + s.asArr___17472 = (s.arg0); + r0 = pxsim_Array__length(s.asArr___17472); + 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__P103_mk(s); + s.tmp_2.arg0 = s.asArr___17472; + s.tmp_2.arg1 = ","; + s.callLocIdx = 39; s.pc = 19; return s.tmp_2; + case 19: + r0 = s.retval; + { step = 17; continue; } + { step = 4; continue; } + case 3: + r0 = pxsim_String_.mkEmpty(); + s.tmp_4 = r0; + s.tmp_7 = helpers_arrayJoin__P103_mk(s); + s.tmp_8 = helpers_arraySlice__P115_mk(s); + s.tmp_8.arg0 = s.asArr___17472; + s.tmp_8.arg1 = 0; + s.tmp_8.arg2 = s.arg1; + s.callLocIdx = 40; s.pc = 21; return s.tmp_8; + case 21: + r0 = s.retval; + s.tmp_7.arg0 = r0; + s.tmp_7.arg1 = ","; + s.callLocIdx = 41; s.pc = 20; return s.tmp_7; + case 20: + r0 = s.retval; + s.tmp_6 = r0; + if ((s.tmp_6) && (s.tmp_6).vtable) { + setupResume(s, 22); + pxsim_String__stringConv(s.tmp_6); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_6) + ""; } + case 22: + r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_String__concat(s.tmp_4, s.tmp_5); + s.tmp_3 = r0; + r0 = pxsim_String__concat(s.tmp_3, "..."); + { step = 17; continue; } + case 4: + { step = 14; continue; } + case 5: + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 23); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 23: + r0 = s.retval; + s.tmp_9 = r0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_10 = r0; + r0 = pxsim_String__concat(s.tmp_9, s.tmp_10); + s.asString___17490 = (r0); + r0 = (s.asString___17490 != "[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___17490 != "[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___17490; + { step = 17; continue; } + case 8: + case 9: + r0 = pxsim_pxtrt.keysOf(s.arg0); + s.keys___17502 = (r0); + r0 = pxsim_Array__length(s.keys___17502); + s.tmp_0 = r0; + r0 = (s.tmp_0 > s.arg1); + s.snipped___17506 = (r0); + r0 = pxsim_numops_toBoolDecr(s.snipped___17506); + if (!r0) { step = 10; continue; } + s.tmp_0 = helpers_arraySlice__P115_mk(s); + s.tmp_0.arg0 = s.keys___17502; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 42; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.keys___17502 = (r0); + case 10: + case 11: + r0 = pxsim_pxtcore_mkAction(1, console_inspect_inline__P17523); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_numops_toBoolDecr(s.snipped___17506); + if (!r0) { step = 12; continue; } + r0 = "\n ..."; + { step = 13; continue; } + case 12: + r0 = pxsim_String_.mkEmpty(); + case 13: + // jmp value (already in r0) + s.tmp_1 = r0; + s.tmp_7 = helpers_arrayReduce__P112_mk(s); + s.tmp_7.arg0 = s.keys___17502; + s.tmp_7.arg1 = s.tmp_0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_7.arg2 = r0; + s.callLocIdx = 43; s.pc = 25; return s.tmp_7; + case 25: + r0 = s.retval; + s.tmp_6 = r0; + if ((s.tmp_6) && (s.tmp_6).vtable) { + setupResume(s, 26); + pxsim_String__stringConv(s.tmp_6); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_6) + ""; } + case 26: + r0 = s.retval; + s.tmp_5 = r0; + if ((s.tmp_1) && (s.tmp_1).vtable) { + setupResume(s, 27); + pxsim_String__stringConv(s.tmp_1); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_1) + ""; } + case 27: + r0 = s.retval; + s.tmp_8 = r0; + r0 = pxsim_String__concat(s.tmp_5, s.tmp_8); + s.tmp_4 = r0; + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 28); + pxsim_String__stringConv(s.tmp_4); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_4) + ""; } + case 28: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_String__concat("{", s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, "\n}"); + { step = 17; continue; } + case 14: + case 15: + case 16: + r0 = undefined; + case 17: + return leave(s, r0) + default: oops() +} } } +console_inspect__P382.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__P382_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: console_inspect__P382, depth: s.depth + 1, + pc: 0, retval: undefined, 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, + asArr___17472: undefined, + asString___17490: undefined, + keys___17502: undefined, + snipped___17506: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function console_inspect_inline__P17523(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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; + } + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 1); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 1: + r0 = s.retval; + s.tmp_0 = r0; + if ((s.arg1) && (s.arg1).vtable) { + setupResume(s, 2); + pxsim_String__stringConv(s.arg1); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg1) + ""; } + case 2: + r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_String__concat("\n ", s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_4, ": "); + s.tmp_3 = r0; + r0 = pxsim_pxtrt.mapGetGeneric(s.caps[0], s.arg1); + s.tmp_7 = r0; + if ((s.tmp_7) && (s.tmp_7).vtable) { + setupResume(s, 3); + pxsim_String__stringConv(s.tmp_7); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_7) + ""; } + case 3: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_6); + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 4); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 4: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + return leave(s, r0) + default: oops() +} } } +console_inspect_inline__P17523.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 console_inspect_inline__P17523_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: console_inspect_inline__P17523, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function helpers_arrayReduce__P112(s) { +let r0 = s.r0, 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___17550 = undefined; + s.i___17553 = 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___17550 = (r0); + s.i___17553 = (0); + case 1: + r0 = (s.i___17553 < s.len___17550); + 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___17553); + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = s.i___17553; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 9; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.arg2 = (r0); + r0 = (s.i___17553 + 1); + s.i___17553 = (r0); + { step = 1; continue; } + case 2: + r0 = s.arg2; + return leave(s, r0) + default: oops() +} } } +helpers_arrayReduce__P112.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__P112_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: helpers_arrayReduce__P112, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + len___17550: undefined, + i___17553: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function helpers_arrayJoin__P103(s) { +let r0 = s.r0, 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.r___17578 = undefined; + s.len___17579 = undefined; + s.i___17582 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = (s.arg1 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = (s.arg1 === null); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + s.arg1 = (","); + case 3: + case 4: + r0 = pxsim_String_.mkEmpty(); + s.r___17578 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___17579 = (r0); + s.i___17582 = (0); + case 5: + r0 = (s.i___17582 < s.len___17579); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = (s.i___17582 > 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 6; continue; } + r0 = s.tmp_1; + { step = 7; continue; } + case 6: + r0 = s.arg1; + case 7: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 8; continue; } + if ((s.r___17578) && (s.r___17578).vtable) { + setupResume(s, 15); + pxsim_String__stringConv(s.r___17578); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___17578) + ""; } + case 15: + r0 = s.retval; + s.tmp_3 = r0; + if ((s.arg1) && (s.arg1).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.arg1); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg1) + ""; } + case 16: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); + s.r___17578 = (r0); + case 8: + case 9: + r0 = pxsim_Array__getAt(s.arg0, s.i___17582); + s.tmp_1 = r0; + r0 = (s.tmp_1 === undefined); + 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: + r0 = pxsim_Array__getAt(s.arg0, s.i___17582); + s.tmp_2 = r0; + r0 = (s.tmp_2 === null); + case 11: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 12; continue; } + r0 = pxsim_String_.mkEmpty(); + { step = 13; continue; } + case 12: + r0 = pxsim_Array__getAt(s.arg0, s.i___17582); + case 13: + // jmp value (already in r0) + s.tmp_4 = r0; + if ((s.r___17578) && (s.r___17578).vtable) { + setupResume(s, 17); + pxsim_String__stringConv(s.r___17578); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___17578) + ""; } + case 17: + r0 = s.retval; + s.tmp_5 = r0; + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 18); + pxsim_String__stringConv(s.tmp_4); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_4) + ""; } + case 18: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_String__concat(s.tmp_5, s.tmp_6); + s.r___17578 = (r0); + r0 = (s.i___17582 + 1); + s.i___17582 = (r0); + { step = 5; continue; } + case 14: + r0 = s.r___17578; + return leave(s, r0) + default: oops() +} } } +helpers_arrayJoin__P103.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__P103_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: helpers_arrayJoin__P103, depth: s.depth + 1, + pc: 0, retval: undefined, 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, + r___17578: undefined, + len___17579: undefined, + i___17582: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function scene_setBackgroundImage__P2719(s) { +let r0 = s.r0, 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___17621 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = game_currentScene__P2792_mk(s); + s.callLocIdx = 1195; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.scene___17621 = (r0); + s.tmp_0 = scene_Background_image__P2512_mk(s); + r0 = s.scene___17621.fields["background"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 1196; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_setBackgroundImage__P2719.info = {"start":1962,"length":135,"line":78,"column":4,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setBackgroundImage","argumentNames":["img"]} + +function scene_setBackgroundImage__P2719_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_setBackgroundImage__P2719, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + scene___17621: undefined, + arg0: undefined, +} } + + + + + +function scene_Background_image__P2512(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_Background__C2505_VT)) failedCast(r0); + r0 = (s.arg0).fields["_image"] = (s.arg1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_Background_image__P2512.info = {"start":1003,"length":68,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"image","argumentNames":["this","image"]} + +function scene_Background_image__P2512_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Background_image__P2512, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, +} } + + + + + +function scene_Background_image__P2511(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_Background__C2505_VT)) failedCast(r0); + r0 = s.arg0.fields["_image"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_3 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___1877); + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___1877); + s.tmp_6 = r0; + r0 = pxsim.image.create(s.tmp_5, s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["_image"] = (s.tmp_4); + case 1: + case 2: + r0 = s.arg0.fields["_image"]; + return leaveAccessor(s, r0) + default: oops() +} } } +scene_Background_image__P2511.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__P2511.isGetter = true; + +function scene_Background_image__P2511_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Background_image__P2511, depth: s.depth + 1, + pc: 0, retval: undefined, 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_over__P2802(s) { +let r0 = s.r0, 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.scoreInfo___17666 = undefined; + s.highScore___17670 = undefined; + s.overDialog___17699 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + s.tmp_0 = game_init__P4748_mk(s); + s.tmp_0.arg0 = undefined; + s.callLocIdx = 1318; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals.__isOver___4747); + if (!r0) { step = 1; continue; } + { step = 17; continue; } + case 1: + case 2: + globals.__isOver___4747 = (true); + r0 = pxsim_numops_toBoolDecr(globals.__gameOverHandler___4745); + if (!r0) { step = 3; continue; } + s.tmp_0 = lambda_2_mk(s); + s.tmp_0.argL = globals.__gameOverHandler___4745; + s.tmp_0.arg0 = s.arg0; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1319; 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 = 6; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg0); + if (!r0) { step = 4; continue; } + r0 = globals.winEffect___2790; + { step = 5; continue; } + case 4: + r0 = globals.loseEffect___2791; + case 5: + // jmp value (already in r0) + s.tmp_2 = r0; + s.arg1 = (s.tmp_2); + case 6: + case 7: + s.tmp_0 = info_saveAllScores__P2400_mk(s); + s.callLocIdx = 1320; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + s.tmp_0 = info_PlayerInfo_getState__P2479_mk(s); + s.tmp_0.arg0 = globals.player1___2497; + s.callLocIdx = 1321; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + s.scoreInfo___17666 = (r0); + s.tmp_0 = info_highScore__P2404_mk(s); + s.callLocIdx = 1322; s.pc = 22; return s.tmp_0; + case 22: + r0 = s.retval; + s.highScore___17670 = (r0); + r0 = s.scoreInfo___17666.fields["score"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > s.highScore___17670); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.tmp_2 = info_saveHighScore__P2401_mk(s); + s.callLocIdx = 1323; s.pc = 23; return s.tmp_2; + case 23: + r0 = s.retval; + case 8: + case 9: + case 10: + s.tmp_0 = r0 = globals._sceneStack___4741; + 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___4741); + 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__P2705_mk(s); + s.tmp_2.arg0 = globals._scene___4740; + s.callLocIdx = 1324; s.pc = 24; return s.tmp_2; + case 24: + r0 = s.retval; + s.tmp_0 = game_popScene__P2797_mk(s); + s.callLocIdx = 1325; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + { step = 10; continue; } + case 13: + s.tmp_0 = game_pushScene__P2796_mk(s); + s.callLocIdx = 1326; s.pc = 26; return s.tmp_0; + case 26: + r0 = s.retval; + s.tmp_0 = scene_setBackgroundImage__P2719_mk(s); + r0 = pxsim_ImageMethods.clone(globals.screen___1877); + s.tmp_0.arg0 = r0; + s.callLocIdx = 1327; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg0); + if (!r0) { step = 14; continue; } + s.tmp_0 = music_Melody_play__P1633_mk(s); + s.tmp_0.arg0 = globals.winSound___4739; + s.tmp_0.arg1 = 255; + s.callLocIdx = 1328; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; + { step = 15; continue; } + case 14: + s.tmp_0 = music_Melody_play__P1633_mk(s); + s.tmp_0.arg0 = globals.loseSound___4737; + s.tmp_0.arg1 = 255; + s.callLocIdx = 1329; s.pc = 29; return s.tmp_0; + case 29: + 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 = 1330; s.pc = 30; 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 = 1330; s.pc = 30; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1330; s.pc = 30; return s.tmp_0;; } + else { s.callLocIdx = 1330; s.pc = 30; return s.tmp_0; } + } + case 30: + r0 = s.retval; + s.tmp_0 = pause__P413_mk(s); + s.tmp_0.arg0 = 400; + s.callLocIdx = 1331; s.pc = 31; return s.tmp_0; + case 31: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(game_GameOverDialog__C2776_VT); + s.tmp_0 = r0; + s.tmp_1 = game_GameOverDialog_constructor__P2777_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + r0 = s.scoreInfo___17666.fields["score"]; + s.tmp_1.arg2 = r0; + s.tmp_1.arg3 = s.highScore___17670; + s.callLocIdx = 1332; s.pc = 32; return s.tmp_1; + case 32: + r0 = s.retval; + s.overDialog___17699 = (s.tmp_0); + r0 = pxsim_pxtcore_mkAction(1, game_over_inline__P17709); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.overDialog___17699); + s.tmp_1 = scene_createRenderable__P2640_mk(s); + s.tmp_1.arg0 = 100; + s.tmp_1.arg1 = s.tmp_0; + s.tmp_1.arg2 = undefined; + s.callLocIdx = 1333; s.pc = 33; return s.tmp_1; + case 33: + r0 = s.retval; + s.tmp_0 = pause__P413_mk(s); + s.tmp_0.arg0 = 500; + s.callLocIdx = 1334; s.pc = 34; return s.tmp_0; + case 34: + r0 = s.retval; + s.tmp_0 = game_GameOverDialog_displayCursor__P2778_mk(s); + s.tmp_0.arg0 = s.overDialog___17699; + s.callLocIdx = 1335; s.pc = 35; return s.tmp_0; + case 35: + r0 = s.retval; + s.tmp_0 = game_waitAnyButton__P2794_mk(s); + s.callLocIdx = 1336; s.pc = 36; return s.tmp_0; + case 36: + r0 = s.retval; + setupResume(s, 37); + pxsim.control.reset(); + checkResumeConsumed(); + return; + case 37: + r0 = s.retval; + case 16: + case 17: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_over__P2802.info = {"start":5382,"length":1865,"line":181,"column":4,"endLine":235,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"over","argumentNames":["win","effect"]} + +function game_over__P2802_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_over__P2802, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + scoreInfo___17666: undefined, + highScore___17670: undefined, + overDialog___17699: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function game_over_inline__P17709(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = game_GameOverDialog__C2776_v0_1_mk(s); + s.tmp_0.arg0 = s.caps[0]; + if (!checkSubtype(s.tmp_0.arg0, game_GameOverDialog__C2776_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___1877); + 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() +} } } +game_over_inline__P17709.info = {"start":6812,"length":254,"line":221,"column":48,"endLine":228,"endColumn":13,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["target"]} + +function game_over_inline__P17709_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_over_inline__P17709, depth: s.depth + 1, + pc: 0, retval: undefined, 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_waitAnyButton__P2794(s) { +let r0 = s.r0, 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.__waitAnyButton___4744); + if (!r0) { step = 1; continue; } + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = globals.__waitAnyButton___4744; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1300; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + { step = 2; continue; } + case 1: + s.tmp_0 = pause__P413_mk(s); + s.tmp_0.arg0 = 3000; + s.callLocIdx = 1301; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_waitAnyButton__P2794.info = {"start":967,"length":111,"line":35,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"waitAnyButton","argumentNames":[]} + +function game_waitAnyButton__P2794_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_waitAnyButton__P2794, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function game_GameOverDialog_update__P2779(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_GameOverDialog__C2776_VT)) failedCast(r0); + s.tmp_0 = game_BaseDialog_clearInterior__P4715_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1260; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = game_GameOverDialog__C2776_v2_1_mk(s); + s.tmp_0.arg0 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, game_GameOverDialog__C2776_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__P2753_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1261; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_GameOverDialog_update__P2779.info = {"start":11515,"length":173,"line":352,"column":8,"endLine":359,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"update","argumentNames":["this"]} + +function game_GameOverDialog_update__P2779_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_GameOverDialog_update__P2779, 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_drawTextCore__P2780(s) { +let r0 = s.r0, 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.scoreColor___17767 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_GameOverDialog__C2776_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 = "YOU WIN!"; + { step = 2; continue; } + case 1: + r0 = "GAME OVER!"; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.isMono(globals.screen___1877); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = 1; + { step = 4; continue; } + case 3: + r0 = 5; + case 4: + // jmp value (already in r0) + s.tmp_3 = r0; + s.tmp_4 = helpers_imagePrintCenter__P1834_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___1820; + s.callLocIdx = 1262; s.pc = 11; return s.tmp_4; + case 11: + r0 = s.retval; + r0 = s.arg0.fields["score"]; + s.tmp_1 = r0; + 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___1877); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 5; continue; } + r0 = 1; + { step = 6; continue; } + case 5: + r0 = 2; + case 6: + // jmp value (already in r0) + s.tmp_3 = r0; + s.scoreColor___17767 = (s.tmp_3); + s.tmp_0 = helpers_imagePrintCenter__P1834_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___17767; + s.tmp_0.arg4 = globals.font8___1820; + s.callLocIdx = 1263; 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__P1834_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___17767; + s.tmp_1.arg4 = globals.font5___1825; + s.callLocIdx = 1264; s.pc = 14; return s.tmp_1; + case 14: + r0 = s.retval; + { step = 8; continue; } + case 7: + s.tmp_0 = helpers_imagePrintCenter__P1834_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___17767; + s.tmp_0.arg4 = globals.font8___1820; + s.callLocIdx = 1265; 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__P2780.info = {"start":11698,"length":1200,"line":361,"column":8,"endLine":398,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawTextCore","argumentNames":["this"]} + +function game_GameOverDialog_drawTextCore__P2780_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_GameOverDialog_drawTextCore__P2780, depth: s.depth + 1, + pc: 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___17767: undefined, + arg0: undefined, +} } + + + + + +function helpers_imagePrintCenter__P1834(s) { +let r0 = s.r0, 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.w___17815 = undefined; + s.x___17821 = 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); + if (!r0) { step = 1; continue; } + s.tmp_2 = image_getFontForText__P1822_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 172; 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 = 173; 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___17815 = (r0); + r0 = pxsim_ImageMethods.width(s.arg0); + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.w___17815); + s.tmp_0 = r0; + r0 = (s.tmp_0 / 2); + s.x___17821 = (r0); + s.tmp_0 = helpers_imagePrint__P1835_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.x___17821; + 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 = 174; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +helpers_imagePrintCenter__P1834.info = {"start":15025,"length":295,"line":206,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"imagePrintCenter","argumentNames":["img","text","y","color","font"]} + +function helpers_imagePrintCenter__P1834_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: helpers_imagePrintCenter__P1834, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + w___17815: undefined, + x___17821: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, +} } + + + + + +function game_GameOverDialog_displayCursor__P2778(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_GameOverDialog__C2776_VT)) failedCast(r0); + r0 = (s.arg0).fields["cursorOn"] = (true); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_GameOverDialog_displayCursor__P2778.info = {"start":11444,"length":61,"line":348,"column":8,"endLine":350,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"displayCursor","argumentNames":["this"]} + +function game_GameOverDialog_displayCursor__P2778_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_GameOverDialog_displayCursor__P2778, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function game_GameOverDialog_constructor__P2777(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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, game_GameOverDialog__C2776_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__P2749_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___1877); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 46; + s.tmp_1 = game_defaultSplashFrame__P4727_mk(s); + s.callLocIdx = 1258; 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 = 1259; 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; + return leave(s, r0) + default: oops() +} } } +game_GameOverDialog_constructor__P2777.info = {"start":11128,"length":306,"line":338,"column":8,"endLine":346,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"inline","argumentNames":["this","win","score","highScore"]} + +function game_GameOverDialog_constructor__P2777_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_GameOverDialog_constructor__P2777, depth: s.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__P4727(s) { +let r0 = s.r0, 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___1877); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.image.ofBuffer(_hex17855); + { step = 2; continue; } + case 1: + r0 = pxsim.image.ofBuffer(_hex17857); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.tmp_1; + return leave(s, r0) + default: oops() +} } } +game_defaultSplashFrame__P4727.info = {"start":17077,"length":220,"line":533,"column":4,"endLine":546,"endColumn":5,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"defaultSplashFrame","argumentNames":[]} + +function game_defaultSplashFrame__P4727_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_defaultSplashFrame__P4727, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, +} } + +const _hex17855 = pxsim.BufferMethods.createBufferFromHex("8704030003000000010100000101000001010000") +const _hex17857 = pxsim.BufferMethods.createBufferFromHex("8704030003000000f1010000f1010000f1010000") + + + + +function scene_Scene_destroy__P2705(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C2678_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() +} } } +scene_Scene_destroy__P2705.info = {"start":7254,"length":764,"line":203,"column":8,"endLine":221,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"destroy","argumentNames":["this"]} + +function scene_Scene_destroy__P2705_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Scene_destroy__P2705, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function info_highScore__P2404(s) { +let r0 = s.r0, 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__P1913_mk(s); + s.tmp_1.arg0 = "high-score"; + s.callLocIdx = 970; 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() +} } } +info_highScore__P2404.info = {"start":7816,"length":98,"line":263,"column":4,"endLine":265,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"highScore","argumentNames":[]} + +function info_highScore__P2404_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: info_highScore__P2404, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, +} } + + + + + +function settings_readNumber__P1913(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.buf___18091 = undefined; + s.nums___18098 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim.settings._get(s.arg0); + s.buf___18091 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___18091); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = undefined; + { step = 7; continue; } + { step = 6; continue; } + case 1: + s.tmp_2 = msgpack_unpackNumberArray__P183_mk(s); + s.tmp_2.arg0 = s.buf___18091; + s.tmp_2.arg1 = 0; + s.callLocIdx = 208; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + s.nums___18098 = (r0); + s.tmp_0 = r0 = s.nums___18098; + 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___18098); + s.tmp_1 = r0; + r0 = (s.tmp_1 >= 1); + case 3: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.nums___18098, 0); + { step = 7; continue; } + case 4: + case 5: + r0 = undefined; + { step = 7; continue; } + case 6: + r0 = undefined; + case 7: + return leave(s, r0) + default: oops() +} } } +settings_readNumber__P1913.info = {"start":3283,"length":313,"line":131,"column":4,"endLine":141,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readNumber","argumentNames":["key"]} + +function settings_readNumber__P1913_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_readNumber__P1913, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + buf___18091: undefined, + nums___18098: undefined, + arg0: undefined, +} } + + + + + +function settings_readBuffer__P1910(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim.settings._get(s.arg0); + return leave(s, r0) + default: oops() +} } } +settings_readBuffer__P1910.info = {"start":2694,"length":72,"line":103,"column":4,"endLine":105,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readBuffer","argumentNames":["key"]} + +function settings_readBuffer__P1910_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_readBuffer__P1910, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function msgpack_unpackNumberArray__P183(s) { +let r0 = s.r0, 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___18111 = undefined; + s.fmt___18118 = undefined; + s.v___18127 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim_Array__mk(); + s.res___18111 = (r0); + case 1: + s.tmp_1 = r0 = s.arg1; + r0 = pxsim.BufferMethods.length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 10; continue; } + s.tmp_3 = r0 = s.arg1; + r0 = (s.tmp_3 + 1); + s.arg1 = (r0); + s.tmp_4 = msgpack_tagFormat__P4305_mk(s); + r0 = pxsim.BufferMethods.getByte(s.arg0, s.tmp_3); + s.tmp_4.arg0 = r0; + s.callLocIdx = 24; s.pc = 12; return s.tmp_4; + case 12: + r0 = s.retval; + s.fmt___18118 = (r0); + r0 = (s.fmt___18118 === null); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.tmp_1 = r0 = s.arg0; + r0 = (s.arg1 - 1); + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 6, s.tmp_2); + s.v___18127 = (r0); + r0 = (-31 <= s.v___18127); + 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___18127 <= 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___18111, s.v___18127); + { step = 5; continue; } + case 4: + r0 = null; + { step = 11; continue; } + case 5: + { step = 7; continue; } + case 6: + s.tmp_0 = r0 = s.res___18111; + r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___18118, 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__P175_mk(s); + s.tmp_2.arg0 = s.fmt___18118; + s.callLocIdx = 25; s.pc = 13; return s.tmp_2; + case 13: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.arg1 = (r0); + case 7: + case 8: + r0 = pxsim.BufferMethods.getByte(s.arg0, s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_1 === 193); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = (s.arg1 + 1); + s.arg1 = (r0); + { step = 8; continue; } + case 9: + { step = 1; continue; } + case 10: + r0 = s.res___18111; + case 11: + return leave(s, r0) + default: oops() +} } } +msgpack_unpackNumberArray__P183.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__P183_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: msgpack_unpackNumberArray__P183, depth: s.depth + 1, + pc: 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___18111: undefined, + fmt___18118: undefined, + v___18127: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function msgpack_tagFormat__P4305(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtcore.switch_eq(203, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(204, s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq(205, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(206, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(208, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(209, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = pxsim_pxtcore.switch_eq(210, s.tmp_0); + if (r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } + case 1: + r0 = 16; + { step = 9; continue; } + case 2: + r0 = 7; + { step = 9; continue; } + case 3: + r0 = 9; + { step = 9; continue; } + case 4: + r0 = 12; + { step = 9; continue; } + case 5: + r0 = 6; + { step = 9; continue; } + case 6: + r0 = 8; + { step = 9; continue; } + case 7: + r0 = 10; + { step = 9; continue; } + case 8: + r0 = null; + { step = 9; continue; } + r0 = undefined; + case 9: + return leave(s, r0) + default: oops() +} } } +msgpack_tagFormat__P4305.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__P4305_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: msgpack_tagFormat__P4305, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function pins_sizeOf__P175(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = Buffer_sizeOfNumberFormat__P215_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 21; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + return leave(s, r0) + default: oops() +} } } +pins_sizeOf__P175.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__P175_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: pins_sizeOf__P175, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Buffer_sizeOfNumberFormat__P215(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq(6, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(7, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = pxsim_pxtcore.switch_eq(8, s.tmp_0); + if (r0) { step = 7; continue; } + r0 = pxsim_pxtcore.switch_eq(9, s.tmp_0); + if (r0) { step = 8; continue; } + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 9; continue; } + r0 = pxsim_pxtcore.switch_eq(10, s.tmp_0); + if (r0) { step = 10; continue; } + r0 = pxsim_pxtcore.switch_eq(12, s.tmp_0); + if (r0) { step = 11; continue; } + r0 = pxsim_pxtcore.switch_eq(11, s.tmp_0); + if (r0) { step = 12; continue; } + r0 = pxsim_pxtcore.switch_eq(15, s.tmp_0); + if (r0) { step = 13; continue; } + r0 = pxsim_pxtcore.switch_eq(13, s.tmp_0); + if (r0) { step = 14; continue; } + r0 = pxsim_pxtcore.switch_eq(16, s.tmp_0); + if (r0) { step = 15; continue; } + r0 = pxsim_pxtcore.switch_eq(14, s.tmp_0); + if (r0) { step = 16; continue; } + r0 = s.tmp_0; + { step = 17; continue; } + case 1: + case 2: + case 3: + case 4: + r0 = 1; + { step = 18; continue; } + case 5: + case 6: + case 7: + case 8: + r0 = 2; + { step = 18; continue; } + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + r0 = 4; + { step = 18; continue; } + case 15: + case 16: + r0 = 8; + { step = 18; continue; } + case 17: + r0 = 0; + case 18: + return leave(s, r0) + default: oops() +} } } +Buffer_sizeOfNumberFormat__P215.info = {"start":14912,"length":856,"line":508,"column":4,"endLine":532,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOfNumberFormat","argumentNames":["format"]} + +function Buffer_sizeOfNumberFormat__P215_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Buffer_sizeOfNumberFormat__P215, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function info_saveHighScore__P2401(s) { +let r0 = s.r0, 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.hs___17911 = undefined; + s.curr___17930 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.players___4620); + if (!r0) { step = 5; continue; } r0 = pxsim_pxtrt.mklocRef(); - s.sndInstrPtr___13902 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.sndInstrPtr___13902, 0); - r0 = pxsim_pxtcore_mkAction(10, addForm_inline__P13904); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.hz___13881); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.endHz___13882); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.ms___13885); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.duration___13878); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.tempo___13880); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.envR___13894); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.sndInstrPtr___13902); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.sndInstr___13896); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.soundWave___13895); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.arg1); - s.addForm___13903 = (s.tmp_0); - r0 = pxsim_pxtcore_mkAction(3, scanNextWord_inline__P13964); + s.hs___17911 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.hs___17911, 0); + r0 = pxsim_pxtcore_mkAction(1, info_saveHighScore_inline__P17922); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.hs___17911); + s.tmp_1 = helpers_arrayForEach__P109_mk(s); + s.tmp_2 = helpers_arrayFilter__P110_mk(s); + s.tmp_2.arg0 = globals.players___4620; + s.tmp_2.arg1 = forEach_inline__P17915; + s.callLocIdx = 964; 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 = 967; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + s.tmp_0 = settings_readNumber__P1913_mk(s); + s.tmp_0.arg0 = "high-score"; + s.callLocIdx = 968; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.curr___17930 = (r0); + r0 = (s.curr___17930 == 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___17911); + s.tmp_1 = r0; + r0 = (s.tmp_1 > s.curr___17930); + 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__P1908_mk(s); + s.tmp_3.arg0 = "high-score"; + r0 = pxsim_pxtrt_ldlocRef(s.hs___17911); + s.tmp_3.arg1 = r0; + s.callLocIdx = 969; s.pc = 10; return s.tmp_3; + case 10: + r0 = s.retval; + case 3: + case 4: + case 5: + case 6: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +info_saveHighScore__P2401.info = {"start":6897,"length":393,"line":227,"column":4,"endLine":237,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"saveHighScore","argumentNames":[]} + +function info_saveHighScore__P2401_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: info_saveHighScore__P2401, depth: s.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___17911: undefined, + curr___17930: undefined, +} } + + + + + +function forEach_inline__P17915(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_1 = info_PlayerInfoImpl_hasScore__P2446_mk(s); + r0 = s.arg0.fields["impl"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 963; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.tmp_2; + return leave(s, r0) + default: oops() +} } } +forEach_inline__P17915.info = {"start":7022,"length":27,"line":231,"column":24,"endLine":231,"endColumn":51,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} + +function forEach_inline__P17915_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: forEach_inline__P17915, 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 info_saveHighScore_inline__P17922(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = r0 = s.caps[0]; + s.tmp_2 = Math_max__P130_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_2.arg0 = r0; + s.tmp_3 = info_PlayerInfoImpl_score__P2443_mk(s); + r0 = s.arg0.fields["impl"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 965; s.pc = 2; return s.tmp_3; + case 2: + r0 = s.retval; + s.tmp_2.arg1 = r0; + s.callLocIdx = 966; s.pc = 1; return s.tmp_2; + case 1: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = s.tmp_1; + return leave(s, r0) + default: oops() +} } } +info_saveHighScore_inline__P17922.info = {"start":7076,"length":38,"line":232,"column":25,"endLine":232,"endColumn":63,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["p"]} + +function info_saveHighScore_inline__P17922_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: info_saveHighScore_inline__P17922, depth: s.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 settings_writeNumber__P1908(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.arg1); + s.tmp_1 = settings_writeBuffer__P1905_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_2 = msgpack_packNumberArray__P184_mk(s); + s.tmp_2.arg0 = s.tmp_0; + s.callLocIdx = 204; s.pc = 2; return s.tmp_2; + case 2: + r0 = s.retval; + s.tmp_1.arg1 = r0; + s.callLocIdx = 205; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +settings_writeNumber__P1908.info = {"start":2265,"length":122,"line":89,"column":4,"endLine":91,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeNumber","argumentNames":["key","value"]} + +function settings_writeNumber__P1908_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_writeNumber__P1908, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function settings_writeBuffer__P1905(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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.settings._set(s.arg0, s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.settings._userClean(); + r0 = pxsim_pxtrt.panic(920); + case 1: + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +settings_writeBuffer__P1905.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__P1905_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_writeBuffer__P1905, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function msgpack_packNumberArray__P184(s) { +let r0 = s.r0, 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.off___17951 = undefined; + s.n___17953 = undefined; + s.unnamed58___U2 = undefined; + s.unnamed59___U3 = undefined; + s.buf___17963 = undefined; + s.n___17969 = undefined; + s.unnamed60___U6 = undefined; + s.unnamed61___U7 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.off___17951 = (0); + s.n___17953 = (undefined); + s.unnamed58___U2 = (s.arg0); + s.unnamed59___U3 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed59___U3; + r0 = pxsim_Array__length(s.unnamed58___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed58___U2, s.unnamed59___U3); + s.n___17953 = (r0); + s.tmp_2 = r0 = s.off___17951; + s.tmp_4 = msgpack_packNumberCore__P4306_mk(s); + s.tmp_4.arg0 = null; + s.tmp_4.arg1 = s.off___17951; + s.tmp_4.arg2 = s.n___17953; + s.callLocIdx = 26; 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___17951 = (r0); + r0 = (s.unnamed59___U3 + 1); + s.unnamed59___U3 = (r0); + { step = 1; continue; } + case 2: + s.unnamed58___U2 = (undefined); + r0 = pxsim.control.createBuffer(s.off___17951); + s.buf___17963 = (r0); + s.off___17951 = (0); + s.n___17969 = (undefined); + s.unnamed60___U6 = (s.arg0); + s.unnamed61___U7 = (0); + case 3: + s.tmp_0 = r0 = s.unnamed61___U7; + r0 = pxsim_Array__length(s.unnamed60___U6); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.unnamed60___U6, s.unnamed61___U7); + s.n___17969 = (r0); + s.tmp_2 = r0 = s.off___17951; + s.tmp_4 = msgpack_packNumberCore__P4306_mk(s); + s.tmp_4.arg0 = s.buf___17963; + s.tmp_4.arg1 = s.off___17951; + s.tmp_4.arg2 = s.n___17969; + s.callLocIdx = 27; 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___17951 = (r0); + r0 = (s.unnamed61___U7 + 1); + s.unnamed61___U7 = (r0); + { step = 3; continue; } + case 4: + s.unnamed60___U6 = (undefined); + r0 = s.buf___17963; + return leave(s, r0) + default: oops() +} } } +msgpack_packNumberArray__P184.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__P184_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: msgpack_packNumberArray__P184, depth: s.depth + 1, + pc: 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___17951: undefined, + n___17953: undefined, + unnamed58___U2: undefined, + unnamed59___U3: undefined, + buf___17963: undefined, + n___17969: undefined, + unnamed60___U6: undefined, + unnamed61___U7: undefined, + arg0: undefined, +} } + + + + + +function msgpack_packNumberCore__P4306(s) { +let r0 = s.r0, 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.tag___17983 = undefined; + s.fmt___18026 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + s.tag___17983 = (203); + s.tmp_1 = r0 = s.arg2; + r0 = (s.arg2 << 0); + s.tmp_2 = r0; + r0 = (s.tmp_1 == s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_3 = r0 = s.arg2; + r0 = (s.arg2 >>> 0); + s.tmp_4 = r0; + r0 = (s.tmp_3 == s.tmp_4); + case 2: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 19; continue; } + r0 = (-31 <= s.arg2); + s.tmp_6 = r0; + r0 = pxsim_numops_toBool(s.tmp_6); + if (r0) { step = 3; continue; } + r0 = s.tmp_6; + { step = 4; continue; } + case 3: + r0 = (s.arg2 <= 127); + case 4: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 7; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg0); + if (!r0) { step = 5; continue; } + r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.arg2); + case 5: + case 6: + r0 = 1; + { step = 23; continue; } + { step = 18; continue; } + case 7: + r0 = (0 <= s.arg2); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.pos___13877); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.notes___13873); - s.scanNextWord___13963 = (s.tmp_0); - r0 = pxsim_pxtrt.mklocRef(); - s.token___14020 = (r0); - s.tmp_0 = r0 = s.token___14020; - r0 = pxsim_String_.mkEmpty(); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + r0 = (s.arg2 <= 255); s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt.mklocRef(); - s.tokenKind___14021 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___14021, 0); - r0 = pxsim_pxtcore_mkAction(13, consumeToken_inline__P14025); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.token___14020); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tokenKind___14021); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.octave___13879); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.duration___13878); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.ms___13885); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.tempo___13880); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.hz___13881); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.soundWave___13895); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.envA___13891); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.envD___13892); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 10, s.envS___13893); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 11, s.envR___13894); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 12, s.endHz___13882); - s.consumeToken___14024 = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 8; continue; } + s.tag___17983 = (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___17983 = (205); + { step = 10; continue; } + case 9: + s.tag___17983 = (206); + case 10: + case 11: + { step = 17; continue; } + case 12: + r0 = (-127 <= s.arg2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + s.tag___17983 = (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___17983 = (209); + { step = 15; continue; } + case 14: + s.tag___17983 = (210); + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + s.tmp_0 = msgpack_tagFormat__P4305_mk(s); + s.tmp_0.arg0 = s.tag___17983; + s.callLocIdx = 22; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.fmt___18026 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg0); + if (!r0) { step = 21; continue; } + r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___17983); + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.fmt___18026; + 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__P175_mk(s); + s.tmp_1.arg0 = s.fmt___18026; + s.callLocIdx = 23; s.pc = 25; return s.tmp_1; + case 25: + r0 = s.retval; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 1); + case 23: + return leave(s, r0) + default: oops() +} } } +msgpack_packNumberCore__P4306.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__P4306_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: msgpack_packNumberCore__P4306, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tag___17983: undefined, + fmt___18026: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function info_saveAllScores__P2400(s) { +let r0 = s.r0, 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.allScoresKey___18176 = undefined; + s.allScores___18178 = undefined; + s.allScoresKey___18176 = ("all-scores"); + r0 = pxsim_numops_toBoolDecr(globals.players___4620); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayMap__P106_mk(s); + s.tmp_1 = helpers_arrayFilter__P110_mk(s); + s.tmp_1.arg0 = globals.players___4620; + s.tmp_1.arg1 = map_inline__P18184; + s.callLocIdx = 959; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = info_saveAllScores_inline__P18189; + s.callLocIdx = 961; s.pc = 3; return 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___13963; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 100; s.pc = 62; return s.tmp_0; - case 62: r0 = s.retval; - s.currNote___14100 = (r0); - s.prevNote___14102 = (false); - r0 = pxsim_numops_toBoolDecr(s.currNote___14100); + s.allScores___18178 = (r0); + { step = 2; continue; } + case 1: + r0 = pxsim_Array__mk(); + s.allScores___18178 = (r0); + case 2: + s.tmp_0 = settings_writeJSON__P1907_mk(s); + s.tmp_0.arg0 = s.allScoresKey___18176; + s.tmp_0.arg1 = s.allScores___18178; + s.callLocIdx = 962; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +info_saveAllScores__P2400.info = {"start":6535,"length":356,"line":214,"column":4,"endLine":225,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"saveAllScores","argumentNames":[]} + +function info_saveAllScores__P2400_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: info_saveAllScores__P2400, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + allScoresKey___18176: undefined, + allScores___18178: undefined, +} } + + + + + +function map_inline__P18184(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = info_PlayerInfoImpl_hasScore__P2446_mk(s); + r0 = s.arg0.fields["impl"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 958; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + return leave(s, r0) + default: oops() +} } } +map_inline__P18184.info = {"start":6707,"length":28,"line":218,"column":39,"endLine":218,"endColumn":67,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["item"]} + +function map_inline__P18184_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: map_inline__P18184, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function info_saveAllScores_inline__P18189(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = info_PlayerInfoImpl_score__P2443_mk(s); + r0 = s.arg0.fields["impl"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 960; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + return leave(s, r0) + default: oops() +} } } +info_saveAllScores_inline__P18189.info = {"start":6741,"length":25,"line":218,"column":73,"endLine":218,"endColumn":98,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["item"]} + +function info_saveAllScores_inline__P18189_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: info_saveAllScores_inline__P18189, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function settings_writeJSON__P1907(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + s.tmp_0 = settings_writeString__P1906_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = JSON_stringify__P387_mk(s); + s.tmp_1.arg0 = s.arg1; + s.tmp_1.arg1 = null; + s.tmp_1.arg2 = 0; + s.callLocIdx = 202; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 203; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +settings_writeJSON__P1907.info = {"start":2092,"length":106,"line":82,"column":4,"endLine":84,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeJSON","argumentNames":["key","value"]} + +function settings_writeJSON__P1907_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_writeJSON__P1907, 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 settings_writeString__P1906(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + s.tmp_0 = settings_writeBuffer__P1905_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = pxsim.control.createBufferFromUTF8(s.arg1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 201; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +settings_writeString__P1906.info = {"start":1895,"length":125,"line":75,"column":4,"endLine":77,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeString","argumentNames":["key","value"]} + +function settings_writeString__P1906_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_writeString__P1906, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function JSON_stringify__P387(s) { +let r0 = s.r0, 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.ss___18209 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = pxsim_pxtcore_mkClassInstance(JSON_Stringifier__C4358_VT); + s.ss___18209 = (r0); + s.tmp_0 = r0 = s.ss___18209; + r0 = pxsim_String_.mkEmpty(); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_0).fields["currIndent"] = (s.tmp_1); + r0 = (s.arg2 | 0); + s.arg2 = (r0); + r0 = (s.arg2 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - r0 = (s.timePos___13886 - s.now___13890); - s.timeLeft___14105 = (r0); - r0 = (s.timeLeft___14105 > 0); + if (!r0) { step = 1; continue; } + s.arg2 = (0); + case 1: + case 2: + r0 = (s.arg2 > 10); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.arg2 = (10); + case 3: + case 4: + s.tmp_0 = r0 = s.ss___18209; + r0 = pxsim_String_.mkEmpty(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["indentStep"] = (s.tmp_1); + s.tmp_0 = r0 = s.ss___18209; + r0 = pxsim_String_.mkEmpty(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["currIndent"] = (s.tmp_1); + r0 = (s.ss___18209).fields["indent"] = (s.arg2); + case 5: + s.tmp_0 = r0 = s.arg2; + r0 = (s.tmp_0 - 1); + s.arg2 = (r0); + r0 = (s.tmp_0 > 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 6; continue; } + s.tmp_2 = r0 = s.ss___18209; + r0 = s.tmp_2.fields["indentStep"]; + s.tmp_5 = r0; + if ((s.tmp_5) && (s.tmp_5).vtable) { + setupResume(s, 7); + pxsim_String__stringConv(s.tmp_5); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_5) + ""; } + case 7: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_4, " "); + s.tmp_3 = r0; + r0 = (s.tmp_2).fields["indentStep"] = (s.tmp_3); + { step = 5; continue; } + case 6: + s.tmp_0 = JSON_Stringifier_go__P4360_mk(s); + s.tmp_0.arg0 = s.ss___18209; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 50; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + return leave(s, r0) + default: oops() +} } } +JSON_stringify__P387.info = {"start":8773,"length":414,"line":288,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/base/json.ts","functionName":"stringify","argumentNames":["value","replacer","indent"]} + +function JSON_stringify__P387_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: JSON_stringify__P387, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + ss___18209: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function JSON_Stringifier_go__P4360(s) { +let r0 = s.r0, 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.t___18250 = undefined; + s.arr___18274 = undefined; + s.r___18280 = undefined; + s.i___18297 = undefined; + s.keys___18361 = undefined; + s.r___18368 = undefined; + s.i___18385 = undefined; + s.k___18391 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, JSON_Stringifier__C4358_VT)) failedCast(r0); + r0 = pxsim_pxtcore.typeOf(s.arg1); + s.t___18250 = (r0); + r0 = (s.t___18250 == "string"); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = JSON_Stringifier_doString__P4359_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 44; s.pc = 38; return s.tmp_1; + case 38: + r0 = s.retval; + { step = 37; continue; } + { step = 36; continue; } + case 1: + r0 = (s.t___18250 == "boolean"); + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (!r0) { step = 2; continue; } + r0 = s.tmp_2; + { step = 3; continue; } + case 2: + r0 = (s.t___18250 == "number"); + case 3: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); if (!r0) { step = 4; continue; } - s.tmp_1 = pause__P413_mk(s); - s.tmp_1.arg0 = s.timeLeft___14105; - s.callLocIdx = 101; s.pc = 63; return s.tmp_1; - case 63: + r0 = s.tmp_3; + { step = 5; continue; } + case 4: + r0 = (s.arg1 == null); + case 5: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 6; continue; } + r0 = pxsim_String_.mkEmpty(); + s.tmp_5 = r0; + if ((s.arg1) && (s.arg1).vtable) { + setupResume(s, 39); + pxsim_String__stringConv(s.arg1); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg1) + ""; } + case 39: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_String__concat(s.tmp_5, s.tmp_6); + { step = 37; continue; } + { step = 35; continue; } + case 6: + r0 = pxsim_Array_.isArray(s.arg1); + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 19; continue; } + s.arr___18274 = (s.arg1); + r0 = pxsim_Array__length(s.arr___18274); + s.tmp_1 = r0; + r0 = (s.tmp_1 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = "[]"; + { step = 37; continue; } + { step = 18; continue; } + case 7: + s.r___18280 = ("["); + r0 = s.arg0.fields["indent"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.tmp_1 = r0 = s.arg0; + r0 = s.tmp_1.fields["currIndent"]; + s.tmp_4 = r0; + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 40); + pxsim_String__stringConv(s.tmp_4); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_4) + ""; } + case 40: + r0 = s.retval; + s.tmp_3 = r0; + r0 = s.arg0.fields["indentStep"]; + s.tmp_6 = r0; + if ((s.tmp_6) && (s.tmp_6).vtable) { + setupResume(s, 41); + pxsim_String__stringConv(s.tmp_6); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_6) + ""; } + case 41: + r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_5); + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); + if ((s.r___18280) && (s.r___18280).vtable) { + setupResume(s, 42); + pxsim_String__stringConv(s.r___18280); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___18280) + ""; } + case 42: r0 = s.retval; - case 4: - case 5: - r0 = s.arg0.fields["onPlayFinished"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.tmp_1 = if_onPlayFinished_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, "onPlayFinished"), 1); - s.callLocIdx = 102; 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 = 102; s.pc = 64; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 102; s.pc = 64; return s.tmp_1;; } - else { s.callLocIdx = 102; s.pc = 64; return s.tmp_1; } - } - case 64: - r0 = s.retval; - case 6: - case 7: - { step = 59; continue; } + r0 = pxsim_String__concat(s.tmp_0, "\n"); + s.r___18280 = (r0); case 8: case 9: - r0 = pxsim_pxtrt_stlocRef(s.hz___13881, -1); - s.note___14119 = (0); - s.tmp_0 = r0 = s.token___14020; - r0 = pxsim_String_.mkEmpty(); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___14021, 0); - s.i___14123 = (0); + s.i___18297 = (0); case 10: - s.tmp_1 = r0 = s.i___14123; - r0 = pxsim_String_.length(s.currNote___14100); + s.tmp_1 = r0 = s.i___18297; + r0 = pxsim_Array__length(s.arr___18274); 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___14100, s.i___14123); - s.noteChar___14129 = (r0); - s.tmp_0 = r0 = s.noteChar___14129; - r0 = pxsim_pxtcore.switch_eq("c", s.tmp_0); - if (r0) { step = 11; continue; } - r0 = pxsim_pxtcore.switch_eq("C", s.tmp_0); - if (r0) { step = 12; continue; } - r0 = pxsim_pxtcore.switch_eq("d", s.tmp_0); - if (r0) { step = 13; continue; } - r0 = pxsim_pxtcore.switch_eq("D", s.tmp_0); - if (r0) { step = 14; continue; } - r0 = pxsim_pxtcore.switch_eq("e", s.tmp_0); - if (r0) { step = 15; continue; } - r0 = pxsim_pxtcore.switch_eq("E", s.tmp_0); - if (r0) { step = 16; continue; } - r0 = pxsim_pxtcore.switch_eq("f", s.tmp_0); - if (r0) { step = 17; continue; } - r0 = pxsim_pxtcore.switch_eq("F", s.tmp_0); - if (r0) { step = 18; continue; } - r0 = pxsim_pxtcore.switch_eq("g", s.tmp_0); - if (r0) { step = 19; continue; } - r0 = pxsim_pxtcore.switch_eq("G", s.tmp_0); - if (r0) { step = 20; continue; } - r0 = pxsim_pxtcore.switch_eq("a", s.tmp_0); - if (r0) { step = 21; continue; } - r0 = pxsim_pxtcore.switch_eq("A", s.tmp_0); - if (r0) { step = 22; continue; } - r0 = pxsim_pxtcore.switch_eq("B", s.tmp_0); - if (r0) { step = 23; continue; } - r0 = pxsim_pxtcore.switch_eq("r", s.tmp_0); - if (r0) { step = 24; continue; } - r0 = pxsim_pxtcore.switch_eq("R", s.tmp_0); - if (r0) { step = 25; continue; } - r0 = pxsim_pxtcore.switch_eq("#", s.tmp_0); - if (r0) { step = 26; continue; } - r0 = pxsim_pxtcore.switch_eq("b", s.tmp_0); - if (r0) { step = 27; continue; } - r0 = pxsim_pxtcore.switch_eq(",", s.tmp_0); - if (r0) { step = 30; continue; } - r0 = pxsim_pxtcore.switch_eq("!", s.tmp_0); - if (r0) { step = 31; continue; } - r0 = pxsim_pxtcore.switch_eq("@", s.tmp_0); - if (r0) { step = 32; continue; } - r0 = pxsim_pxtcore.switch_eq("~", s.tmp_0); - if (r0) { step = 33; continue; } - r0 = pxsim_pxtcore.switch_eq(":", s.tmp_0); - if (r0) { step = 34; continue; } - r0 = pxsim_pxtcore.switch_eq("-", s.tmp_0); - if (r0) { step = 35; continue; } - r0 = pxsim_pxtcore.switch_eq("^", s.tmp_0); - if (r0) { step = 36; continue; } - r0 = s.tmp_0; - { step = 37; continue; } + if (!r0) { step = 15; continue; } + if ((s.r___18280) && (s.r___18280).vtable) { + setupResume(s, 43); + pxsim_String__stringConv(s.r___18280); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___18280) + ""; } + case 43: + r0 = s.retval; + s.tmp_3 = r0; + r0 = s.arg0.fields["currIndent"]; + s.tmp_7 = r0; + if ((s.tmp_7) && (s.tmp_7).vtable) { + setupResume(s, 44); + pxsim_String__stringConv(s.tmp_7); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_7) + ""; } + case 44: + r0 = s.retval; + s.tmp_6 = r0; + s.tmp_10 = JSON_Stringifier_go__P4360_mk(s); + s.tmp_10.arg0 = s.arg0; + r0 = pxsim_Array__getAt(s.arr___18274, s.i___18297); + s.tmp_10.arg1 = r0; + s.callLocIdx = 45; s.pc = 45; return s.tmp_10; + case 45: + r0 = s.retval; + s.tmp_9 = r0; + if ((s.tmp_9) && (s.tmp_9).vtable) { + setupResume(s, 46); + pxsim_String__stringConv(s.tmp_9); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_9) + ""; } + case 46: + r0 = s.retval; + s.tmp_8 = r0; + r0 = pxsim_String__concat(s.tmp_6, s.tmp_8); + s.tmp_5 = r0; + if ((s.tmp_5) && (s.tmp_5).vtable) { + setupResume(s, 47); + pxsim_String__stringConv(s.tmp_5); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_5) + ""; } + case 47: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); + s.r___18280 = (r0); + s.tmp_1 = r0 = s.i___18297; + r0 = pxsim_Array__length(s.arr___18274); + 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 = 11; continue; } + if ((s.r___18280) && (s.r___18280).vtable) { + setupResume(s, 48); + pxsim_String__stringConv(s.r___18280); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___18280) + ""; } + case 48: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_4, ","); + s.r___18280 = (r0); case 11: case 12: - s.note___14119 = (1); - s.prevNote___14102 = (true); - { step = 40; continue; } + r0 = s.arg0.fields["indent"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + if ((s.r___18280) && (s.r___18280).vtable) { + setupResume(s, 49); + pxsim_String__stringConv(s.r___18280); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___18280) + ""; } + case 49: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "\n"); + s.r___18280 = (r0); case 13: case 14: - s.note___14119 = (3); - s.prevNote___14102 = (true); - { step = 40; continue; } + r0 = (s.i___18297 + 1); + s.i___18297 = (r0); + { step = 10; continue; } case 15: + r0 = s.arg0.fields["indent"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + s.tmp_1 = r0 = s.arg0; + s.tmp_3 = helpers_stringSlice__P119_mk(s); + r0 = s.arg0.fields["currIndent"]; + s.tmp_3.arg0 = r0; + r0 = s.arg0.fields["indent"]; + s.tmp_3.arg1 = r0; + s.tmp_3.arg2 = undefined; + s.callLocIdx = 46; s.pc = 50; return s.tmp_3; + case 50: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); case 16: - s.note___14119 = (5); - s.prevNote___14102 = (true); - { step = 40; continue; } case 17: - case 18: - s.note___14119 = (6); - s.prevNote___14102 = (true); - { step = 40; continue; } - case 19: - case 20: - s.note___14119 = (8); - s.prevNote___14102 = (true); - { step = 40; continue; } - case 21: - case 22: - s.note___14119 = (10); - s.prevNote___14102 = (true); - { step = 40; continue; } - case 23: - s.note___14119 = (12); - s.prevNote___14102 = (true); - { step = 40; continue; } - case 24: - case 25: - r0 = pxsim_pxtrt_stlocRef(s.hz___13881, 0); - s.prevNote___14102 = (false); - { step = 40; continue; } - case 26: - r0 = (s.note___14119 + 1); - s.note___14119 = (r0); - s.prevNote___14102 = (false); - { step = 40; continue; } - case 27: - r0 = pxsim_numops_toBoolDecr(s.prevNote___14102); - if (!r0) { step = 28; continue; } - r0 = (s.note___14119 - 1); - s.note___14119 = (r0); - { step = 29; continue; } - case 28: - s.note___14119 = (12); - s.prevNote___14102 = (true); - case 29: - { step = 40; continue; } - case 30: - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___14024; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 103; s.pc = 65; return s.tmp_0; - case 65: - r0 = s.retval; - s.prevNote___14102 = (false); - { step = 40; continue; } - case 31: - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___14021, 4); - s.prevNote___14102 = (false); - { step = 40; continue; } - case 32: - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___14024; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 104; s.pc = 66; return s.tmp_0; - case 66: - r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___14021, 8); - s.prevNote___14102 = (false); - { step = 40; continue; } - case 33: - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___14024; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 105; s.pc = 67; return s.tmp_0; - case 67: - r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___14021, 7); - s.prevNote___14102 = (false); - { step = 40; continue; } - case 34: - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___14024; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 106; s.pc = 68; return s.tmp_0; - case 68: + if ((s.r___18280) && (s.r___18280).vtable) { + setupResume(s, 51); + pxsim_String__stringConv(s.r___18280); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___18280) + ""; } + case 51: r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___14021, 2); - s.prevNote___14102 = (false); - { step = 40; continue; } - case 35: - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___14024; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 107; s.pc = 69; return s.tmp_0; - case 69: + s.tmp_0 = r0; + r0 = s.arg0.fields["currIndent"]; + s.tmp_4 = r0; + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 52); + pxsim_String__stringConv(s.tmp_4); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_4) + ""; } + case 52: r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___14021, 3); - s.prevNote___14102 = (false); - { step = 40; continue; } - case 36: - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___14024; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 108; s.pc = 70; return s.tmp_0; - case 70: + 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, 53); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 53: r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.tokenKind___14021, 5); - { step = 40; continue; } - case 37: - r0 = pxsim_pxtrt_ldlocRef(s.tokenKind___14021); + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + s.r___18280 = (r0); + r0 = s.r___18280; + { step = 37; continue; } + case 18: + { step = 34; continue; } + case 19: + r0 = pxsim_pxtrt.keysOf(s.arg1); + s.keys___18361 = (r0); + r0 = pxsim_Array__length(s.keys___18361); 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___14021, 1); - case 38: - case 39: - s.tmp_0 = r0 = s.token___14020; - r0 = pxsim_pxtrt_ldlocRef(s.token___14020); + if (!r0) { step = 20; continue; } + r0 = "{}"; + { step = 37; continue; } + case 20: + case 21: + s.r___18368 = ("{"); + r0 = s.arg0.fields["indent"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + s.tmp_1 = r0 = s.arg0; + r0 = s.tmp_1.fields["currIndent"]; + s.tmp_4 = r0; + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 54); + pxsim_String__stringConv(s.tmp_4); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_4) + ""; } + case 54: + r0 = s.retval; s.tmp_3 = r0; - if ((s.tmp_3) && (s.tmp_3).vtable) { - setupResume(s, 71); - pxsim_String__stringConv(s.tmp_3); + r0 = s.arg0.fields["indentStep"]; + s.tmp_6 = r0; + if ((s.tmp_6) && (s.tmp_6).vtable) { + setupResume(s, 55); + pxsim_String__stringConv(s.tmp_6); checkResumeConsumed(); return; - } else { s.retval = (s.tmp_3) + ""; } - case 71: + } else { s.retval = (s.tmp_6) + ""; } + case 55: r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_5); s.tmp_2 = r0; - if ((s.noteChar___14129) && (s.noteChar___14129).vtable) { - setupResume(s, 72); - pxsim_String__stringConv(s.noteChar___14129); + r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); + if ((s.r___18368) && (s.r___18368).vtable) { + setupResume(s, 56); + pxsim_String__stringConv(s.r___18368); checkResumeConsumed(); return; - } else { s.retval = (s.noteChar___14129) + ""; } - case 72: + } else { s.retval = (s.r___18368) + ""; } + case 56: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, "\n"); + s.r___18368 = (r0); + case 22: + case 23: + s.i___18385 = (0); + case 24: + s.tmp_1 = r0 = s.i___18385; + r0 = pxsim_Array__length(s.keys___18361); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 31; continue; } + r0 = pxsim_Array__getAt(s.keys___18361, s.i___18385); + s.k___18391 = (r0); + if ((s.r___18368) && (s.r___18368).vtable) { + setupResume(s, 57); + pxsim_String__stringConv(s.r___18368); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___18368) + ""; } + case 57: r0 = s.retval; + s.tmp_0 = r0; + r0 = s.arg0.fields["currIndent"]; 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___14102 = (false); - case 40: - r0 = (s.i___14123 + 1); - s.i___14123 = (r0); - { step = 10; continue; } - case 41: - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.consumeToken___14024; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 109; s.pc = 73; return s.tmp_0; - case 73: + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 58); + pxsim_String__stringConv(s.tmp_4); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_4) + ""; } + case 58: + r0 = s.retval; + s.tmp_3 = r0; + s.tmp_7 = JSON_Stringifier_doString__P4359_mk(s); + s.tmp_7.arg0 = s.arg0; + s.tmp_7.arg1 = s.k___18391; + s.callLocIdx = 47; s.pc = 59; return s.tmp_7; + case 59: r0 = s.retval; - s.tmp_0 = r0 = s.note___14119; - 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___13881); - s.tmp_1 = r0; - r0 = (s.tmp_1 < 0); - case 43: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 46; continue; } - s.tmp_3 = r0 = s.note___14119; - r0 = pxsim_pxtrt_ldlocRef(s.octave___13879); s.tmp_6 = r0; - r0 = (s.tmp_6 - 1); + if ((s.tmp_6) && (s.tmp_6).vtable) { + setupResume(s, 60); + pxsim_String__stringConv(s.tmp_6); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_6) + ""; } + case 60: + r0 = s.retval; s.tmp_5 = r0; - r0 = (12 * s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); - s.keyNumber___14203 = (r0); - s.tmp_1 = r0 = globals.freqs___4356; - r0 = (s.keyNumber___14203 * 2); + r0 = pxsim_String__concat(s.tmp_3, s.tmp_5); s.tmp_2 = r0; - r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 4, s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 44; continue; } - r0 = s.tmp_0; - { step = 45; continue; } - case 44: - r0 = 0; - case 45: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_pxtrt_stlocRef(s.hz___13881, s.tmp_3); - case 46: - case 47: - r0 = pxsim_pxtrt_ldlocRef(s.ms___13885); - s.currMs___14220 = (r0); - r0 = (s.currMs___14220 <= 0); + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 61); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 61: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + s.r___18368 = (r0); + r0 = s.arg0.fields["indent"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 48; continue; } - r0 = pxsim_pxtrt_ldlocRef(s.tempo___13880); + if (!r0) { step = 25; continue; } + if ((s.r___18368) && (s.r___18368).vtable) { + setupResume(s, 62); + pxsim_String__stringConv(s.r___18368); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___18368) + ""; } + case 62: + r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(15000, s.tmp_1); - s.beat___14224 = (r0); - r0 = pxsim_pxtrt_ldlocRef(s.duration___13878); + r0 = pxsim_String__concat(s.tmp_1, ": "); + s.r___18368 = (r0); + { step = 26; continue; } + case 25: + if ((s.r___18368) && (s.r___18368).vtable) { + setupResume(s, 63); + pxsim_String__stringConv(s.r___18368); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___18368) + ""; } + case 63: + r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 * s.beat___14224); - s.currMs___14220 = (r0); - case 48: - case 49: - r0 = pxsim_pxtrt_ldlocRef(s.hz___13881); - s.tmp_1 = r0; - r0 = (s.tmp_1 < 0); + r0 = pxsim_String__concat(s.tmp_0, ":"); + s.r___18368 = (r0); + case 26: + if ((s.r___18368) && (s.r___18368).vtable) { + setupResume(s, 64); + pxsim_String__stringConv(s.r___18368); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___18368) + ""; } + case 64: + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 50; continue; } - { step = 55; continue; } - case 50: - r0 = pxsim_pxtrt_ldlocRef(s.hz___13881); - s.tmp_3 = r0; - r0 = (s.tmp_3 == 0); + s.tmp_3 = JSON_Stringifier_go__P4360_mk(s); + s.tmp_3.arg0 = s.arg0; + r0 = pxsim_pxtrt.mapGetGeneric(s.arg1, s.k___18391); + s.tmp_3.arg1 = r0; + s.callLocIdx = 48; s.pc = 65; return s.tmp_3; + case 65: + r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 51; continue; } - r0 = (s.timePos___13886 + s.currMs___14220); - s.timePos___13886 = (r0); - { step = 54; continue; } - case 51: - r0 = pxsim_pxtrt_ldlocRef(s.endHz___13882); + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 66); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 66: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 < 0); + r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + s.r___18368 = (r0); + s.tmp_1 = r0 = s.i___18385; + r0 = pxsim_Array__length(s.keys___18361); + 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 = 52; continue; } - s.tmp_2 = r0 = s.endHz___13882; - r0 = pxsim_pxtrt_ldlocRef(s.hz___13881); - s.tmp_3 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_2, s.tmp_3); - case 52: - case 53: - r0 = pxsim_pxtrt_stlocRef(s.sndInstrPtr___13902, 0); - s.tmp_0 = lambda_5_mk(s); - s.tmp_0.argL = s.addForm___13903; - r0 = pxsim_pxtrt_ldlocRef(s.envA___13891); - 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 = 110; 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___13903; - r0 = pxsim_pxtrt_ldlocRef(s.envD___13892); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 255; - r0 = pxsim_pxtrt_ldlocRef(s.envS___13893); - s.tmp_0.arg2 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envA___13891); - s.tmp_0.arg3 = r0; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 111; s.pc = 75; return s.tmp_0; - case 75: + if (!r0) { step = 27; continue; } + if ((s.r___18368) && (s.r___18368).vtable) { + setupResume(s, 67); + pxsim_String__stringConv(s.r___18368); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___18368) + ""; } + case 67: r0 = s.retval; - s.tmp_0 = lambda_5_mk(s); - s.tmp_0.argL = s.addForm___13903; - s.tmp_1 = r0 = s.currMs___14220; - r0 = pxsim_pxtrt_ldlocRef(s.envA___13891); - s.tmp_3 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envD___13892); 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___13893); - s.tmp_0.arg1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envS___13893); - s.tmp_0.arg2 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envD___13892); - s.tmp_5 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envA___13891); - 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 = 112; s.pc = 76; return s.tmp_0; - case 76: + r0 = pxsim_String__concat(s.tmp_4, ","); + s.r___18368 = (r0); + case 27: + case 28: + r0 = s.arg0.fields["indent"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 29; continue; } + if ((s.r___18368) && (s.r___18368).vtable) { + setupResume(s, 68); + pxsim_String__stringConv(s.r___18368); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___18368) + ""; } + case 68: r0 = s.retval; - s.tmp_0 = lambda_5_mk(s); - s.tmp_0.argL = s.addForm___13903; - r0 = pxsim_pxtrt_ldlocRef(s.envR___13894); - s.tmp_0.arg0 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.envS___13893); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = s.currMs___14220; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 113; s.pc = 77; return s.tmp_0; - case 77: + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "\n"); + s.r___18368 = (r0); + case 29: + case 30: + r0 = (s.i___18385 + 1); + s.i___18385 = (r0); + { step = 24; continue; } + case 31: + r0 = s.arg0.fields["indent"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 32; continue; } + s.tmp_1 = r0 = s.arg0; + s.tmp_3 = helpers_stringSlice__P119_mk(s); + r0 = s.arg0.fields["currIndent"]; + s.tmp_3.arg0 = r0; + r0 = s.arg0.fields["indent"]; + s.tmp_3.arg1 = r0; + s.tmp_3.arg2 = undefined; + s.callLocIdx = 49; s.pc = 69; return s.tmp_3; + case 69: r0 = s.retval; - s.tmp_0 = music_MelodyPlayer_queuePlayInstructions__P4373_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = (s.timePos___13886 - s.now___13890); - s.tmp_0.arg1 = r0; - s.tmp_1 = r0 = s.sndInstr___13896; - r0 = pxsim_pxtrt_ldlocRef(s.sndInstrPtr___13902); s.tmp_2 = r0; - r0 = pxsim.BufferMethods.slice(s.tmp_1, 0, s.tmp_2); - s.tmp_0.arg2 = r0; - s.callLocIdx = 114; s.pc = 78; return s.tmp_0; - case 78: + r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); + case 32: + case 33: + if ((s.r___18368) && (s.r___18368).vtable) { + setupResume(s, 70); + pxsim_String__stringConv(s.r___18368); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___18368) + ""; } + case 70: r0 = s.retval; - r0 = pxsim_pxtrt_stlocRef(s.endHz___13882, -1); - r0 = (s.timePos___13886 + s.currMs___14220); - s.timePos___13886 = (r0); - case 54: - case 55: - r0 = (s.timePos___13886 - s.now___13890); - s.timeLeft___14281 = (r0); - r0 = (s.timeLeft___14281 > 200); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 56; continue; } - s.tmp_1 = pause__P413_mk(s); - r0 = (s.timeLeft___14281 - 100); - s.tmp_1.arg0 = r0; - s.callLocIdx = 115; s.pc = 79; return s.tmp_1; - case 79: + r0 = s.arg0.fields["currIndent"]; + s.tmp_4 = r0; + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 71); + pxsim_String__stringConv(s.tmp_4); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_4) + ""; } + case 71: r0 = s.retval; - r0 = pxsim.control.millis(); - s.tmp_0 = r0; - r0 = (s.tmp_0 - s.startTime___13887); - s.now___13890 = (r0); - case 56: - case 57: - { step = 3; continue; } - case 58: - case 59: + 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, 72); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 72: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + s.r___18368 = (r0); + r0 = s.r___18368; + { step = 37; continue; } + case 34: + case 35: + case 36: r0 = undefined; + case 37: return leave(s, r0) default: oops() } } } -music_MelodyPlayer_play__P1641.info = {"start":11360,"length":9259,"line":348,"column":8,"endLine":582,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"play","argumentNames":["this","volume"]} +JSON_Stringifier_go__P4360.info = {"start":6319,"length":2076,"line":223,"column":8,"endLine":279,"endColumn":9,"fileName":"pxt_modules/base/json.ts","functionName":"go","argumentNames":["this","v"]} -function music_MelodyPlayer_play__P1641_mk(s) { +function JSON_Stringifier_go__P4360_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_MelodyPlayer_play__P1641, depth: s.depth + 1, + parent: s, fn: JSON_Stringifier_go__P4360, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34326,39 +40049,14 @@ function music_MelodyPlayer_play__P1641_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - notes___13873: undefined, - pos___13877: undefined, - duration___13878: undefined, - octave___13879: undefined, - tempo___13880: undefined, - hz___13881: undefined, - endHz___13882: undefined, - ms___13885: undefined, - timePos___13886: undefined, - startTime___13887: undefined, - now___13890: undefined, - envA___13891: undefined, - envD___13892: undefined, - envS___13893: undefined, - envR___13894: undefined, - soundWave___13895: undefined, - sndInstr___13896: undefined, - sndInstrPtr___13902: undefined, - addForm___13903: undefined, - scanNextWord___13963: undefined, - token___14020: undefined, - tokenKind___14021: undefined, - consumeToken___14024: undefined, - currNote___14100: undefined, - prevNote___14102: undefined, - timeLeft___14105: undefined, - note___14119: undefined, - i___14123: undefined, - noteChar___14129: undefined, - keyNumber___14203: undefined, - currMs___14220: undefined, - beat___14224: undefined, - timeLeft___14281: undefined, + t___18250: undefined, + arr___18274: undefined, + r___18280: undefined, + i___18297: undefined, + keys___18361: undefined, + r___18368: undefined, + i___18385: undefined, + k___18391: undefined, arg0: undefined, arg1: undefined, } } @@ -34367,7 +40065,7 @@ function music_MelodyPlayer_play__P1641_mk(s) { -function addForm_inline__P13904(s) { +function JSON_Stringifier_doString__P4359(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34377,136 +40075,134 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.freqStart___13909 = undefined; - s.freqEnd___13911 = undefined; - s.envelopeWidth___13913 = undefined; - s.slope___13931 = undefined; + s.r___18477 = undefined; + s.i___18478 = undefined; + s.c___18484 = 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_pxtrt_ldlocRef(s.caps[0]); - s.freqStart___13909 = (r0); - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.freqEnd___13911 = (r0); - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - { step = 2; continue; } + r0 = s.arg0; + if (!checkSubtype(r0, JSON_Stringifier__C4358_VT)) failedCast(r0); + s.r___18477 = ("\""); + s.i___18478 = (0); case 1: - r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); - s.tmp_3 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); - s.tmp_5 = r0; - r0 = pxsim.Math_.idiv(15000, s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_3 * s.tmp_4); + s.tmp_1 = r0 = s.i___18478; + r0 = pxsim_String_.length(s.arg1); s.tmp_2 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[5]); - s.tmp_6 = r0; - r0 = (s.tmp_2 + s.tmp_6); + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = pxsim_String_.charAt(s.arg1, s.i___18478); + s.c___18484 = (r0); + r0 = (s.c___18484 == "\n"); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.c___18484 = ("\\n"); + { step = 13; continue; } case 2: - // jmp value (already in r0) - s.tmp_7 = r0; - s.envelopeWidth___13913 = (s.tmp_7); - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_2 = r0; - r0 = (s.tmp_1 != s.tmp_2); + r0 = (s.c___18484 == "\r"); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.c___18484 = ("\\r"); + { step = 12; continue; } case 3: - r0 = (s.envelopeWidth___13913 != 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___13911 - s.freqStart___13909); - s.tmp_4 = r0; - r0 = (s.tmp_4 / s.envelopeWidth___13913); - s.slope___13931 = (r0); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + r0 = (s.c___18484 == "\t"); s.tmp_0 = r0; - r0 = (s.slope___13931 * s.arg3); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.freqStart___13909 = (r0); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.c___18484 = ("\\t"); + { step = 11; continue; } + case 4: + r0 = (s.c___18484 == "\b"); s.tmp_0 = r0; - s.tmp_2 = r0 = s.slope___13931; - 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___13911 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.c___18484 = ("\\b"); + { step = 10; continue; } case 5: + r0 = (s.c___18484 == "\\"); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.c___18484 = ("\\\\"); + { step = 9; continue; } case 6: - s.tmp_0 = r0 = s.caps[6]; - s.tmp_2 = music_addNote__P4372_mk(s); - s.tmp_2.arg0 = s.caps[7]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[6]); - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = s.arg0; - s.tmp_2.arg3 = s.arg1; - s.tmp_2.arg4 = s.arg2; - r0 = pxsim_pxtrt_ldlocRef(s.caps[8]); - s.tmp_2.arg5 = r0; - s.tmp_2.arg6 = s.freqStart___13909; - r0 = pxsim_pxtrt_ldlocRef(s.caps[9]); - s.tmp_2.arg7 = r0; - s.tmp_2.arg8 = s.freqEnd___13911; - s.callLocIdx = 93; s.pc = 7; return s.tmp_2; + r0 = (s.c___18484 == "\""); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.c___18484 = ("\\\""); case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + if ((s.r___18477) && (s.r___18477).vtable) { + setupResume(s, 15); + pxsim_String__stringConv(s.r___18477); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___18477) + ""; } + case 15: + r0 = s.retval; + s.tmp_0 = r0; + if ((s.c___18484) && (s.c___18484).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.c___18484); + checkResumeConsumed(); + return; + } else { s.retval = (s.c___18484) + ""; } + case 16: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = undefined; + r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + s.r___18477 = (r0); + r0 = (s.i___18478 + 1); + s.i___18478 = (r0); + { step = 1; continue; } + case 14: + if ((s.r___18477) && (s.r___18477).vtable) { + setupResume(s, 17); + pxsim_String__stringConv(s.r___18477); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___18477) + ""; } + case 17: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, "\""); return leave(s, r0) default: oops() } } } -addForm_inline__P13904.info = {"start":12168,"length":643,"line":374,"column":28,"endLine":385,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["formDuration","beg","end","msOff"]} +JSON_Stringifier_doString__P4359.info = {"start":5837,"length":472,"line":208,"column":8,"endLine":221,"endColumn":9,"fileName":"pxt_modules/base/json.ts","functionName":"doString","argumentNames":["this","s"]} -function addForm_inline__P13904_mk(s) { +function JSON_Stringifier_doString__P4359_mk(s) { checkStack(s.depth); return { - parent: s, fn: addForm_inline__P13904, depth: s.depth + 1, + parent: s, fn: JSON_Stringifier_doString__P4359, depth: s.depth + 1, pc: 0, retval: undefined, 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, - freqStart___13909: undefined, - freqEnd___13911: undefined, - envelopeWidth___13913: undefined, - slope___13931: undefined, + r___18477: undefined, + i___18478: undefined, + c___18484: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function scanNextWord_inline__P13964(s) { +function helpers_arrayMap__P106(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34516,166 +40212,117 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.c___13973 = undefined; - s.note___13990 = undefined; - s.c___13996 = undefined; - r0 = s.caps[0].fields["melody"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + s.res___18528 = undefined; + s.len___18530 = undefined; + s.i___18533 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim_Array__mk(); + s.res___18528 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___18530 = (r0); + s.i___18533 = (0); + case 1: + r0 = (s.i___18533 < s.len___18530); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_String_.mkEmpty(); - { step = 23; continue; } - case 1: - case 2: + if (!r0) { step = 2; continue; } + s.tmp_1 = r0 = s.res___18528; + s.tmp_3 = lambda_3_mk(s); + s.tmp_3.argL = s.arg1; + r0 = pxsim_Array__getAt(s.arg0, s.i___18533); + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.i___18533; + setupLambda(s.tmp_3, s.tmp_3.argL); + s.callLocIdx = 4; s.pc = 3; return s.tmp_3; case 3: - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_4 = r0; - r0 = pxsim_String_.length(s.caps[2]); - 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 = 12; continue; } - s.tmp_6 = r0 = s.caps[2]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_7 = r0; - r0 = pxsim_String_.charAt(s.tmp_6, s.tmp_7); - s.c___13973 = (r0); - r0 = (s.c___13973 != " "); - 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___13973 != "\r"); - case 5: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (r0) { step = 6; continue; } - r0 = s.tmp_1; - { step = 7; continue; } - case 6: - r0 = (s.c___13973 != "\n"); - case 7: - // jmp value (already in r0) + r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 8; continue; } - r0 = s.tmp_2; - { step = 9; continue; } - case 8: - r0 = (s.c___13973 != "\t"); - case 9: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 10; continue; } - { step = 12; continue; } - case 10: - case 11: - s.tmp_4 = r0 = s.caps[1]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_6 = r0; - r0 = (s.tmp_6 + 1); - s.tmp_5 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_4, s.tmp_5); - { step = 3; continue; } - case 12: - r0 = pxsim_String_.mkEmpty(); - s.note___13990 = (r0); - case 13: - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___18533 + 1); + s.i___18533 = (r0); + { step = 1; continue; } + case 2: + r0 = s.res___18528; + return leave(s, r0) + default: oops() +} } } +helpers_arrayMap__P106.info = {"start":6528,"length":299,"line":229,"column":4,"endLine":236,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayMap","argumentNames":["arr","callbackfn"]} + +function helpers_arrayMap__P106_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: helpers_arrayMap__P106, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + res___18528: undefined, + len___18530: undefined, + i___18533: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function statusbars_onZero__P4213(s) { +let r0 = s.r0, 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.zeroHandlers___18551 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + s.tmp_0 = statusbars_getZeroHandlers__P6814_mk(s); + s.callLocIdx = 1897; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.zeroHandlers___18551 = (r0); + r0 = pxsim_numops_toBoolDecr(s.zeroHandlers___18551); s.tmp_1 = r0; - r0 = pxsim_String_.length(s.caps[2]); - 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_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - s.tmp_3 = r0 = s.caps[2]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_4 = r0; - r0 = pxsim_String_.charAt(s.tmp_3, s.tmp_4); - s.c___13996 = (r0); - r0 = (s.c___13996 == " "); - 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___13996 == "\r"); - case 15: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (!r0) { step = 16; continue; } - r0 = s.tmp_1; - { step = 17; continue; } - case 16: - r0 = (s.c___13996 == "\n"); - case 17: - // jmp value (already in r0) + if (!r0) { step = 1; continue; } + r0 = pxsim_Array__mk(); s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (!r0) { step = 18; continue; } - r0 = s.tmp_2; - { step = 19; continue; } - case 18: - r0 = (s.c___13996 == "\t"); - case 19: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 20; continue; } - { step = 22; continue; } - case 20: - case 21: - if ((s.note___13990) && (s.note___13990).vtable) { - setupResume(s, 24); - pxsim_String__stringConv(s.note___13990); - checkResumeConsumed(); - return; - } else { s.retval = (s.note___13990) + ""; } - case 24: + s.zeroHandlers___18551 = (r0); + s.tmp_5 = game_currentScene__P2792_mk(s); + s.callLocIdx = 1898; s.pc = 4; return s.tmp_5; + case 4: r0 = s.retval; s.tmp_4 = r0; - if ((s.c___13996) && (s.c___13996).vtable) { - setupResume(s, 25); - pxsim_String__stringConv(s.c___13996); - checkResumeConsumed(); - return; - } else { s.retval = (s.c___13996) + ""; } - case 25: - r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_4, s.tmp_5); - s.note___13990 = (r0); - s.tmp_0 = r0 = s.caps[1]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - { step = 13; continue; } - case 22: - r0 = s.note___13990; - case 23: + r0 = s.tmp_4.fields["_data"]; + s.tmp_3 = r0; + r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_3, globals.ZERO_HANDLERS_KEY___6787, s.tmp_2); + case 1: + case 2: + r0 = pxsim_Array_.setAt(s.zeroHandlers___18551, s.arg0, s.arg1); + r0 = undefined; return leave(s, r0) default: oops() } } } -scanNextWord_inline__P13964.info = {"start":12846,"length":708,"line":387,"column":33,"endLine":409,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} +statusbars_onZero__P4213.info = {"start":28772,"length":288,"line":825,"column":4,"endLine":831,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"onZero","argumentNames":["kind","handler"]} -function scanNextWord_inline__P13964_mk(s) { +function statusbars_onZero__P4213_mk(s) { checkStack(s.depth); return { - parent: s, fn: scanNextWord_inline__P13964, depth: s.depth + 1, + parent: s, fn: statusbars_onZero__P4213, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34683,18 +40330,16 @@ function scanNextWord_inline__P13964_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - c___13973: undefined, - note___13990: undefined, - c___13996: undefined, + zeroHandlers___18551: undefined, + arg0: undefined, + arg1: undefined, } } -function consumeToken_inline__P14025(s) { +function animation_runImageAnimation__P3172(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34704,163 +40349,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.d___14031 = undefined; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.anim___18572 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = pxsim_pxtcore_mkClassInstance(animation_ImageAnimation__C3166_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; + s.tmp_1 = r0 = s.arg2; + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 1; continue; } + r0 = s.tmp_1; { step = 2; continue; } case 1: - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_1 = r0; - r0 = (s.tmp_1 != 0); + r0 = 500; case 2: // jmp value (already in r0) s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 15; continue; } - s.tmp_3 = parseInt__P97_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = undefined; - s.callLocIdx = 94; s.pc = 17; return s.tmp_3; - case 17: - r0 = s.retval; - s.d___14031 = (r0); - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_0 = r0; - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); - if (r0) { step = 6; continue; } - r0 = pxsim_pxtcore.switch_eq(6, s.tmp_0); - if (r0) { step = 7; continue; } - r0 = pxsim_pxtcore.switch_eq(7, s.tmp_0); - if (r0) { step = 8; continue; } - r0 = pxsim_pxtcore.switch_eq(8, s.tmp_0); - if (r0) { step = 9; continue; } - r0 = pxsim_pxtcore.switch_eq(9, s.tmp_0); - if (r0) { step = 10; continue; } - r0 = pxsim_pxtcore.switch_eq(10, s.tmp_0); - if (r0) { step = 11; continue; } - r0 = pxsim_pxtcore.switch_eq(11, s.tmp_0); - if (r0) { step = 12; continue; } - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 13; continue; } - r0 = s.tmp_0; - { step = 14; continue; } + s.tmp_3 = animation_ImageAnimation_constructor__P3167_mk(s); + s.tmp_3.arg0 = s.tmp_0; + s.tmp_3.arg1 = s.arg0; + s.tmp_3.arg2 = s.arg1; + s.tmp_3.arg3 = s.tmp_2; + r0 = pxsim_numops_toBoolDecr(s.arg3); + 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.arg4 = r0; + s.callLocIdx = 1772; s.pc = 3; return s.tmp_3; case 3: - r0 = pxsim_pxtrt_stlocRef(s.caps[2], s.d___14031); - { step = 14; continue; } - case 4: - s.tmp_0 = r0 = s.caps[3]; - s.tmp_2 = Math_max__P130_mk(s); - s.tmp_2.arg0 = 1; - s.tmp_3 = Math_min__P131_mk(s); - s.tmp_3.arg0 = 16; - s.tmp_3.arg1 = s.d___14031; - s.callLocIdx = 95; s.pc = 19; return s.tmp_3; - case 19: - r0 = s.retval; - s.tmp_2.arg1 = r0; - s.callLocIdx = 96; s.pc = 18; return s.tmp_2; - case 18: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_stlocRef(s.caps[4], -1); - { step = 14; continue; } - case 5: - s.tmp_0 = r0 = s.caps[5]; - s.tmp_2 = Math_max__P130_mk(s); - s.tmp_2.arg0 = 1; - s.tmp_2.arg1 = s.d___14031; - s.callLocIdx = 97; 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___14031); - r0 = pxsim_pxtrt_stlocRef(s.caps[1], 6); - { step = 14; continue; } - case 7: - r0 = pxsim_pxtrt_stlocRef(s.caps[4], s.d___14031); - { step = 14; continue; } - case 8: - s.tmp_0 = r0 = s.caps[7]; - s.tmp_2 = Math_clamp__P127_mk(s); - s.tmp_2.arg0 = 1; - s.tmp_2.arg1 = 18; - s.tmp_2.arg2 = s.d___14031; - s.callLocIdx = 98; 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___14031); - r0 = pxsim_pxtrt_stlocRef(s.caps[1], 9); - { step = 14; continue; } - case 10: - r0 = pxsim_pxtrt_stlocRef(s.caps[9], s.d___14031); - 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__P127_mk(s); - s.tmp_2.arg0 = 0; - s.tmp_2.arg1 = 255; - s.tmp_2.arg2 = s.d___14031; - s.callLocIdx = 99; s.pc = 22; return s.tmp_2; - case 22: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_stlocRef(s.caps[1], 11); - { step = 14; continue; } - case 12: - r0 = pxsim_pxtrt_stlocRef(s.caps[11], s.d___14031); - { step = 14; continue; } - case 13: - r0 = pxsim_pxtrt_stlocRef(s.caps[12], s.d___14031); - case 14: - s.tmp_0 = r0 = s.caps[0]; - r0 = pxsim_String_.mkEmpty(); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - case 15: - case 16: + s.anim___18572 = (s.tmp_0); + s.tmp_0 = animation_SpriteAnimation_init__P3164_mk(s); + s.tmp_0.arg0 = s.anim___18572; + s.callLocIdx = 1773; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -consumeToken_inline__P14025.info = {"start":14840,"length":1189,"line":448,"column":33,"endLine":469,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} +animation_runImageAnimation__P3172.info = {"start":19661,"length":222,"line":508,"column":4,"endLine":511,"endColumn":5,"fileName":"pxt_modules/game/animation.ts","functionName":"runImageAnimation","argumentNames":["sprite","frames","frameInterval","loop"]} -function consumeToken_inline__P14025_mk(s) { +function animation_runImageAnimation__P3172_mk(s) { checkStack(s.depth); return { - parent: s, fn: consumeToken_inline__P14025, depth: s.depth + 1, + parent: s, fn: animation_runImageAnimation__P3172, depth: s.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___14031: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + anim___18572: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function music_MelodyPlayer_queuePlayInstructions__P4373(s) { +function animation_ImageAnimation_constructor__P3167(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34874,32 +40434,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.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_MelodyPlayer__C1636_VT)) failedCast(r0); - r0 = pxsim.music.queuePlayInstructions(s.arg1, s.arg2); + if (!checkSubtype(r0, animation_ImageAnimation__C3166_VT)) failedCast(r0); + r0 = (s.arg0).fields["frames"] = (s.arg2); + r0 = (s.arg0).fields["frameInterval"] = (s.arg3); + s.tmp_0 = animation_SpriteAnimation_constructor__P3163_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg4; + s.callLocIdx = 1767; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = (s.arg0).fields["lastFrame"] = (-1); r0 = undefined; return leave(s, r0) default: oops() } } } -music_MelodyPlayer_queuePlayInstructions__P4373.info = {"start":11225,"length":125,"line":344,"column":8,"endLine":346,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"queuePlayInstructions","argumentNames":["this","timeDelta","buf"]} +animation_ImageAnimation_constructor__P3167.info = {"start":17596,"length":177,"line":453,"column":8,"endLine":456,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["this","sprite","frames","frameInterval","loop"]} -function music_MelodyPlayer_queuePlayInstructions__P4373_mk(s) { +function animation_ImageAnimation_constructor__P3167_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_MelodyPlayer_queuePlayInstructions__P4373, depth: s.depth + 1, + parent: s, fn: animation_ImageAnimation_constructor__P3167, 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 music_addNote__P4372(s) { +function animation_SpriteAnimation_constructor__P3163(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34913,87 +40487,33 @@ 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.arg7 = (s.lambdaArgs[7]); - s.arg8 = (s.lambdaArgs[8]); s.lambdaArgs = null; } - r0 = (s.arg2 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.BufferMethods.setNumber(s.arg0, 2, s.arg1, s.arg5); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 + 1); - s.tmp_1 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 2, s.tmp_1, 0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 + 2); - s.tmp_1 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.arg6); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 + 4); - s.tmp_1 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.arg2); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 + 6); - s.tmp_1 = r0; - r0 = (s.arg3 * s.arg7); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 6); - s.tmp_2 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 + 8); - s.tmp_1 = r0; - r0 = (s.arg4 * s.arg7); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 6); - s.tmp_2 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 + 10); - s.tmp_1 = r0; - r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.arg8); - r0 = (s.arg1 + 12); - s.arg1 = (r0); - case 1: - case 2: - r0 = pxsim.BufferMethods.setNumber(s.arg0, 2, s.arg1, 0); - r0 = s.arg1; + r0 = s.arg0; + if (!checkSubtype(r0, animation_SpriteAnimation__C3162_VT)) failedCast(r0); + r0 = (s.arg0).fields["sprite"] = (s.arg1); + r0 = (s.arg0).fields["loop"] = (s.arg2); + r0 = undefined; return leave(s, r0) default: oops() } } } -music_addNote__P4372.info = {"start":10085,"length":904,"line":315,"column":4,"endLine":328,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"addNote","argumentNames":["sndInstr","sndInstrPtr","ms","beg","end","soundWave","hz","volume","endHz"]} +animation_SpriteAnimation_constructor__P3163.info = {"start":15978,"length":71,"line":413,"column":8,"endLine":414,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["this","sprite","loop"]} -function music_addNote__P4372_mk(s) { +function animation_SpriteAnimation_constructor__P3163_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_addNote__P4372, depth: s.depth + 1, + parent: s, fn: animation_SpriteAnimation_constructor__P3163, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, - arg7: undefined, - arg8: undefined, } } -function music_volume__P1621(s) { +function animation_SpriteAnimation_init__P3164(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35003,70 +40523,143 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = music_initVolume__P4364_mk(s); - s.callLocIdx = 73; s.pc = 1; return s.tmp_0; - case 1: + s.state___18585 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, animation_SpriteAnimation__C3162_VT)) failedCast(r0); + r0 = pxsim_pxtrt.mklocRef(); + s.state___18585 = (r0); + s.tmp_0 = r0 = s.state___18585; + s.tmp_4 = game_currentScene__P2792_mk(s); + s.callLocIdx = 1754; s.pc = 3; return s.tmp_4; + case 3: r0 = s.retval; - r0 = globals.globalVolume___4360; - return leave(s, r0) - default: oops() -} } } -music_volume__P1621.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__P1621_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: music_volume__P1621, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, -} } - - - - - -function music_initVolume__P4364(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = (globals.globalVolume___4360 === null); + s.tmp_3 = r0; + r0 = s.tmp_3.fields["_data"]; + s.tmp_2 = r0; + r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_2, globals.stateNamespace___5158); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt_ldlocRef(s.state___18585); + 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; } - globals.globalVolume___4360 = (0); - s.tmp_0 = music_setVolume__P1620_mk(s); - r0 = pxsim_pxtcore.getConfig(59, 128); - s.tmp_0.arg0 = r0; - s.callLocIdx = 70; s.pc = 3; return s.tmp_0; - case 3: + r0 = pxsim_pxtrt.mkMap(); + s.tmp_3 = r0; + r0 = pxsim_Array__mk(); + s.tmp_4 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_3, "animations", s.tmp_4); + s.tmp_7 = game_currentScene__P2792_mk(s); + s.callLocIdx = 1756; s.pc = 4; return s.tmp_7; + case 4: + r0 = s.retval; + s.tmp_6 = r0; + r0 = s.tmp_6.fields["_data"]; + s.tmp_5 = r0; + r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_5, globals.stateNamespace___5158, s.tmp_3); + r0 = pxsim_pxtrt_stlocRef(s.state___18585, s.tmp_3); + r0 = pxsim_pxtcore_mkAction(1, animation_SpriteAnimation_init_inline__P18601); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.state___18585); + s.tmp_1 = control_EventContext_registerFrameHandler__P403_mk(s); + s.tmp_2 = game_eventContext__P2795_mk(s); + s.callLocIdx = 1758; s.pc = 6; return s.tmp_2; + case 6: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 15; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1762; s.pc = 5; return s.tmp_1; + case 5: r0 = s.retval; case 1: case 2: + r0 = pxsim_pxtcore_mkAction(1, animation_SpriteAnimation_init_inline__P18625); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = if_animations_2_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.state___18585); + s.tmp_1.arg0 = r0; + s.tmp_2 = helpers_arrayFilter__P110_mk(s); + s.tmp_3 = if_animations_1_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.state___18585); + s.tmp_3.arg0 = r0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "animations"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["animations"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["animations"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 1763; s.pc = 9; return s.tmp_3; } + } + case 9: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_0; + s.callLocIdx = 1764; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + s.tmp_1.arg1 = r0; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_1.arg0, "animations", s.tmp_1.arg1); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["set/animations"]; + if (s.tmp_1.fn === null) { s.tmp_1.arg0.fields["animations"] = s.tmp_1.arg1; } + else if (s.tmp_1.fn === undefined) { failedCast(s.tmp_1.arg0) } + else { s.callLocIdx = 1765; s.pc = 7; return s.tmp_1; } + } + case 7: + r0 = s.retval; + s.tmp_1 = if_animations_1_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.state___18585); + s.tmp_1.arg0 = r0; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "animations"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["animations"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["animations"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 1766; s.pc = 10; return s.tmp_1; } + } + case 10: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -music_initVolume__P4364.info = {"start":1014,"length":180,"line":33,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"initVolume","argumentNames":[]} +animation_SpriteAnimation_init__P3164.info = {"start":16059,"length":1299,"line":416,"column":8,"endLine":442,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"init","argumentNames":["this"]} -function music_initVolume__P4364_mk(s) { +function animation_SpriteAnimation_init__P3164_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_initVolume__P4364, depth: s.depth + 1, + parent: s, fn: animation_SpriteAnimation_init__P3164, depth: s.depth + 1, pc: 0, retval: undefined, 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, + state___18585: undefined, + arg0: undefined, } } -function music_setVolume__P1620(s) { +function animation_SpriteAnimation_init_inline__P18601(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35076,52 +40669,60 @@ 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 = if_animations_2_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_0.arg0 = r0; + s.tmp_1 = helpers_arrayFilter__P110_mk(s); + s.tmp_2 = if_animations_1_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_2.arg0 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "animations"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["animations"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["animations"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1759; s.pc = 3; return s.tmp_2; } } - s.tmp_0 = Math_clamp__P127_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_0.arg1 = 255; - r0 = (s.arg0 | 0); - s.tmp_0.arg2 = r0; - s.callLocIdx = 71; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.globalVolume___4360 = (r0); - r0 = (globals.globalVolume___4360 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = 1; - { step = 2; continue; } - case 1: - r0 = 0; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = animation_SpriteAnimation_init_inline__P18608; + s.callLocIdx = 1760; s.pc = 2; return s.tmp_1; case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = undefined; + r0 = s.retval; + s.tmp_0.arg1 = r0; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "animations", s.tmp_0.arg1); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/animations"]; + if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["animations"] = s.tmp_0.arg1; } + else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } + else { s.callLocIdx = 1761; s.pc = 1; return s.tmp_0; } + } + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -music_setVolume__P1620.info = {"start":1533,"length":153,"line":51,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"setVolume","argumentNames":["volume"]} +animation_SpriteAnimation_init_inline__P18601.info = {"start":16491,"length":371,"line":425,"column":90,"endLine":431,"endColumn":17,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":[]} -function music_setVolume__P1620_mk(s) { +function animation_SpriteAnimation_init_inline__P18601_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_setVolume__P1620, depth: s.depth + 1, + parent: s, fn: animation_SpriteAnimation_init_inline__P18601, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, + tmp_2: undefined, } } -function music_enableAmp__P4363(s) { +function animation_SpriteAnimation_init_inline__P18608(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35135,17 +40736,44 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = undefined; + r0 = s.arg0.fields["sprite"]; + r0 = r0.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = false; + { step = 3; continue; } + case 1: + case 2: + s.tmp_4 = animation_SpriteAnimation__C3162_v0_1_mk(s); + s.tmp_4.arg0 = s.arg0; + if (!checkSubtype(s.tmp_4.arg0, animation_SpriteAnimation__C3162_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.update; + s.pc = 4; return s.tmp_4; + case 4: + 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 3: return leave(s, r0) default: oops() } } } -music_enableAmp__P4363.info = {"start":944,"length":64,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"enableAmp","argumentNames":["en"]} +animation_SpriteAnimation_init_inline__P18608.info = {"start":16562,"length":280,"line":426,"column":63,"endLine":430,"endColumn":21,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["anim"]} -function music_enableAmp__P4363_mk(s) { +function animation_SpriteAnimation_init_inline__P18608_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_enableAmp__P4363, depth: s.depth + 1, + parent: s, fn: animation_SpriteAnimation_init_inline__P18608, depth: s.depth + 1, pc: 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, } } @@ -35153,7 +40781,7 @@ function music_enableAmp__P4363_mk(s) { -function parseInt__P97(s) { +function animation_SpriteAnimation_init_inline__P18625(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35163,282 +40791,72 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.start___14318 = undefined; - s.sign___14348 = undefined; - s.output___14393 = undefined; - s.hasDigit___14394 = undefined; - s.i___14395 = undefined; - s.code___14402 = undefined; - s.val___14409 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); + r0 = s.arg0.fields["sprite"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = s.caps[0].fields["sprite"]; + 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; } + if (r0) { step = 1; continue; } r0 = s.tmp_0; - { step = 6; continue; } + { step = 8; continue; } case 1: - r0 = (s.arg1 != null); - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 2; continue; } - r0 = s.tmp_2; - { step = 5; continue; } - case 2: - r0 = (s.arg1 < 2); + r0 = s.arg0; + r0 = checkSubtype(r0, animation_ImageAnimation__C3166_VT); s.tmp_3 = r0; r0 = pxsim_numops_toBool(s.tmp_3); - if (!r0) { step = 3; continue; } + if (r0) { step = 2; continue; } r0 = s.tmp_3; - { step = 4; continue; } + { step = 3; continue; } + case 2: + r0 = s.caps[0]; + r0 = checkSubtype(r0, animation_ImageAnimation__C3166_VT); case 3: - r0 = (s.arg1 > 36); - case 4: // jmp value (already in r0) s.tmp_4 = r0; + r0 = pxsim_numops_toBool(s.tmp_4); + if (!r0) { step = 4; continue; } r0 = s.tmp_4; - case 5: - // jmp value (already in r0) + { step = 7; continue; } + case 4: + r0 = s.arg0; + r0 = checkSubtype(r0, animation_MovementAnimation__C3169_VT); s.tmp_5 = r0; + r0 = pxsim_numops_toBool(s.tmp_5); + if (r0) { step = 5; continue; } r0 = s.tmp_5; + { step = 6; continue; } + case 5: + r0 = s.caps[0]; + r0 = checkSubtype(r0, animation_MovementAnimation__C3169_VT); case 6: // jmp value (already in r0) s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 7; continue; } - r0 = NaN; - { step = 46; continue; } + r0 = s.tmp_6; case 7: - case 8: - s.start___14318 = (0); - case 9: - s.tmp_1 = r0 = s.start___14318; - r0 = pxsim_String_.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 10; continue; } - r0 = s.tmp_0; - { step = 11; continue; } - case 10: - s.tmp_3 = helpers_isWhitespace__P124_mk(s); - r0 = pxsim_String_.charCodeAt(s.arg0, s.start___14318); - s.tmp_3.arg0 = r0; - s.callLocIdx = 0; s.pc = 47; return s.tmp_3; - case 47: - r0 = s.retval; - case 11: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 12; continue; } - r0 = (s.start___14318 + 1); - s.start___14318 = (r0); - { step = 9; continue; } - case 12: - s.tmp_1 = r0 = s.start___14318; - r0 = pxsim_String_.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 === s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = NaN; - { step = 46; continue; } - case 13: - case 14: - s.sign___14348 = (1); - r0 = pxsim_String_.charAt(s.arg0, s.start___14318); - s.tmp_0 = r0; - r0 = pxsim_pxtcore.switch_eq("-", s.tmp_0); - if (r0) { step = 15; continue; } - r0 = pxsim_pxtcore.switch_eq("+", s.tmp_0); - if (r0) { step = 16; continue; } - r0 = s.tmp_0; - { step = 17; continue; } - case 15: - s.sign___14348 = (-1); - case 16: - r0 = (s.start___14318 + 1); - s.start___14318 = (r0); - case 17: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 18; continue; } - r0 = s.tmp_0; - { step = 19; continue; } - case 18: - r0 = (s.arg1 == 16); - case 19: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 20; continue; } - r0 = s.tmp_2; - { step = 21; continue; } - case 20: - r0 = pxsim_String_.charAt(s.arg0, s.start___14318); - s.tmp_3 = r0; - r0 = ("0" === s.tmp_3); - case 21: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBool(s.tmp_4); - if (r0) { step = 22; continue; } - r0 = s.tmp_4; - { step = 25; continue; } - case 22: - s.tmp_7 = r0 = s.arg0; - r0 = (s.start___14318 + 1); - s.tmp_8 = r0; - r0 = pxsim_String_.charAt(s.tmp_7, s.tmp_8); - s.tmp_6 = r0; - r0 = ("x" === s.tmp_6); - s.tmp_5 = r0; - r0 = pxsim_numops_toBool(s.tmp_5); - if (!r0) { step = 23; continue; } - r0 = s.tmp_5; - { step = 24; continue; } - case 23: - s.tmp_10 = r0 = s.arg0; - r0 = (s.start___14318 + 1); - s.tmp_11 = r0; - r0 = pxsim_String_.charAt(s.tmp_10, s.tmp_11); - s.tmp_9 = r0; - r0 = ("X" === s.tmp_9); - case 24: - // jmp value (already in r0) - s.tmp_12 = r0; - r0 = s.tmp_12; - case 25: - // jmp value (already in r0) - s.tmp_13 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_13); - if (!r0) { step = 26; continue; } - s.arg1 = (16); - r0 = (s.start___14318 + 2); - s.start___14318 = (r0); - { step = 29; continue; } - case 26: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 27; continue; } - s.arg1 = (10); - case 27: - case 28: - case 29: - s.output___14393 = (0); - s.hasDigit___14394 = (false); - s.i___14395 = (s.start___14318); - case 30: - s.tmp_1 = r0 = s.i___14395; - 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___14395); - s.tmp_3 = r0; - r0 = (s.tmp_3 | 32); - s.code___14402 = (r0); - s.val___14409 = (undefined); - r0 = (s.code___14402 >= 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___14402 < 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___14402 - 48); - s.val___14409 = (r0); - { step = 38; continue; } - case 33: - r0 = (s.code___14402 >= 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___14402 < 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___14402); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 97); - s.val___14409 = (r0); - case 36: - case 37: - case 38: - r0 = (s.val___14409 == 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___14409 >= s.arg1); - case 40: + s.tmp_7 = r0; + r0 = s.tmp_7; + case 8: // 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___14394); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 41; continue; } - r0 = NaN; - { step = 46; continue; } - case 41: - case 42: - { step = 45; continue; } - case 43: - case 44: - s.hasDigit___14394 = (true); - r0 = (s.output___14393 * s.arg1); - s.tmp_0 = r0; - r0 = (s.tmp_0 + s.val___14409); - s.output___14393 = (r0); - r0 = (s.i___14395 + 1); - s.i___14395 = (r0); - { step = 30; continue; } - case 45: - r0 = (s.sign___14348 * s.output___14393); - case 46: + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); + s.tmp_9 = r0; + r0 = pxsim_Boolean__bang(s.tmp_9); return leave(s, r0) default: oops() } } } -parseInt__P97.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"]} +animation_SpriteAnimation_init_inline__P18625.info = {"start":17019,"length":285,"line":435,"column":55,"endLine":439,"endColumn":13,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["anim"]} -function parseInt__P97_mk(s) { +function animation_SpriteAnimation_init_inline__P18625_mk(s) { checkStack(s.depth); return { - parent: s, fn: parseInt__P97, depth: s.depth + 1, + parent: s, fn: animation_SpriteAnimation_init_inline__P18625, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35450,26 +40868,14 @@ function parseInt__P97_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - start___14318: undefined, - sign___14348: undefined, - output___14393: undefined, - hasDigit___14394: undefined, - i___14395: undefined, - code___14402: undefined, - val___14409: undefined, arg0: undefined, - arg1: undefined, } } -function helpers_isWhitespace__P124(s) { +function animation_SpriteAnimation_update__P3165(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35483,57 +40889,19 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtcore.switch_eq(9, s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq(11, s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq(12, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(32, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(160, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(65279, s.tmp_0); - if (r0) { step = 6; continue; } - r0 = pxsim_pxtcore.switch_eq(10, s.tmp_0); - if (r0) { step = 7; continue; } - r0 = pxsim_pxtcore.switch_eq(13, s.tmp_0); - if (r0) { step = 8; continue; } - r0 = pxsim_pxtcore.switch_eq(8232, s.tmp_0); - if (r0) { step = 9; continue; } - r0 = pxsim_pxtcore.switch_eq(8233, s.tmp_0); - if (r0) { step = 10; continue; } - r0 = s.tmp_0; - { step = 11; continue; } - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - r0 = true; - { step = 12; continue; } - case 11: + r0 = s.arg0; + if (!checkSubtype(r0, animation_SpriteAnimation__C3162_VT)) failedCast(r0); r0 = false; - { step = 12; continue; } - r0 = undefined; - case 12: return leave(s, r0) default: oops() } } } -helpers_isWhitespace__P124.info = {"start":14864,"length":674,"line":503,"column":4,"endLine":520,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"isWhitespace","argumentNames":["c"]} +animation_SpriteAnimation_update__P3165.info = {"start":17368,"length":118,"line":444,"column":8,"endLine":447,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"update","argumentNames":["this"]} -function helpers_isWhitespace__P124_mk(s) { +function animation_SpriteAnimation_update__P3165_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_isWhitespace__P124, depth: s.depth + 1, + parent: s, fn: animation_SpriteAnimation_update__P3165, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -35541,7 +40909,7 @@ function helpers_isWhitespace__P124_mk(s) { -function music_MelodyPlayer_constructor__P1639(s) { +function Sprite_tilemapLocation__P2265(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35551,34 +40919,90 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___18678 = 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__C1636_VT)) failedCast(r0); - r0 = (s.arg0).fields["melody"] = (s.arg1); + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P2792_mk(s); + s.callLocIdx = 531; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.scene___18678 = (r0); + r0 = s.scene___18678.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 = undefined; + { step = 3; continue; } + case 1: + case 2: + s.tmp_3 = tiles_getTileLocation__P2603_mk(s); + s.tmp_5 = Sprite_x__P2195_mk(s); + s.tmp_5.arg0 = s.arg0; + s.callLocIdx = 532; s.pc = 6; return s.tmp_5; + case 6: + r0 = s.retval; + s.tmp_4 = r0; + r0 = s.scene___18678.fields["tileMap"]; + s.tmp_7 = r0; + r0 = s.tmp_7.fields["_scale"]; + s.tmp_6 = r0; + r0 = (s.tmp_4 >> s.tmp_6); + s.tmp_3.arg0 = r0; + s.tmp_9 = Sprite_y__P2197_mk(s); + s.tmp_9.arg0 = s.arg0; + s.callLocIdx = 534; s.pc = 7; return s.tmp_9; + case 7: + r0 = s.retval; + s.tmp_8 = r0; + r0 = s.scene___18678.fields["tileMap"]; + s.tmp_11 = r0; + r0 = s.tmp_11.fields["_scale"]; + s.tmp_10 = r0; + r0 = (s.tmp_8 >> s.tmp_10); + s.tmp_3.arg1 = r0; + s.callLocIdx = 536; s.pc = 5; return s.tmp_3; + case 5: + r0 = s.retval; + case 3: return leave(s, r0) default: oops() } } } -music_MelodyPlayer_constructor__P1639.info = {"start":11094,"length":62,"line":336,"column":8,"endLine":338,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","m"]} +Sprite_tilemapLocation__P2265.info = {"start":24536,"length":230,"line":805,"column":4,"endLine":809,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"tilemapLocation","argumentNames":["this"]} -function music_MelodyPlayer_constructor__P1639_mk(s) { +function Sprite_tilemapLocation__P2265_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_MelodyPlayer_constructor__P1639, depth: s.depth + 1, + parent: s, fn: Sprite_tilemapLocation__P2265, depth: s.depth + 1, pc: 0, retval: undefined, 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, + scene___18678: undefined, arg0: undefined, - arg1: undefined, } } -function music_Melody_stop__P1631(s) { +function tiles_getTileLocation__P2603(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35588,51 +41012,82 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___18698 = 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__C1626_VT)) failedCast(r0); - r0 = s.arg0.fields["_player"]; + s.tmp_0 = game_currentScene__P2792_mk(s); + s.callLocIdx = 1134; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.scene___18698 = (r0); + r0 = (s.arg0 == 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_1 = music_MelodyPlayer_stop__P1640_mk(s); - r0 = s.arg0.fields["_player"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 82; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - r0 = (s.arg0).fields["_player"] = (null); + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = (s.arg1 == undefined); case 2: - s.tmp_0 = music_Melody_unregisterMelody__P4369_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 83; s.pc = 4; return s.tmp_0; + // 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___18698.fields["tileMap"]; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); case 4: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 5; continue; } + r0 = null; + { step = 7; continue; } + case 5: + case 6: + s.tmp_5 = tiles_TileMap_getTile__P2585_mk(s); + r0 = s.scene___18698.fields["tileMap"]; + s.tmp_5.arg0 = r0; + s.tmp_5.arg1 = s.arg0; + s.tmp_5.arg2 = s.arg1; + s.callLocIdx = 1135; s.pc = 9; return s.tmp_5; + case 9: r0 = s.retval; - r0 = undefined; + case 7: return leave(s, r0) default: oops() } } } -music_Melody_stop__P1631.info = {"start":6705,"length":173,"line":215,"column":8,"endLine":221,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"stop","argumentNames":["this"]} +tiles_getTileLocation__P2603.info = {"start":21520,"length":247,"line":663,"column":4,"endLine":667,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileLocation","argumentNames":["col","row"]} -function music_Melody_stop__P1631_mk(s) { +function tiles_getTileLocation__P2603_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_stop__P1631, depth: s.depth + 1, + parent: s, fn: tiles_getTileLocation__P2603, depth: s.depth + 1, pc: 0, retval: undefined, 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___18698: undefined, arg0: undefined, + arg1: undefined, } } -function music_MelodyPlayer_stop__P1640(s) { +function tiles_TileMap_getTile__P2585(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35644,30 +41099,45 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_MelodyPlayer__C1636_VT)) failedCast(r0); - r0 = (s.arg0).fields["melody"] = (null); - r0 = undefined; + if (!checkSubtype(r0, tiles_TileMap__C2571_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C2529_VT); + s.tmp_0 = r0; + s.tmp_1 = tiles_Location_constructor__P2530_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 = 1084; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -music_MelodyPlayer_stop__P1640.info = {"start":11166,"length":49,"line":340,"column":8,"endLine":342,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"stop","argumentNames":["this"]} +tiles_TileMap_getTile__P2585.info = {"start":11070,"length":111,"line":380,"column":8,"endLine":382,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} -function music_MelodyPlayer_stop__P1640_mk(s) { +function tiles_TileMap_getTile__P2585_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_MelodyPlayer_stop__P1640, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTile__P2585, 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 statusbars_onZero__P4213(s) { +function tiles_Location_constructor__P2530(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35677,64 +41147,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.zeroHandlers___17007 = 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 = statusbars_getZeroHandlers__P6774_mk(s); - s.callLocIdx = 1800; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.zeroHandlers___17007 = (r0); - r0 = pxsim_numops_toBoolDecr(s.zeroHandlers___17007); - s.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; - s.zeroHandlers___17007 = (r0); - s.tmp_5 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1801; s.pc = 4; return s.tmp_5; - case 4: - r0 = s.retval; - s.tmp_4 = r0; - r0 = s.tmp_4.fields["_data"]; - s.tmp_3 = r0; - r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_3, globals.ZERO_HANDLERS_KEY___6747, s.tmp_2); - case 1: - case 2: - r0 = pxsim_Array_.setAt(s.zeroHandlers___17007, s.arg0, s.arg1); + r0 = s.arg0; + if (!checkSubtype(r0, tiles_Location__C2529_VT)) failedCast(r0); + r0 = (s.arg0).fields["_col"] = (s.arg1); + r0 = (s.arg0).fields["_row"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -statusbars_onZero__P4213.info = {"start":28772,"length":288,"line":825,"column":4,"endLine":831,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"onZero","argumentNames":["kind","handler"]} +tiles_Location_constructor__P2530.info = {"start":360,"length":121,"line":19,"column":8,"endLine":22,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","col","row","map"]} -function statusbars_onZero__P4213_mk(s) { +function tiles_Location_constructor__P2530_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_onZero__P4213, depth: s.depth + 1, + parent: s, fn: tiles_Location_constructor__P2530, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - zeroHandlers___17007: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function animation_runImageAnimation__P3172(s) { +function tiles_placeOnTile__P2609(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35744,58 +41189,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.anim___17028 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(animation_ImageAnimation__C3166_VT); + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - s.tmp_1 = r0 = s.arg2; - r0 = pxsim_numops_toBool(s.tmp_1); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_1; + r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = 500; + 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; - s.tmp_3 = animation_ImageAnimation_constructor__P3167_mk(s); - s.tmp_3.arg0 = s.tmp_0; - s.tmp_3.arg1 = s.arg0; - s.tmp_3.arg2 = s.arg1; - s.tmp_3.arg3 = s.tmp_2; - r0 = pxsim_numops_toBoolDecr(s.arg3); - s.tmp_6 = r0; - r0 = pxsim_Boolean__bang(s.tmp_6); + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = s.tmp_3; + { step = 4; continue; } + case 3: + s.tmp_6 = tiles_Location_tileMap__P2531_mk(s); + s.tmp_6.arg0 = s.arg1; + s.callLocIdx = 1139; s.pc = 8; return s.tmp_6; + case 8: + r0 = s.retval; s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); s.tmp_4 = r0; r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3.arg4 = r0; - s.callLocIdx = 1675; s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; - s.anim___17028 = (s.tmp_0); - s.tmp_0 = animation_SpriteAnimation_init__P3164_mk(s); - s.tmp_0.arg0 = s.anim___17028; - s.callLocIdx = 1676; s.pc = 4; return s.tmp_0; 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__P2545_mk(s); + s.tmp_8.arg0 = s.arg1; + s.tmp_8.arg1 = s.arg0; + s.callLocIdx = 1140; s.pc = 9; return s.tmp_8; + case 9: r0 = s.retval; + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -animation_runImageAnimation__P3172.info = {"start":19661,"length":222,"line":508,"column":4,"endLine":511,"endColumn":5,"fileName":"pxt_modules/game/animation.ts","functionName":"runImageAnimation","argumentNames":["sprite","frames","frameInterval","loop"]} +tiles_placeOnTile__P2609.info = {"start":24747,"length":152,"line":747,"column":4,"endLine":750,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"placeOnTile","argumentNames":["sprite","loc"]} -function animation_runImageAnimation__P3172_mk(s) { +function tiles_placeOnTile__P2609_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_runImageAnimation__P3172, depth: s.depth + 1, + parent: s, fn: tiles_placeOnTile__P2609, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35804,18 +41256,17 @@ function animation_runImageAnimation__P3172_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - anim___17028: undefined, + tmp_7: undefined, + tmp_8: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function animation_ImageAnimation_constructor__P3167(s) { +function tiles_Location_place__P2545(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35828,47 +41279,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.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, animation_ImageAnimation__C3166_VT)) failedCast(r0); - r0 = (s.arg0).fields["frames"] = (s.arg2); - r0 = (s.arg0).fields["frameInterval"] = (s.arg3); - s.tmp_0 = animation_SpriteAnimation_constructor__P3163_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg4; - s.callLocIdx = 1670; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, tiles_Location__C2529_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; } case 1: + case 2: + s.tmp_2 = Sprite_setPosition__P2250_mk(s); + s.tmp_2.arg0 = s.arg1; + s.tmp_3 = tiles_Location_x__P2534_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1058; s.pc = 5; return s.tmp_3; + case 5: r0 = s.retval; - r0 = (s.arg0).fields["lastFrame"] = (-1); + s.tmp_2.arg1 = r0; + s.tmp_4 = tiles_Location_y__P2535_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 1059; s.pc = 6; return s.tmp_4; + case 6: + r0 = s.retval; + s.tmp_2.arg2 = r0; + s.callLocIdx = 1060; s.pc = 4; return s.tmp_2; + case 4: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -animation_ImageAnimation_constructor__P3167.info = {"start":17596,"length":177,"line":453,"column":8,"endLine":456,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["this","sprite","frames","frameInterval","loop"]} +tiles_Location_place__P2545.info = {"start":3931,"length":126,"line":130,"column":8,"endLine":133,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"place","argumentNames":["this","mySprite"]} -function animation_ImageAnimation_constructor__P3167_mk(s) { +function tiles_Location_place__P2545_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_ImageAnimation_constructor__P3167, depth: s.depth + 1, + parent: s, fn: tiles_Location_place__P2545, depth: s.depth + 1, pc: 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 animation_SpriteAnimation_constructor__P3163(s) { +function tiles_Location_y__P2535(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35878,175 +41344,103 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scale___18760 = 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, animation_SpriteAnimation__C3162_VT)) failedCast(r0); - r0 = (s.arg0).fields["sprite"] = (s.arg1); - r0 = (s.arg0).fields["loop"] = (s.arg2); - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, tiles_Location__C2529_VT)) failedCast(r0); + s.tmp_1 = tiles_Location_tileMap__P2531_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1050; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["_scale"]; + s.scale___18760 = (r0); + r0 = s.arg0.fields["_row"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 << s.scale___18760); + s.tmp_0 = r0; + r0 = (s.scale___18760 - 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() } } } -animation_SpriteAnimation_constructor__P3163.info = {"start":15978,"length":71,"line":413,"column":8,"endLine":414,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["this","sprite","loop"]} +tiles_Location_y__P2535.info = {"start":1315,"length":135,"line":53,"column":8,"endLine":56,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"y","argumentNames":["this"]} +tiles_Location_y__P2535.isGetter = true; -function animation_SpriteAnimation_constructor__P3163_mk(s) { +function tiles_Location_y__P2535_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_SpriteAnimation_constructor__P3163, depth: s.depth + 1, + parent: s, fn: tiles_Location_y__P2535, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + scale___18760: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function animation_SpriteAnimation_init__P3164(s) { +function tiles_Location_x__P2534(s) { let r0 = s.r0, 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___17041 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, animation_SpriteAnimation__C3162_VT)) failedCast(r0); - r0 = pxsim_pxtrt.mklocRef(); - s.state___17041 = (r0); - s.tmp_0 = r0 = s.state___17041; - s.tmp_4 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1657; s.pc = 3; return s.tmp_4; - case 3: - r0 = s.retval; - s.tmp_3 = r0; - r0 = s.tmp_3.fields["_data"]; - s.tmp_2 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_2, globals.stateNamespace___5118); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_ldlocRef(s.state___17041); - 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_pxtrt.mkMap(); - s.tmp_3 = r0; - r0 = pxsim_Array__mk(); - s.tmp_4 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_3, "animations", s.tmp_4); - s.tmp_7 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1659; s.pc = 4; return s.tmp_7; - case 4: - r0 = s.retval; - s.tmp_6 = r0; - r0 = s.tmp_6.fields["_data"]; - s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_5, globals.stateNamespace___5118, s.tmp_3); - r0 = pxsim_pxtrt_stlocRef(s.state___17041, s.tmp_3); - r0 = pxsim_pxtcore_mkAction(1, animation_SpriteAnimation_init_inline__P17057); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.state___17041); - s.tmp_1 = control_EventContext_registerFrameHandler__P403_mk(s); - s.tmp_2 = game_eventContext__P2795_mk(s); - s.callLocIdx = 1661; s.pc = 6; return s.tmp_2; - case 6: - r0 = s.retval; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 15; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1665; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - case 1: - case 2: - r0 = pxsim_pxtcore_mkAction(1, animation_SpriteAnimation_init_inline__P17081); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = if_animations_2_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.state___17041); - s.tmp_1.arg0 = r0; - s.tmp_2 = helpers_arrayFilter__P110_mk(s); - s.tmp_3 = if_animations_1_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.state___17041); - s.tmp_3.arg0 = r0; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "animations"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["animations"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["animations"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1666; s.pc = 9; return s.tmp_3; } - } - case 9: - r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_0; - s.callLocIdx = 1667; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - s.tmp_1.arg1 = r0; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_1.arg0, "animations", s.tmp_1.arg1); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["set/animations"]; - if (s.tmp_1.fn === null) { s.tmp_1.arg0.fields["animations"] = s.tmp_1.arg1; } - else if (s.tmp_1.fn === undefined) { failedCast(s.tmp_1.arg0) } - else { s.callLocIdx = 1668; s.pc = 7; return s.tmp_1; } - } - case 7: - r0 = s.retval; - s.tmp_1 = if_animations_1_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.state___17041); - s.tmp_1.arg0 = r0; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "animations"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["animations"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["animations"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1669; s.pc = 10; return s.tmp_1; } +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.scale___18776 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; } - case 10: + r0 = s.arg0; + if (!checkSubtype(r0, tiles_Location__C2529_VT)) failedCast(r0); + s.tmp_1 = tiles_Location_tileMap__P2531_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1048; s.pc = 1; return s.tmp_1; + case 1: r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg0); - r0 = undefined; - return leave(s, r0) + r0 = s.tmp_0.fields["_scale"]; + s.scale___18776 = (r0); + r0 = s.arg0.fields["_col"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 << s.scale___18776); + s.tmp_0 = r0; + r0 = (s.scale___18776 - 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() } } } -animation_SpriteAnimation_init__P3164.info = {"start":16059,"length":1299,"line":416,"column":8,"endLine":442,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"init","argumentNames":["this"]} +tiles_Location_x__P2534.info = {"start":1054,"length":135,"line":45,"column":8,"endLine":48,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"x","argumentNames":["this"]} +tiles_Location_x__P2534.isGetter = true; -function animation_SpriteAnimation_init__P3164_mk(s) { +function tiles_Location_x__P2534_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_SpriteAnimation_init__P3164, depth: s.depth + 1, + parent: s, fn: tiles_Location_x__P2534, depth: s.depth + 1, pc: 0, retval: undefined, 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, - state___17041: undefined, + scale___18776: undefined, arg0: undefined, } } @@ -36054,7 +41448,7 @@ function animation_SpriteAnimation_init__P3164_mk(s) { -function animation_SpriteAnimation_init_inline__P17057(s) { +function tiles_Location_tileMap__P2531(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36064,60 +41458,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = if_animations_2_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_0.arg0 = r0; - s.tmp_1 = helpers_arrayFilter__P110_mk(s); - s.tmp_2 = if_animations_1_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_2.arg0 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "animations"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["animations"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["animations"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1662; s.pc = 3; return s.tmp_2; } - } - case 3: - r0 = s.retval; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = animation_SpriteAnimation_init_inline__P17064; - s.callLocIdx = 1663; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg1 = r0; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "animations", s.tmp_0.arg1); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/animations"]; - if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["animations"] = s.tmp_0.arg1; } - else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } - else { s.callLocIdx = 1664; s.pc = 1; return s.tmp_0; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_Location__C2529_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P2792_mk(s); + s.callLocIdx = 1047; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = r0.fields["tileMap"]; + return leaveAccessor(s, r0) default: oops() } } } -animation_SpriteAnimation_init_inline__P17057.info = {"start":16491,"length":371,"line":425,"column":90,"endLine":431,"endColumn":17,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":[]} +tiles_Location_tileMap__P2531.info = {"start":491,"length":73,"line":24,"column":8,"endLine":26,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"tileMap","argumentNames":["this"]} +tiles_Location_tileMap__P2531.isGetter = true; -function animation_SpriteAnimation_init_inline__P17057_mk(s) { +function tiles_Location_tileMap__P2531_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_SpriteAnimation_init_inline__P17057, depth: s.depth + 1, + parent: s, fn: tiles_Location_tileMap__P2531, 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 animation_SpriteAnimation_init_inline__P17064(s) { +function controller_Controller_onButtonEvent__P1996(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36129,54 +41500,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.fields["sprite"]; - r0 = r0.fields["flags"]; + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C1978_VT)) failedCast(r0); + s.tmp_0 = controller_Button_onEvent__P2039_mk(s); + r0 = s.arg0.fields["buttons"]; s.tmp_1 = r0; - r0 = (s.tmp_1 & 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = false; - { step = 3; continue; } + r0 = (s.arg1 - 1); + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + s.callLocIdx = 246; s.pc = 1; return s.tmp_0; case 1: - case 2: - s.tmp_4 = animation_SpriteAnimation__C3162_v0_1_mk(s); - s.tmp_4.arg0 = s.arg0; - if (!checkSubtype(s.tmp_4.arg0, animation_SpriteAnimation__C3162_VT)) failedCast(s.tmp_4.arg0); - s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.update; - s.pc = 4; return s.tmp_4; - case 4: 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 3: + r0 = undefined; return leave(s, r0) default: oops() } } } -animation_SpriteAnimation_init_inline__P17064.info = {"start":16562,"length":280,"line":426,"column":63,"endLine":430,"endColumn":21,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["anim"]} +controller_Controller_onButtonEvent__P1996.info = {"start":6016,"length":153,"line":203,"column":8,"endLine":205,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"onButtonEvent","argumentNames":["this","btn","event","handler"]} -function animation_SpriteAnimation_init_inline__P17064_mk(s) { +function controller_Controller_onButtonEvent__P1996_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_SpriteAnimation_init_inline__P17064, depth: s.depth + 1, + parent: s, fn: controller_Controller_onButtonEvent__P1996, depth: s.depth + 1, pc: 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 animation_SpriteAnimation_init_inline__P17081(s) { +function halo_inline__P18805(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36186,91 +41553,43 @@ 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.fields["sprite"]; - s.tmp_1 = r0; - r0 = s.caps[0].fields["sprite"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 === s.tmp_2); + r0 = pxsim_pxtcore_mkClassInstance(RingFactory__C18806_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 8; continue; } + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_1, 4); + r0 = pxsim_Array__push(s.tmp_1, 4); + r0 = pxsim_Array__push(s.tmp_1, 5); + s.tmp_2 = particles_RadialFactory_constructor__P3013_mk(s); + s.tmp_2.arg0 = s.tmp_0; + s.tmp_2.arg1 = 30; + s.tmp_2.arg2 = 40; + s.tmp_2.arg3 = 10; + s.tmp_2.arg4 = s.tmp_1; + s.callLocIdx = 52; s.pc = 1; return s.tmp_2; case 1: - r0 = s.arg0; - r0 = checkSubtype(r0, animation_ImageAnimation__C3166_VT); - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (r0) { step = 2; continue; } - r0 = s.tmp_3; - { step = 3; continue; } - case 2: - r0 = s.caps[0]; - r0 = checkSubtype(r0, animation_ImageAnimation__C3166_VT); - case 3: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBool(s.tmp_4); - if (!r0) { step = 4; continue; } - r0 = s.tmp_4; - { step = 7; continue; } - case 4: - r0 = s.arg0; - r0 = checkSubtype(r0, animation_MovementAnimation__C3169_VT); - s.tmp_5 = r0; - r0 = pxsim_numops_toBool(s.tmp_5); - if (r0) { step = 5; continue; } - r0 = s.tmp_5; - { step = 6; continue; } - case 5: - r0 = s.caps[0]; - r0 = checkSubtype(r0, animation_MovementAnimation__C3169_VT); - case 6: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = s.tmp_6; - case 7: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = s.tmp_7; - case 8: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_8); - s.tmp_9 = r0; - r0 = pxsim_Boolean__bang(s.tmp_9); + r0 = s.retval; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -animation_SpriteAnimation_init_inline__P17081.info = {"start":17019,"length":285,"line":435,"column":55,"endLine":439,"endColumn":13,"fileName":"pxt_modules/game/animation.ts","functionName":"inline","argumentNames":["anim"]} +halo_inline__P18805.info = {"start":10315,"length":373,"line":262,"column":47,"endLine":271,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":[]} -function animation_SpriteAnimation_init_inline__P17081_mk(s) { +function halo_inline__P18805_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_SpriteAnimation_init_inline__P17081, depth: s.depth + 1, + parent: s, fn: halo_inline__P18805, depth: s.depth + 1, pc: 0, retval: undefined, 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 animation_SpriteAnimation_update__P3165(s) { +function particles_RadialFactory_constructor__P3013(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36282,29 +41601,96 @@ 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, animation_SpriteAnimation__C3162_VT)) failedCast(r0); - r0 = false; + if (!checkSubtype(r0, particles_RadialFactory__C3012_VT)) failedCast(r0); + r0 = undefined; + s.tmp_0 = particles_initTrig__P5104_mk(s); + s.callLocIdx = 1661; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = r0 = s.arg4; + 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.arg4); + s.tmp_1 = r0; + r0 = (s.tmp_1 != 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 = (s.arg0).fields["colors"] = (s.arg4); + { step = 4; continue; } + case 3: + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, 2); + r0 = pxsim_Array__push(s.tmp_0, 3); + r0 = pxsim_Array__push(s.tmp_0, 4); + r0 = pxsim_Array__push(s.tmp_0, 5); + r0 = (s.arg0).fields["colors"] = (s.tmp_0); + case 4: + s.tmp_0 = particles_RadialFactory_setRadius__P3016_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1662; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = (0 - s.arg2); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_3 = r0; + r0 = (s.tmp_3 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["speed"] = (s.tmp_1); + r0 = (s.arg0).fields["spread"] = (s.arg3); + r0 = (s.arg0).fields["t"] = (0); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C2847_VT); + s.tmp_0 = r0; + s.tmp_1 = Math_FastRandom_constructor__P2849_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1664; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + r0 = (s.arg0).fields["galois"] = (s.tmp_0); + r0 = undefined; return leave(s, r0) default: oops() } } } -animation_SpriteAnimation_update__P3165.info = {"start":17368,"length":118,"line":444,"column":8,"endLine":447,"endColumn":9,"fileName":"pxt_modules/game/animation.ts","functionName":"update","argumentNames":["this"]} +particles_RadialFactory_constructor__P3013.info = {"start":9999,"length":469,"line":325,"column":8,"endLine":339,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","radius","speed","spread","colors"]} -function animation_SpriteAnimation_update__P3165_mk(s) { +function particles_RadialFactory_constructor__P3013_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_SpriteAnimation_update__P3165, depth: s.depth + 1, + parent: s, fn: particles_RadialFactory_constructor__P3013, depth: s.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 Sprite_tilemapLocation__P2265(s) { +function particles_RadialFactory_setRadius__P3016(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36314,90 +41700,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___17134 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 497; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.scene___17134 = (r0); - r0 = s.scene___17134.fields["tileMap"]; + if (!checkSubtype(r0, particles_RadialFactory__C3012_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 >> 1); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = (s.tmp_2 * 256); + s.tmp_3 = r0; + r0 = (s.tmp_3 | 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.tmp_0).fields["r"] = (s.tmp_1); r0 = undefined; - { step = 3; continue; } - case 1: - case 2: - s.tmp_3 = tiles_getTileLocation__P2603_mk(s); - s.tmp_5 = Sprite_x__P2195_mk(s); - s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 498; s.pc = 6; return s.tmp_5; - case 6: - r0 = s.retval; - s.tmp_4 = r0; - r0 = s.scene___17134.fields["tileMap"]; - s.tmp_7 = r0; - r0 = s.tmp_7.fields["_scale"]; - s.tmp_6 = r0; - r0 = (s.tmp_4 >> s.tmp_6); - s.tmp_3.arg0 = r0; - s.tmp_9 = Sprite_y__P2197_mk(s); - s.tmp_9.arg0 = s.arg0; - s.callLocIdx = 500; s.pc = 7; return s.tmp_9; - case 7: - r0 = s.retval; - s.tmp_8 = r0; - r0 = s.scene___17134.fields["tileMap"]; - s.tmp_11 = r0; - r0 = s.tmp_11.fields["_scale"]; - s.tmp_10 = r0; - r0 = (s.tmp_8 >> s.tmp_10); - s.tmp_3.arg1 = r0; - s.callLocIdx = 502; s.pc = 5; return s.tmp_3; - case 5: - r0 = s.retval; - case 3: return leave(s, r0) default: oops() } } } -Sprite_tilemapLocation__P2265.info = {"start":24536,"length":230,"line":805,"column":4,"endLine":809,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"tilemapLocation","argumentNames":["this"]} +particles_RadialFactory_setRadius__P3016.info = {"start":11352,"length":66,"line":365,"column":8,"endLine":367,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setRadius","argumentNames":["this","r"]} -function Sprite_tilemapLocation__P2265_mk(s) { +function particles_RadialFactory_setRadius__P3016_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_tilemapLocation__P2265, depth: s.depth + 1, + parent: s, fn: particles_RadialFactory_setRadius__P3016, depth: s.depth + 1, pc: 0, retval: undefined, 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, - scene___17134: undefined, arg0: undefined, + arg1: undefined, } } -function tiles_getTileLocation__P2603(s) { +function effects_createEffect__P5130(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36407,82 +41748,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___17154 = 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__P2792_mk(s); - s.callLocIdx = 1100; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.scene___17154 = (r0); - r0 = (s.arg0 == undefined); + r0 = pxsim_pxtcore_mkClassInstance(effects_ParticleEffect__C3050_VT); 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_pxtcore_mkAction(1, effects_createEffect_inline__P18867); 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___17154.fields["tileMap"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 4: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 5; continue; } - r0 = null; - { step = 7; continue; } - case 5: - case 6: - s.tmp_5 = tiles_TileMap_getTile__P2585_mk(s); - r0 = s.scene___17154.fields["tileMap"]; - s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = s.arg0; - s.tmp_5.arg2 = s.arg1; - s.callLocIdx = 1101; s.pc = 9; return s.tmp_5; - case 9: + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg2); + s.tmp_2 = effects_ParticleEffect_constructor__P3051_mk(s); + s.tmp_2.arg0 = s.tmp_0; + s.tmp_2.arg1 = s.arg0; + s.tmp_2.arg2 = s.arg1; + s.tmp_2.arg3 = s.tmp_1; + s.callLocIdx = 1697; s.pc = 1; return s.tmp_2; + case 1: r0 = s.retval; - case 7: + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -tiles_getTileLocation__P2603.info = {"start":21520,"length":247,"line":663,"column":4,"endLine":667,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileLocation","argumentNames":["col","row"]} +effects_createEffect__P5130.info = {"start":5459,"length":434,"line":146,"column":4,"endLine":151,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"createEffect","argumentNames":["defaultParticlesPerSecond","defaultLifespan","factoryFactory"]} -function tiles_getTileLocation__P2603_mk(s) { +function effects_createEffect__P5130_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_getTileLocation__P2603, depth: s.depth + 1, + parent: s, fn: effects_createEffect__P5130, depth: s.depth + 1, pc: 0, retval: undefined, 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___17154: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function tiles_TileMap_getTile__P2585(s) { +function effects_createEffect_inline__P18867(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36495,44 +41803,48 @@ 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__C2571_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C2529_VT); + r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C2939_VT); s.tmp_0 = r0; - s.tmp_1 = tiles_Location_constructor__P2530_mk(s); + s.tmp_1 = particles_ParticleSource_constructor__P2944_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 = 1050; s.pc = 1; return s.tmp_1; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.arg1; + s.tmp_2 = lambda_2_mk(s); + s.tmp_2.argL = s.caps[0]; + s.tmp_2.arg0 = undefined; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 1695; s.pc = 2; return s.tmp_2; + case 2: + r0 = s.retval; + s.tmp_1.arg3 = r0; + s.callLocIdx = 1696; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -tiles_TileMap_getTile__P2585.info = {"start":11070,"length":111,"line":380,"column":8,"endLine":382,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} +effects_createEffect_inline__P18867.info = {"start":5751,"length":134,"line":149,"column":20,"endLine":150,"endColumn":83,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","pps"]} -function tiles_TileMap_getTile__P2585_mk(s) { +function effects_createEffect_inline__P18867_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTile__P2585, depth: s.depth + 1, + parent: s, fn: effects_createEffect_inline__P18867, 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_Location_constructor__P2530(s) { +function Sprite_startEffect__P2254(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36546,35 +41858,57 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2529_VT)) failedCast(r0); - r0 = (s.arg0).fields["_col"] = (s.arg1); - r0 = (s.arg0).fields["_row"] = (s.arg2); + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_0 = effects_ParticleEffect_start__P3052_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = null; + r0 = s.arg0.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 = 487; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_Location_constructor__P2530.info = {"start":360,"length":121,"line":19,"column":8,"endLine":22,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","col","row","map"]} +Sprite_startEffect__P2254.info = {"start":17585,"length":162,"line":599,"column":4,"endLine":601,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"startEffect","argumentNames":["this","effect","duration"]} -function tiles_Location_constructor__P2530_mk(s) { +function Sprite_startEffect__P2254_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_constructor__P2530, depth: s.depth + 1, + parent: s, fn: Sprite_startEffect__P2254, depth: s.depth + 1, pc: 0, retval: undefined, 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 tiles_placeOnTile__P2609(s) { +function effects_ParticleEffect_start__P3052(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36584,84 +41918,112 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.src___18898 = 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.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, effects_ParticleEffect__C3050_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_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + { step = 9; 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); + r0 = pxsim_numops_toBoolDecr(s.arg3); if (!r0) { step = 3; continue; } - r0 = s.tmp_3; + r0 = s.arg3; { step = 4; continue; } case 3: - s.tmp_6 = tiles_Location_tileMap__P2531_mk(s); - s.tmp_6.arg0 = s.arg1; - s.callLocIdx = 1105; s.pc = 8; return s.tmp_6; - case 8: - r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); + r0 = s.arg0.fields["defaultRate"]; case 4: // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); + 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 = 1681; 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 = 1681; s.pc = 10; return s.tmp_4; } + else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1681; s.pc = 10; return s.tmp_4;; } + else { s.callLocIdx = 1681; s.pc = 10; return s.tmp_4; } + } + case 10: + r0 = s.retval; + s.src___18898 = (r0); + s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P2950_mk(s); + s.tmp_0.arg0 = s.src___18898; + 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 = 1682; 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 = 5; continue; } - { step = 7; continue; } + r0 = s.arg2; + { step = 6; continue; } case 5: + r0 = s.arg0.fields["defaultLifespan"]; case 6: - s.tmp_8 = tiles_Location_place__P2545_mk(s); - s.tmp_8.arg0 = s.arg1; - s.tmp_8.arg1 = s.arg0; - s.callLocIdx = 1106; s.pc = 9; return s.tmp_8; - case 9: - r0 = s.retval; + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.src___18898).fields["lifespan"] = (s.tmp_1); case 7: + case 8: + case 9: r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_placeOnTile__P2609.info = {"start":24747,"length":152,"line":747,"column":4,"endLine":750,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"placeOnTile","argumentNames":["sprite","loc"]} +effects_ParticleEffect_start__P3052.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 tiles_placeOnTile__P2609_mk(s) { +function effects_ParticleEffect_start__P3052_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_placeOnTile__P2609, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_start__P3052, depth: s.depth + 1, pc: 0, retval: undefined, 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, + src___18898: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function tiles_Location_place__P2545(s) { +function particles_ParticleSource_setRelativeToCamera__P2950(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36677,44 +42039,38 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2529_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C2939_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 = 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; } 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: - s.tmp_2 = Sprite_setPosition__P2250_mk(s); - s.tmp_2.arg0 = s.arg1; - s.tmp_3 = tiles_Location_x__P2534_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1024; s.pc = 5; return s.tmp_3; - case 5: - r0 = s.retval; - s.tmp_2.arg1 = r0; - s.tmp_4 = tiles_Location_y__P2535_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 1025; s.pc = 6; return s.tmp_4; - case 6: - r0 = s.retval; - s.tmp_2.arg2 = r0; - s.callLocIdx = 1026; 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__P2545.info = {"start":3931,"length":126,"line":130,"column":8,"endLine":133,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"place","argumentNames":["this","mySprite"]} +particles_ParticleSource_setRelativeToCamera__P2950.info = {"start":6439,"length":173,"line":211,"column":8,"endLine":214,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRelativeToCamera","argumentNames":["this","on"]} -function tiles_Location_place__P2545_mk(s) { +function particles_ParticleSource_setRelativeToCamera__P2950_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_place__P2545, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRelativeToCamera__P2950, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36729,7 +42085,7 @@ function tiles_Location_place__P2545_mk(s) { -function tiles_Location_y__P2535(s) { +function sprites_createProjectileFromSprite__P2123(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36739,54 +42095,44 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scale___17216 = 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__C2529_VT)) failedCast(r0); - s.tmp_1 = tiles_Location_tileMap__P2531_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 1016; s.pc = 1; return s.tmp_1; + s.tmp_0 = sprites_createProjectile__P2124_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + s.tmp_0.arg3 = 1; + s.tmp_0.arg4 = s.arg1; + s.callLocIdx = 387; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["_scale"]; - s.scale___17216 = (r0); - r0 = s.arg0.fields["_row"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___17216); - s.tmp_0 = r0; - r0 = (s.scale___17216 - 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) + return leave(s, r0) default: oops() } } } -tiles_Location_y__P2535.info = {"start":1315,"length":135,"line":53,"column":8,"endLine":56,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"y","argumentNames":["this"]} -tiles_Location_y__P2535.isGetter = true; +sprites_createProjectileFromSprite__P2123.info = {"start":4128,"length":187,"line":116,"column":4,"endLine":118,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"createProjectileFromSprite","argumentNames":["img","sprite","vx","vy"]} -function tiles_Location_y__P2535_mk(s) { +function sprites_createProjectileFromSprite__P2123_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_y__P2535, depth: s.depth + 1, + parent: s, fn: sprites_createProjectileFromSprite__P2123, depth: s.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___17216: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function tiles_Location_x__P2534(s) { +function sprites_createProjectile__P2124(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36796,54 +42142,244 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scale___17232 = undefined; + s.s___18952 = undefined; + s.sc___18959 = undefined; + s.xOff___18975 = undefined; + s.yOff___18989 = undefined; + s.cam___19003 = undefined; + s.initialX___19007 = undefined; + s.initialY___19010 = 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, tiles_Location__C2529_VT)) failedCast(r0); - s.tmp_1 = tiles_Location_tileMap__P2531_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 1014; s.pc = 1; return s.tmp_1; + s.tmp_0 = r0 = s.arg3; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = 1; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + s.tmp_2 = sprites_create__P2118_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 388; s.pc = 17; return s.tmp_2; + case 17: + r0 = s.retval; + s.s___18952 = (r0); + s.tmp_0 = game_currentScene__P2792_mk(s); + s.callLocIdx = 389; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + s.sc___18959 = (r0); + s.tmp_0 = Sprite_vx__P2200_mk(s); + s.tmp_0.arg0 = s.s___18952; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 390; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + s.tmp_0 = Sprite_vy__P2202_mk(s); + s.tmp_0.arg0 = s.s___18952; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 391; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg4); + if (!r0) { step = 3; continue; } + s.tmp_0 = Sprite_setPosition__P2250_mk(s); + s.tmp_0.arg0 = s.s___18952; + s.tmp_1 = Sprite_x__P2195_mk(s); + s.tmp_1.arg0 = s.arg4; + s.callLocIdx = 392; s.pc = 22; return s.tmp_1; + case 22: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_2 = Sprite_y__P2197_mk(s); + s.tmp_2.arg0 = s.arg4; + s.callLocIdx = 393; s.pc = 23; return s.tmp_2; + case 23: + r0 = s.retval; + s.tmp_0.arg2 = r0; + s.callLocIdx = 394; s.pc = 21; return s.tmp_0; + case 21: r0 = s.retval; + { step = 16; continue; } + case 3: + r0 = s.sc___18959.fields["tileMap"]; s.tmp_0 = r0; - r0 = s.tmp_0.fields["_scale"]; - s.scale___17232 = (r0); - r0 = s.arg0.fields["_col"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_3 = Sprite_width__P2238_mk(s); + s.tmp_3.arg0 = s.s___18952; + s.callLocIdx = 395; s.pc = 24; return s.tmp_3; + case 24: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (0 - s.tmp_1); + { step = 5; continue; } + case 4: + s.tmp_6 = Sprite_width__P2238_mk(s); + s.tmp_6.arg0 = s.s___18952; + s.callLocIdx = 396; s.pc = 25; return s.tmp_6; + case 25: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 1); + s.tmp_4 = r0; + r0 = (s.tmp_4 - 1); + case 5: + // jmp value (already in r0) + s.tmp_7 = r0; + s.xOff___18975 = (s.tmp_7); + r0 = s.sc___18959.fields["tileMap"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.tmp_3 = Sprite_height__P2239_mk(s); + s.tmp_3.arg0 = s.s___18952; + s.callLocIdx = 397; s.pc = 26; return s.tmp_3; + case 26: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___17232); + r0 = (0 - s.tmp_1); + { step = 7; continue; } + case 6: + s.tmp_6 = Sprite_height__P2239_mk(s); + s.tmp_6.arg0 = s.s___18952; + s.callLocIdx = 398; s.pc = 27; return s.tmp_6; + case 27: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 1); + s.tmp_4 = r0; + r0 = (s.tmp_4 - 1); + case 7: + // jmp value (already in r0) + s.tmp_7 = r0; + s.yOff___18989 = (s.tmp_7); + s.tmp_0 = game_currentScene__P2792_mk(s); + s.callLocIdx = 399; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; + r0 = r0.fields["camera"]; + s.cam___19003 = (r0); + r0 = s.cam___19003.fields["_offsetX"]; + s.initialX___19007 = (r0); + r0 = s.cam___19003.fields["_offsetY"]; + s.initialY___19010 = (r0); + r0 = (s.arg1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.tmp_1 = r0 = s.initialX___19007; + r0 = pxsim_ImageMethods.width(globals.screen___1877); + s.tmp_3 = r0; + r0 = (s.tmp_3 + s.xOff___18975); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.initialX___19007 = (r0); + { step = 11; continue; } + case 8: + r0 = (s.arg1 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + s.tmp_1 = r0 = s.initialX___19007; + r0 = (0 - s.xOff___18975); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.initialX___19007 = (r0); + case 9: + case 10: + case 11: + r0 = (s.arg2 < 0); s.tmp_0 = r0; - r0 = (s.scale___17232 - 1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + s.tmp_1 = r0 = s.initialY___19010; + r0 = pxsim_ImageMethods.height(globals.screen___1877); s.tmp_3 = r0; - r0 = (1 << s.tmp_3); + r0 = (s.tmp_3 + s.yOff___18989); s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - return leaveAccessor(s, r0) + r0 = (s.tmp_1 + s.tmp_2); + s.initialY___19010 = (r0); + { step = 15; continue; } + case 12: + r0 = (s.arg2 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + s.tmp_1 = r0 = s.initialY___19010; + r0 = (0 - s.yOff___18989); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.initialY___19010 = (r0); + case 13: + case 14: + case 15: + s.tmp_0 = Sprite_setPosition__P2250_mk(s); + s.tmp_0.arg0 = s.s___18952; + s.tmp_0.arg1 = s.initialX___19007; + s.tmp_0.arg2 = s.initialY___19010; + s.callLocIdx = 402; s.pc = 29; return s.tmp_0; + case 29: + r0 = s.retval; + case 16: + s.tmp_0 = r0 = s.s___18952; + r0 = s.tmp_0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | 20); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + r0 = s.s___18952; + return leave(s, r0) default: oops() } } } -tiles_Location_x__P2534.info = {"start":1054,"length":135,"line":45,"column":8,"endLine":48,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"x","argumentNames":["this"]} -tiles_Location_x__P2534.isGetter = true; +sprites_createProjectile__P2124.info = {"start":4947,"length":1265,"line":131,"column":4,"endLine":168,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"createProjectile","argumentNames":["img","vx","vy","kind","sprite"]} -function tiles_Location_x__P2534_mk(s) { +function sprites_createProjectile__P2124_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_x__P2534, depth: s.depth + 1, + parent: s, fn: sprites_createProjectile__P2124, depth: s.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___17232: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + s___18952: undefined, + sc___18959: undefined, + xOff___18975: undefined, + yOff___18989: undefined, + cam___19003: undefined, + initialX___19007: undefined, + initialY___19010: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function tiles_Location_tileMap__P2531(s) { +function info_changeLifeBy__P2410(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36857,23 +42393,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C2529_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1013; s.pc = 1; return s.tmp_0; + s.tmp_0 = info_PlayerInfoImpl_changeLifeBy__P2449_mk(s); + r0 = globals.player1___2497.fields["impl"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 972; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = r0.fields["tileMap"]; - return leaveAccessor(s, r0) + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_Location_tileMap__P2531.info = {"start":491,"length":73,"line":24,"column":8,"endLine":26,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"tileMap","argumentNames":["this"]} -tiles_Location_tileMap__P2531.isGetter = true; +info_changeLifeBy__P2410.info = {"start":9414,"length":93,"line":326,"column":4,"endLine":328,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"changeLifeBy","argumentNames":["value"]} -function tiles_Location_tileMap__P2531_mk(s) { +function info_changeLifeBy__P2410_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_tileMap__P2531, depth: s.depth + 1, + parent: s, fn: info_changeLifeBy__P2410, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -36883,7 +42419,7 @@ function tiles_Location_tileMap__P2531_mk(s) { -function controller_Controller_onButtonEvent__P1996(s) { +function info_PlayerInfoImpl_changeLifeBy__P2449(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36896,49 +42432,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, controller_Controller__C1978_VT)) failedCast(r0); - s.tmp_0 = controller_Button_onEvent__P2039_mk(s); - r0 = s.arg0.fields["buttons"]; + if (!checkSubtype(r0, info_PlayerInfoImpl__C2428_VT)) failedCast(r0); + s.tmp_0 = info_PlayerInfoImpl_setLife__P2448_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_2 = info_PlayerInfoImpl_life__P2447_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 997; s.pc = 2; return s.tmp_2; + case 2: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.arg1 - 1); - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - s.callLocIdx = 212; s.pc = 1; return s.tmp_0; + r0 = (s.tmp_1 + s.arg1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 998; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller_onButtonEvent__P1996.info = {"start":6016,"length":153,"line":203,"column":8,"endLine":205,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"onButtonEvent","argumentNames":["this","btn","event","handler"]} +info_PlayerInfoImpl_changeLifeBy__P2449.info = {"start":21834,"length":92,"line":701,"column":8,"endLine":703,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"changeLifeBy","argumentNames":["this","value"]} -function controller_Controller_onButtonEvent__P1996_mk(s) { +function info_PlayerInfoImpl_changeLifeBy__P2449_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_onButtonEvent__P1996, depth: s.depth + 1, + parent: s, fn: info_PlayerInfoImpl_changeLifeBy__P2449, 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 halo_inline__P17261(s) { +function fire_inline__P19073(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36948,43 +42481,64 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_pxtcore_mkClassInstance(RingFactory__C17262_VT); + s.factory___19076 = undefined; + s.src___19079 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim_pxtcore_mkClassInstance(particles_FireFactory__C3008_VT); s.tmp_0 = r0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_1, 4); - r0 = pxsim_Array__push(s.tmp_1, 4); - r0 = pxsim_Array__push(s.tmp_1, 5); - s.tmp_2 = particles_RadialFactory_constructor__P3013_mk(s); - s.tmp_2.arg0 = s.tmp_0; - s.tmp_2.arg1 = 30; - s.tmp_2.arg2 = 40; - s.tmp_2.arg3 = 10; - s.tmp_2.arg4 = s.tmp_1; - s.callLocIdx = 46; s.pc = 1; return s.tmp_2; + s.tmp_1 = particles_FireFactory_constructor__P3009_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = 5; + s.callLocIdx = 48; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - r0 = s.tmp_0; + s.factory___19076 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(particles_FireSource__C2961_VT); + s.tmp_0 = r0; + s.tmp_1 = particles_FireSource_constructor__P2962_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___19076; + s.callLocIdx = 49; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.src___19079 = (s.tmp_0); + s.tmp_0 = particles_ParticleSource_setAcceleration__P2948_mk(s); + s.tmp_0.arg0 = s.src___19079; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = -20; + s.callLocIdx = 50; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = s.src___19079; return leave(s, r0) default: oops() } } } -halo_inline__P17261.info = {"start":10315,"length":373,"line":262,"column":47,"endLine":271,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":[]} +fire_inline__P19073.info = {"start":9582,"length":273,"line":248,"column":53,"endLine":253,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} -function halo_inline__P17261_mk(s) { +function fire_inline__P19073_mk(s) { checkStack(s.depth); return { - parent: s, fn: halo_inline__P17261, depth: s.depth + 1, + parent: s, fn: fire_inline__P19073, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, + factory___19076: undefined, + src___19079: undefined, + arg0: undefined, + arg1: undefined, } } -function particles_RadialFactory_constructor__P3013(s) { +function particles_FireSource_constructor__P2962(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36999,93 +42553,57 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_RadialFactory__C3012_VT)) failedCast(r0); - r0 = undefined; - s.tmp_0 = particles_initTrig__P5064_mk(s); - s.callLocIdx = 1570; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = r0 = s.arg4; - 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.arg4); - s.tmp_1 = r0; - r0 = (s.tmp_1 != 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 = (s.arg0).fields["colors"] = (s.arg4); - { step = 4; continue; } - case 3: - r0 = pxsim_Array__mk(); - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, 2); - r0 = pxsim_Array__push(s.tmp_0, 3); - r0 = pxsim_Array__push(s.tmp_0, 4); - r0 = pxsim_Array__push(s.tmp_0, 5); - r0 = (s.arg0).fields["colors"] = (s.tmp_0); - case 4: - s.tmp_0 = particles_RadialFactory_setRadius__P3016_mk(s); + if (!checkSubtype(r0, particles_FireSource__C2961_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleSource_constructor__P2944_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1571; s.pc = 6; return s.tmp_0; - case 6: + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = s.arg3; + s.callLocIdx = 1573; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = (0 - s.arg2); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_3 = r0; - r0 = (s.tmp_3 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["speed"] = (s.tmp_1); - r0 = (s.arg0).fields["spread"] = (s.arg3); - r0 = (s.arg0).fields["t"] = (0); r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C2847_VT); s.tmp_0 = r0; s.tmp_1 = Math_FastRandom_constructor__P2849_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = undefined; - s.callLocIdx = 1573; s.pc = 7; return s.tmp_1; - case 7: + s.callLocIdx = 1574; s.pc = 2; return s.tmp_1; + case 2: r0 = s.retval; r0 = (s.arg0).fields["galois"] = (s.tmp_0); + s.tmp_0 = sprites_BaseSprite_z__P1943_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 20; + s.callLocIdx = 1575; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_RadialFactory_constructor__P3013.info = {"start":9999,"length":469,"line":325,"column":8,"endLine":339,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","radius","speed","spread","colors"]} +particles_FireSource_constructor__P2962.info = {"start":10378,"length":232,"line":342,"column":8,"endLine":346,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["this","anchor","particlesPerSecond","factory"]} -function particles_RadialFactory_constructor__P3013_mk(s) { +function particles_FireSource_constructor__P2962_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_RadialFactory_constructor__P3013, depth: s.depth + 1, + parent: s, fn: particles_FireSource_constructor__P2962, depth: s.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 particles_RadialFactory_setRadius__P3016(s) { +function particles_FireFactory_constructor__P3009(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37101,30 +42619,39 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_RadialFactory__C3012_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_FireFactory__C3008_VT)) failedCast(r0); + r0 = undefined; + s.tmp_0 = particles_initTrig__P5104_mk(s); + s.callLocIdx = 1641; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C2847_VT); + s.tmp_0 = r0; + s.tmp_1 = Math_FastRandom_constructor__P2849_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1642; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + r0 = (s.arg0).fields["galois"] = (s.tmp_0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 >> 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_3 = r0; - r0 = (s.tmp_3 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["r"] = (s.tmp_1); + r0 = (s.tmp_0).fields["minRadius"] = (s.tmp_1); + r0 = (s.arg0).fields["maxRadius"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_RadialFactory_setRadius__P3016.info = {"start":11352,"length":66,"line":365,"column":8,"endLine":367,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setRadius","argumentNames":["this","r"]} +particles_FireFactory_constructor__P3009.info = {"start":8654,"length":212,"line":282,"column":8,"endLine":288,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","radius"]} -function particles_RadialFactory_setRadius__P3016_mk(s) { +function particles_FireFactory_constructor__P3009_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_RadialFactory_setRadius__P3016, depth: s.depth + 1, + parent: s, fn: particles_FireFactory_constructor__P3009, depth: s.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, } } @@ -37133,7 +42660,7 @@ function particles_RadialFactory_setRadius__P3016_mk(s) { -function effects_createEffect__P5090(s) { +function Sprite_destroy__P2269(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37149,33 +42676,58 @@ switch (step) { s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(effects_ParticleEffect__C3050_VT); - s.tmp_0 = r0; - r0 = pxsim_pxtcore_mkAction(1, effects_createEffect_inline__P17323); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg2); - s.tmp_2 = effects_ParticleEffect_constructor__P3051_mk(s); - s.tmp_2.arg0 = s.tmp_0; - s.tmp_2.arg1 = s.arg0; - s.tmp_2.arg2 = s.arg1; - s.tmp_2.arg3 = s.tmp_1; - s.callLocIdx = 1606; s.pc = 1; return s.tmp_2; + r0 = (s.tmp_1 & 2); + 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); + 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__P3053_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 = 554; s.pc = 6; return s.tmp_0; + case 6: r0 = s.retval; - r0 = s.tmp_0; + { step = 4; continue; } + case 3: + s.tmp_0 = Sprite__destroyCore__P2270_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 555; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + case 4: + case 5: + r0 = undefined; return leave(s, r0) default: oops() } } } -effects_createEffect__P5090.info = {"start":5459,"length":434,"line":146,"column":4,"endLine":151,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"createEffect","argumentNames":["defaultParticlesPerSecond","defaultLifespan","factoryFactory"]} +Sprite_destroy__P2269.info = {"start":26312,"length":293,"line":856,"column":4,"endLine":865,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]} -function effects_createEffect__P5090_mk(s) { +function Sprite_destroy__P2269_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_createEffect__P5090, depth: s.depth + 1, + parent: s, fn: Sprite_destroy__P2269, depth: s.depth + 1, pc: 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, @@ -37185,7 +42737,7 @@ function effects_createEffect__P5090_mk(s) { -function effects_createEffect_inline__P17323(s) { +function effects_ParticleEffect_destroy__P3053(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37198,48 +42750,85 @@ 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(particles_ParticleSource__C2939_VT); - s.tmp_0 = r0; - s.tmp_1 = particles_ParticleSource_constructor__P2944_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.arg1; - s.tmp_2 = lambda_2_mk(s); - s.tmp_2.argL = s.caps[0]; - s.tmp_2.arg0 = undefined; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 1604; s.pc = 2; return s.tmp_2; - case 2: + r0 = s.arg0; + if (!checkSubtype(r0, effects_ParticleEffect__C3050_VT)) failedCast(r0); + s.tmp_0 = Sprite_setFlag__P2260_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 7168; + s.tmp_0.arg2 = true; + s.callLocIdx = 1683; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.tmp_1.arg3 = r0; - s.callLocIdx = 1605; s.pc = 1; return s.tmp_1; + s.tmp_0 = effects_ParticleEffect_start__P3052_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 = 1684; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 1; continue; } + 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__P3079_mk(s); + s.tmp_0.arg0 = globals.dissolve___3082; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1685; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; - r0 = s.tmp_0; + r0 = undefined; return leave(s, r0) default: oops() } } } -effects_createEffect_inline__P17323.info = {"start":5751,"length":134,"line":149,"column":20,"endLine":150,"endColumn":83,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","pps"]} +effects_ParticleEffect_destroy__P3053.info = {"start":1736,"length":368,"line":41,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"destroy","argumentNames":["this","anchor","duration","particlesPerSecond"]} -function effects_createEffect_inline__P17323_mk(s) { +function effects_ParticleEffect_destroy__P3053_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_createEffect_inline__P17323, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_destroy__P3053, depth: s.depth + 1, pc: 0, retval: undefined, 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 Sprite_startEffect__P2254(s) { +function dissolve_inline__P19221(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37249,61 +42838,105 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.i___19224 = undefined; + s.x___19235 = undefined; + s.y___19241 = undefined; + s.w___19247 = undefined; + s.h___19251 = 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__C2182_VT)) failedCast(r0); - s.tmp_0 = effects_ParticleEffect_start__P3052_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = null; - r0 = s.arg0.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); + r0 = pxsim_ImageMethods.width(s.arg0); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0.arg4 = r0; - s.callLocIdx = 453; s.pc = 1; return s.tmp_0; + 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___19224 = (r0); case 1: + r0 = (s.i___19224 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = Math_FastRandom_randomRange__P2851_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 = 62; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.x___19235 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P2851_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 = 63; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.y___19241 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P2851_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 1; + s.tmp_0.arg2 = 3; + s.callLocIdx = 64; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.w___19247 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P2851_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 1; + s.tmp_0.arg2 = 3; + s.callLocIdx = 65; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.h___19251 = (r0); + s.tmp_0 = helpers_imageDrawRect__P1806_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.x___19235; + s.tmp_0.arg2 = s.y___19241; + s.tmp_0.arg3 = s.w___19247; + s.tmp_0.arg4 = s.h___19251; + s.tmp_0.arg5 = 0; + s.callLocIdx = 66; s.pc = 7; return s.tmp_0; + case 7: r0 = s.retval; + r0 = (s.i___19224 - 1); + s.i___19224 = (r0); + { step = 1; continue; } + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_startEffect__P2254.info = {"start":17585,"length":162,"line":599,"column":4,"endLine":601,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"startEffect","argumentNames":["this","effect","duration"]} +dissolve_inline__P19221.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 Sprite_startEffect__P2254_mk(s) { +function dissolve_inline__P19221_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_startEffect__P2254, depth: s.depth + 1, + parent: s, fn: dissolve_inline__P19221, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, + i___19224: undefined, + x___19235: undefined, + y___19241: undefined, + w___19247: undefined, + h___19251: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function effects_ParticleEffect_start__P3052(s) { +function helpers_imageDrawRect__P1806(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37313,112 +42946,110 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.src___17354 = 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, effects_ParticleEffect__C3050_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); + 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; } - { step = 9; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = (s.arg4 == 0); case 2: - r0 = pxsim_numops_toBoolDecr(s.arg3); + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 3; continue; } - r0 = s.arg3; - { step = 4; continue; } + { step = 5; continue; } 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 = 1590; 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 = 1590; s.pc = 10; return s.tmp_4; } - else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1590; s.pc = 10; return s.tmp_4;; } - else { s.callLocIdx = 1590; s.pc = 10; return s.tmp_4; } - } - case 10: - r0 = s.retval; - s.src___17354 = (r0); - s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P2950_mk(s); - s.tmp_0.arg0 = s.src___17354; - 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 = 1591; 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 = 5; continue; } - r0 = s.arg2; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["defaultLifespan"]; + r0 = (s.arg3 - 1); + s.arg3 = (r0); + r0 = (s.arg4 - 1); + s.arg4 = (r0); + s.tmp_0 = helpers_imageDrawLine__P1805_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 = 161; s.pc = 6; return s.tmp_0; case 6: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.src___17354).fields["lifespan"] = (s.tmp_1); + r0 = s.retval; + s.tmp_0 = helpers_imageDrawLine__P1805_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 = 162; s.pc = 7; return s.tmp_0; case 7: + r0 = s.retval; + s.tmp_0 = helpers_imageDrawLine__P1805_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 = 163; s.pc = 8; return s.tmp_0; case 8: + r0 = s.retval; + s.tmp_0 = helpers_imageDrawLine__P1805_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 = 164; s.pc = 9; return s.tmp_0; case 9: + r0 = s.retval; + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ParticleEffect_start__P3052.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"]} +helpers_imageDrawRect__P1806.info = {"start":5325,"length":370,"line":167,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]} -function effects_ParticleEffect_start__P3052_mk(s) { +function helpers_imageDrawRect__P1806_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_start__P3052, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawRect__P1806, depth: s.depth + 1, pc: 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___17354: undefined, arg0: undefined, arg1: undefined, arg2: undefined, arg3: undefined, arg4: undefined, + arg5: undefined, } } -function particles_ParticleSource_setRelativeToCamera__P2950(s) { +function effects_ImageEffect_applyTo__P3079(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37428,50 +43059,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.clonedImage___19331 = 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__C2939_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ImageEffect__C3077_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); + 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_0 = r0 = s.arg0; - r0 = s.arg0.fields["pFlags"]; - s.tmp_4 = r0; - r0 = (~ s.tmp_4); + r0 = s.arg1.fields["_image"]; s.tmp_3 = r0; - r0 = (s.tmp_3 | 4); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; - r0 = (~ s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); + 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___19331 = (r0); + s.tmp_0 = effects_ImageEffect_change__P3080_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.clonedImage___19331; + s.callLocIdx = 1733; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = Sprite_setImage__P2232_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.clonedImage___19331; + s.callLocIdx = 1734; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRelativeToCamera__P2950.info = {"start":6439,"length":173,"line":211,"column":8,"endLine":214,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRelativeToCamera","argumentNames":["this","on"]} +effects_ImageEffect_applyTo__P3079.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 particles_ParticleSource_setRelativeToCamera__P2950_mk(s) { +function effects_ImageEffect_applyTo__P3079_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRelativeToCamera__P2950, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_applyTo__P3079, depth: s.depth + 1, pc: 0, retval: undefined, 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___19331: undefined, arg0: undefined, arg1: undefined, } } @@ -37480,7 +43132,7 @@ function particles_ParticleSource_setRelativeToCamera__P2950_mk(s) { -function sprites_createProjectileFromSprite__P2123(s) { +function effects_ImageEffect_change__P3080(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37493,41 +43145,47 @@ 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 = sprites_createProjectile__P2124_mk(s); + r0 = s.arg0; + if (!checkSubtype(r0, effects_ImageEffect__C3077_VT)) failedCast(r0); + s.tmp_0 = if_effect_3_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - s.tmp_0.arg3 = 1; - s.tmp_0.arg4 = s.arg1; - s.callLocIdx = 353; s.pc = 1; return s.tmp_0; + 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 = 1735; 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 = 1735; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1735; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 1735; s.pc = 1; return s.tmp_0; } + } case 1: r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_createProjectileFromSprite__P2123.info = {"start":4128,"length":187,"line":116,"column":4,"endLine":118,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"createProjectileFromSprite","argumentNames":["img","sprite","vx","vy"]} +effects_ImageEffect_change__P3080.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 sprites_createProjectileFromSprite__P2123_mk(s) { +function effects_ImageEffect_change__P3080_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_createProjectileFromSprite__P2123, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_change__P3080, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function sprites_createProjectile__P2124(s) { +function Sprite__destroyCore__P2270(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37537,216 +43195,116 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___17408 = undefined; - s.sc___17415 = undefined; - s.xOff___17431 = undefined; - s.yOff___17445 = undefined; - s.cam___17459 = undefined; - s.initialX___17463 = undefined; - s.initialY___17466 = undefined; + s.scene___19148 = 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 = r0 = s.arg3; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = 1; - case 2: - // jmp value (already in r0) + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | 2); s.tmp_1 = r0; - s.tmp_2 = sprites_create__P2118_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 354; s.pc = 17; return s.tmp_2; - case 17: - r0 = s.retval; - s.s___17408 = (r0); + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 355; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; - s.sc___17415 = (r0); - s.tmp_0 = Sprite_vx__P2200_mk(s); - s.tmp_0.arg0 = s.s___17408; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 356; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - s.tmp_0 = Sprite_vy__P2202_mk(s); - s.tmp_0.arg0 = s.s___17408; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 357; s.pc = 20; return s.tmp_0; - case 20: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg4); - if (!r0) { step = 3; continue; } - s.tmp_0 = Sprite_setPosition__P2250_mk(s); - s.tmp_0.arg0 = s.s___17408; - s.tmp_1 = Sprite_x__P2195_mk(s); - s.tmp_1.arg0 = s.arg4; - s.callLocIdx = 358; s.pc = 22; return s.tmp_1; - case 22: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_y__P2197_mk(s); - s.tmp_2.arg0 = s.arg4; - s.callLocIdx = 359; s.pc = 23; return s.tmp_2; - case 23: - r0 = s.retval; - s.tmp_0.arg2 = r0; - s.callLocIdx = 360; s.pc = 21; return s.tmp_0; - case 21: + s.callLocIdx = 556; s.pc = 7; return s.tmp_0; + case 7: r0 = s.retval; - { step = 16; continue; } - case 3: - r0 = s.sc___17415.fields["tileMap"]; + s.scene___19148 = (r0); + r0 = s.scene___19148.fields["allSprites"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_3 = Sprite_width__P2238_mk(s); - s.tmp_3.arg0 = s.s___17408; - s.callLocIdx = 361; s.pc = 24; return s.tmp_3; - case 24: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); + r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); + r0 = s.arg0.fields["_kind"]; s.tmp_1 = r0; - r0 = (0 - s.tmp_1); - { step = 5; continue; } - case 4: - s.tmp_6 = Sprite_width__P2238_mk(s); - s.tmp_6.arg0 = s.s___17408; - s.callLocIdx = 362; s.pc = 25; return s.tmp_6; - case 25: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 1); - s.tmp_4 = r0; - r0 = (s.tmp_4 - 1); - case 5: - // jmp value (already in r0) - s.tmp_7 = r0; - s.xOff___17431 = (s.tmp_7); - r0 = s.sc___17415.fields["tileMap"]; + r0 = (s.tmp_1 >= 0); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.tmp_3 = Sprite_height__P2239_mk(s); - s.tmp_3.arg0 = s.s___17408; - s.callLocIdx = 363; s.pc = 26; return s.tmp_3; - case 26: - 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 = s.scene___19148.fields["spritesByKind"]; s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (0 - s.tmp_1); - { step = 7; continue; } - case 6: - s.tmp_6 = Sprite_height__P2239_mk(s); - s.tmp_6.arg0 = s.s___17408; - s.callLocIdx = 364; s.pc = 27; return s.tmp_6; - case 27: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 1); - s.tmp_4 = r0; - r0 = (s.tmp_4 - 1); - case 7: + r0 = s.arg0.fields["_kind"]; + s.tmp_3 = r0; + r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_2, s.tmp_3); + case 2: // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + s.tmp_5 = sprites_SpriteSet_remove__P2311_mk(s); + r0 = s.scene___19148.fields["spritesByKind"]; + s.tmp_6 = r0; + r0 = s.arg0.fields["_kind"]; s.tmp_7 = r0; - s.yOff___17445 = (s.tmp_7); - s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 365; s.pc = 28; return s.tmp_0; - case 28: - r0 = s.retval; - r0 = r0.fields["camera"]; - s.cam___17459 = (r0); - r0 = s.cam___17459.fields["_offsetX"]; - s.initialX___17463 = (r0); - r0 = s.cam___17459.fields["_offsetY"]; - s.initialY___17466 = (r0); - r0 = (s.arg1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.tmp_1 = r0 = s.initialX___17463; - r0 = pxsim_ImageMethods.width(globals.screen___1877); - s.tmp_3 = r0; - r0 = (s.tmp_3 + s.xOff___17431); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.initialX___17463 = (r0); - { step = 11; continue; } + r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_6, s.tmp_7); + s.tmp_5.arg0 = r0; + s.tmp_5.arg1 = s.arg0; + s.callLocIdx = 560; s.pc = 8; return s.tmp_5; case 8: - r0 = (s.arg1 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - s.tmp_1 = r0 = s.initialX___17463; - r0 = (0 - s.xOff___17431); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.initialX___17463 = (r0); + r0 = s.retval; + case 3: + case 4: + s.tmp_0 = PhysicsEngine__C2352_v1_2_mk(s); + r0 = s.scene___19148.fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2352_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.removeSprite; + s.pc = 9; return s.tmp_0; case 9: - case 10: - case 11: - r0 = (s.arg2 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - s.tmp_1 = r0 = s.initialY___17466; - r0 = pxsim_ImageMethods.height(globals.screen___1877); - s.tmp_3 = r0; - r0 = (s.tmp_3 + s.yOff___17445); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.initialY___17466 = (r0); - { step = 15; continue; } - case 12: - r0 = (s.arg2 > 0); + r0 = s.retval; + r0 = s.arg0.fields["destroyHandler"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - s.tmp_1 = r0 = s.initialY___17466; - r0 = (0 - s.yOff___17445); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.initialY___17466 = (r0); - case 13: - case 14: - case 15: - s.tmp_0 = Sprite_setPosition__P2250_mk(s); - s.tmp_0.arg0 = s.s___17408; - s.tmp_0.arg1 = s.initialX___17463; - s.tmp_0.arg2 = s.initialY___17466; - s.callLocIdx = 368; s.pc = 29; return s.tmp_0; - case 29: - r0 = s.retval; - case 16: - s.tmp_0 = r0 = s.s___17408; - r0 = s.tmp_0.fields["flags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | 20); + if (!r0) { step = 5; continue; } + s.tmp_1 = if_destroyHandler_1_mk(s); + s.tmp_1.arg0 = s.arg0; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "destroyHandler"), 1); + s.callLocIdx = 561; s.pc = 10; return s.tmp_1; + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["destroyHandler"]; + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["destroyHandler"], 1); s.callLocIdx = 561; s.pc = 10; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 561; s.pc = 10; return s.tmp_1;; } + else { s.callLocIdx = 561; s.pc = 10; return s.tmp_1; } + } + case 10: + r0 = s.retval; + case 5: + case 6: + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P19177); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtcore_mkAction(1, Sprite__destroyCore_inline__P19183); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - r0 = s.s___17408; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); + s.tmp_2 = helpers_arrayForEach__P109_mk(s); + s.tmp_3 = helpers_arrayFilter__P110_mk(s); + r0 = s.scene___19148.fields["destroyedHandlers"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.tmp_0; + s.callLocIdx = 563; s.pc = 12; return s.tmp_3; + case 12: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 565; s.pc = 11; return s.tmp_2; + case 11: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_createProjectile__P2124.info = {"start":4947,"length":1265,"line":131,"column":4,"endLine":168,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"createProjectile","argumentNames":["img","vx","vy","kind","sprite"]} +Sprite__destroyCore__P2270.info = {"start":26611,"length":522,"line":867,"column":4,"endLine":879,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]} -function sprites_createProjectile__P2124_mk(s) { +function Sprite__destroyCore__P2270_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_createProjectile__P2124, depth: s.depth + 1, + parent: s, fn: Sprite__destroyCore__P2270, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37756,25 +43314,15 @@ function sprites_createProjectile__P2124_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - s___17408: undefined, - sc___17415: undefined, - xOff___17431: undefined, - yOff___17445: undefined, - cam___17459: undefined, - initialX___17463: undefined, - initialY___17466: undefined, + scene___19148: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function info_changeLifeBy__P2410(s) { +function forEach_inline__P19177(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37788,25 +43336,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = info_PlayerInfoImpl_changeLifeBy__P2449_mk(s); - r0 = globals.player1___2497.fields["impl"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 938; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = s.arg0.fields["kind"]; + s.tmp_0 = r0; + r0 = s.caps[0].fields["_kind"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 == s.tmp_1); return leave(s, r0) default: oops() } } } -info_changeLifeBy__P2410.info = {"start":9414,"length":93,"line":326,"column":4,"endLine":328,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"changeLifeBy","argumentNames":["value"]} +forEach_inline__P19177.info = {"start":27056,"length":26,"line":877,"column":20,"endLine":877,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function info_changeLifeBy__P2410_mk(s) { +function forEach_inline__P19177_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_changeLifeBy__P2410, depth: s.depth + 1, + parent: s, fn: forEach_inline__P19177, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -37814,7 +43360,7 @@ function info_changeLifeBy__P2410_mk(s) { -function info_PlayerInfoImpl_changeLifeBy__P2449(s) { +function Sprite__destroyCore_inline__P19183(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37826,47 +43372,42 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, info_PlayerInfoImpl__C2428_VT)) failedCast(r0); - s.tmp_0 = info_PlayerInfoImpl_setLife__P2448_mk(s); + s.tmp_0 = if_handler_2_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = info_PlayerInfoImpl_life__P2447_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 963; s.pc = 2; return s.tmp_2; - case 2: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 + s.arg1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 964; s.pc = 1; return s.tmp_0; + 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 = 564; 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 = 564; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 564; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 564; s.pc = 1; return s.tmp_0; } + } case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -info_PlayerInfoImpl_changeLifeBy__P2449.info = {"start":21834,"length":92,"line":701,"column":8,"endLine":703,"endColumn":9,"fileName":"pxt_modules/game/info.ts","functionName":"changeLifeBy","argumentNames":["this","value"]} +Sprite__destroyCore_inline__P19183.info = {"start":27105,"length":20,"line":878,"column":21,"endLine":878,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function info_PlayerInfoImpl_changeLifeBy__P2449_mk(s) { +function Sprite__destroyCore_inline__P19183_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_PlayerInfoImpl_changeLifeBy__P2449, depth: s.depth + 1, + parent: s, fn: Sprite__destroyCore_inline__P19183, 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 fire_inline__P17529(s) { +function PhysicsEngine_removeSprite__P2355(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37876,55 +43417,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.factory___17532 = undefined; - s.src___17535 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(particles_FireFactory__C3008_VT); - s.tmp_0 = r0; - s.tmp_1 = particles_FireFactory_constructor__P3009_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = 5; - s.callLocIdx = 42; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - s.factory___17532 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(particles_FireSource__C2961_VT); - s.tmp_0 = r0; - s.tmp_1 = particles_FireSource_constructor__P2962_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___17532; - s.callLocIdx = 43; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.src___17535 = (s.tmp_0); - s.tmp_0 = particles_ParticleSource_setAcceleration__P2948_mk(s); - s.tmp_0.arg0 = s.src___17535; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = -20; - s.callLocIdx = 44; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - r0 = s.src___17535; + r0 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C2352_VT)) failedCast(r0); + r0 = undefined; return leave(s, r0) default: oops() } } } -fire_inline__P17529.info = {"start":9582,"length":273,"line":248,"column":53,"endLine":253,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} +PhysicsEngine_removeSprite__P2355.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 fire_inline__P17529_mk(s) { +function PhysicsEngine_removeSprite__P2355_mk(s) { checkStack(s.depth); return { - parent: s, fn: fire_inline__P17529, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_removeSprite__P2355, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - factory___17532: undefined, - src___17535: undefined, arg0: undefined, arg1: undefined, } } @@ -37933,7 +43443,7 @@ function fire_inline__P17529_mk(s) { -function particles_FireSource_constructor__P2962(s) { +function Sprite_kind__P2248(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37945,60 +43455,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, particles_FireSource__C2961_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleSource_constructor__P2944_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.callLocIdx = 1482; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C2847_VT); - s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P2849_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = undefined; - s.callLocIdx = 1483; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - r0 = (s.arg0).fields["galois"] = (s.tmp_0); - s.tmp_0 = sprites_BaseSprite_z__P1943_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 20; - s.callLocIdx = 1484; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - r0 = undefined; + if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); + r0 = s.arg0.fields["_kind"]; return leave(s, r0) default: oops() } } } -particles_FireSource_constructor__P2962.info = {"start":10378,"length":232,"line":342,"column":8,"endLine":346,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["this","anchor","particlesPerSecond","factory"]} +Sprite_kind__P2248.info = {"start":12573,"length":41,"line":453,"column":4,"endLine":455,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"kind","argumentNames":["this"]} -function particles_FireSource_constructor__P2962_mk(s) { +function Sprite_kind__P2248_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_FireSource_constructor__P2962, depth: s.depth + 1, + parent: s, fn: Sprite_kind__P2248, 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 particles_FireFactory_constructor__P3009(s) { +function StatusBarSprite_value__P4158(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38014,36 +43493,26 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_FireFactory__C3008_VT)) failedCast(r0); - r0 = undefined; - s.tmp_0 = particles_initTrig__P5064_mk(s); - s.callLocIdx = 1550; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C2847_VT); + if (!checkSubtype(r0, StatusBarSprite__C4155_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, StatusBarSprite_value_inline__P19350); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P2849_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = undefined; - s.callLocIdx = 1551; s.pc = 2; return s.tmp_1; - case 2: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + s.tmp_1 = StatusBarSprite_applyChange__P6776_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1788; s.pc = 1; return s.tmp_1; + case 1: r0 = s.retval; - r0 = (s.arg0).fields["galois"] = (s.tmp_0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["minRadius"] = (s.tmp_1); - r0 = (s.arg0).fields["maxRadius"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_FireFactory_constructor__P3009.info = {"start":8654,"length":212,"line":282,"column":8,"endLine":288,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","radius"]} +StatusBarSprite_value__P4158.info = {"start":2861,"length":101,"line":89,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"value","argumentNames":["this","v"]} -function particles_FireFactory_constructor__P3009_mk(s) { +function StatusBarSprite_value__P4158_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_FireFactory_constructor__P3009, depth: s.depth + 1, + parent: s, fn: StatusBarSprite_value__P4158, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38055,7 +43524,7 @@ function particles_FireFactory_constructor__P3009_mk(s) { -function Sprite_destroy__P2269(s) { +function StatusBarSprite_value_inline__P19350(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38067,72 +43536,34 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_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; } - { 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__P3053_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 = 520; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - { step = 4; continue; } - case 3: - s.tmp_0 = Sprite__destroyCore__P2270_mk(s); + s.tmp_0 = statusbars_StatusBar_current__P4195_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 521; s.pc = 7; return s.tmp_0; - case 7: + s.tmp_0.arg1 = s.caps[0]; + s.callLocIdx = 1787; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - case 4: - case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_destroy__P2269.info = {"start":26312,"length":293,"line":856,"column":4,"endLine":865,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]} +StatusBarSprite_value_inline__P19350.info = {"start":2909,"length":45,"line":90,"column":25,"endLine":92,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} -function Sprite_destroy__P2269_mk(s) { +function StatusBarSprite_value_inline__P19350_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_destroy__P2269, depth: s.depth + 1, + parent: s, fn: StatusBarSprite_value_inline__P19350, depth: s.depth + 1, pc: 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 effects_ParticleEffect_destroy__P3053(s) { +function statusbars_StatusBar_current__P4195(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38145,85 +43576,60 @@ 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__C3050_VT)) failedCast(r0); - s.tmp_0 = Sprite_setFlag__P2260_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 7168; - s.tmp_0.arg2 = true; - s.callLocIdx = 1592; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = effects_ParticleEffect_start__P3052_mk(s); + if (!checkSubtype(r0, statusbars_StatusBar__C4172_VT)) failedCast(r0); + s.tmp_0 = statusbars_StatusBar_changeValue__P6803_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); + r0 = s.arg0.fields["_max"]; + s.tmp_0.arg2 = r0; + s.callLocIdx = 1822; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = s.arg0.fields["flags"]; s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); + r0 = (s.tmp_3 & 1); 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 = 1593; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.arg2; - { step = 2; continue; } + r0 = (s.arg0).fields["displayValue"] = (s.arg1); 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__P3079_mk(s); - s.tmp_0.arg0 = globals.dissolve___3082; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1594; s.pc = 5; return s.tmp_0; - case 5: + s.tmp_0 = statusbars_StatusBar_updateState__P4199_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1823; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ParticleEffect_destroy__P3053.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"]} +statusbars_StatusBar_current__P4195.info = {"start":16013,"length":214,"line":465,"column":8,"endLine":472,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"current","argumentNames":["this","v"]} -function effects_ParticleEffect_destroy__P3053_mk(s) { +function statusbars_StatusBar_current__P4195_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_destroy__P3053, depth: s.depth + 1, + parent: s, fn: statusbars_StatusBar_current__P4195, depth: s.depth + 1, pc: 0, retval: undefined, 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 dissolve_inline__P17677(s) { +function StatusBarSprite_value__P4157(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38233,105 +43639,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___17680 = undefined; - s.x___17691 = undefined; - s.y___17697 = undefined; - s.w___17703 = undefined; - s.h___17707 = 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___17680 = (r0); - case 1: - r0 = (s.i___17680 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P2851_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 = 56; s.pc = 3; return s.tmp_1; + r0 = s.arg0; + if (!checkSubtype(r0, StatusBarSprite__C4155_VT)) failedCast(r0); + s.tmp_1 = StatusBarSprite_applyChange__P6776_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = StatusBarSprite_value_inline__P19373; + s.callLocIdx = 1786; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.x___17691 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P2851_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 = 57; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.y___17697 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P2851_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = 3; - s.callLocIdx = 58; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.w___17703 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P2851_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = 3; - s.callLocIdx = 59; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.h___17707 = (r0); - s.tmp_0 = helpers_imageDrawRect__P1806_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.x___17691; - s.tmp_0.arg2 = s.y___17697; - s.tmp_0.arg3 = s.w___17703; - s.tmp_0.arg4 = s.h___17707; - s.tmp_0.arg5 = 0; - s.callLocIdx = 60; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - r0 = (s.i___17680 - 1); - s.i___17680 = (r0); - { step = 1; continue; } + 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: - r0 = undefined; - return leave(s, r0) + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.tmp_2; + return leaveAccessor(s, r0) default: oops() } } } -dissolve_inline__P17677.info = {"start":2199,"length":360,"line":60,"column":49,"endLine":69,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} +StatusBarSprite_value__P4157.info = {"start":2772,"length":83,"line":85,"column":4,"endLine":87,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"value","argumentNames":["this"]} +StatusBarSprite_value__P4157.isGetter = true; -function dissolve_inline__P17677_mk(s) { +function StatusBarSprite_value__P4157_mk(s) { checkStack(s.depth); return { - parent: s, fn: dissolve_inline__P17677, depth: s.depth + 1, + parent: s, fn: StatusBarSprite_value__P4157, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - i___17680: undefined, - x___17691: undefined, - y___17697: undefined, - w___17703: undefined, - h___17707: undefined, arg0: undefined, - arg1: undefined, } } -function helpers_imageDrawRect__P1806(s) { +function StatusBarSprite_value_inline__P19373(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38343,108 +43695,27 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = (s.arg3 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = (s.arg4 == 0); - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - { step = 5; continue; } - case 3: - case 4: - r0 = (s.arg3 - 1); - s.arg3 = (r0); - r0 = (s.arg4 - 1); - s.arg4 = (r0); - s.tmp_0 = helpers_imageDrawLine__P1805_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 = 127; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P1805_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 = 128; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P1805_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 = 129; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P1805_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 = 130; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - case 5: - r0 = undefined; + r0 = s.arg0.fields["target"]; return leave(s, r0) default: oops() } } } -helpers_imageDrawRect__P1806.info = {"start":5325,"length":370,"line":167,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]} +StatusBarSprite_value_inline__P19373.info = {"start":2826,"length":16,"line":86,"column":32,"endLine":86,"endColumn":48,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} -function helpers_imageDrawRect__P1806_mk(s) { +function StatusBarSprite_value_inline__P19373_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawRect__P1806, depth: s.depth + 1, + parent: s, fn: StatusBarSprite_value_inline__P19373, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function effects_ImageEffect_applyTo__P3079(s) { +function controller_Controller_isPressed__P2000(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38454,71 +43725,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.clonedImage___17787 = 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__C3077_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!checkSubtype(r0, controller_Controller__C1978_VT)) failedCast(r0); + s.tmp_0 = controller_Button__C2032_v0_1_mk(s); + r0 = s.arg0.fields["buttons"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.arg1.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = (s.arg1 - 1); 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___17787 = (r0); - s.tmp_0 = effects_ImageEffect_change__P3080_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.clonedImage___17787; - s.callLocIdx = 1636; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = Sprite_setImage__P2232_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.clonedImage___17787; - s.callLocIdx = 1637; s.pc = 7; return s.tmp_0; - case 7: + r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); + s.tmp_0.arg0 = r0; + if (!checkSubtype(s.tmp_0.arg0, controller_Button__C2032_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.isPressed; + s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - case 5: - r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ImageEffect_applyTo__P3079.info = {"start":823,"length":218,"line":21,"column":8,"endLine":26,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"applyTo","argumentNames":["this","sprite"]} +controller_Controller_isPressed__P2000.info = {"start":7275,"length":102,"line":239,"column":8,"endLine":241,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this","btn"]} -function effects_ImageEffect_applyTo__P3079_mk(s) { +function controller_Controller_isPressed__P2000_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_applyTo__P3079, depth: s.depth + 1, + parent: s, fn: controller_Controller_isPressed__P2000, depth: s.depth + 1, pc: 0, retval: undefined, 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___17787: undefined, arg0: undefined, arg1: undefined, } } @@ -38527,7 +43765,7 @@ function effects_ImageEffect_applyTo__P3079_mk(s) { -function effects_ImageEffect_change__P3080(s) { +function sprites_onOverlap__P2299(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38537,50 +43775,114 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.sc___19398 = undefined; + s.overlapHandlers___19401 = undefined; + s.overlapMap___19404 = undefined; + s.associate___19407 = 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, effects_ImageEffect__C3077_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 = 1638; 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 = 1638; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1638; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 1638; s.pc = 1; return s.tmp_0; } - } + r0 = (s.arg0 == undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = (s.arg1 == undefined); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 3; continue; } + r0 = s.tmp_1; + { step = 4; continue; } + case 3: + r0 = pxsim_numops_toBoolDecr(s.arg2); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 4: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 5; continue; } + { step = 7; continue; } + case 5: + case 6: + s.tmp_4 = game_currentScene__P2792_mk(s); + s.callLocIdx = 658; s.pc = 8; return s.tmp_4; + case 8: + r0 = s.retval; + s.sc___19398 = (r0); + r0 = s.sc___19398.fields["overlapHandlers"]; + s.overlapHandlers___19401 = (r0); + r0 = s.sc___19398.fields["overlapMap"]; + s.overlapMap___19404 = (r0); + r0 = pxsim_pxtcore_mkAction(1, associate__P19407); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.overlapMap___19404); + s.associate___19407 = (s.tmp_0); + s.tmp_1 = lambda_3_mk(s); + s.tmp_1.argL = s.associate___19407; + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 659; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + s.tmp_0 = lambda_3_mk(s); + s.tmp_0.argL = s.associate___19407; + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg0; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 660; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(scene_OverlapHandler__C2649_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_OverlapHandler_constructor__P2650_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 = 661; s.pc = 11; return s.tmp_1; + case 11: r0 = s.retval; + r0 = pxsim_Array__push(s.overlapHandlers___19401, s.tmp_0); + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ImageEffect_change__P3080.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_onOverlap__P2299.info = {"start":1603,"length":755,"line":50,"column":4,"endLine":74,"endColumn":5,"fileName":"pxt_modules/game/spriteevents.ts","functionName":"onOverlap","argumentNames":["kind","otherKind","handler"]} -function effects_ImageEffect_change__P3080_mk(s) { +function sprites_onOverlap__P2299_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_change__P3080, depth: s.depth + 1, + parent: s, fn: sprites_onOverlap__P2299, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + sc___19398: undefined, + overlapHandlers___19401: undefined, + overlapMap___19404: undefined, + associate___19407: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function Sprite__destroyCore__P2270(s) { +function associate__P19407(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38590,116 +43892,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___17604 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; + r0 = pxsim_pxtrt.mapGetGeneric(s.caps[0], s.arg0); 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__P2792_mk(s); - s.callLocIdx = 522; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.scene___17604 = (r0); - r0 = s.scene___17604.fields["allSprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); - r0 = s.arg0.fields["_kind"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); 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; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_3 = r0 = s.caps[0]; + s.tmp_4 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_5 = r0; + r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_3, s.tmp_4, s.tmp_5); case 1: - r0 = s.scene___17604.fields["spritesByKind"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["_kind"]; - s.tmp_3 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_2, s.tmp_3); case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 3; continue; } - s.tmp_5 = sprites_SpriteSet_remove__P2311_mk(s); - r0 = s.scene___17604.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 = 526; s.pc = 8; return s.tmp_5; - case 8: - r0 = s.retval; - case 3: - case 4: - s.tmp_0 = PhysicsEngine__C2352_v1_2_mk(s); - r0 = s.scene___17604.fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2352_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.removeSprite; - s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - r0 = s.arg0.fields["destroyHandler"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_1 = if_destroyHandler_1_mk(s); - s.tmp_1.arg0 = s.arg0; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "destroyHandler"), 1); - s.callLocIdx = 527; s.pc = 10; return s.tmp_1; - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["destroyHandler"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["destroyHandler"], 1); s.callLocIdx = 527; s.pc = 10; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 527; s.pc = 10; return s.tmp_1;; } - else { s.callLocIdx = 527; s.pc = 10; return s.tmp_1; } - } - case 10: - r0 = s.retval; - case 5: - case 6: - r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P17633); + r0 = pxsim_pxtrt.mapGetGeneric(s.caps[0], s.arg0); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, Sprite__destroyCore_inline__P17639); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P109_mk(s); - s.tmp_3 = helpers_arrayFilter__P110_mk(s); - r0 = s.scene___17604.fields["destroyedHandlers"]; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 529; s.pc = 12; return s.tmp_3; - case 12: - r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 531; s.pc = 11; return s.tmp_2; - case 11: - r0 = s.retval; + r0 = pxsim_Array__push(s.tmp_0, s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite__destroyCore__P2270.info = {"start":26611,"length":522,"line":867,"column":4,"endLine":879,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]} +associate__P19407.info = {"start":1940,"length":172,"line":56,"column":8,"endLine":62,"endColumn":9,"fileName":"pxt_modules/game/spriteevents.ts","functionName":"associate","argumentNames":["a","b"]} -function Sprite__destroyCore__P2270_mk(s) { +function associate__P19407_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite__destroyCore__P2270, depth: s.depth + 1, + parent: s, fn: associate__P19407, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38707,17 +43932,15 @@ function Sprite__destroyCore__P2270_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - scene___17604: undefined, arg0: undefined, + arg1: undefined, } } -function forEach_inline__P17633(s) { +function scene_OverlapHandler_constructor__P2650(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38729,33 +43952,38 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0.fields["kind"]; - s.tmp_0 = r0; - r0 = s.caps[0].fields["_kind"]; - s.tmp_1 = r0; - r0 = (s.tmp_0 == s.tmp_1); + r0 = s.arg0; + if (!checkSubtype(r0, scene_OverlapHandler__C2649_VT)) failedCast(r0); + r0 = (s.arg0).fields["kind"] = (s.arg1); + r0 = (s.arg0).fields["otherKind"] = (s.arg2); + r0 = (s.arg0).fields["handler"] = (s.arg3); + r0 = undefined; return leave(s, r0) default: oops() } } } -forEach_inline__P17633.info = {"start":27056,"length":26,"line":877,"column":20,"endLine":877,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +scene_OverlapHandler_constructor__P2650.info = {"start":655,"length":171,"line":22,"column":8,"endLine":26,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","kind","otherKind","handler"]} -function forEach_inline__P17633_mk(s) { +function scene_OverlapHandler_constructor__P2650_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P17633, depth: s.depth + 1, + parent: s, fn: scene_OverlapHandler_constructor__P2650, 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 Sprite__destroyCore_inline__P17639(s) { +function music_createSoundEffect__P1773(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38765,44 +43993,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.result___19449 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); + s.arg7 = (s.lambdaArgs[7]); s.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 = 530; 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 = 530; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 530; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 530; s.pc = 1; return s.tmp_0; } - } + r0 = pxsim_pxtcore_mkClassInstance(music_SoundEffect__C1761_VT); + s.tmp_0 = r0; + s.tmp_1 = music_SoundEffect_constructor__P1770_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 127; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - r0 = undefined; + s.result___19449 = (s.tmp_0); + r0 = (s.result___19449).fields["waveShape"] = (s.arg0); + r0 = (s.result___19449).fields["startFrequency"] = (s.arg1); + r0 = (s.result___19449).fields["endFrequency"] = (s.arg2); + r0 = (s.result___19449).fields["startVolume"] = (s.arg3); + r0 = (s.result___19449).fields["endVolume"] = (s.arg4); + r0 = (s.result___19449).fields["duration"] = (s.arg5); + r0 = (s.result___19449).fields["effect"] = (s.arg6); + r0 = (s.result___19449).fields["interpolation"] = (s.arg7); + r0 = s.result___19449; return leave(s, r0) default: oops() } } } -Sprite__destroyCore_inline__P17639.info = {"start":27105,"length":20,"line":878,"column":21,"endLine":878,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +music_createSoundEffect__P1773.info = {"start":4337,"length":637,"line":143,"column":4,"endLine":156,"endColumn":5,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"createSoundEffect","argumentNames":["waveShape","startFrequency","endFrequency","startVolume","endVolume","duration","effect","interpolation"]} -function Sprite__destroyCore_inline__P17639_mk(s) { +function music_createSoundEffect__P1773_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite__destroyCore_inline__P17639, depth: s.depth + 1, + parent: s, fn: music_createSoundEffect__P1773, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + result___19449: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, + arg7: undefined, } } -function PhysicsEngine_removeSprite__P2355(s) { +function music_SoundEffect_constructor__P1770(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38814,31 +44061,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, PhysicsEngine__C2352_VT)) failedCast(r0); + if (!checkSubtype(r0, music_SoundEffect__C1761_VT)) failedCast(r0); + r0 = (s.arg0).fields["waveShape"] = (0); + r0 = (s.arg0).fields["startFrequency"] = (5000); + r0 = (s.arg0).fields["endFrequency"] = (1); + r0 = (s.arg0).fields["startVolume"] = (255); + r0 = (s.arg0).fields["endVolume"] = (0); + r0 = (s.arg0).fields["duration"] = (1000); + r0 = (s.arg0).fields["effect"] = (0); + r0 = (s.arg0).fields["interpolation"] = (0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_removeSprite__P2355.info = {"start":159,"length":32,"line":10,"column":4,"endLine":10,"endColumn":36,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} +music_SoundEffect_constructor__P1770.info = {"start":981,"length":361,"line":51,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"inline","argumentNames":["this"]} -function PhysicsEngine_removeSprite__P2355_mk(s) { +function music_SoundEffect_constructor__P1770_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_removeSprite__P2355, depth: s.depth + 1, + parent: s, fn: music_SoundEffect_constructor__P1770, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, - arg1: undefined, } } -function Sprite_kind__P2248(s) { +function music_playSoundEffect__P1772(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38848,31 +44101,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.toPlay___19499 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - r0 = s.arg0.fields["_kind"]; + s.tmp_0 = music_SoundEffect_toBuffer__P1771_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = music_volume__P1621_mk(s); + s.callLocIdx = 124; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 125; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.toPlay___19499 = (r0); + r0 = pxsim.music.queuePlayInstructions(0, s.toPlay___19499); + r0 = (s.arg1 === 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = pause__P413_mk(s); + r0 = s.arg0.fields["duration"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 126; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_kind__P2248.info = {"start":12573,"length":41,"line":453,"column":4,"endLine":455,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"kind","argumentNames":["this"]} +music_playSoundEffect__P1772.info = {"start":2252,"length":291,"line":94,"column":4,"endLine":101,"endColumn":5,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"playSoundEffect","argumentNames":["sound","mode"]} -function Sprite_kind__P2248_mk(s) { +function music_playSoundEffect__P1772_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_kind__P2248, depth: s.depth + 1, + parent: s, fn: music_playSoundEffect__P1772, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + toPlay___19499: undefined, arg0: undefined, + arg1: undefined, } } -function StatusBarSprite_value__P4158(s) { +function music_SoundEffect_toBuffer__P1771(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38888,26 +44169,50 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, StatusBarSprite__C4155_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, StatusBarSprite_value_inline__P17806); + if (!checkSubtype(r0, music_SoundEffect__C1761_VT)) failedCast(r0); + r0 = (s.arg1 === undefined); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = StatusBarSprite_applyChange__P6736_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1691; s.pc = 1; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = music_volume__P1621_mk(s); + s.callLocIdx = 122; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.arg1 = (r0); case 1: + case 2: + s.tmp_0 = music_soundToInstructionBuffer__P1774_mk(s); + r0 = s.arg0.fields["waveShape"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["startFrequency"]; + s.tmp_0.arg1 = r0; + r0 = s.arg0.fields["endFrequency"]; + s.tmp_0.arg2 = r0; + r0 = s.arg0.fields["startVolume"]; + s.tmp_0.arg3 = r0; + r0 = s.arg0.fields["endVolume"]; + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["duration"]; + s.tmp_0.arg5 = r0; + r0 = s.arg0.fields["effect"]; + s.tmp_0.arg6 = r0; + r0 = s.arg0.fields["interpolation"]; + s.tmp_0.arg7 = r0; + s.tmp_0.arg8 = 20; + s.tmp_0.arg9 = 1; + s.tmp_0.arg10 = s.arg1; + s.callLocIdx = 123; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -StatusBarSprite_value__P4158.info = {"start":2861,"length":101,"line":89,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"value","argumentNames":["this","v"]} +music_SoundEffect_toBuffer__P1771.info = {"start":1352,"length":489,"line":62,"column":8,"endLine":78,"endColumn":9,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"toBuffer","argumentNames":["this","volume"]} -function StatusBarSprite_value__P4158_mk(s) { +function music_SoundEffect_toBuffer__P1771_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_value__P4158, depth: s.depth + 1, + parent: s, fn: music_SoundEffect_toBuffer__P1771, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38919,7 +44224,7 @@ function StatusBarSprite_value__P4158_mk(s) { -function StatusBarSprite_value_inline__P17806(s) { +function music_soundToInstructionBuffer__P1774(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38929,102 +44234,569 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.steps___19550 = undefined; + s.getVolumeAt___19584 = undefined; + s.getFrequencyAt___19601 = undefined; + s.timeSlice___19661 = undefined; + s.i___19665 = undefined; + s.newStep___19670 = undefined; + s.out___19752 = undefined; + s.stepDuration___19761 = undefined; + s.i___19769 = undefined; + s.offset___19776 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); + s.arg7 = (s.lambdaArgs[7]); + s.arg8 = (s.lambdaArgs[8]); + s.arg9 = (s.lambdaArgs[9]); + s.arg10 = (s.lambdaArgs[10]); s.lambdaArgs = null; } - s.tmp_0 = statusbars_StatusBar_current__P4195_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - s.callLocIdx = 1690; s.pc = 1; return s.tmp_0; + r0 = pxsim_Array__mk(); + s.steps___19550 = (r0); + r0 = (s.arg7 === 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.arg6 === 0); + 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_pxtrt.mkMap(); + s.tmp_2 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_2, "frequency", s.arg1); + r0 = (s.arg3 / 255); + s.tmp_4 = r0; + r0 = (s.tmp_4 * s.arg10); + s.tmp_3 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_2, "volume", s.tmp_3); + r0 = pxsim_Array__push(s.steps___19550, s.tmp_2); + r0 = pxsim_pxtrt.mkMap(); + s.tmp_0 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "frequency", s.arg2); + r0 = (s.arg4 / 255); + s.tmp_2 = r0; + r0 = (s.tmp_2 * s.arg10); + s.tmp_1 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "volume", s.tmp_1); + r0 = pxsim_Array__push(s.steps___19550, s.tmp_0); + { step = 22; continue; } + case 3: + s.tmp_0 = Math_min__P131_mk(s); + s.tmp_0.arg0 = s.arg8; + r0 = (s.arg5 / 5); + s.tmp_1 = r0; + r0 = pxsim.Math_.floor(s.tmp_1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 128; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.arg8 = (r0); + r0 = pxsim_pxtcore_mkAction(4, getVolumeAt_inline__P19585); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg3); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg4); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg5); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.arg10); + s.getVolumeAt___19584 = (s.tmp_0); + s.tmp_0 = r0 = s.arg7; + r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = s.tmp_0; + { step = 7; continue; } + case 4: + r0 = pxsim_pxtcore_mkAction(3, music_soundToInstructionBuffer_inline__P19608); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg1); + r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.arg2); + r0 = pxsim_pxtrt_stclo(s.tmp_1, 2, s.arg5); + s.getFrequencyAt___19601 = (s.tmp_1); + { step = 7; continue; } + case 5: + r0 = pxsim_pxtcore_mkAction(3, music_soundToInstructionBuffer_inline__P19620); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg2); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg5); + s.getFrequencyAt___19601 = (s.tmp_0); + { step = 7; continue; } + case 6: + r0 = pxsim_pxtcore_mkAction(3, music_soundToInstructionBuffer_inline__P19639); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg5); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg2); + s.getFrequencyAt___19601 = (s.tmp_0); + case 7: + r0 = (s.arg5 / s.arg8); + s.timeSlice___19661 = (r0); + s.i___19665 = (0); + case 8: + r0 = (s.i___19665 < s.arg8); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 21; continue; } + r0 = pxsim_pxtrt.mkMap(); + s.tmp_1 = r0; + s.tmp_3 = lambda_2_mk(s); + s.tmp_3.argL = s.getFrequencyAt___19601; + r0 = (s.i___19665 * s.timeSlice___19661); + s.tmp_3.arg0 = r0; + setupLambda(s.tmp_3, s.tmp_3.argL); + s.callLocIdx = 129; s.pc = 26; return s.tmp_3; + case 26: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "frequency", s.tmp_2); + s.tmp_5 = lambda_2_mk(s); + s.tmp_5.argL = s.getVolumeAt___19584; + r0 = (s.i___19665 * s.timeSlice___19661); + s.tmp_5.arg0 = r0; + setupLambda(s.tmp_5, s.tmp_5.argL); + s.callLocIdx = 130; s.pc = 27; return s.tmp_5; + case 27: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "volume", s.tmp_4); + s.newStep___19670 = (s.tmp_1); + r0 = (s.arg6 === 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + r0 = (s.i___19665 % 2); + s.tmp_2 = r0; + r0 = (s.tmp_2 === 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 9; continue; } + s.tmp_3 = if_volume_2_mk(s); + s.tmp_3.arg0 = s.newStep___19670; + s.tmp_4 = Math_max__P130_mk(s); + s.tmp_6 = if_volume_1_mk(s); + s.tmp_6.arg0 = s.newStep___19670; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "volume"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["volume"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["volume"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 131; s.pc = 30; return s.tmp_6; } + } + case 30: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.arg9 * 500); + s.tmp_7 = r0; + r0 = (s.tmp_5 - s.tmp_7); + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = 0; + s.callLocIdx = 132; s.pc = 29; return s.tmp_4; + case 29: + r0 = s.retval; + s.tmp_3.arg1 = r0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_3.arg0, "volume", s.tmp_3.arg1); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/volume"]; + if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["volume"] = s.tmp_3.arg1; } + else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) } + else { s.callLocIdx = 133; s.pc = 28; return s.tmp_3; } + } + case 28: + r0 = s.retval; + { step = 10; continue; } + case 9: + s.tmp_0 = if_volume_2_mk(s); + s.tmp_0.arg0 = s.newStep___19670; + s.tmp_1 = Math_min__P131_mk(s); + s.tmp_3 = if_volume_1_mk(s); + s.tmp_3.arg0 = s.newStep___19670; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "volume"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["volume"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["volume"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 134; s.pc = 33; return s.tmp_3; } + } + case 33: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.arg9 * 500); + s.tmp_4 = r0; + r0 = (s.tmp_2 + s.tmp_4); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 1023; + s.callLocIdx = 135; s.pc = 32; return s.tmp_1; + case 32: + r0 = s.retval; + s.tmp_0.arg1 = r0; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "volume", s.tmp_0.arg1); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/volume"]; + if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["volume"] = s.tmp_0.arg1; } + else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } + else { s.callLocIdx = 136; s.pc = 31; return s.tmp_0; } + } + case 31: + r0 = s.retval; + case 10: + { step = 20; continue; } + case 11: + r0 = (s.arg6 === 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = (s.i___19665 % 2); + s.tmp_2 = r0; + r0 = (s.tmp_2 === 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 12; continue; } + s.tmp_3 = if_frequency_2_mk(s); + s.tmp_3.arg0 = s.newStep___19670; + s.tmp_4 = Math_max__P130_mk(s); + s.tmp_6 = if_frequency_1_mk(s); + s.tmp_6.arg0 = s.newStep___19670; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "frequency"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["frequency"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["frequency"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 137; s.pc = 36; return s.tmp_6; } + } + case 36: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.arg9 * 100); + s.tmp_7 = r0; + r0 = (s.tmp_5 - s.tmp_7); + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = 0; + s.callLocIdx = 138; s.pc = 35; return s.tmp_4; + case 35: + r0 = s.retval; + s.tmp_3.arg1 = r0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_3.arg0, "frequency", s.tmp_3.arg1); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/frequency"]; + if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["frequency"] = s.tmp_3.arg1; } + else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) } + else { s.callLocIdx = 139; s.pc = 34; return s.tmp_3; } + } + case 34: + r0 = s.retval; + { step = 13; continue; } + case 12: + s.tmp_0 = if_frequency_2_mk(s); + s.tmp_0.arg0 = s.newStep___19670; + s.tmp_2 = if_frequency_1_mk(s); + s.tmp_2.arg0 = s.newStep___19670; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "frequency"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["frequency"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["frequency"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 140; s.pc = 38; return s.tmp_2; } + } + case 38: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.arg9 * 100); + s.tmp_3 = r0; + r0 = (s.tmp_1 + s.tmp_3); + s.tmp_0.arg1 = r0; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "frequency", s.tmp_0.arg1); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/frequency"]; + if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["frequency"] = s.tmp_0.arg1; } + else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } + else { s.callLocIdx = 141; s.pc = 37; return s.tmp_0; } + } + case 37: + r0 = s.retval; + case 13: + { step = 19; continue; } + case 14: + r0 = (s.arg6 === 3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 17; continue; } + r0 = (s.i___19665 % 2); + s.tmp_2 = r0; + r0 = (s.tmp_2 === 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 15; continue; } + s.tmp_3 = if_frequency_2_mk(s); + s.tmp_3.arg0 = s.newStep___19670; + s.tmp_4 = Math_max__P130_mk(s); + s.tmp_6 = if_frequency_1_mk(s); + s.tmp_6.arg0 = s.newStep___19670; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "frequency"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["frequency"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["frequency"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 142; s.pc = 41; return s.tmp_6; } + } + case 41: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.arg9 * 1000); + s.tmp_7 = r0; + r0 = (s.tmp_5 - s.tmp_7); + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = 0; + s.callLocIdx = 143; s.pc = 40; return s.tmp_4; + case 40: + r0 = s.retval; + s.tmp_3.arg1 = r0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_3.arg0, "frequency", s.tmp_3.arg1); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/frequency"]; + if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["frequency"] = s.tmp_3.arg1; } + else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) } + else { s.callLocIdx = 144; s.pc = 39; return s.tmp_3; } + } + case 39: + r0 = s.retval; + { step = 16; continue; } + case 15: + s.tmp_0 = if_frequency_2_mk(s); + s.tmp_0.arg0 = s.newStep___19670; + s.tmp_2 = if_frequency_1_mk(s); + s.tmp_2.arg0 = s.newStep___19670; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "frequency"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["frequency"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["frequency"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 145; s.pc = 43; return s.tmp_2; } + } + case 43: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.arg9 * 1000); + s.tmp_3 = r0; + r0 = (s.tmp_1 + s.tmp_3); + s.tmp_0.arg1 = r0; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "frequency", s.tmp_0.arg1); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/frequency"]; + if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["frequency"] = s.tmp_0.arg1; } + else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } + else { s.callLocIdx = 146; s.pc = 42; return s.tmp_0; } + } + case 42: + r0 = s.retval; + case 16: + case 17: + case 18: + case 19: + case 20: + r0 = pxsim_Array__push(s.steps___19550, s.newStep___19670); + r0 = (s.i___19665 + 1); + s.i___19665 = (r0); + { step = 8; continue; } + case 21: + case 22: + r0 = pxsim_Array__length(s.steps___19550); + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = (12 * s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim.control.createBuffer(s.tmp_0); + s.out___19752 = (r0); + s.tmp_1 = r0 = s.arg5; + r0 = pxsim_Array__length(s.steps___19550); + 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.Math_.floor(s.tmp_0); + s.stepDuration___19761 = (r0); + s.i___19769 = (0); + case 23: + s.tmp_1 = r0 = s.i___19769; + r0 = pxsim_Array__length(s.steps___19550); + 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 = 24; continue; } + r0 = (s.i___19769 * 12); + s.offset___19776 = (r0); + s.tmp_0 = r0 = s.out___19752; + s.tmp_1 = r0 = s.offset___19776; + s.tmp_3 = music_waveToValue__P4437_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 147; s.pc = 44; return s.tmp_3; + case 44: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 2, s.tmp_1, s.tmp_2); + s.tmp_0 = r0 = s.out___19752; + r0 = (s.offset___19776 + 2); + s.tmp_1 = r0; + s.tmp_3 = if_frequency_1_mk(s); + r0 = pxsim_Array__getAt(s.steps___19550, s.i___19769); + s.tmp_3.arg0 = r0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "frequency"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["frequency"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["frequency"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 148; s.pc = 45; return s.tmp_3; } + } + case 45: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); + s.tmp_0 = r0 = s.out___19752; + r0 = (s.offset___19776 + 4); + s.tmp_1 = r0; + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.stepDuration___19761); + s.tmp_0 = r0 = s.out___19752; + r0 = (s.offset___19776 + 6); + s.tmp_1 = r0; + s.tmp_3 = if_volume_1_mk(s); + r0 = pxsim_Array__getAt(s.steps___19550, s.i___19769); + s.tmp_3.arg0 = r0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "volume"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["volume"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["volume"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 149; s.pc = 46; return s.tmp_3; } + } + case 46: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -StatusBarSprite_value_inline__P17806.info = {"start":2909,"length":45,"line":90,"column":25,"endLine":92,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} - -function StatusBarSprite_value_inline__P17806_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: StatusBarSprite_value_inline__P17806, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function statusbars_StatusBar_current__P4195(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); + s.tmp_0 = r0 = s.out___19752; + r0 = (s.offset___19776 + 8); + s.tmp_1 = r0; + s.tmp_3 = if_volume_1_mk(s); + s.tmp_4 = r0 = s.steps___19550; + r0 = (s.i___19769 + 1); + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(s.tmp_4, s.tmp_5); + s.tmp_3.arg0 = r0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "volume"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["volume"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["volume"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 150; s.pc = 47; return s.tmp_3; } } - r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusBar__C4172_VT)) failedCast(r0); - s.tmp_0 = statusbars_StatusBar_changeValue__P6763_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - r0 = s.arg0.fields["_max"]; - s.tmp_0.arg2 = r0; - s.callLocIdx = 1725; s.pc = 3; return s.tmp_0; - case 3: + case 47: r0 = s.retval; - r0 = s.arg0.fields["flags"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 & 1); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); + s.tmp_0 = r0 = s.out___19752; + r0 = (s.offset___19776 + 10); s.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).fields["displayValue"] = (s.arg1); - case 1: - case 2: - s.tmp_0 = statusbars_StatusBar_updateState__P4199_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1726; s.pc = 4; return s.tmp_0; - case 4: + s.tmp_3 = if_frequency_1_mk(s); + s.tmp_4 = r0 = s.steps___19550; + r0 = (s.i___19769 + 1); + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(s.tmp_4, s.tmp_5); + s.tmp_3.arg0 = r0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "frequency"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["frequency"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["frequency"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 151; s.pc = 48; return s.tmp_3; } + } + case 48: r0 = s.retval; - r0 = undefined; + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, 4, s.tmp_1, s.tmp_2); + r0 = (s.i___19769 + 1); + s.i___19769 = (r0); + { step = 23; continue; } + case 24: + r0 = s.out___19752; return leave(s, r0) default: oops() } } } -statusbars_StatusBar_current__P4195.info = {"start":16013,"length":214,"line":465,"column":8,"endLine":472,"endColumn":9,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"current","argumentNames":["this","v"]} +music_soundToInstructionBuffer__P1774.info = {"start":5060,"length":3866,"line":163,"column":5,"endLine":247,"endColumn":5,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"soundToInstructionBuffer","argumentNames":["waveShape","startFrequency","endFrequency","startVolume","endVolume","duration","effect","interpolation","fxSteps","fxRange","globalVolume"]} -function statusbars_StatusBar_current__P4195_mk(s) { +function music_soundToInstructionBuffer__P1774_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusBar_current__P4195, depth: s.depth + 1, + parent: s, fn: music_soundToInstructionBuffer__P1774, depth: s.depth + 1, pc: 0, retval: undefined, 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, + steps___19550: undefined, + getVolumeAt___19584: undefined, + getFrequencyAt___19601: undefined, + timeSlice___19661: undefined, + i___19665: undefined, + newStep___19670: undefined, + out___19752: undefined, + stepDuration___19761: undefined, + i___19769: undefined, + offset___19776: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, + arg7: undefined, + arg8: undefined, + arg9: undefined, + arg10: undefined, } } -function StatusBarSprite_value__P4157(s) { +function getVolumeAt_inline__P19585(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39038,39 +44810,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, StatusBarSprite__C4155_VT)) failedCast(r0); - s.tmp_1 = StatusBarSprite_applyChange__P6736_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = StatusBarSprite_value_inline__P17829; - s.callLocIdx = 1689; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; + s.tmp_2 = r0 = s.caps[0]; + s.tmp_5 = r0 = s.arg0; + r0 = (s.caps[1] - s.caps[0]); + s.tmp_6 = r0; + r0 = (s.tmp_5 * s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_4 / s.caps[2]); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_1 / 255); 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 leaveAccessor(s, r0) + r0 = (s.tmp_0 * s.caps[3]); + return leave(s, r0) default: oops() } } } -StatusBarSprite_value__P4157.info = {"start":2772,"length":83,"line":85,"column":4,"endLine":87,"endColumn":5,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"value","argumentNames":["this"]} -StatusBarSprite_value__P4157.isGetter = true; +getVolumeAt_inline__P19585.info = {"start":5929,"length":94,"line":181,"column":32,"endLine":181,"endColumn":126,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"inline","argumentNames":["t"]} -function StatusBarSprite_value__P4157_mk(s) { +function getVolumeAt_inline__P19585_mk(s) { checkStack(s.depth); return { - parent: s, fn: StatusBarSprite_value__P4157, depth: s.depth + 1, + parent: s, fn: getVolumeAt_inline__P19585, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -39078,39 +44847,7 @@ function StatusBarSprite_value__P4157_mk(s) { -function StatusBarSprite_value_inline__P17829(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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["target"]; - return leave(s, r0) - default: oops() -} } } -StatusBarSprite_value_inline__P17829.info = {"start":2826,"length":16,"line":86,"column":32,"endLine":86,"endColumn":48,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["sb"]} - -function StatusBarSprite_value_inline__P17829_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: StatusBarSprite_value_inline__P17829, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function controller_Controller_isPressed__P2000(s) { +function music_soundToInstructionBuffer_inline__P19608(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39122,45 +44859,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, controller_Controller__C1978_VT)) failedCast(r0); - s.tmp_0 = controller_Button__C2032_v0_1_mk(s); - r0 = s.arg0.fields["buttons"]; - s.tmp_1 = r0; - r0 = (s.arg1 - 1); + s.tmp_0 = r0 = s.caps[0]; + s.tmp_3 = r0 = s.arg0; + r0 = (s.caps[1] - s.caps[0]); + s.tmp_4 = r0; + r0 = (s.tmp_3 * s.tmp_4); s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); - s.tmp_0.arg0 = r0; - if (!checkSubtype(s.tmp_0.arg0, controller_Button__C2032_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.isPressed; - s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = (s.tmp_2 / s.caps[2]); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); return leave(s, r0) default: oops() } } } -controller_Controller_isPressed__P2000.info = {"start":7275,"length":102,"line":239,"column":8,"endLine":241,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this","btn"]} +music_soundToInstructionBuffer_inline__P19608.info = {"start":6203,"length":68,"line":186,"column":37,"endLine":186,"endColumn":105,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"inline","argumentNames":["t"]} -function controller_Controller_isPressed__P2000_mk(s) { +function music_soundToInstructionBuffer_inline__P19608_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_isPressed__P2000, depth: s.depth + 1, + parent: s, fn: music_soundToInstructionBuffer_inline__P19608, depth: s.depth + 1, pc: 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 sprites_onOverlap__P2299(s) { +function music_soundToInstructionBuffer_inline__P19620(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39170,114 +44902,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sc___17854 = undefined; - s.overlapHandlers___17857 = undefined; - s.overlapMap___17860 = undefined; - s.associate___17863 = 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 == undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = (s.arg1 == undefined); - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = s.tmp_1; - { step = 4; continue; } - case 3: - r0 = pxsim_numops_toBoolDecr(s.arg2); + s.tmp_0 = r0 = s.caps[0]; + r0 = (s.caps[1] - s.caps[0]); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 4: - // jmp value (already in r0) + r0 = (s.arg0 / s.caps[2]); + s.tmp_5 = r0; + r0 = (s.tmp_5 * 1.5707963267948966); + s.tmp_4 = r0; + r0 = pxsim.Math_.sin(s.tmp_4); s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 5; continue; } - { step = 7; continue; } - case 5: - case 6: - s.tmp_4 = game_currentScene__P2792_mk(s); - s.callLocIdx = 624; s.pc = 8; return s.tmp_4; - case 8: - r0 = s.retval; - s.sc___17854 = (r0); - r0 = s.sc___17854.fields["overlapHandlers"]; - s.overlapHandlers___17857 = (r0); - r0 = s.sc___17854.fields["overlapMap"]; - s.overlapMap___17860 = (r0); - r0 = pxsim_pxtcore_mkAction(1, associate__P17863); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.overlapMap___17860); - s.associate___17863 = (s.tmp_0); - s.tmp_1 = lambda_3_mk(s); - s.tmp_1.argL = s.associate___17863; - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 625; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - s.tmp_0 = lambda_3_mk(s); - s.tmp_0.argL = s.associate___17863; - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg0; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 626; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(scene_OverlapHandler__C2649_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_OverlapHandler_constructor__P2650_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 = 627; s.pc = 11; return s.tmp_1; - case 11: - r0 = s.retval; - r0 = pxsim_Array__push(s.overlapHandlers___17857, s.tmp_0); - case 7: - r0 = undefined; + r0 = (s.tmp_2 * s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); return leave(s, r0) default: oops() } } } -sprites_onOverlap__P2299.info = {"start":1603,"length":755,"line":50,"column":4,"endLine":74,"endColumn":5,"fileName":"pxt_modules/game/spriteevents.ts","functionName":"onOverlap","argumentNames":["kind","otherKind","handler"]} +music_soundToInstructionBuffer_inline__P19620.info = {"start":6384,"length":94,"line":189,"column":37,"endLine":189,"endColumn":131,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"inline","argumentNames":["t"]} -function sprites_onOverlap__P2299_mk(s) { +function music_soundToInstructionBuffer_inline__P19620_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_onOverlap__P2299, depth: s.depth + 1, + parent: s, fn: music_soundToInstructionBuffer_inline__P19620, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - sc___17854: undefined, - overlapHandlers___17857: undefined, - overlapMap___17860: undefined, - associate___17863: undefined, + tmp_5: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function associate__P17863(s) { +function music_soundToInstructionBuffer_inline__P19639(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39289,37 +44953,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtrt.mapGetGeneric(s.caps[0], s.arg0); + s.tmp_0 = r0 = s.caps[0]; + r0 = (s.arg0 / s.caps[1]); + s.tmp_6 = r0; + r0 = (9 * s.tmp_6); + s.tmp_5 = r0; + r0 = (1 + s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim.Math_.log(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim.Math_.log(10); + s.tmp_7 = r0; + r0 = (s.tmp_3 / s.tmp_7); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = (s.caps[2] - s.caps[0]); + s.tmp_8 = r0; + r0 = (s.tmp_2 * s.tmp_8); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_3 = r0 = s.caps[0]; - s.tmp_4 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_3, s.tmp_4, s.tmp_5); - case 1: - case 2: - r0 = pxsim_pxtrt.mapGetGeneric(s.caps[0], s.arg0); - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg1); - r0 = undefined; + r0 = (s.tmp_0 + s.tmp_1); return leave(s, r0) default: oops() } } } -associate__P17863.info = {"start":1940,"length":172,"line":56,"column":8,"endLine":62,"endColumn":9,"fileName":"pxt_modules/game/spriteevents.ts","functionName":"associate","argumentNames":["a","b"]} +music_soundToInstructionBuffer_inline__P19639.info = {"start":6597,"length":105,"line":192,"column":37,"endLine":192,"endColumn":142,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"inline","argumentNames":["t"]} -function associate__P17863_mk(s) { +function music_soundToInstructionBuffer_inline__P19639_mk(s) { checkStack(s.depth); return { - parent: s, fn: associate__P17863, depth: s.depth + 1, + parent: s, fn: music_soundToInstructionBuffer_inline__P19639, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39327,15 +44989,17 @@ function associate__P17863_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, arg0: undefined, - arg1: undefined, } } -function scene_OverlapHandler_constructor__P2650(s) { +function music_waveToValue__P4437(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39347,31 +45011,51 @@ 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_OverlapHandler__C2649_VT)) failedCast(r0); - r0 = (s.arg0).fields["kind"] = (s.arg1); - r0 = (s.arg0).fields["otherKind"] = (s.arg2); - r0 = (s.arg0).fields["handler"] = (s.arg3); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 1: + r0 = 15; + { step = 7; continue; } + case 2: + r0 = 3; + { step = 7; continue; } + case 3: + r0 = 1; + { step = 7; continue; } + case 4: + r0 = 18; + { step = 7; continue; } + case 5: + r0 = 2; + { step = 7; continue; } + case 6: r0 = undefined; + case 7: return leave(s, r0) default: oops() } } } -scene_OverlapHandler_constructor__P2650.info = {"start":655,"length":171,"line":22,"column":8,"endLine":26,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","kind","otherKind","handler"]} +music_waveToValue__P4437.info = {"start":8932,"length":307,"line":249,"column":4,"endLine":257,"endColumn":5,"fileName":"pxt_modules/mixer/soundEffect.ts","functionName":"waveToValue","argumentNames":["wave"]} -function scene_OverlapHandler_constructor__P2650_mk(s) { +function music_waveToValue__P4437_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_OverlapHandler_constructor__P2650, depth: s.depth + 1, + parent: s, fn: music_waveToValue__P4437, 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, } } @@ -39535,7 +45219,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.eventHandler___17924 = undefined; + s.eventHandler___19878 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -39544,14 +45228,14 @@ switch (step) { } r0 = s.arg0; if (!checkSubtype(r0, controller_Button__C2032_VT)) failedCast(r0); - s.tmp_0 = controller_Button_getOrCreateHandlerForEvent__P4503_mk(s); + s.tmp_0 = controller_Button_getOrCreateHandlerForEvent__P4543_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 253; s.pc = 1; return s.tmp_0; + s.callLocIdx = 287; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.eventHandler___17924 = (r0); - r0 = (s.eventHandler___17924).fields["callback"] = (s.arg2); + s.eventHandler___19878 = (r0); + r0 = (s.eventHandler___19878).fields["callback"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() @@ -39564,7 +45248,7 @@ function controller_Button_onEvent__P2039_mk(s) { parent: s, fn: controller_Button_onEvent__P2039, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - eventHandler___17924: undefined, + eventHandler___19878: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -39574,7 +45258,7 @@ function controller_Button_onEvent__P2039_mk(s) { -function controller_Button_getOrCreateHandlerForEvent__P4503(s) { +function controller_Button_getOrCreateHandlerForEvent__P4543(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39584,11 +45268,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.handlerState___17945 = undefined; - s.eventHandler___17954 = undefined; + s.handlerState___19899 = undefined; + s.eventHandler___19908 = undefined; s.unnamed76___U2 = undefined; s.unnamed77___U3 = undefined; - s.newHandler___17970 = undefined; + s.newHandler___19924 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -39596,9 +45280,9 @@ switch (step) { } r0 = s.arg0; if (!checkSubtype(r0, controller_Button__C2032_VT)) failedCast(r0); - s.tmp_3 = controller_Button_handlerState__P4498_mk(s); + s.tmp_3 = controller_Button_handlerState__P4538_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 263; s.pc = 10; return s.tmp_3; + s.callLocIdx = 297; s.pc = 10; return s.tmp_3; case 10: r0 = s.retval; s.tmp_2 = r0; @@ -39614,11 +45298,11 @@ switch (step) { s.tmp_5.arg0 = s.tmp_4; r0 = s.arg0.fields["id"]; s.tmp_5.arg1 = r0; - s.callLocIdx = 265; s.pc = 11; return s.tmp_5; + s.callLocIdx = 299; s.pc = 11; return s.tmp_5; case 11: r0 = s.retval; s.tmp_7 = game_currentScene__P2792_mk(s); - s.callLocIdx = 264; s.pc = 12; return s.tmp_7; + s.callLocIdx = 298; s.pc = 12; return s.tmp_7; case 12: r0 = s.retval; r0 = r0.fields["buttonEventHandlers"]; @@ -39626,13 +45310,13 @@ switch (step) { r0 = pxsim_Array__push(s.tmp_6, s.tmp_4); case 1: case 2: - s.tmp_0 = controller_Button_handlerState__P4498_mk(s); + s.tmp_0 = controller_Button_handlerState__P4538_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 266; s.pc = 13; return s.tmp_0; + s.callLocIdx = 300; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - s.handlerState___17945 = (r0); - r0 = s.handlerState___17945.fields["user"]; + s.handlerState___19899 = (r0); + r0 = s.handlerState___19899.fields["user"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; @@ -39640,14 +45324,14 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_3 = r0 = s.handlerState___17945; + s.tmp_3 = r0 = s.handlerState___19899; r0 = pxsim_Array__mk(); s.tmp_4 = r0; r0 = (s.tmp_3).fields["user"] = (s.tmp_4); case 3: case 4: - s.eventHandler___17954 = (undefined); - r0 = s.handlerState___17945.fields["user"]; + s.eventHandler___19908 = (undefined); + r0 = s.handlerState___19899.fields["user"]; s.unnamed76___U2 = (r0); s.unnamed77___U3 = (0); case 5: @@ -39657,14 +45341,14 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 8; continue; } r0 = pxsim_Array__getAt(s.unnamed76___U2, s.unnamed77___U3); - s.eventHandler___17954 = (r0); - r0 = s.eventHandler___17954.fields["event"]; + s.eventHandler___19908 = (r0); + r0 = s.eventHandler___19908.fields["event"]; s.tmp_3 = r0; r0 = (s.tmp_3 === s.arg1); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 6; continue; } - r0 = s.eventHandler___17954; + r0 = s.eventHandler___19908; { step = 9; continue; } case 6: case 7: @@ -39673,7 +45357,7 @@ switch (step) { { step = 5; continue; } case 8: s.unnamed76___U2 = (undefined); - r0 = pxsim_pxtcore_mkAction(2, controller_Button_getOrCreateHandlerForEvent_inline__P17967); + r0 = pxsim_pxtcore_mkAction(2, controller_Button_getOrCreateHandlerForEvent_inline__P19921); s.tmp_4 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.arg0); r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.arg1); @@ -39683,7 +45367,7 @@ switch (step) { s.tmp_5.arg1 = r0; s.tmp_5.arg2 = s.tmp_4; s.tmp_5.arg3 = 16; - s.callLocIdx = 268; s.pc = 14; return s.tmp_5; + s.callLocIdx = 302; s.pc = 14; return s.tmp_5; case 14: r0 = s.retval; r0 = pxsim_pxtcore_mkClassInstance(controller_ButtonHandler__C2026_VT); @@ -39692,24 +45376,24 @@ switch (step) { s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = undefined; - s.callLocIdx = 269; s.pc = 15; return s.tmp_1; + s.callLocIdx = 303; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; - s.newHandler___17970 = (s.tmp_0); - r0 = s.handlerState___17945.fields["user"]; + s.newHandler___19924 = (s.tmp_0); + r0 = s.handlerState___19899.fields["user"]; s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.newHandler___17970); - r0 = s.newHandler___17970; + r0 = pxsim_Array__push(s.tmp_0, s.newHandler___19924); + r0 = s.newHandler___19924; case 9: return leave(s, r0) default: oops() } } } -controller_Button_getOrCreateHandlerForEvent__P4503.info = {"start":8550,"length":829,"line":250,"column":8,"endLine":270,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"getOrCreateHandlerForEvent","argumentNames":["this","event"]} +controller_Button_getOrCreateHandlerForEvent__P4543.info = {"start":8550,"length":829,"line":250,"column":8,"endLine":270,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"getOrCreateHandlerForEvent","argumentNames":["this","event"]} -function controller_Button_getOrCreateHandlerForEvent__P4503_mk(s) { +function controller_Button_getOrCreateHandlerForEvent__P4543_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_getOrCreateHandlerForEvent__P4503, depth: s.depth + 1, + parent: s, fn: controller_Button_getOrCreateHandlerForEvent__P4543, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39719,11 +45403,11 @@ function controller_Button_getOrCreateHandlerForEvent__P4503_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - handlerState___17945: undefined, - eventHandler___17954: undefined, + handlerState___19899: undefined, + eventHandler___19908: undefined, unnamed76___U2: undefined, unnamed77___U3: undefined, - newHandler___17970: undefined, + newHandler___19924: undefined, arg0: undefined, arg1: undefined, } } @@ -39732,7 +45416,7 @@ function controller_Button_getOrCreateHandlerForEvent__P4503_mk(s) { -function controller_Button_getOrCreateHandlerForEvent_inline__P17967(s) { +function controller_Button_getOrCreateHandlerForEvent_inline__P19921(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39742,22 +45426,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_runButtonEvents__P4502_mk(s); + s.tmp_0 = controller_Button_runButtonEvents__P4542_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.caps[1]; - s.callLocIdx = 267; s.pc = 1; return s.tmp_0; + s.callLocIdx = 301; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_getOrCreateHandlerForEvent_inline__P17967.info = {"start":9186,"length":33,"line":265,"column":44,"endLine":265,"endColumn":77,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} +controller_Button_getOrCreateHandlerForEvent_inline__P19921.info = {"start":9186,"length":33,"line":265,"column":44,"endLine":265,"endColumn":77,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} -function controller_Button_getOrCreateHandlerForEvent_inline__P17967_mk(s) { +function controller_Button_getOrCreateHandlerForEvent_inline__P19921_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_getOrCreateHandlerForEvent_inline__P17967, depth: s.depth + 1, + parent: s, fn: controller_Button_getOrCreateHandlerForEvent_inline__P19921, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -39766,7 +45450,7 @@ function controller_Button_getOrCreateHandlerForEvent_inline__P17967_mk(s) { -function controller_Button_runButtonEvents__P4502(s) { +function controller_Button_runButtonEvents__P4542(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39776,9 +45460,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.handlerState___17984 = undefined; - s.userHandler___17988 = undefined; - s.eventHandler___17999 = undefined; + s.handlerState___19938 = undefined; + s.userHandler___19942 = undefined; + s.eventHandler___19953 = undefined; s.unnamed74___U3 = undefined; s.unnamed75___U4 = undefined; if (s.lambdaArgs) { @@ -39788,13 +45472,13 @@ switch (step) { } r0 = s.arg0; if (!checkSubtype(r0, controller_Button__C2032_VT)) failedCast(r0); - s.tmp_0 = controller_Button_handlerState__P4498_mk(s); + s.tmp_0 = controller_Button_handlerState__P4538_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 259; s.pc = 14; return s.tmp_0; + s.callLocIdx = 293; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - s.handlerState___17984 = (r0); - r0 = pxsim_numops_toBoolDecr(s.handlerState___17984); + s.handlerState___19938 = (r0); + r0 = pxsim_numops_toBoolDecr(s.handlerState___19938); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -39803,38 +45487,38 @@ switch (step) { { step = 13; continue; } case 1: case 2: - s.tmp_2 = controller_Button_getOrCreateHandlerForEvent__P4503_mk(s); + s.tmp_2 = controller_Button_getOrCreateHandlerForEvent__P4543_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; - s.callLocIdx = 260; s.pc = 15; return s.tmp_2; + s.callLocIdx = 294; s.pc = 15; return s.tmp_2; case 15: r0 = s.retval; - s.userHandler___17988 = (r0); - r0 = s.userHandler___17988.fields["callback"]; + s.userHandler___19942 = (r0); + r0 = s.userHandler___19942.fields["callback"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } s.tmp_1 = if_callback_1_mk(s); - s.tmp_1.arg0 = s.userHandler___17988; + s.tmp_1.arg0 = s.userHandler___19942; if (!s.tmp_1.arg0.vtable.iface) { setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "callback"), 1); - s.callLocIdx = 261; s.pc = 16; return s.tmp_1; + s.callLocIdx = 295; s.pc = 16; return s.tmp_1; } else { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["callback"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["callback"], 1); s.callLocIdx = 261; s.pc = 16; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 261; s.pc = 16; return s.tmp_1;; } - else { s.callLocIdx = 261; s.pc = 16; return s.tmp_1; } + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["callback"], 1); s.callLocIdx = 295; s.pc = 16; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 295; s.pc = 16; return s.tmp_1;; } + else { s.callLocIdx = 295; s.pc = 16; return s.tmp_1; } } case 16: r0 = s.retval; case 3: case 4: - r0 = s.handlerState___17984.fields["system"]; + r0 = s.handlerState___19938.fields["system"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - s.eventHandler___17999 = (undefined); - r0 = s.handlerState___17984.fields["system"]; + s.eventHandler___19953 = (undefined); + r0 = s.handlerState___19938.fields["system"]; s.unnamed74___U3 = (r0); s.unnamed75___U4 = (0); case 5: @@ -39844,8 +45528,8 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 10; continue; } r0 = pxsim_Array__getAt(s.unnamed74___U3, s.unnamed75___U4); - s.eventHandler___17999 = (r0); - r0 = s.eventHandler___17999.fields["event"]; + s.eventHandler___19953 = (r0); + r0 = s.eventHandler___19953.fields["event"]; s.tmp_3 = r0; r0 = (s.tmp_3 === s.arg1); s.tmp_2 = r0; @@ -39854,22 +45538,22 @@ switch (step) { r0 = s.tmp_2; { step = 7; continue; } case 6: - r0 = s.eventHandler___17999.fields["callback"]; + r0 = s.eventHandler___19953.fields["callback"]; case 7: // jmp value (already in r0) s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 8; continue; } s.tmp_5 = if_callback_1_mk(s); - s.tmp_5.arg0 = s.eventHandler___17999; + s.tmp_5.arg0 = s.eventHandler___19953; if (!s.tmp_5.arg0.vtable.iface) { setupLambda(s.tmp_5, pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "callback"), 1); - s.callLocIdx = 262; s.pc = 17; return s.tmp_5; + s.callLocIdx = 296; s.pc = 17; return s.tmp_5; } else { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["callback"]; - if (s.tmp_5.fn == null) { setupLambda(s.tmp_5, s.tmp_5.arg0.fields["callback"], 1); s.callLocIdx = 262; s.pc = 17; return s.tmp_5; } - else if (s.tmp_5.fn.isGetter) { s.tmp_5.stage2Call = true; s.callLocIdx = 262; s.pc = 17; return s.tmp_5;; } - else { s.callLocIdx = 262; s.pc = 17; return s.tmp_5; } + if (s.tmp_5.fn == null) { setupLambda(s.tmp_5, s.tmp_5.arg0.fields["callback"], 1); s.callLocIdx = 296; s.pc = 17; return s.tmp_5; } + else if (s.tmp_5.fn.isGetter) { s.tmp_5.stage2Call = true; s.callLocIdx = 296; s.pc = 17; return s.tmp_5;; } + else { s.callLocIdx = 296; s.pc = 17; return s.tmp_5; } } case 17: r0 = s.retval; @@ -39887,12 +45571,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_runButtonEvents__P4502.info = {"start":8005,"length":535,"line":236,"column":8,"endLine":248,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"runButtonEvents","argumentNames":["this","event"]} +controller_Button_runButtonEvents__P4542.info = {"start":8005,"length":535,"line":236,"column":8,"endLine":248,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"runButtonEvents","argumentNames":["this","event"]} -function controller_Button_runButtonEvents__P4502_mk(s) { +function controller_Button_runButtonEvents__P4542_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_runButtonEvents__P4502, depth: s.depth + 1, + parent: s, fn: controller_Button_runButtonEvents__P4542, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39900,9 +45584,9 @@ function controller_Button_runButtonEvents__P4502_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - handlerState___17984: undefined, - userHandler___17988: undefined, - eventHandler___17999: undefined, + handlerState___19938: undefined, + userHandler___19942: undefined, + eventHandler___19953: undefined, unnamed74___U3: undefined, unnamed75___U4: undefined, arg0: undefined, @@ -39913,7 +45597,7 @@ function controller_Button_runButtonEvents__P4502_mk(s) { -function controller_Button_handlerState__P4498(s) { +function controller_Button_handlerState__P4538(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39923,7 +45607,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___18015 = undefined; + s.state___19969 = undefined; s.unnamed72___U1 = undefined; s.unnamed73___U2 = undefined; if (s.lambdaArgs) { @@ -39932,9 +45616,9 @@ switch (step) { } r0 = s.arg0; if (!checkSubtype(r0, controller_Button__C2032_VT)) failedCast(r0); - s.state___18015 = (undefined); + s.state___19969 = (undefined); s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 249; s.pc = 6; return s.tmp_0; + s.callLocIdx = 283; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; r0 = r0.fields["buttonEventHandlers"]; @@ -39947,8 +45631,8 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } r0 = pxsim_Array__getAt(s.unnamed72___U1, s.unnamed73___U2); - s.state___18015 = (r0); - r0 = s.state___18015.fields["id"]; + s.state___19969 = (r0); + r0 = s.state___19969.fields["id"]; s.tmp_3 = r0; r0 = s.arg0.fields["id"]; s.tmp_4 = r0; @@ -39956,7 +45640,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 2; continue; } - r0 = s.state___18015; + r0 = s.state___19969; { step = 5; continue; } case 2: case 3: @@ -39970,20 +45654,20 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -controller_Button_handlerState__P4498.info = {"start":1644,"length":240,"line":66,"column":8,"endLine":71,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"handlerState","argumentNames":["this"]} -controller_Button_handlerState__P4498.isGetter = true; +controller_Button_handlerState__P4538.info = {"start":1644,"length":240,"line":66,"column":8,"endLine":71,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"handlerState","argumentNames":["this"]} +controller_Button_handlerState__P4538.isGetter = true; -function controller_Button_handlerState__P4498_mk(s) { +function controller_Button_handlerState__P4538_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_handlerState__P4498, depth: s.depth + 1, + parent: s, fn: controller_Button_handlerState__P4538, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - state___18015: undefined, + state___19969: undefined, unnamed72___U1: undefined, unnamed73___U2: undefined, arg0: undefined, @@ -40080,7 +45764,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___18029 = undefined; + s.physics___19983 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -40090,18 +45774,18 @@ switch (step) { r0 = s.arg0; if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 448; s.pc = 1; return s.tmp_0; + s.callLocIdx = 482; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = r0.fields["physicsEngine"]; - s.physics___18029 = (r0); + s.physics___19983 = (r0); s.tmp_0 = PhysicsEngine__C2352_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___18029; + s.tmp_0.arg0 = s.physics___19983; s.tmp_0.arg1 = s.arg0; s.tmp_2 = r0 = s.arg1; s.tmp_4 = Sprite_x__P2195_mk(s); s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 449; s.pc = 3; return s.tmp_4; + s.callLocIdx = 483; s.pc = 3; return s.tmp_4; case 3: r0 = s.retval; s.tmp_3 = r0; @@ -40114,7 +45798,7 @@ switch (step) { s.tmp_7 = r0 = s.arg2; s.tmp_9 = Sprite_y__P2197_mk(s); s.tmp_9.arg0 = s.arg0; - s.callLocIdx = 451; s.pc = 4; return s.tmp_9; + s.callLocIdx = 485; s.pc = 4; return s.tmp_9; case 4: r0 = s.retval; s.tmp_8 = r0; @@ -40151,7 +45835,7 @@ function Sprite_setPosition__P2250_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - physics___18029: undefined, + physics___19983: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -40178,7 +45862,7 @@ switch (step) { s.tmp_0 = helpers__getFactoryInstance__P3119_mk(s); s.tmp_0.arg0 = "tile"; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1656; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1753; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) @@ -40243,7 +45927,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tileOverlapHandlers___18061 = undefined; + s.tileOverlapHandlers___20015 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -40280,11 +45964,11 @@ switch (step) { case 5: case 6: s.tmp_5 = game_currentScene__P2792_mk(s); - s.callLocIdx = 628; s.pc = 8; return s.tmp_5; + s.callLocIdx = 662; s.pc = 8; return s.tmp_5; case 8: r0 = s.retval; r0 = r0.fields["tileOverlapHandlers"]; - s.tileOverlapHandlers___18061 = (r0); + s.tileOverlapHandlers___20015 = (r0); r0 = pxsim_pxtcore_mkClassInstance(scene_TileOverlapHandler__C2653_VT); s.tmp_0 = r0; s.tmp_1 = scene_TileOverlapHandler_constructor__P2654_mk(s); @@ -40292,10 +45976,10 @@ switch (step) { s.tmp_1.arg1 = s.arg0; s.tmp_1.arg2 = s.arg1; s.tmp_1.arg3 = s.arg2; - s.callLocIdx = 629; s.pc = 9; return s.tmp_1; + s.callLocIdx = 663; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - r0 = pxsim_Array__push(s.tileOverlapHandlers___18061, s.tmp_0); + r0 = pxsim_Array__push(s.tileOverlapHandlers___20015, s.tmp_0); case 7: r0 = undefined; return leave(s, r0) @@ -40314,7 +45998,7 @@ function scene_onOverlapTile__P2301_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tileOverlapHandlers___18061: undefined, + tileOverlapHandlers___20015: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -40392,7 +46076,7 @@ switch (step) { s.tmp_1.arg2 = s.arg1; s.tmp_1.arg3 = s.arg2; s.tmp_1.arg4 = s.arg3; - s.callLocIdx = 1098; s.pc = 1; return s.tmp_1; + s.callLocIdx = 1132; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = s.tmp_0; @@ -40444,7 +46128,7 @@ switch (step) { s.tmp_0 = tiles_TileMapData_scale__P2558_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg4; - s.callLocIdx = 1027; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1061; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; s.tmp_0 = r0 = s.arg0; @@ -40489,19 +46173,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.start___18117 = undefined; - s.end___18118 = undefined; + s.start___20071 = undefined; + s.end___20072 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.start___18117 = (0); + s.start___20071 = (0); r0 = pxsim_String_.length(s.arg0); s.tmp_0 = r0; r0 = (s.tmp_0 - 1); - s.end___18118 = (r0); + s.end___20072 = (r0); case 1: - r0 = (s.start___18117 <= s.end___18118); + r0 = (s.start___20071 <= s.end___20072); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 2; continue; } @@ -40509,7 +46193,7 @@ switch (step) { { step = 3; continue; } case 2: s.tmp_1 = helpers_isWhitespace__P124_mk(s); - r0 = pxsim_String_.charCodeAt(s.arg0, s.start___18117); + r0 = pxsim_String_.charCodeAt(s.arg0, s.start___20071); s.tmp_1.arg0 = r0; s.callLocIdx = 16; s.pc = 9; return s.tmp_1; case 9: @@ -40519,12 +46203,12 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 4; continue; } - r0 = (s.start___18117 + 1); - s.start___18117 = (r0); + r0 = (s.start___20071 + 1); + s.start___20071 = (r0); { step = 1; continue; } case 4: case 5: - r0 = (s.end___18118 > s.start___18117); + r0 = (s.end___20072 > s.start___20071); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 6; continue; } @@ -40532,7 +46216,7 @@ switch (step) { { step = 7; continue; } case 6: s.tmp_1 = helpers_isWhitespace__P124_mk(s); - r0 = pxsim_String_.charCodeAt(s.arg0, s.end___18118); + r0 = pxsim_String_.charCodeAt(s.arg0, s.end___20072); s.tmp_1.arg0 = r0; s.callLocIdx = 17; s.pc = 10; return s.tmp_1; case 10: @@ -40542,14 +46226,14 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 8; continue; } - r0 = (s.end___18118 - 1); - s.end___18118 = (r0); + r0 = (s.end___20072 - 1); + s.end___20072 = (r0); { step = 5; continue; } case 8: s.tmp_0 = helpers_stringSlice__P119_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.start___18117; - r0 = (s.end___18118 + 1); + s.tmp_0.arg1 = s.start___20071; + r0 = (s.end___20072 + 1); s.tmp_0.arg2 = r0; s.callLocIdx = 18; s.pc = 11; return s.tmp_0; case 11: @@ -40567,8 +46251,8 @@ function helpers_stringTrim__P123_mk(s) { tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - start___18117: undefined, - end___18118: undefined, + start___20071: undefined, + end___20072: undefined, arg0: undefined, } } @@ -40591,21 +46275,21 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.factories___5117); + r0 = pxsim_numops_toBoolDecr(globals.factories___5157); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = pxsim_Array__mk(); - globals.factories___5117 = (r0); + globals.factories___5157 = (r0); case 1: case 2: r0 = pxsim_pxtrt.mkMap(); s.tmp_0 = r0; r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "kind", s.arg0); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "factory", s.arg1); - r0 = pxsim_Array__push(globals.factories___5117, s.tmp_0); + r0 = pxsim_Array__push(globals.factories___5157, s.tmp_0); r0 = undefined; return leave(s, r0) default: oops() @@ -40637,16 +46321,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.nextKind___6726 === undefined); + r0 = (globals.nextKind___6766 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.nextKind___6726 = (1); + globals.nextKind___6766 = (1); case 1: case 2: - s.tmp_0 = r0 = globals.nextKind___6726; + s.tmp_0 = r0 = globals.nextKind___6766; r0 = (s.tmp_0 + 1); - globals.nextKind___6726 = (r0); + globals.nextKind___6766 = (r0); r0 = s.tmp_0; return leave(s, r0) default: oops() @@ -40675,12 +46359,12 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_init__P4708_mk(s); + s.tmp_0 = game_init__P4748_mk(s); s.tmp_0.arg0 = undefined; - s.callLocIdx = 1211; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1302; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals._scene___4700.fields["eventContext"]; + r0 = globals._scene___4740.fields["eventContext"]; return leave(s, r0) default: oops() } } } @@ -40745,7 +46429,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.__waitAnyButton___4704 = (s.arg0); + globals.__waitAnyButton___4744 = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() @@ -40811,7 +46495,7 @@ function Math_FastRandom_constructor__P2849_mk(s) { -function game_consoleOverlay_listener__P5033(s) { +function game_consoleOverlay_listener__P5073(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40826,7 +46510,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___4998); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___5038); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -40852,33 +46536,33 @@ switch (step) { s.tmp_6.arg0 = s.arg1; s.tmp_6.arg1 = "\n"; s.tmp_6.arg2 = undefined; - s.callLocIdx = 1419; s.pc = 10; return s.tmp_6; + s.callLocIdx = 1510; s.pc = 10; return s.tmp_6; case 10: r0 = s.retval; s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = forEach_inline__P18207; - s.callLocIdx = 1420; s.pc = 9; return s.tmp_5; + s.tmp_5.arg1 = forEach_inline__P20161; + s.callLocIdx = 1511; s.pc = 9; return s.tmp_5; case 9: r0 = s.retval; s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = game_consoleOverlay_listener_inline__P18212; - s.callLocIdx = 1422; s.pc = 8; return s.tmp_4; + s.tmp_4.arg1 = game_consoleOverlay_listener_inline__P20166; + s.callLocIdx = 1513; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; - r0 = pxsim_Array__length(globals.consoleStrings___4998); + r0 = pxsim_Array__length(globals.consoleStrings___5038); s.tmp_1 = r0; - r0 = (s.tmp_1 > globals.consoleLines___5011); + r0 = (s.tmp_1 > globals.consoleLines___5051); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } s.tmp_2 = helpers_arraySplice__P100_mk(s); - s.tmp_2.arg0 = globals.consoleStrings___4998; + s.tmp_2.arg0 = globals.consoleStrings___5038; s.tmp_2.arg1 = 0; - r0 = pxsim_Array__length(globals.consoleStrings___4998); + r0 = pxsim_Array__length(globals.consoleStrings___5038); s.tmp_3 = r0; - r0 = (s.tmp_3 - globals.consoleLines___5011); + r0 = (s.tmp_3 - globals.consoleLines___5051); s.tmp_2.arg2 = r0; - s.callLocIdx = 1423; s.pc = 11; return s.tmp_2; + s.callLocIdx = 1514; s.pc = 11; return s.tmp_2; case 11: r0 = s.retval; case 5: @@ -40888,12 +46572,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_consoleOverlay_listener__P5033.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__P5073.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__P5033_mk(s) { +function game_consoleOverlay_listener__P5073_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_listener__P5033, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_listener__P5073, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40910,7 +46594,7 @@ function game_consoleOverlay_listener__P5033_mk(s) { -function forEach_inline__P18207(s) { +function forEach_inline__P20161(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40934,12 +46618,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -forEach_inline__P18207.info = {"start":985,"length":14,"line":32,"column":20,"endLine":32,"endColumn":34,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} +forEach_inline__P20161.info = {"start":985,"length":14,"line":32,"column":20,"endLine":32,"endColumn":34,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} -function forEach_inline__P18207_mk(s) { +function forEach_inline__P20161_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P18207, depth: s.depth + 1, + parent: s, fn: forEach_inline__P20161, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40951,7 +46635,7 @@ function forEach_inline__P18207_mk(s) { -function game_consoleOverlay_listener_inline__P18212(s) { +function game_consoleOverlay_listener_inline__P20166(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40961,45 +46645,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.j___18214 = undefined; + s.j___20168 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.j___18214 = (0); + s.j___20168 = (0); case 1: - s.tmp_1 = r0 = s.j___18214; + s.tmp_1 = r0 = s.j___20168; 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___4998; + s.tmp_3 = r0 = globals.consoleStrings___5038; s.tmp_5 = helpers_stringSlice__P119_mk(s); s.tmp_5.arg0 = s.arg0; - s.tmp_5.arg1 = s.j___18214; - r0 = (s.j___18214 + globals.consoleColumns___5021); + s.tmp_5.arg1 = s.j___20168; + r0 = (s.j___20168 + globals.consoleColumns___5061); s.tmp_5.arg2 = r0; - s.callLocIdx = 1421; s.pc = 3; return s.tmp_5; + s.callLocIdx = 1512; 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___18214 + globals.consoleColumns___5021); - s.j___18214 = (r0); + r0 = (s.j___20168 + globals.consoleColumns___5061); + s.j___20168 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -game_consoleOverlay_listener_inline__P18212.info = {"start":1022,"length":189,"line":33,"column":21,"endLine":37,"endColumn":13,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} +game_consoleOverlay_listener_inline__P20166.info = {"start":1022,"length":189,"line":33,"column":21,"endLine":37,"endColumn":13,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} -function game_consoleOverlay_listener_inline__P18212_mk(s) { +function game_consoleOverlay_listener_inline__P20166_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_listener_inline__P18212, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_listener_inline__P20166, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41007,7 +46691,7 @@ function game_consoleOverlay_listener_inline__P18212_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - j___18214: undefined, + j___20168: undefined, arg0: undefined, } } @@ -41038,7 +46722,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_Array_.indexOf(globals.listeners___4307, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals.listeners___4347, s.arg0, undefined); s.tmp_2 = r0; r0 = (s.tmp_2 > -1); case 2: @@ -41049,7 +46733,7 @@ switch (step) { { step = 5; continue; } case 3: case 4: - r0 = pxsim_Array__push(globals.listeners___4307, s.arg0); + r0 = pxsim_Array__push(globals.listeners___4347, s.arg0); case 5: r0 = undefined; return leave(s, r0) @@ -41073,7 +46757,7 @@ function console_addListener__P383_mk(s) { -function listeners_inline__P4306(s) { +function listeners_inline__P4346(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41093,12 +46777,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -listeners_inline__P4306.info = {"start":534,"length":85,"line":25,"column":8,"endLine":25,"endColumn":93,"fileName":"pxt_modules/base/console.ts","functionName":"inline","argumentNames":["priority","text"]} +listeners_inline__P4346.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 listeners_inline__P4306_mk(s) { +function listeners_inline__P4346_mk(s) { checkStack(s.depth); return { - parent: s, fn: listeners_inline__P4306, depth: s.depth + 1, + parent: s, fn: listeners_inline__P4346, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -41118,7 +46802,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___4952); + r0 = pxsim_numops_toBoolDecr(globals.instance___4992); if (!r0) { step = 1; continue; } { step = 3; continue; } case 1: @@ -41127,7 +46811,7 @@ switch (step) { s.tmp_0.arg0 = globals.menu___1963; s.tmp_0.arg1 = 2049; s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P2895; - s.callLocIdx = 1406; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1497; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 3: @@ -41159,13 +46843,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___4952); + r0 = pxsim_numops_toBoolDecr(globals.instance___4992); if (!r0) { step = 1; continue; } { step = 3; continue; } case 1: case 2: s.tmp_0 = game_pushScene__P2796_mk(s); - s.callLocIdx = 1407; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1498; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C2883_VT); @@ -41174,13 +46858,13 @@ switch (step) { s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P2891; s.tmp_1.arg2 = undefined; - s.callLocIdx = 1408; s.pc = 5; return s.tmp_1; + s.callLocIdx = 1499; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - globals.instance___4952 = (s.tmp_0); + globals.instance___4992 = (s.tmp_0); s.tmp_0 = scene_systemMenu_PauseMenu_show__P2885_mk(s); - s.tmp_0.arg0 = globals.instance___4952; - s.callLocIdx = 1409; s.pc = 6; return s.tmp_0; + s.tmp_0.arg0 = globals.instance___4992; + s.callLocIdx = 1500; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; case 3: @@ -41213,31 +46897,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.options___18875 = undefined; + s.options___20826 = undefined; r0 = pxsim_Array__mk(); - s.options___18875 = (r0); + s.options___20826 = (r0); r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2875_VT); s.tmp_0 = r0; s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2876_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___2905; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P18883; - s.tmp_1.arg3 = scene_systemMenu_volumeDown__P4958; - s.callLocIdx = 1389; s.pc = 5; return s.tmp_1; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P20834; + s.tmp_1.arg3 = scene_systemMenu_volumeDown__P4998; + s.callLocIdx = 1480; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - r0 = pxsim_Array__push(s.options___18875, s.tmp_0); + r0 = pxsim_Array__push(s.options___20826, s.tmp_0); r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2875_VT); s.tmp_0 = r0; s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2876_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = globals.VOLUME_UP_ICON___2902; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P18897; - s.tmp_1.arg3 = scene_systemMenu_volumeUp__P4957; - s.callLocIdx = 1391; s.pc = 6; return s.tmp_1; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P20848; + s.tmp_1.arg3 = scene_systemMenu_volumeUp__P4997; + s.callLocIdx = 1482; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - r0 = pxsim_Array__push(s.options___18875, s.tmp_0); + r0 = pxsim_Array__push(s.options___20826, s.tmp_0); r0 = 0; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -41247,23 +46931,23 @@ switch (step) { s.tmp_2 = scene_systemMenu_MenuOption_constructor__P2876_mk(s); s.tmp_2.arg0 = s.tmp_1; s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___2903; - s.tmp_2.arg2 = scene_systemMenu_buildOptionList_inline__P18912; - s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P4960; - s.callLocIdx = 1394; s.pc = 7; return s.tmp_2; + s.tmp_2.arg2 = scene_systemMenu_buildOptionList_inline__P20863; + s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P5000; + s.callLocIdx = 1485; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; - r0 = pxsim_Array__push(s.options___18875, s.tmp_1); + r0 = pxsim_Array__push(s.options___20826, s.tmp_1); r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2875_VT); s.tmp_0 = r0; s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2876_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___2908; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P18927; - s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P4959; - s.callLocIdx = 1396; s.pc = 8; return s.tmp_1; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P20878; + s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P4999; + s.callLocIdx = 1487; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - r0 = pxsim_Array__push(s.options___18875, s.tmp_0); + r0 = pxsim_Array__push(s.options___20826, s.tmp_0); case 1: case 2: r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2875_VT); @@ -41271,43 +46955,43 @@ switch (step) { s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2876_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = globals.STATS_ICON___2909; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P18942; - s.tmp_1.arg3 = scene_systemMenu_toggleStats__P4962; - s.callLocIdx = 1397; s.pc = 9; return s.tmp_1; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P20893; + s.tmp_1.arg3 = scene_systemMenu_toggleStats__P5002; + s.callLocIdx = 1488; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - r0 = pxsim_Array__push(s.options___18875, s.tmp_0); + r0 = pxsim_Array__push(s.options___20826, s.tmp_0); r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2875_VT); s.tmp_0 = r0; s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2876_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = globals.CONSOLE_ICON___2907; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P18951; - s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P4963; - s.callLocIdx = 1399; s.pc = 10; return s.tmp_1; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P20902; + s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P5003; + s.callLocIdx = 1490; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; - r0 = pxsim_Array__push(s.options___18875, s.tmp_0); + r0 = pxsim_Array__push(s.options___20826, s.tmp_0); r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2875_VT); s.tmp_0 = r0; s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2876_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = globals.SLEEP_ICON___2906; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P18960; - s.tmp_1.arg3 = scene_systemMenu_sleep__P4964; - s.callLocIdx = 1400; s.pc = 11; return s.tmp_1; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P20911; + s.tmp_1.arg3 = scene_systemMenu_sleep__P5004; + s.callLocIdx = 1491; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; - r0 = pxsim_Array__push(s.options___18875, s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___4953); + r0 = pxsim_Array__push(s.options___20826, s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___4993); if (!r0) { step = 3; continue; } s.tmp_0 = helpers_arrayConcat__P113_mk(s); - s.tmp_0.arg0 = s.options___18875; - s.tmp_0.arg1 = globals.customMenuOptions___4953; - s.callLocIdx = 1401; s.pc = 12; return s.tmp_0; + s.tmp_0.arg0 = s.options___20826; + s.tmp_0.arg1 = globals.customMenuOptions___4993; + s.callLocIdx = 1492; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.options___18875 = (r0); + s.options___20826 = (r0); case 3: case 4: r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2875_VT); @@ -41315,13 +46999,13 @@ switch (step) { s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2876_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___2904; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P18973; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P20924; s.tmp_1.arg3 = scene_systemMenu_closeMenu__P2890; - s.callLocIdx = 1402; s.pc = 13; return s.tmp_1; + s.callLocIdx = 1493; s.pc = 13; return s.tmp_1; case 13: r0 = s.retval; - r0 = pxsim_Array__push(s.options___18875, s.tmp_0); - r0 = s.options___18875; + r0 = pxsim_Array__push(s.options___20826, s.tmp_0); + r0 = s.options___20826; return leave(s, r0) default: oops() } } } @@ -41335,14 +47019,14 @@ function scene_systemMenu_buildOptionList__P2891_mk(s) { tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - options___18875: undefined, + options___20826: undefined, } } -function scene_systemMenu_buildOptionList_inline__P18883(s) { +function scene_systemMenu_buildOptionList_inline__P20834(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41353,7 +47037,7 @@ switch (step) { case 0: s.tmp_3 = music_volume__P1621_mk(s); - s.callLocIdx = 1388; s.pc = 1; return s.tmp_3; + s.callLocIdx = 1479; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -41372,12 +47056,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P18883.info = {"start":10644,"length":39,"line":337,"column":54,"endLine":337,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P20834.info = {"start":10644,"length":39,"line":337,"column":54,"endLine":337,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_buildOptionList_inline__P18883_mk(s) { +function scene_systemMenu_buildOptionList_inline__P20834_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P18883, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P20834, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41389,7 +47073,7 @@ function scene_systemMenu_buildOptionList_inline__P18883_mk(s) { -function scene_systemMenu_buildOptionList_inline__P18897(s) { +function scene_systemMenu_buildOptionList_inline__P20848(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41400,7 +47084,7 @@ switch (step) { case 0: s.tmp_3 = music_volume__P1621_mk(s); - s.callLocIdx = 1390; s.pc = 1; return s.tmp_3; + s.callLocIdx = 1481; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -41419,12 +47103,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P18897.info = {"start":10751,"length":37,"line":338,"column":52,"endLine":338,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P20848.info = {"start":10751,"length":37,"line":338,"column":52,"endLine":338,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_buildOptionList_inline__P18897_mk(s) { +function scene_systemMenu_buildOptionList_inline__P20848_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P18897, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P20848, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41436,7 +47120,7 @@ function scene_systemMenu_buildOptionList_inline__P18897_mk(s) { -function scene_systemMenu_buildOptionList_inline__P18912(s) { +function scene_systemMenu_buildOptionList_inline__P20863(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41463,12 +47147,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P18912.info = {"start":10910,"length":48,"line":340,"column":62,"endLine":340,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P20863.info = {"start":10910,"length":48,"line":340,"column":62,"endLine":340,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_buildOptionList_inline__P18912_mk(s) { +function scene_systemMenu_buildOptionList_inline__P20863_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P18912, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P20863, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41479,7 +47163,7 @@ function scene_systemMenu_buildOptionList_inline__P18912_mk(s) { -function scene_systemMenu_buildOptionList_inline__P18927(s) { +function scene_systemMenu_buildOptionList_inline__P20878(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41506,12 +47190,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P18927.info = {"start":11038,"length":46,"line":341,"column":60,"endLine":341,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P20878.info = {"start":11038,"length":46,"line":341,"column":60,"endLine":341,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_buildOptionList_inline__P18927_mk(s) { +function scene_systemMenu_buildOptionList_inline__P20878_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P18927, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P20878, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41522,7 +47206,7 @@ function scene_systemMenu_buildOptionList_inline__P18927_mk(s) { -function scene_systemMenu_buildOptionList_inline__P18942(s) { +function scene_systemMenu_buildOptionList_inline__P20893(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41545,12 +47229,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P18942.info = {"start":11160,"length":46,"line":343,"column":48,"endLine":343,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P20893.info = {"start":11160,"length":46,"line":343,"column":48,"endLine":343,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_buildOptionList_inline__P18942_mk(s) { +function scene_systemMenu_buildOptionList_inline__P20893_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P18942, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P20893, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -41559,7 +47243,7 @@ function scene_systemMenu_buildOptionList_inline__P18942_mk(s) { -function scene_systemMenu_buildOptionList_inline__P18951(s) { +function scene_systemMenu_buildOptionList_inline__P20902(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41569,7 +47253,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___4998); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___5038); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; @@ -41590,12 +47274,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P18951.info = {"start":11273,"length":71,"line":344,"column":50,"endLine":344,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P20902.info = {"start":11273,"length":71,"line":344,"column":50,"endLine":344,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_buildOptionList_inline__P18951_mk(s) { +function scene_systemMenu_buildOptionList_inline__P20902_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P18951, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P20902, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41608,7 +47292,7 @@ function scene_systemMenu_buildOptionList_inline__P18951_mk(s) { -function scene_systemMenu_buildOptionList_inline__P18960(s) { +function scene_systemMenu_buildOptionList_inline__P20911(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41622,12 +47306,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P18960.info = {"start":11411,"length":13,"line":345,"column":48,"endLine":345,"endColumn":61,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P20911.info = {"start":11411,"length":13,"line":345,"column":48,"endLine":345,"endColumn":61,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_buildOptionList_inline__P18960_mk(s) { +function scene_systemMenu_buildOptionList_inline__P20911_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P18960, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P20911, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -41635,7 +47319,7 @@ function scene_systemMenu_buildOptionList_inline__P18960_mk(s) { -function scene_systemMenu_buildOptionList_inline__P18973(s) { +function scene_systemMenu_buildOptionList_inline__P20924(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41649,210 +47333,20 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P18973.info = {"start":11590,"length":13,"line":351,"column":53,"endLine":351,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} - -function scene_systemMenu_buildOptionList_inline__P18973_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P18973, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, -} } - - - - - -function scene_systemMenu_setScreenBrightnessSupported__P4965(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = 0; - return leave(s, r0) - default: oops() -} } } -scene_systemMenu_setScreenBrightnessSupported__P4965.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__P4965_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P4965, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, -} } - - - - - -function scene_systemMenu_sleep__P4964(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = pxsim_pxtcore.deepSleep(); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_systemMenu_sleep__P4964.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__P4964_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_sleep__P4964, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, -} } - - - - - -function scene_systemMenu_toggleConsole__P4963(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___4998); - 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; } - s.tmp_4 = game_consoleOverlay_setVisible__P2914_mk(s); - s.tmp_4.arg0 = false; - s.tmp_4.arg1 = undefined; - s.callLocIdx = 1382; s.pc = 3; return s.tmp_4; - case 3: - r0 = s.retval; - { step = 2; continue; } - case 1: - s.tmp_0 = game_consoleOverlay_setVisible__P2914_mk(s); - s.tmp_0.arg0 = true; - s.tmp_0.arg1 = undefined; - s.callLocIdx = 1383; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = console_log__P380_mk(s); - s.tmp_0.arg0 = "console"; - s.callLocIdx = 1384; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_systemMenu_toggleConsole__P4963.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__P4963_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_toggleConsole__P4963, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, -} } - - - - - -function game_consoleOverlay_setVisible__P2914(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - s.tmp_1 = r0 = s.arg0; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___4998); - s.tmp_5 = r0; - r0 = pxsim_Boolean__bang(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 != s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - { step = 2; continue; } - case 1: - r0 = undefined; - case 2: - // jmp value (already in r0) - s.tmp_6 = r0; - globals.consoleStrings___4998 = (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___4997 = (s.arg1); - case 5: - case 6: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -game_consoleOverlay_setVisible__P2914.info = {"start":562,"length":219,"line":19,"column":4,"endLine":24,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"setVisible","argumentNames":["value","col"]} +scene_systemMenu_buildOptionList_inline__P20924.info = {"start":11590,"length":13,"line":351,"column":53,"endLine":351,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function game_consoleOverlay_setVisible__P2914_mk(s) { +function scene_systemMenu_buildOptionList_inline__P20924_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_setVisible__P2914, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P20924, depth: s.depth + 1, pc: 0, retval: undefined, 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 console_log__P380(s) { +function scene_systemMenu_setScreenBrightnessSupported__P5005(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41862,36 +47356,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = console_add__P376_mk(s); - s.tmp_0.arg0 = 1; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 38; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = 0; return leave(s, r0) default: oops() } } } -console_log__P380.info = {"start":1450,"length":86,"line":58,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"log","argumentNames":["value"]} +scene_systemMenu_setScreenBrightnessSupported__P5005.info = {"start":10398,"length":95,"line":330,"column":4,"endLine":332,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightnessSupported","argumentNames":[]} -function console_log__P380_mk(s) { +function scene_systemMenu_setScreenBrightnessSupported__P5005_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_log__P380, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P5005, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, } } -function console_add__P376(s) { +function scene_systemMenu_sleep__P5004(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41901,87 +47383,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.text___19012 = undefined; - s.i___19021 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = (s.arg0 < globals.minPriority___375); - 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__P382_mk(s); - s.tmp_1.arg0 = s.arg1; - s.tmp_1.arg1 = 20; - s.callLocIdx = 36; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - s.text___19012 = (r0); - if ((s.text___19012) && (s.text___19012).vtable) { - setupResume(s, 7); - pxsim_String__stringConv(s.text___19012); - checkResumeConsumed(); - return; - } else { s.retval = (s.text___19012) + ""; } - case 7: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, "\n"); - s.text___19012 = (r0); - s.i___19021 = (0); - case 3: - s.tmp_1 = r0 = s.i___19021; - r0 = pxsim_Array__length(globals.listeners___4307); - 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___4307, s.i___19021); - s.tmp_3.argL = r0; - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.text___19012; - setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 37; s.pc = 8; return s.tmp_3; - case 8: - r0 = s.retval; - r0 = (s.i___19021 + 1); - s.i___19021 = (r0); - { step = 3; continue; } - case 4: - case 5: + r0 = pxsim_pxtcore.deepSleep(); r0 = undefined; return leave(s, r0) default: oops() } } } -console_add__P376.info = {"start":632,"length":317,"line":28,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"add","argumentNames":["priority","message"]} +scene_systemMenu_sleep__P5004.info = {"start":10072,"length":51,"line":316,"column":4,"endLine":318,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"sleep","argumentNames":[]} -function console_add__P376_mk(s) { +function scene_systemMenu_sleep__P5004_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_add__P376, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_sleep__P5004, depth: s.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___19012: undefined, - i___19021: undefined, - arg0: undefined, - arg1: undefined, } } -function console_inspect__P382(s) { +function scene_systemMenu_toggleConsole__P5003(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41991,239 +47411,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.asArr___19052 = undefined; - s.asString___19070 = undefined; - s.keys___19082 = undefined; - s.snipped___19086 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = pxsim_pxtcore.typeOf(s.arg0); - s.tmp_1 = r0; - r0 = (s.tmp_1 == "string"); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0; - { step = 17; continue; } - { step = 16; continue; } - case 1: - r0 = pxsim_pxtcore.typeOf(s.arg0); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___5038); s.tmp_3 = r0; - r0 = (s.tmp_3 == "number"); + r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 2; continue; } - r0 = pxsim_String_.mkEmpty(); - s.tmp_4 = r0; - 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_5 = r0; - r0 = pxsim_String__concat(s.tmp_4, s.tmp_5); - { step = 17; continue; } - { step = 15; continue; } - case 2: - r0 = pxsim_Array_.isArray(s.arg0); - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 5; continue; } - s.asArr___19052 = (s.arg0); - r0 = pxsim_Array__length(s.asArr___19052); s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.arg1); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_2 = helpers_arrayJoin__P103_mk(s); - s.tmp_2.arg0 = s.asArr___19052; - s.tmp_2.arg1 = ","; - s.callLocIdx = 39; s.pc = 19; return s.tmp_2; - case 19: - r0 = s.retval; - { step = 17; continue; } - { step = 4; continue; } + if (!r0) { step = 1; continue; } + s.tmp_4 = game_consoleOverlay_setVisible__P2914_mk(s); + s.tmp_4.arg0 = false; + s.tmp_4.arg1 = undefined; + s.callLocIdx = 1473; s.pc = 3; return s.tmp_4; case 3: - r0 = pxsim_String_.mkEmpty(); - s.tmp_4 = r0; - s.tmp_7 = helpers_arrayJoin__P103_mk(s); - s.tmp_8 = helpers_arraySlice__P115_mk(s); - s.tmp_8.arg0 = s.asArr___19052; - s.tmp_8.arg1 = 0; - s.tmp_8.arg2 = s.arg1; - s.callLocIdx = 40; s.pc = 21; return s.tmp_8; - case 21: - r0 = s.retval; - s.tmp_7.arg0 = r0; - s.tmp_7.arg1 = ","; - s.callLocIdx = 41; s.pc = 20; return s.tmp_7; - case 20: - r0 = s.retval; - s.tmp_6 = r0; - if ((s.tmp_6) && (s.tmp_6).vtable) { - setupResume(s, 22); - pxsim_String__stringConv(s.tmp_6); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_6) + ""; } - case 22: r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_4, s.tmp_5); - s.tmp_3 = r0; - r0 = pxsim_String__concat(s.tmp_3, "..."); - { step = 17; continue; } + { step = 2; continue; } + case 1: + s.tmp_0 = game_consoleOverlay_setVisible__P2914_mk(s); + s.tmp_0.arg0 = true; + s.tmp_0.arg1 = undefined; + s.callLocIdx = 1474; s.pc = 4; return s.tmp_0; case 4: - { step = 14; continue; } - case 5: - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 23); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 23: - r0 = s.retval; - s.tmp_9 = r0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_10 = r0; - r0 = pxsim_String__concat(s.tmp_9, s.tmp_10); - s.asString___19070 = (r0); - r0 = (s.asString___19070 != "[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___19070 != "[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___19070; - { step = 17; continue; } - case 8: - case 9: - r0 = pxsim_pxtrt.keysOf(s.arg0); - s.keys___19082 = (r0); - r0 = pxsim_Array__length(s.keys___19082); - s.tmp_0 = r0; - r0 = (s.tmp_0 > s.arg1); - s.snipped___19086 = (r0); - r0 = pxsim_numops_toBoolDecr(s.snipped___19086); - if (!r0) { step = 10; continue; } - s.tmp_0 = helpers_arraySlice__P115_mk(s); - s.tmp_0.arg0 = s.keys___19082; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 42; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.keys___19082 = (r0); - case 10: - case 11: - r0 = pxsim_pxtcore_mkAction(1, console_inspect_inline__P19103); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_numops_toBoolDecr(s.snipped___19086); - if (!r0) { step = 12; continue; } - r0 = "\n ..."; - { step = 13; continue; } - case 12: - r0 = pxsim_String_.mkEmpty(); - case 13: - // jmp value (already in r0) - s.tmp_1 = r0; - s.tmp_7 = helpers_arrayReduce__P112_mk(s); - s.tmp_7.arg0 = s.keys___19082; - s.tmp_7.arg1 = s.tmp_0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_7.arg2 = r0; - s.callLocIdx = 43; s.pc = 25; return s.tmp_7; - case 25: - r0 = s.retval; - s.tmp_6 = r0; - if ((s.tmp_6) && (s.tmp_6).vtable) { - setupResume(s, 26); - pxsim_String__stringConv(s.tmp_6); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_6) + ""; } - case 26: r0 = s.retval; - s.tmp_5 = r0; - if ((s.tmp_1) && (s.tmp_1).vtable) { - setupResume(s, 27); - pxsim_String__stringConv(s.tmp_1); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_1) + ""; } - case 27: - r0 = s.retval; - s.tmp_8 = r0; - r0 = pxsim_String__concat(s.tmp_5, s.tmp_8); - s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 28); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 28: + s.tmp_0 = console_log__P380_mk(s); + s.tmp_0.arg0 = "console"; + s.callLocIdx = 1475; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_String__concat("{", s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_2, "\n}"); - { step = 17; continue; } - case 14: - case 15: - case 16: + case 2: r0 = undefined; - case 17: return leave(s, r0) default: oops() } } } -console_inspect__P382.info = {"start":2271,"length":1190,"line":81,"column":4,"endLine":114,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"inspect","argumentNames":["obj","maxElements"]} +scene_systemMenu_toggleConsole__P5003.info = {"start":9827,"length":239,"line":307,"column":4,"endLine":314,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleConsole","argumentNames":[]} -function console_inspect__P382_mk(s) { +function scene_systemMenu_toggleConsole__P5003_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_inspect__P382, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_toggleConsole__P5003, depth: s.depth + 1, pc: 0, retval: undefined, 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, - asArr___19052: undefined, - asString___19070: undefined, - keys___19082: undefined, - snipped___19086: undefined, - arg0: undefined, - arg1: undefined, } } -function console_inspect_inline__P19103(s) { +function game_consoleOverlay_setVisible__P2914(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42238,60 +47478,48 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 1); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 1: - r0 = s.retval; - s.tmp_0 = r0; - if ((s.arg1) && (s.arg1).vtable) { - setupResume(s, 2); - pxsim_String__stringConv(s.arg1); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg1) + ""; } - case 2: - r0 = s.retval; + s.tmp_1 = r0 = s.arg0; + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___5038); s.tmp_5 = r0; - r0 = pxsim_String__concat("\n ", s.tmp_5); + r0 = pxsim_Boolean__bang(s.tmp_5); s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_4, ": "); + r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.caps[0], s.arg1); - s.tmp_7 = r0; - if ((s.tmp_7) && (s.tmp_7).vtable) { - setupResume(s, 3); - pxsim_String__stringConv(s.tmp_7); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_7) + ""; } - case 3: - r0 = s.retval; - s.tmp_6 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_6); + r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 4); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } + r0 = (s.tmp_1 != s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg0); + if (!r0) { step = 1; continue; } + r0 = pxsim_Array__mk(); + { step = 2; continue; } + case 1: + r0 = undefined; + case 2: + // jmp value (already in r0) + s.tmp_6 = r0; + globals.consoleStrings___5038 = (s.tmp_6); + case 3: case 4: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + r0 = (s.arg1 !== undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + globals.consoleColor___5037 = (s.arg1); + case 5: + case 6: + r0 = undefined; return leave(s, r0) default: oops() } } } -console_inspect_inline__P19103.info = {"start":3293,"length":61,"line":108,"column":20,"endLine":108,"endColumn":81,"fileName":"pxt_modules/base/console.ts","functionName":"inline","argumentNames":["prev","currKey"]} +game_consoleOverlay_setVisible__P2914.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 console_inspect_inline__P19103_mk(s) { +function game_consoleOverlay_setVisible__P2914_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_inspect_inline__P19103, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_setVisible__P2914, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42300,7 +47528,6 @@ function console_inspect_inline__P19103_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - tmp_7: undefined, arg0: undefined, arg1: undefined, } } @@ -42309,7 +47536,7 @@ function console_inspect_inline__P19103_mk(s) { -function helpers_arrayReduce__P112(s) { +function console_log__P380(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42319,62 +47546,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___19130 = undefined; - s.i___19133 = 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___19130 = (r0); - s.i___19133 = (0); + s.tmp_0 = console_add__P376_mk(s); + s.tmp_0.arg0 = 1; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 38; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.i___19133 < s.len___19130); - 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___19133); - s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = s.i___19133; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 9; s.pc = 3; return s.tmp_1; - case 3: r0 = s.retval; - s.arg2 = (r0); - r0 = (s.i___19133 + 1); - s.i___19133 = (r0); - { step = 1; continue; } - case 2: - r0 = s.arg2; + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arrayReduce__P112.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"]} +console_log__P380.info = {"start":1450,"length":86,"line":58,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"log","argumentNames":["value"]} -function helpers_arrayReduce__P112_mk(s) { +function console_log__P380_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayReduce__P112, depth: s.depth + 1, + parent: s, fn: console_log__P380, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - len___19130: undefined, - i___19133: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function helpers_arrayJoin__P103(s) { +function console_add__P376(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42384,144 +47585,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___19158 = undefined; - s.len___19159 = undefined; - s.i___19162 = undefined; + s.text___20963 = undefined; + s.i___20972 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg1 === undefined); + r0 = (s.arg0 < globals.minPriority___375); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + { step = 5; continue; } case 1: - r0 = (s.arg1 === null); case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - s.arg1 = (","); - case 3: - case 4: - r0 = pxsim_String_.mkEmpty(); - s.r___19158 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___19159 = (r0); - s.i___19162 = (0); - case 5: - r0 = (s.i___19162 < s.len___19159); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = (s.i___19162 > 0); - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (r0) { step = 6; continue; } - r0 = s.tmp_1; - { step = 7; continue; } + s.tmp_1 = console_inspect__P382_mk(s); + s.tmp_1.arg0 = s.arg1; + s.tmp_1.arg1 = 20; + s.callLocIdx = 36; s.pc = 6; return s.tmp_1; case 6: - r0 = s.arg1; - case 7: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 8; continue; } - if ((s.r___19158) && (s.r___19158).vtable) { - setupResume(s, 15); - pxsim_String__stringConv(s.r___19158); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___19158) + ""; } - case 15: r0 = s.retval; - s.tmp_3 = r0; - if ((s.arg1) && (s.arg1).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.arg1); + s.text___20963 = (r0); + if ((s.text___20963) && (s.text___20963).vtable) { + setupResume(s, 7); + pxsim_String__stringConv(s.text___20963); checkResumeConsumed(); return; - } else { s.retval = (s.arg1) + ""; } - case 16: + } else { s.retval = (s.text___20963) + ""; } + case 7: r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.r___19158 = (r0); - case 8: - case 9: - r0 = pxsim_Array__getAt(s.arg0, s.i___19162); - s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); 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: - r0 = pxsim_Array__getAt(s.arg0, s.i___19162); + r0 = pxsim_String__concat(s.tmp_0, "\n"); + s.text___20963 = (r0); + s.i___20972 = (0); + case 3: + s.tmp_1 = r0 = s.i___20972; + r0 = pxsim_Array__length(globals.listeners___4347); s.tmp_2 = r0; - r0 = (s.tmp_2 === null); - case 11: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 12; continue; } - r0 = pxsim_String_.mkEmpty(); - { step = 13; continue; } - case 12: - r0 = pxsim_Array__getAt(s.arg0, s.i___19162); - case 13: - // jmp value (already in r0) - s.tmp_4 = r0; - if ((s.r___19158) && (s.r___19158).vtable) { - setupResume(s, 17); - pxsim_String__stringConv(s.r___19158); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___19158) + ""; } - case 17: - r0 = s.retval; - s.tmp_5 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 18); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 18: + 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___4347, s.i___20972); + s.tmp_3.argL = r0; + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.text___20963; + setupLambda(s.tmp_3, s.tmp_3.argL); + s.callLocIdx = 37; s.pc = 8; return s.tmp_3; + case 8: r0 = s.retval; - s.tmp_6 = r0; - r0 = pxsim_String__concat(s.tmp_5, s.tmp_6); - s.r___19158 = (r0); - r0 = (s.i___19162 + 1); - s.i___19162 = (r0); - { step = 5; continue; } - case 14: - r0 = s.r___19158; + r0 = (s.i___20972 + 1); + s.i___20972 = (r0); + { step = 3; continue; } + case 4: + case 5: + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arrayJoin__P103.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"]} +console_add__P376.info = {"start":632,"length":317,"line":28,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"add","argumentNames":["priority","message"]} -function helpers_arrayJoin__P103_mk(s) { +function console_add__P376_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayJoin__P103, depth: s.depth + 1, + parent: s, fn: console_add__P376, depth: s.depth + 1, pc: 0, retval: undefined, 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, - r___19158: undefined, - len___19159: undefined, - i___19162: undefined, + text___20963: undefined, + i___20972: undefined, arg0: undefined, arg1: undefined, } } @@ -42530,7 +47665,7 @@ function helpers_arrayJoin__P103_mk(s) { -function scene_systemMenu_toggleStats__P4962(s) { +function scene_systemMenu_toggleStats__P5002(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42564,7 +47699,7 @@ switch (step) { r0 = pxsim_String_.mkEmpty(); s.tmp_3.arg0 = r0; setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 1380; s.pc = 5; return s.tmp_3; + s.callLocIdx = 1471; s.pc = 5; return s.tmp_3; case 5: r0 = s.retval; case 3: @@ -42573,12 +47708,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_toggleStats__P4962.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__P5002.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__P4962_mk(s) { +function scene_systemMenu_toggleStats__P5002_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_toggleStats__P4962, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_toggleStats__P5002, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42590,7 +47725,7 @@ function scene_systemMenu_toggleStats__P4962_mk(s) { -function scene_systemMenu_brightnessDown__P4960(s) { +function scene_systemMenu_brightnessDown__P5000(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42600,24 +47735,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_setScreenBrightness__P4961_mk(s); + s.tmp_0 = scene_systemMenu_setScreenBrightness__P5001_mk(s); r0 = globals.brightness___1798; s.tmp_1 = r0; r0 = (s.tmp_1 - 5); s.tmp_0.arg0 = r0; - s.callLocIdx = 1376; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1467; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessDown__P4960.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__P5000.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__P4960_mk(s) { +function scene_systemMenu_brightnessDown__P5000_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessDown__P4960, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_brightnessDown__P5000, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42627,7 +47762,7 @@ function scene_systemMenu_brightnessDown__P4960_mk(s) { -function scene_systemMenu_setScreenBrightness__P4961(s) { +function scene_systemMenu_setScreenBrightness__P5001(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42644,26 +47779,26 @@ switch (step) { s.tmp_0 = helpers_setScreenBrightness__P1810_mk(s); s.tmp_0.arg0 = globals.screen___1877; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1377; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1468; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; s.tmp_0 = settings_writeNumber__P1908_mk(s); s.tmp_0.arg0 = "#brightness"; r0 = globals.brightness___1798; s.tmp_0.arg1 = r0; - s.callLocIdx = 1379; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1470; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_setScreenBrightness__P4961.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__P5001.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__P4961_mk(s) { +function scene_systemMenu_setScreenBrightness__P5001_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setScreenBrightness__P4961, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setScreenBrightness__P5001, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -42693,7 +47828,7 @@ switch (step) { s.tmp_0.arg1 = 100; r0 = (s.arg1 | 0); s.tmp_0.arg2 = r0; - s.callLocIdx = 131; s.pc = 1; return s.tmp_0; + s.callLocIdx = 165; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; s.arg1 = (r0); @@ -42719,7 +47854,7 @@ function helpers_setScreenBrightness__P1810_mk(s) { -function scene_systemMenu_brightnessUp__P4959(s) { +function scene_systemMenu_brightnessUp__P4999(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42729,24 +47864,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_setScreenBrightness__P4961_mk(s); + s.tmp_0 = scene_systemMenu_setScreenBrightness__P5001_mk(s); r0 = globals.brightness___1798; s.tmp_1 = r0; r0 = (s.tmp_1 + 5); s.tmp_0.arg0 = r0; - s.callLocIdx = 1374; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1465; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessUp__P4959.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__P4999.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__P4959_mk(s) { +function scene_systemMenu_brightnessUp__P4999_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessUp__P4959, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_brightnessUp__P4999, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42756,7 +47891,7 @@ function scene_systemMenu_brightnessUp__P4959_mk(s) { -function scene_systemMenu_volumeDown__P4958(s) { +function scene_systemMenu_volumeDown__P4998(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42766,54 +47901,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___19358 = undefined; - s.remainder___19361 = undefined; - s.newVolume___19364 = undefined; + s.v___21144 = undefined; + s.remainder___21147 = undefined; + s.newVolume___21150 = undefined; s.tmp_0 = music_volume__P1621_mk(s); - s.callLocIdx = 1371; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1462; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.v___19358 = (r0); - r0 = (s.v___19358 % 32); - s.remainder___19361 = (r0); - r0 = pxsim_numops_toBoolDecr(s.remainder___19361); + s.v___21144 = (r0); + r0 = (s.v___21144 % 32); + s.remainder___21147 = (r0); + r0 = pxsim_numops_toBoolDecr(s.remainder___21147); if (!r0) { step = 1; continue; } - r0 = s.remainder___19361; + r0 = s.remainder___21147; { step = 2; continue; } case 1: r0 = 32; case 2: // jmp value (already in r0) s.tmp_0 = r0; - r0 = (s.v___19358 - s.tmp_0); - s.newVolume___19364 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P4956_mk(s); - s.tmp_0.arg0 = s.newVolume___19364; - s.callLocIdx = 1372; s.pc = 4; return s.tmp_0; + r0 = (s.v___21144 - s.tmp_0); + s.newVolume___21150 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P4996_mk(s); + s.tmp_0.arg0 = s.newVolume___21150; + s.callLocIdx = 1463; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeDown__P4958.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__P4998.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__P4958_mk(s) { +function scene_systemMenu_volumeDown__P4998_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeDown__P4958, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_volumeDown__P4998, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - v___19358: undefined, - remainder___19361: undefined, - newVolume___19364: undefined, + v___21144: undefined, + remainder___21147: undefined, + newVolume___21150: undefined, } } -function scene_systemMenu_setVolume__P4956(s) { +function scene_systemMenu_setVolume__P4996(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42829,31 +47964,31 @@ switch (step) { } s.tmp_0 = music_setVolume__P1620_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1366; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1457; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; s.tmp_0 = music_playTone__P1622_mk(s); s.tmp_0.arg0 = 440; s.tmp_0.arg1 = 500; - s.callLocIdx = 1367; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1458; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; s.tmp_0 = settings_writeNumber__P1908_mk(s); s.tmp_0.arg0 = "#volume"; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1368; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1459; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_setVolume__P4956.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__P4996.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__P4956_mk(s) { +function scene_systemMenu_setVolume__P4996_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setVolume__P4956, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setVolume__P4996, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -42873,7 +48008,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.id___19290 = undefined; + s.id___21076 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -42898,7 +48033,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_2 = music_playNoteCore__P4365_mk(s); + s.tmp_2 = music_playNoteCore__P4405_mk(s); s.tmp_2.arg0 = 0; s.tmp_2.arg1 = s.arg0; r0 = pxsim_pxtrt_ldlocRef(s.arg1); @@ -42914,13 +48049,13 @@ switch (step) { r0 = s.retval; { step = 4; continue; } case 3: - r0 = (globals.playToneID___4367 + 1); + r0 = (globals.playToneID___4407 + 1); s.tmp_0 = r0; - globals.playToneID___4367 = (r0); - s.id___19290 = (s.tmp_0); - r0 = pxsim_pxtcore_mkAction(3, music_playTone_inline__P19296); + globals.playToneID___4407 = (r0); + s.id___21076 = (s.tmp_0); + r0 = pxsim_pxtcore_mkAction(3, music_playTone_inline__P21082); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___19290); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___21076); 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); @@ -42939,7 +48074,7 @@ function music_playTone__P1622_mk(s) { tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - id___19290: undefined, + id___21076: undefined, arg0: undefined, arg1: undefined, } } @@ -42948,7 +48083,7 @@ function music_playTone__P1622_mk(s) { -function music_playTone_inline__P19296(s) { +function music_playTone_inline__P21082(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42958,14 +48093,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pos___19297 = undefined; - s.now___19307 = undefined; - s.d___19310 = undefined; - s.t___19314 = undefined; + s.pos___21083 = undefined; + s.now___21093 = undefined; + s.d___21096 = undefined; + s.t___21100 = undefined; r0 = pxsim.control.millis(); - s.pos___19297 = (r0); + s.pos___21083 = (r0); case 1: - r0 = (s.caps[0] == globals.playToneID___4367); + r0 = (s.caps[0] == globals.playToneID___4407); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 2; continue; } @@ -42981,9 +48116,9 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 6; continue; } r0 = pxsim.control.millis(); - s.now___19307 = (r0); - r0 = (s.pos___19297 - s.now___19307); - s.d___19310 = (r0); + s.now___21093 = (r0); + r0 = (s.pos___21083 - s.now___21093); + s.d___21096 = (r0); s.tmp_0 = Math_min__P131_mk(s); r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_0.arg0 = r0; @@ -42991,20 +48126,20 @@ switch (step) { s.callLocIdx = 78; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.t___19314 = (r0); + s.t___21100 = (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___19314); + r0 = (s.tmp_2 - s.t___21100); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = (s.pos___19297 + s.t___19314); - s.pos___19297 = (r0); - s.tmp_0 = music_playNoteCore__P4365_mk(s); - r0 = (s.d___19310 - 1); + r0 = (s.pos___21083 + s.t___21100); + s.pos___21083 = (r0); + s.tmp_0 = music_playNoteCore__P4405_mk(s); + r0 = (s.d___21096 - 1); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.caps[2]; - s.tmp_0.arg2 = s.t___19314; + s.tmp_0.arg2 = s.t___21100; s.callLocIdx = 79; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; @@ -43015,7 +48150,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } s.tmp_2 = pause__P413_mk(s); - r0 = (s.d___19310 + s.t___19314); + r0 = (s.d___21096 + s.t___21100); s.tmp_2.arg0 = r0; s.callLocIdx = 80; s.pc = 9; return s.tmp_2; case 9: @@ -43023,7 +48158,7 @@ switch (step) { { step = 5; continue; } case 4: s.tmp_0 = pause__P413_mk(s); - r0 = (s.d___19310 + s.t___19314); + r0 = (s.d___21096 + s.t___21100); s.tmp_1 = r0; r0 = (s.tmp_1 - 100); s.tmp_0.arg0 = r0; @@ -43037,27 +48172,27 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_playTone_inline__P19296.info = {"start":2890,"length":515,"line":92,"column":34,"endLine":106,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} +music_playTone_inline__P21082.info = {"start":2890,"length":515,"line":92,"column":34,"endLine":106,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} -function music_playTone_inline__P19296_mk(s) { +function music_playTone_inline__P21082_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playTone_inline__P19296, depth: s.depth + 1, + parent: s, fn: music_playTone_inline__P21082, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - pos___19297: undefined, - now___19307: undefined, - d___19310: undefined, - t___19314: undefined, + pos___21083: undefined, + now___21093: undefined, + d___21096: undefined, + t___21100: undefined, } } -function music_playNoteCore__P4365(s) { +function music_playNoteCore__P4405(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43067,7 +48202,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___19344 = undefined; + s.buf___21130 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -43075,9 +48210,9 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim.control.createBuffer(12); - s.buf___19344 = (r0); - s.tmp_0 = music_addNote__P4372_mk(s); - s.tmp_0.arg0 = s.buf___19344; + s.buf___21130 = (r0); + s.tmp_0 = music_addNote__P4412_mk(s); + s.tmp_0.arg0 = s.buf___21130; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = s.arg2; s.tmp_0.arg3 = 255; @@ -43093,21 +48228,21 @@ switch (step) { s.callLocIdx = 75; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___19344); + r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___21130); r0 = undefined; return leave(s, r0) default: oops() } } } -music_playNoteCore__P4365.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__P4405.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__P4365_mk(s) { +function music_playNoteCore__P4405_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playNoteCore__P4365, depth: s.depth + 1, + parent: s, fn: music_playNoteCore__P4405, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - buf___19344: undefined, + buf___21130: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -43117,7 +48252,7 @@ function music_playNoteCore__P4365_mk(s) { -function scene_systemMenu_volumeUp__P4957(s) { +function scene_systemMenu_volumeUp__P4997(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43127,40 +48262,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___19258 = undefined; - s.remainder___19261 = undefined; - s.newVolume___19264 = undefined; + s.v___21044 = undefined; + s.remainder___21047 = undefined; + s.newVolume___21050 = undefined; s.tmp_0 = music_volume__P1621_mk(s); - s.callLocIdx = 1369; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1460; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.v___19258 = (r0); - r0 = (s.v___19258 % 32); - s.remainder___19261 = (r0); - r0 = (s.v___19258 + 32); + s.v___21044 = (r0); + r0 = (s.v___21044 % 32); + s.remainder___21047 = (r0); + r0 = (s.v___21044 + 32); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.remainder___19261); - s.newVolume___19264 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P4956_mk(s); - s.tmp_0.arg0 = s.newVolume___19264; - s.callLocIdx = 1370; s.pc = 2; return s.tmp_0; + r0 = (s.tmp_0 - s.remainder___21047); + s.newVolume___21050 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P4996_mk(s); + s.tmp_0.arg0 = s.newVolume___21050; + s.callLocIdx = 1461; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeUp__P4957.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__P4997.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__P4957_mk(s) { +function scene_systemMenu_volumeUp__P4997_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeUp__P4957, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_volumeUp__P4997, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - v___19258: undefined, - remainder___19261: undefined, - newVolume___19264: undefined, + v___21044: undefined, + remainder___21047: undefined, + newVolume___21050: undefined, } } @@ -43177,7 +48312,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___4998); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___5038); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; @@ -43213,21 +48348,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___4952); + r0 = pxsim_numops_toBoolDecr(globals.instance___4992); if (!r0) { step = 1; continue; } s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P2889_mk(s); - s.tmp_0.arg0 = globals.instance___4952; - s.callLocIdx = 1385; s.pc = 3; return s.tmp_0; + s.tmp_0.arg0 = globals.instance___4992; + s.callLocIdx = 1476; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.instance___4952 = (undefined); + globals.instance___4992 = (undefined); s.tmp_0 = controller__setUserEventsEnabled__P2049_mk(s); s.tmp_0.arg0 = true; - s.callLocIdx = 1386; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1477; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; s.tmp_0 = game_popScene__P2797_mk(s); - s.callLocIdx = 1387; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1478; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 1: @@ -43273,8 +48408,8 @@ switch (step) { s.tmp_1 = helpers_arrayForEach__P109_mk(s); r0 = s.arg0.fields["options"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = scene_systemMenu_PauseMenu_dispose_inline__P18735; - s.callLocIdx = 1362; s.pc = 3; return s.tmp_1; + s.tmp_1.arg1 = scene_systemMenu_PauseMenu_dispose_inline__P20689; + s.callLocIdx = 1453; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; r0 = (s.arg0).fields["options"] = (undefined); @@ -43300,7 +48435,7 @@ function scene_systemMenu_PauseMenu_dispose__P2889_mk(s) { -function scene_systemMenu_PauseMenu_dispose_inline__P18735(s) { +function scene_systemMenu_PauseMenu_dispose_inline__P20689(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43316,19 +48451,19 @@ switch (step) { } s.tmp_0 = scene_systemMenu_MenuOption_dispose__P2882_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1361; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1452; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_dispose_inline__P18735.info = {"start":7813,"length":16,"line":245,"column":37,"endLine":245,"endColumn":53,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["o"]} +scene_systemMenu_PauseMenu_dispose_inline__P20689.info = {"start":7813,"length":16,"line":245,"column":37,"endLine":245,"endColumn":53,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["o"]} -function scene_systemMenu_PauseMenu_dispose_inline__P18735_mk(s) { +function scene_systemMenu_PauseMenu_dispose_inline__P20689_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_dispose_inline__P18735, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_dispose_inline__P20689, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -43363,7 +48498,7 @@ switch (step) { s.tmp_1.arg0 = r0; s.tmp_1.arg1 = undefined; s.tmp_1.arg2 = undefined; - s.callLocIdx = 1281; s.pc = 3; return s.tmp_1; + s.callLocIdx = 1372; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0 = Sprite_destroy__P2269_mk(s); @@ -43371,7 +48506,7 @@ switch (step) { s.tmp_0.arg0 = r0; s.tmp_0.arg1 = undefined; s.tmp_0.arg2 = undefined; - s.callLocIdx = 1282; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1373; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = (s.arg0).fields["card"] = (undefined); @@ -43398,39 +48533,6 @@ function scene_systemMenu_MenuOption_dispose__P2882_mk(s) { -function controller__setUserEventsEnabled__P2049(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - globals._userEventsEnabled___4510 = (s.arg0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -controller__setUserEventsEnabled__P2049.info = {"start":10070,"length":101,"line":291,"column":4,"endLine":293,"endColumn":5,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"_setUserEventsEnabled","argumentNames":["enabled"]} - -function controller__setUserEventsEnabled__P2049_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller__setUserEventsEnabled__P2049, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - function scene_systemMenu_MenuOption_constructor__P2876(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43516,11 +48618,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.out___18978 = undefined; - s.value___18981 = undefined; + s.out___20929 = undefined; + s.value___20932 = undefined; s.unnamed54___U2 = undefined; s.unnamed55___U3 = undefined; - s.value___18988 = undefined; + s.value___20939 = undefined; s.unnamed56___U5 = undefined; s.unnamed57___U6 = undefined; if (s.lambdaArgs) { @@ -43529,8 +48631,8 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.out___18978 = (r0); - s.value___18981 = (undefined); + s.out___20929 = (r0); + s.value___20932 = (undefined); s.unnamed54___U2 = (s.arg0); s.unnamed55___U3 = (0); case 1: @@ -43540,14 +48642,14 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } r0 = pxsim_Array__getAt(s.unnamed54___U2, s.unnamed55___U3); - s.value___18981 = (r0); - r0 = pxsim_Array__push(s.out___18978, s.value___18981); + s.value___20932 = (r0); + r0 = pxsim_Array__push(s.out___20929, s.value___20932); r0 = (s.unnamed55___U3 + 1); s.unnamed55___U3 = (r0); { step = 1; continue; } case 2: s.unnamed54___U2 = (undefined); - s.value___18988 = (undefined); + s.value___20939 = (undefined); s.unnamed56___U5 = (s.arg1); s.unnamed57___U6 = (0); case 3: @@ -43557,14 +48659,14 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } r0 = pxsim_Array__getAt(s.unnamed56___U5, s.unnamed57___U6); - s.value___18988 = (r0); - r0 = pxsim_Array__push(s.out___18978, s.value___18988); + s.value___20939 = (r0); + r0 = pxsim_Array__push(s.out___20929, s.value___20939); r0 = (s.unnamed57___U6 + 1); s.unnamed57___U6 = (r0); { step = 3; continue; } case 4: s.unnamed56___U5 = (undefined); - r0 = s.out___18978; + r0 = s.out___20929; return leave(s, r0) default: oops() } } } @@ -43577,11 +48679,11 @@ function helpers_arrayConcat__P113_mk(s) { pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - out___18978: undefined, - value___18981: undefined, + out___20929: undefined, + value___20932: undefined, unnamed54___U2: undefined, unnamed55___U3: undefined, - value___18988: undefined, + value___20939: undefined, unnamed56___U5: undefined, unnamed57___U6: undefined, arg0: undefined, @@ -43602,8 +48704,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___18291 = undefined; - s.i___18292 = undefined; + s.current___20245 = undefined; + s.i___20246 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -43615,21 +48717,21 @@ switch (step) { 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 = 1294; s.pc = 3; return s.tmp_2; + s.callLocIdx = 1385; 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 = 1294; s.pc = 3; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1294; s.pc = 3; return s.tmp_2;; } - else { s.callLocIdx = 1294; 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 = 1385; s.pc = 3; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1385; s.pc = 3; return s.tmp_2;; } + else { s.callLocIdx = 1385; 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___18292 = (0); + s.i___20246 = (0); case 1: - s.tmp_1 = r0 = s.i___18292; + s.tmp_1 = r0 = s.i___20246; r0 = s.arg0.fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -43640,22 +48742,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___18292); - s.current___18291 = (r0); + r0 = pxsim_Array__getAt(s.tmp_4, s.i___20246); + s.current___20245 = (r0); s.tmp_0 = scene_systemMenu_MenuOption_show__P2877_mk(s); - s.tmp_0.arg0 = s.current___18291; - s.callLocIdx = 1295; s.pc = 4; return s.tmp_0; + s.tmp_0.arg0 = s.current___20245; + s.callLocIdx = 1386; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P2880_mk(s); - s.tmp_0.arg0 = s.current___18291; + s.tmp_0.arg0 = s.current___20245; r0 = s.arg0.fields["theme"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 1296; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1387; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; s.tmp_0 = scene_systemMenu_MenuOption_position__P2878_mk(s); - s.tmp_0.arg0 = s.current___18291; + s.tmp_0.arg0 = s.current___20245; s.tmp_2 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_2.arg0 = r0; @@ -43665,12 +48767,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 = 1297; s.pc = 7; return s.tmp_2; } + else { s.callLocIdx = 1388; s.pc = 7; return s.tmp_2; } } case 7: r0 = s.retval; s.tmp_1 = r0; - s.tmp_5 = r0 = s.i___18292; + s.tmp_5 = r0 = s.i___20246; s.tmp_7 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_7.arg0 = r0; @@ -43680,7 +48782,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 = 1298; s.pc = 8; return s.tmp_7; } + else { s.callLocIdx = 1389; s.pc = 8; return s.tmp_7; } } case 8: r0 = s.retval; @@ -43696,7 +48798,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 = 1299; s.pc = 9; return s.tmp_10; } + else { s.callLocIdx = 1390; s.pc = 9; return s.tmp_10; } } case 9: r0 = s.retval; @@ -43710,7 +48812,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 = 1300; s.pc = 10; return s.tmp_12; } + else { s.callLocIdx = 1391; s.pc = 10; return s.tmp_12; } } case 10: r0 = s.retval; @@ -43730,12 +48832,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 = 1301; s.pc = 11; return s.tmp_14; } + else { s.callLocIdx = 1392; s.pc = 11; return s.tmp_14; } } case 11: r0 = s.retval; s.tmp_13 = r0; - s.tmp_17 = r0 = s.i___18292; + s.tmp_17 = r0 = s.i___20246; s.tmp_19 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_19.arg0 = r0; @@ -43745,7 +48847,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 = 1302; s.pc = 12; return s.tmp_19; } + else { s.callLocIdx = 1393; s.pc = 12; return s.tmp_19; } } case 12: r0 = s.retval; @@ -43761,7 +48863,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 = 1303; s.pc = 13; return s.tmp_22; } + else { s.callLocIdx = 1394; s.pc = 13; return s.tmp_22; } } case 13: r0 = s.retval; @@ -43775,7 +48877,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 = 1304; s.pc = 14; return s.tmp_24; } + else { s.callLocIdx = 1395; s.pc = 14; return s.tmp_24; } } case 14: r0 = s.retval; @@ -43786,104 +48888,104 @@ switch (step) { s.tmp_15 = r0; r0 = (s.tmp_13 + s.tmp_15); s.tmp_0.arg2 = r0; - s.callLocIdx = 1305; s.pc = 6; return s.tmp_0; + s.callLocIdx = 1396; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - r0 = (s.i___18292 + 1); - s.i___18292 = (r0); + r0 = (s.i___20246 + 1); + s.i___20246 = (r0); { step = 1; continue; } case 2: s.tmp_0 = controller__setUserEventsEnabled__P2049_mk(s); s.tmp_0.arg0 = false; - s.callLocIdx = 1306; s.pc = 15; return s.tmp_0; + s.callLocIdx = 1397; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P18355); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P20309); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); s.tmp_1 = controller_Button_onEvent__P2039_mk(s); s.tmp_1.arg0 = globals.A___1957; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1308; s.pc = 16; return s.tmp_1; + s.callLocIdx = 1399; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P18375); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P20329); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); s.tmp_1 = controller_Button_onEvent__P2039_mk(s); s.tmp_1.arg0 = globals.A___1957; s.tmp_1.arg1 = 2052; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1310; s.pc = 17; return s.tmp_1; + s.callLocIdx = 1401; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; s.tmp_0 = controller_Button_onEvent__P2039_mk(s); s.tmp_0.arg0 = globals.B___1958; s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P18404; - s.callLocIdx = 1312; s.pc = 18; return s.tmp_0; + s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P20358; + s.callLocIdx = 1403; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; s.tmp_0 = controller_Button_onEvent__P2039_mk(s); s.tmp_0.arg0 = globals.menu___1963; s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P18409; - s.callLocIdx = 1314; s.pc = 19; return s.tmp_0; + s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P20363; + s.callLocIdx = 1405; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P18414); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P20368); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); s.tmp_1 = controller_Button_onEvent__P2039_mk(s); s.tmp_1.arg0 = globals.up___1960; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1318; s.pc = 20; return s.tmp_1; + s.callLocIdx = 1409; s.pc = 20; return s.tmp_1; case 20: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P18426); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P20380); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); s.tmp_1 = controller_Button_onEvent__P2039_mk(s); s.tmp_1.arg0 = globals.left___1959; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1321; s.pc = 21; return s.tmp_1; + s.callLocIdx = 1412; s.pc = 21; return s.tmp_1; case 21: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P18435); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P20389); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); s.tmp_1 = controller_Button_onEvent__P2039_mk(s); s.tmp_1.arg0 = globals.down___1962; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1325; s.pc = 22; return s.tmp_1; + s.callLocIdx = 1416; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P18451); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P20405); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); s.tmp_1 = controller_Button_onEvent__P2039_mk(s); s.tmp_1.arg0 = globals.right___1961; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1328; s.pc = 23; return s.tmp_1; + s.callLocIdx = 1419; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P18463); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P20417); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); s.tmp_1 = game_onShade__P2805_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 1331; s.pc = 24; return s.tmp_1; + s.callLocIdx = 1422; s.pc = 24; return s.tmp_1; case 24: r0 = s.retval; s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P2887_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.callLocIdx = 1332; s.pc = 25; return s.tmp_0; + s.callLocIdx = 1423; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; r0 = undefined; @@ -43922,8 +49024,8 @@ function scene_systemMenu_PauseMenu_show__P2885_mk(s) { tmp_22: undefined, tmp_23: undefined, tmp_24: undefined, - current___18291: undefined, - i___18292: undefined, + current___20245: undefined, + i___20246: undefined, arg0: undefined, } } @@ -43931,7 +49033,7 @@ function scene_systemMenu_PauseMenu_show__P2885_mk(s) { -function scene_systemMenu_PauseMenu_show_inline__P18355(s) { +function scene_systemMenu_PauseMenu_show_inline__P20309(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43977,7 +49079,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 = 1307; s.pc = 6; return s.tmp_8; + s.callLocIdx = 1398; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; case 5: @@ -43985,12 +49087,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P18355.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P20309.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_PauseMenu_show_inline__P18355_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P20309_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P18355, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P20309, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44009,7 +49111,7 @@ function scene_systemMenu_PauseMenu_show_inline__P18355_mk(s) { -function scene_systemMenu_PauseMenu_show_inline__P18375(s) { +function scene_systemMenu_PauseMenu_show_inline__P20329(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44055,7 +49157,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 = 1309; s.pc = 6; return s.tmp_8; + s.callLocIdx = 1400; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; r0 = s.caps[0].fields["options"]; @@ -44071,12 +49173,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P18375.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P20329.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_PauseMenu_show_inline__P18375_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P20329_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P18375, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P20329, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44095,7 +49197,7 @@ function scene_systemMenu_PauseMenu_show_inline__P18375_mk(s) { -function scene_systemMenu_PauseMenu_show_inline__P18404(s) { +function scene_systemMenu_PauseMenu_show_inline__P20358(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44106,19 +49208,19 @@ switch (step) { case 0: s.tmp_0 = scene_systemMenu_closeMenu__P2890_mk(s); - s.callLocIdx = 1311; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1402; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P18404.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P20358.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_PauseMenu_show_inline__P18404_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P20358_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P18404, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P20358, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -44127,7 +49229,7 @@ function scene_systemMenu_PauseMenu_show_inline__P18404_mk(s) { -function scene_systemMenu_PauseMenu_show_inline__P18409(s) { +function scene_systemMenu_PauseMenu_show_inline__P20363(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44138,19 +49240,19 @@ switch (step) { case 0: s.tmp_0 = scene_systemMenu_closeMenu__P2890_mk(s); - s.callLocIdx = 1313; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1404; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P18409.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P20363.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_PauseMenu_show_inline__P18409_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P20363_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P18409, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P20363, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -44159,7 +49261,7 @@ function scene_systemMenu_PauseMenu_show_inline__P18409_mk(s) { -function scene_systemMenu_PauseMenu_show_inline__P18414(s) { +function scene_systemMenu_PauseMenu_show_inline__P20368(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44184,30 +49286,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 = 1315; s.pc = 3; return s.tmp_4; } + else { s.callLocIdx = 1406; 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 = 1316; s.pc = 2; return s.tmp_1; + s.callLocIdx = 1407; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 1317; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1408; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P18414.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P20368.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_PauseMenu_show_inline__P18414_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P20368_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P18414, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P20368, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44220,7 +49322,7 @@ function scene_systemMenu_PauseMenu_show_inline__P18414_mk(s) { -function scene_systemMenu_PauseMenu_show_inline__P18426(s) { +function scene_systemMenu_PauseMenu_show_inline__P20380(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44238,23 +49340,23 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_2 - 1); s.tmp_1.arg1 = r0; - s.callLocIdx = 1319; s.pc = 2; return s.tmp_1; + s.callLocIdx = 1410; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 1320; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1411; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P18426.info = {"start":4927,"length":89,"line":163,"column":53,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P20380.info = {"start":4927,"length":89,"line":163,"column":53,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_PauseMenu_show_inline__P18426_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P20380_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P18426, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P20380, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44265,7 +49367,7 @@ function scene_systemMenu_PauseMenu_show_inline__P18426_mk(s) { -function scene_systemMenu_PauseMenu_show_inline__P18435(s) { +function scene_systemMenu_PauseMenu_show_inline__P20389(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44295,30 +49397,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 = 1322; s.pc = 3; return s.tmp_6; } + else { s.callLocIdx = 1413; 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 = 1323; s.pc = 2; return s.tmp_1; + s.callLocIdx = 1414; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 1324; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1415; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P18435.info = {"start":5073,"length":132,"line":167,"column":53,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P20389.info = {"start":5073,"length":132,"line":167,"column":53,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_PauseMenu_show_inline__P18435_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P20389_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P18435, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P20389, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44333,7 +49435,7 @@ function scene_systemMenu_PauseMenu_show_inline__P18435_mk(s) { -function scene_systemMenu_PauseMenu_show_inline__P18451(s) { +function scene_systemMenu_PauseMenu_show_inline__P20405(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44356,23 +49458,23 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 1); s.tmp_1.arg1 = r0; - s.callLocIdx = 1326; s.pc = 2; return s.tmp_1; + s.callLocIdx = 1417; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 1327; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1418; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P18451.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P20405.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_PauseMenu_show_inline__P18451_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P20405_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P18451, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P20405, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44385,7 +49487,7 @@ function scene_systemMenu_PauseMenu_show_inline__P18451_mk(s) { -function scene_systemMenu_PauseMenu_show_inline__P18463(s) { +function scene_systemMenu_PauseMenu_show_inline__P20417(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44397,24 +49499,24 @@ switch (step) { s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P2886_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 1329; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1420; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P2888_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 1330; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1421; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P18463.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P20417.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function scene_systemMenu_PauseMenu_show_inline__P18463_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P20417_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P18463, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P20417, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -44465,7 +49567,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 = 1343; s.pc = 5; return s.tmp_5; } + else { s.callLocIdx = 1434; s.pc = 5; return s.tmp_5; } } case 5: r0 = s.retval; @@ -44473,7 +49575,7 @@ switch (step) { r0 = (s.tmp_4 - 2); s.tmp_3.arg4 = r0; s.tmp_3.arg5 = 15; - s.callLocIdx = 1344; s.pc = 4; return s.tmp_3; + s.callLocIdx = 1435; s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; s.tmp_0 = helpers_imagePrintCenter__P1834_mk(s); @@ -44487,7 +49589,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 = 1345; s.pc = 7; return s.tmp_1; } + else { s.callLocIdx = 1436; s.pc = 7; return s.tmp_1; } } case 7: r0 = s.retval; @@ -44503,12 +49605,12 @@ 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 = 1346; s.pc = 8; return s.tmp_2; } + else { s.callLocIdx = 1437; s.pc = 8; return s.tmp_2; } } case 8: r0 = s.retval; s.tmp_0.arg4 = r0; - s.callLocIdx = 1347; s.pc = 6; return s.tmp_0; + s.callLocIdx = 1438; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; s.tmp_0 = helpers_imageFillRect__P1803_mk(s); @@ -44523,7 +49625,7 @@ 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 = 1348; s.pc = 10; return s.tmp_2; } + else { s.callLocIdx = 1439; s.pc = 10; return s.tmp_2; } } case 10: r0 = s.retval; @@ -44543,7 +49645,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 = 1349; s.pc = 11; return s.tmp_6; } + else { s.callLocIdx = 1440; s.pc = 11; return s.tmp_6; } } case 11: r0 = s.retval; @@ -44553,7 +49655,7 @@ switch (step) { r0 = (s.tmp_3 + 6); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 15; - s.callLocIdx = 1350; s.pc = 9; return s.tmp_0; + s.callLocIdx = 1441; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; s.tmp_0 = helpers_imageFillRect__P1803_mk(s); @@ -44567,7 +49669,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 = 1351; s.pc = 13; return s.tmp_1; } + else { s.callLocIdx = 1442; s.pc = 13; return s.tmp_1; } } case 13: r0 = s.retval; @@ -44581,7 +49683,7 @@ 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 = 1352; s.pc = 14; return s.tmp_2; } + else { s.callLocIdx = 1443; s.pc = 14; return s.tmp_2; } } case 14: r0 = s.retval; @@ -44597,7 +49699,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 = 1353; s.pc = 15; return s.tmp_6; } + else { s.callLocIdx = 1444; s.pc = 15; return s.tmp_6; } } case 15: r0 = s.retval; @@ -44616,7 +49718,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 = 1354; s.pc = 17; return s.tmp_9; } + else { s.callLocIdx = 1445; s.pc = 17; return s.tmp_9; } } case 17: r0 = s.retval; @@ -44627,7 +49729,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 = 1355; s.pc = 16; return s.tmp_8; } + else { s.callLocIdx = 1446; s.pc = 16; return s.tmp_8; } } case 16: r0 = s.retval; @@ -44635,7 +49737,7 @@ switch (step) { r0 = (s.tmp_7 + 1); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 1; - s.callLocIdx = 1356; s.pc = 12; return s.tmp_0; + s.callLocIdx = 1447; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; s.tmp_0 = helpers_imagePrintCenter__P1834_mk(s); @@ -44649,12 +49751,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 = 1357; s.pc = 19; return s.tmp_1; + s.callLocIdx = 1448; 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 = 1357; s.pc = 19; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 1357; s.pc = 19; return s.tmp_1;; } - else { s.callLocIdx = 1357; 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 = 1448; s.pc = 19; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 1448; s.pc = 19; return s.tmp_1;; } + else { s.callLocIdx = 1448; s.pc = 19; return s.tmp_1; } } case 19: r0 = s.retval; @@ -44668,7 +49770,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 = 1358; s.pc = 20; return s.tmp_5; } + else { s.callLocIdx = 1449; s.pc = 20; return s.tmp_5; } } case 20: r0 = s.retval; @@ -44685,12 +49787,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 = 1359; s.pc = 21; return s.tmp_6; } + else { s.callLocIdx = 1450; s.pc = 21; return s.tmp_6; } } case 21: r0 = s.retval; s.tmp_0.arg4 = r0; - s.callLocIdx = 1360; s.pc = 18; return s.tmp_0; + s.callLocIdx = 1451; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; case 3: @@ -44766,7 +49868,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 = 1340; s.pc = 10; return s.tmp_6; + s.callLocIdx = 1431; s.pc = 10; return s.tmp_6; case 10: r0 = s.retval; case 3: @@ -44805,14 +49907,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 = 1341; s.pc = 12; return s.tmp_6; + s.callLocIdx = 1432; s.pc = 12; return s.tmp_6; case 12: r0 = s.retval; case 7: case 8: - s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P4955_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P4995_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1342; s.pc = 13; return s.tmp_0; + s.callLocIdx = 1433; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; case 9: @@ -44844,7 +49946,7 @@ function scene_systemMenu_PauseMenu_setSelection__P2887_mk(s) { -function scene_systemMenu_PauseMenu_updateScrollTarget__P4955(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P4995(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44854,7 +49956,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.row___18681 = undefined; + s.row___20635 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -44872,23 +49974,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 = 1363; s.pc = 8; return s.tmp_2; } + else { s.callLocIdx = 1454; 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___18681 = (r0); + s.row___20635 = (r0); r0 = s.arg0.fields["scrollRow"]; s.tmp_1 = r0; - r0 = (s.row___18681 === s.tmp_1); + r0 = (s.row___20635 === 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___18681 - 1); + r0 = (s.row___20635 - 1); s.tmp_2 = r0; r0 = s.arg0.fields["scrollRow"]; s.tmp_3 = r0; @@ -44903,7 +50005,7 @@ switch (step) { case 4: r0 = s.arg0.fields["scrollRow"]; s.tmp_6 = r0; - r0 = (s.row___18681 > s.tmp_6); + r0 = (s.row___20635 > s.tmp_6); s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 5; continue; } @@ -44934,7 +50036,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 = 1364; s.pc = 9; return s.tmp_5; } + else { s.callLocIdx = 1455; s.pc = 9; return s.tmp_5; } } case 9: r0 = s.retval; @@ -44948,7 +50050,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 = 1365; s.pc = 10; return s.tmp_7; } + else { s.callLocIdx = 1456; s.pc = 10; return s.tmp_7; } } case 10: r0 = s.retval; @@ -44963,12 +50065,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_updateScrollTarget__P4955.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__P4995.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__P4955_mk(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P4995_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P4955, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P4995, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44980,7 +50082,7 @@ function scene_systemMenu_PauseMenu_updateScrollTarget__P4955_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - row___18681: undefined, + row___20635: undefined, arg0: undefined, } } @@ -44998,9 +50100,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.t___18541 = undefined; - s.i___18545 = undefined; - s.dt___18574 = undefined; + s.t___20495 = undefined; + s.i___20499 = undefined; + s.dt___20528 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -45010,10 +50112,10 @@ switch (step) { r0 = pxsim.control.millis(); s.tmp_0 = r0; r0 = (s.tmp_0 / 250); - s.t___18541 = (r0); - s.i___18545 = (0); + s.t___20495 = (r0); + s.i___20499 = (0); case 1: - s.tmp_1 = r0 = s.i___18545; + s.tmp_1 = r0 = s.i___20499; r0 = s.arg0.fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -45025,10 +50127,10 @@ switch (step) { s.tmp_4 = scene_systemMenu_MenuOption_setOffset__P2879_mk(s); r0 = s.arg0.fields["options"]; s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.i___18545); + r0 = pxsim_Array__getAt(s.tmp_5, s.i___20499); s.tmp_4.arg0 = r0; - s.tmp_8 = r0 = s.t___18541; - s.tmp_11 = r0 = s.i___18545; + s.tmp_8 = r0 = s.t___20495; + s.tmp_11 = r0 = s.i___20499; s.tmp_13 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_13.arg0 = r0; @@ -45038,7 +50140,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 = 1333; s.pc = 11; return s.tmp_13; } + else { s.callLocIdx = 1424; s.pc = 11; return s.tmp_13; } } case 11: r0 = s.retval; @@ -45053,15 +50155,15 @@ switch (step) { s.tmp_6 = r0; r0 = (2 * s.tmp_6); s.tmp_4.arg1 = r0; - s.callLocIdx = 1334; s.pc = 10; return s.tmp_4; + s.callLocIdx = 1425; s.pc = 10; return s.tmp_4; case 10: r0 = s.retval; - r0 = (s.i___18545 + 1); - s.i___18545 = (r0); + r0 = (s.i___20499 + 1); + s.i___20499 = (r0); { step = 1; continue; } case 2: s.tmp_1 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1335; s.pc = 12; return s.tmp_1; + s.callLocIdx = 1426; s.pc = 12; return s.tmp_1; case 12: r0 = s.retval; r0 = r0.fields["eventContext"]; @@ -45069,7 +50171,7 @@ switch (step) { r0 = s.tmp_0.fields["deltaTimeMillis"]; s.tmp_2 = r0; r0 = (s.tmp_2 / 1000); - s.dt___18574 = (r0); + s.dt___20528 = (r0); r0 = s.arg0.fields["scrollOffset"]; s.tmp_1 = r0; r0 = s.arg0.fields["scrollTarget"]; @@ -45081,7 +50183,7 @@ switch (step) { s.tmp_3 = r0 = s.arg0; r0 = s.tmp_3.fields["scrollOffset"]; s.tmp_5 = r0; - r0 = (s.dt___18574 * 100); + r0 = (s.dt___20528 * 100); s.tmp_6 = r0; r0 = (s.tmp_5 + s.tmp_6); s.tmp_4 = r0; @@ -45099,7 +50201,7 @@ switch (step) { s.tmp_3 = r0 = s.arg0; r0 = s.tmp_3.fields["scrollOffset"]; s.tmp_5 = r0; - r0 = (s.dt___18574 * 100); + r0 = (s.dt___20528 * 100); s.tmp_6 = r0; r0 = (s.tmp_5 - s.tmp_6); s.tmp_4 = r0; @@ -45116,7 +50218,7 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_3 - s.tmp_4); s.tmp_2.arg0 = r0; - s.callLocIdx = 1337; s.pc = 13; return s.tmp_2; + s.callLocIdx = 1428; s.pc = 13; return s.tmp_2; case 13: r0 = s.retval; s.tmp_1 = r0; @@ -45131,14 +50233,14 @@ switch (step) { case 8: s.tmp_0 = scene_Camera_offsetY__P2625_mk(s); s.tmp_1 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1338; s.pc = 15; return s.tmp_1; + s.callLocIdx = 1429; 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 = 1339; s.pc = 14; return s.tmp_0; + s.callLocIdx = 1430; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; case 9: @@ -45167,9 +50269,9 @@ function scene_systemMenu_PauseMenu_onUpdate__P2886_mk(s) { tmp_11: undefined, tmp_12: undefined, tmp_13: undefined, - t___18541: undefined, - i___18545: undefined, - dt___18574: undefined, + t___20495: undefined, + i___20499: undefined, + dt___20528: undefined, arg0: undefined, } } @@ -45201,7 +50303,7 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_1 + s.arg1); s.tmp_0.arg1 = r0; - s.callLocIdx = 1276; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1367; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; s.tmp_0 = Sprite_y__P2198_mk(s); @@ -45210,11 +50312,11 @@ switch (step) { s.tmp_1 = Sprite_y__P2197_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 1277; s.pc = 3; return s.tmp_1; + s.callLocIdx = 1368; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 1278; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1369; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; @@ -45265,9 +50367,9 @@ switch (step) { case 1: case 2: r0 = (s.arg0).fields["state"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P4954_mk(s); + s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P4994_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1280; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1371; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 3: @@ -45292,7 +50394,7 @@ function scene_systemMenu_MenuOption_setState__P2881_mk(s) { -function scene_systemMenu_MenuOption_updateCard__P4954(s) { +function scene_systemMenu_MenuOption_updateCard__P4994(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45342,12 +50444,12 @@ 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 = 1283; s.pc = 9; return s.tmp_5; } + else { s.callLocIdx = 1374; s.pc = 9; return s.tmp_5; } } case 9: r0 = s.retval; s.tmp_4.arg1 = r0; - s.callLocIdx = 1284; s.pc = 8; return s.tmp_4; + s.callLocIdx = 1375; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; { step = 6; continue; } @@ -45364,12 +50466,12 @@ 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 = 1285; s.pc = 11; return s.tmp_1; } + else { s.callLocIdx = 1376; s.pc = 11; return s.tmp_1; } } case 11: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 1286; s.pc = 10; return s.tmp_0; + s.callLocIdx = 1377; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; { step = 6; continue; } @@ -45386,12 +50488,12 @@ 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 = 1287; s.pc = 13; return s.tmp_1; } + else { s.callLocIdx = 1378; s.pc = 13; return s.tmp_1; } } case 13: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 1288; s.pc = 12; return s.tmp_0; + s.callLocIdx = 1379; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; case 6: @@ -45401,11 +50503,11 @@ switch (step) { s.tmp_1 = Sprite_x__P2195_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 1289; s.pc = 15; return s.tmp_1; + s.callLocIdx = 1380; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 1290; s.pc = 14; return s.tmp_0; + s.callLocIdx = 1381; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; s.tmp_0 = Sprite_y__P2198_mk(s); @@ -45414,11 +50516,11 @@ switch (step) { s.tmp_1 = Sprite_y__P2197_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 1291; s.pc = 17; return s.tmp_1; + s.callLocIdx = 1382; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 1292; s.pc = 16; return s.tmp_0; + s.callLocIdx = 1383; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; case 7: @@ -45426,12 +50528,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_updateCard__P4954.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__P4994.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__P4954_mk(s) { +function scene_systemMenu_MenuOption_updateCard__P4994_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_updateCard__P4954, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_updateCard__P4994, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -45464,9 +50566,9 @@ switch (step) { r0 = s.arg0; if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2875_VT)) failedCast(r0); r0 = (s.arg0).fields["theme"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P4954_mk(s); + s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P4994_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1279; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1370; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; @@ -45512,14 +50614,14 @@ switch (step) { r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1270; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1361; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; s.tmp_0 = Sprite_top__P2245_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 1271; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1362; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; s.tmp_0 = Sprite_x__P2196_mk(s); @@ -45528,11 +50630,11 @@ switch (step) { s.tmp_1 = Sprite_x__P2195_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 1272; s.pc = 4; return s.tmp_1; + s.callLocIdx = 1363; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 1273; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1364; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; s.tmp_0 = Sprite_y__P2198_mk(s); @@ -45541,11 +50643,11 @@ switch (step) { s.tmp_1 = Sprite_y__P2197_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 1274; s.pc = 6; return s.tmp_1; + s.callLocIdx = 1365; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 1275; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1366; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = undefined; @@ -45599,7 +50701,7 @@ 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 = 1265; s.pc = 3; return s.tmp_1; } + else { s.callLocIdx = 1356; s.pc = 3; return s.tmp_1; } } case 3: r0 = s.retval; @@ -45613,7 +50715,7 @@ switch (step) { s.tmp_5 = sprites_create__P2118_mk(s); s.tmp_5.arg0 = s.tmp_2; s.tmp_5.arg1 = undefined; - s.callLocIdx = 1266; s.pc = 4; return s.tmp_5; + s.callLocIdx = 1357; s.pc = 4; return s.tmp_5; case 4: r0 = s.retval; s.tmp_4 = r0; @@ -45628,7 +50730,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 = 1267; s.pc = 5; return s.tmp_0; } + else { s.callLocIdx = 1358; s.pc = 5; return s.tmp_0; } } case 5: r0 = s.retval; @@ -45637,7 +50739,7 @@ switch (step) { r0 = s.arg0.fields["iconImage"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = undefined; - s.callLocIdx = 1268; s.pc = 6; return s.tmp_2; + s.callLocIdx = 1359; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_1 = r0; @@ -45652,7 +50754,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 = 1269; s.pc = 7; return s.tmp_0; } + else { s.callLocIdx = 1360; s.pc = 7; return s.tmp_0; } } case 7: r0 = s.retval; @@ -45695,9 +50797,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P4708_mk(s); + s.tmp_0 = game_init__P4748_mk(s); s.tmp_0.arg0 = undefined; - s.callLocIdx = 1252; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1343; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg0); @@ -45713,7 +50815,7 @@ switch (step) { s.tmp_2.arg0 = 80; s.tmp_2.arg1 = s.arg0; s.tmp_2.arg2 = undefined; - s.callLocIdx = 1253; s.pc = 5; return s.tmp_2; + s.callLocIdx = 1344; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; case 3: @@ -45769,7 +50871,7 @@ switch (step) { s.tmp_1.arg1 = 3; s.tmp_1.arg2 = undefined; s.tmp_1.arg3 = undefined; - s.callLocIdx = 1293; s.pc = 3; return s.tmp_1; + s.callLocIdx = 1384; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; case 2: @@ -45812,7 +50914,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cardsPerRow___19393 = undefined; + s.cardsPerRow___21179 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -45825,7 +50927,7 @@ switch (step) { r0 = (s.arg0 + s.arg1); s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_1); - s.cardsPerRow___19393 = (r0); + s.cardsPerRow___21179 = (r0); s.tmp_0 = r0 = s.arg2; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } @@ -45845,7 +50947,7 @@ switch (step) { case 3: s.tmp_1 = image_doubledFont__P1823_mk(s); s.tmp_1.arg0 = s.arg2; - s.callLocIdx = 1403; s.pc = 5; return s.tmp_1; + s.callLocIdx = 1494; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; case 4: @@ -45856,12 +50958,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___19393); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardsPerRow", s.cardsPerRow___21179); r0 = pxsim_ImageMethods.width(globals.screen___1877); s.tmp_3 = r0; - r0 = (s.cardsPerRow___19393 * s.arg0); + r0 = (s.cardsPerRow___21179 * s.arg0); s.tmp_5 = r0; - r0 = (s.cardsPerRow___19393 - 1); + r0 = (s.cardsPerRow___21179 - 1); s.tmp_7 = r0; r0 = (s.tmp_7 * s.arg1); s.tmp_6 = r0; @@ -45882,7 +50984,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 = 1404; s.pc = 6; return s.tmp_11; } + else { s.callLocIdx = 1495; s.pc = 6; return s.tmp_11; } } case 6: r0 = s.retval; @@ -45902,7 +51004,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 = 1405; s.pc = 7; return s.tmp_16; } + else { s.callLocIdx = 1496; s.pc = 7; return s.tmp_16; } } case 7: r0 = s.retval; @@ -45944,7 +51046,7 @@ function scene_systemMenu_buildMenuTheme__P2892_mk(s) { tmp_14: undefined, tmp_15: undefined, tmp_16: undefined, - cardsPerRow___19393: undefined, + cardsPerRow___21179: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -45972,7 +51074,7 @@ switch (step) { s.tmp_0 = image_scaledFont__P1824_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 2; - s.callLocIdx = 132; s.pc = 1; return s.tmp_0; + s.callLocIdx = 166; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) @@ -46028,7 +51130,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 = 133; s.pc = 6; return s.tmp_4; } + else { s.callLocIdx = 167; s.pc = 6; return s.tmp_4; } } case 6: r0 = s.retval; @@ -46044,7 +51146,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 = 134; s.pc = 7; return s.tmp_7; } + else { s.callLocIdx = 168; s.pc = 7; return s.tmp_7; } } case 7: r0 = s.retval; @@ -46060,7 +51162,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 = 135; s.pc = 8; return s.tmp_9; } + else { s.callLocIdx = 169; s.pc = 8; return s.tmp_9; } } case 8: r0 = s.retval; @@ -46074,7 +51176,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 = 136; s.pc = 9; return s.tmp_11; } + else { s.callLocIdx = 170; s.pc = 9; return s.tmp_11; } } case 9: r0 = s.retval; @@ -46090,7 +51192,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 = 137; s.pc = 10; return s.tmp_14; } + else { s.callLocIdx = 171; s.pc = 10; return s.tmp_14; } } case 10: r0 = s.retval; @@ -46139,7 +51241,7 @@ function image_scaledFont__P1824_mk(s) { -function scene_systemMenu_initScreen__P4967(s) { +function scene_systemMenu_initScreen__P5007(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46149,21 +51251,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.brightness___19473 = undefined; + s.brightness___21259 = undefined; s.tmp_0 = settings_readNumber__P1913_mk(s); s.tmp_0.arg0 = "#brightness"; - s.callLocIdx = 1412; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1503; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.brightness___19473 = (r0); - r0 = (s.brightness___19473 !== undefined); + s.brightness___21259 = (r0); + r0 = (s.brightness___21259 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } s.tmp_1 = helpers_setScreenBrightness__P1810_mk(s); s.tmp_1.arg0 = globals.screen___1877; - s.tmp_1.arg1 = s.brightness___19473; - s.callLocIdx = 1413; s.pc = 4; return s.tmp_1; + s.tmp_1.arg1 = s.brightness___21259; + s.callLocIdx = 1504; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; case 1: @@ -46172,23 +51274,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_initScreen__P4967.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__P5007.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__P4967_mk(s) { +function scene_systemMenu_initScreen__P5007_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_initScreen__P4967, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_initScreen__P5007, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - brightness___19473: undefined, + brightness___21259: undefined, } } -function scene_systemMenu_initVolume__P4966(s) { +function scene_systemMenu_initVolume__P5006(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46198,20 +51300,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.vol___19483 = undefined; + s.vol___21269 = undefined; s.tmp_0 = settings_readNumber__P1913_mk(s); s.tmp_0.arg0 = "#volume"; - s.callLocIdx = 1410; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1501; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.vol___19483 = (r0); - r0 = (s.vol___19483 !== undefined); + s.vol___21269 = (r0); + r0 = (s.vol___21269 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } s.tmp_1 = music_setVolume__P1620_mk(s); - s.tmp_1.arg0 = s.vol___19483; - s.callLocIdx = 1411; s.pc = 4; return s.tmp_1; + s.tmp_1.arg0 = s.vol___21269; + s.callLocIdx = 1502; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; case 1: @@ -46220,16 +51322,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_initVolume__P4966.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__P5006.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__P4966_mk(s) { +function scene_systemMenu_initVolume__P5006_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_initVolume__P4966, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_initVolume__P5006, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - vol___19483: undefined, + vol___21269: undefined, } } @@ -46246,12 +51348,12 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_init__P4708_mk(s); + s.tmp_0 = game_init__P4748_mk(s); s.tmp_0.arg0 = undefined; - s.callLocIdx = 1208; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1299; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals._scene___4700; + r0 = globals._scene___4740; return leave(s, r0) default: oops() } } } @@ -46283,23 +51385,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___4703); + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___4743); s.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___4703 = (r0); + globals._scenePopHandlers___4743 = (r0); case 1: case 2: - r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___4703, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___4743, 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___4703, s.arg0); + r0 = pxsim_Array__push(globals._scenePopHandlers___4743, s.arg0); case 3: case 4: r0 = undefined; @@ -46336,23 +51438,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___4702); + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___4742); s.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___4702 = (r0); + globals._scenePushHandlers___4742 = (r0); case 1: case 2: - r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___4702, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___4742, 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___4702, s.arg0); + r0 = pxsim_Array__push(globals._scenePushHandlers___4742, s.arg0); case 3: case 4: r0 = undefined; @@ -46420,16 +51522,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.nextKind___4533 === undefined); + r0 = (globals.nextKind___4573 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.nextKind___4533 = (1000); + globals.nextKind___4573 = (1000); case 1: case 2: - s.tmp_0 = r0 = globals.nextKind___4533; + s.tmp_0 = r0 = globals.nextKind___4573; r0 = (s.tmp_0 + 1); - globals.nextKind___4533 = (r0); + globals.nextKind___4573 = (r0); r0 = s.tmp_0; return leave(s, r0) default: oops() @@ -46475,13 +51577,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, controller_Button_inline__P19559); + r0 = pxsim_pxtcore_mkAction(1, controller_Button_inline__P21345); 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, controller_Button_inline__P19566); + r0 = pxsim_pxtcore_mkAction(1, controller_Button_inline__P21352); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); r0 = s.arg0.fields["id"]; @@ -46519,7 +51621,7 @@ function controller_Button_constructor__P2038_mk(s) { -function controller_Button_inline__P19559(s) { +function controller_Button_inline__P21345(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46532,19 +51634,19 @@ switch (step) { s.tmp_0 = controller_Button_setPressed__P2045_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = false; - s.callLocIdx = 250; s.pc = 1; return s.tmp_0; + s.callLocIdx = 284; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_inline__P19559.info = {"start":2627,"length":28,"line":88,"column":66,"endLine":88,"endColumn":94,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} +controller_Button_inline__P21345.info = {"start":2627,"length":28,"line":88,"column":66,"endLine":88,"endColumn":94,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} -function controller_Button_inline__P19559_mk(s) { +function controller_Button_inline__P21345_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_inline__P19559, depth: s.depth + 1, + parent: s, fn: controller_Button_inline__P21345, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -46553,7 +51655,7 @@ function controller_Button_inline__P19559_mk(s) { -function controller_Button_inline__P19566(s) { +function controller_Button_inline__P21352(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46566,19 +51668,19 @@ switch (step) { s.tmp_0 = controller_Button_setPressed__P2045_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = true; - s.callLocIdx = 251; s.pc = 1; return s.tmp_0; + s.callLocIdx = 285; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_inline__P19566.info = {"start":2729,"length":27,"line":89,"column":68,"endLine":89,"endColumn":95,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} +controller_Button_inline__P21352.info = {"start":2729,"length":27,"line":89,"column":68,"endLine":89,"endColumn":95,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} -function controller_Button_inline__P19566_mk(s) { +function controller_Button_inline__P21352_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_inline__P19566, depth: s.depth + 1, + parent: s, fn: controller_Button_inline__P21352, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -46587,7 +51689,7 @@ function controller_Button_inline__P19566_mk(s) { -function controller_setupButton__P4516(s) { +function controller_setupButton__P4556(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46606,12 +51708,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_setupButton__P4516.info = {"start":861,"length":93,"line":39,"column":4,"endLine":41,"endColumn":6,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"setupButton","argumentNames":["buttonId","key"]} +controller_setupButton__P4556.info = {"start":861,"length":93,"line":39,"column":4,"endLine":41,"endColumn":6,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"setupButton","argumentNames":["buttonId","key"]} -function controller_setupButton__P4516_mk(s) { +function controller_setupButton__P4556_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_setupButton__P4516, depth: s.depth + 1, + parent: s, fn: controller_setupButton__P4556, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -46645,7 +51747,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } s.tmp_2 = power_poke__P1778_mk(s); - s.callLocIdx = 254; s.pc = 7; return s.tmp_2; + s.callLocIdx = 288; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; r0 = s.arg0.fields["_owner"]; @@ -46656,7 +51758,7 @@ switch (step) { r0 = s.arg0.fields["_owner"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = true; - s.callLocIdx = 255; s.pc = 8; return s.tmp_1; + s.callLocIdx = 289; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; case 1: @@ -46667,17 +51769,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__P4500_mk(s); + s.tmp_0 = controller_Button_raiseButtonDown__P4540_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 256; s.pc = 9; return s.tmp_0; + s.callLocIdx = 290; 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__P4499_mk(s); + s.tmp_0 = controller_Button_raiseButtonUp__P4539_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 257; s.pc = 10; return s.tmp_0; + s.callLocIdx = 291; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; case 4: @@ -46705,7 +51807,7 @@ function controller_Button_setPressed__P2045_mk(s) { -function controller_Button_raiseButtonDown__P4500(s) { +function controller_Button_raiseButtonDown__P4540(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46721,7 +51823,7 @@ switch (step) { } r0 = s.arg0; if (!checkSubtype(r0, controller_Button__C2032_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___4510); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___4550); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["id"]; s.tmp_0 = r0; @@ -46736,12 +51838,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonDown__P4500.info = {"start":3088,"length":205,"line":103,"column":8,"endLine":108,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonDown","argumentNames":["this"]} +controller_Button_raiseButtonDown__P4540.info = {"start":3088,"length":205,"line":103,"column":8,"endLine":108,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonDown","argumentNames":["this"]} -function controller_Button_raiseButtonDown__P4500_mk(s) { +function controller_Button_raiseButtonDown__P4540_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonDown__P4500, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonDown__P4540, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -46751,7 +51853,7 @@ function controller_Button_raiseButtonDown__P4500_mk(s) { -function controller_Button_raiseButtonUp__P4499(s) { +function controller_Button_raiseButtonUp__P4539(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46767,7 +51869,7 @@ switch (step) { } r0 = s.arg0; if (!checkSubtype(r0, controller_Button__C2032_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___4510); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___4550); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["id"]; s.tmp_0 = r0; @@ -46782,12 +51884,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonUp__P4499.info = {"start":2878,"length":200,"line":96,"column":8,"endLine":101,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonUp","argumentNames":["this"]} +controller_Button_raiseButtonUp__P4539.info = {"start":2878,"length":200,"line":96,"column":8,"endLine":101,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonUp","argumentNames":["this"]} -function controller_Button_raiseButtonUp__P4499_mk(s) { +function controller_Button_raiseButtonUp__P4539_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonUp__P4499, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonUp__P4539, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -46929,7 +52031,7 @@ function controller_Controller_connected__P1998_mk(s) { -function settings_initScopes__P4467(s) { +function settings_initScopes__P4507(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46939,18 +52041,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rn___19644 = undefined; + s.rn___21430 = undefined; s.tmp_1 = settings_runNumber__P1903_mk(s); - s.callLocIdx = 163; s.pc = 1; return s.tmp_1; + s.callLocIdx = 197; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 + 1); - s.rn___19644 = (r0); + s.rn___21430 = (r0); s.tmp_0 = settings_writeNumber__P1908_mk(s); - s.tmp_0.arg0 = globals.RUN_KEY___4455; - s.tmp_0.arg1 = s.rn___19644; - s.callLocIdx = 164; s.pc = 2; return s.tmp_0; + s.tmp_0.arg0 = globals.RUN_KEY___4495; + s.tmp_0.arg1 = s.rn___21430; + s.callLocIdx = 198; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = pxsim.control.deviceSerialNumber(); @@ -46958,34 +52060,34 @@ switch (step) { r0 = (s.tmp_1 & 2147483647); s.tmp_0 = r0; r0 = pxsim_pxtcore.seedAddRandom(s.tmp_0); - r0 = pxsim_pxtcore.seedAddRandom(s.rn___19644); - s.tmp_0 = settings_setScope__P4466_mk(s); + r0 = pxsim_pxtcore.seedAddRandom(s.rn___21430); + s.tmp_0 = settings_setScope__P4506_mk(s); r0 = pxsim_pxtcore.programName(); s.tmp_0.arg0 = r0; - s.callLocIdx = 165; s.pc = 3; return s.tmp_0; + s.callLocIdx = 199; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -settings_initScopes__P4467.info = {"start":1104,"length":230,"line":41,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"initScopes","argumentNames":[]} +settings_initScopes__P4507.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__P4467_mk(s) { +function settings_initScopes__P4507_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_initScopes__P4467, depth: s.depth + 1, + parent: s, fn: settings_initScopes__P4507, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - rn___19644: undefined, + rn___21430: undefined, } } -function settings_setScope__P4466(s) { +function settings_setScope__P4506(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46995,7 +52097,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.currScope___19673 = undefined; + s.currScope___21459 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -47021,20 +52123,20 @@ switch (step) { case 3: case 4: s.tmp_0 = settings_readString__P1911_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___4456; - s.callLocIdx = 161; s.pc = 7; return s.tmp_0; + s.tmp_0.arg0 = globals.SCOPE_KEY___4496; + s.callLocIdx = 195; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.currScope___19673 = (r0); - r0 = (s.currScope___19673 != s.arg0); + s.currScope___21459 = (r0); + r0 = (s.currScope___21459 != 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__P1906_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___4456; + s.tmp_0.arg0 = globals.SCOPE_KEY___4496; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 162; s.pc = 8; return s.tmp_0; + s.callLocIdx = 196; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; case 5: @@ -47043,18 +52145,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_setScope__P4466.info = {"start":826,"length":272,"line":31,"column":4,"endLine":39,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"setScope","argumentNames":["scope"]} +settings_setScope__P4506.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__P4466_mk(s) { +function settings_setScope__P4506_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_setScope__P4466, depth: s.depth + 1, + parent: s, fn: settings_setScope__P4506, depth: s.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___19673: undefined, + currScope___21459: undefined, arg0: undefined, } } @@ -47072,14 +52174,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___19687 = undefined; + s.buf___21473 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim.settings._get(s.arg0); - s.buf___19687 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___19687); + s.buf___21473 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___21473); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -47089,7 +52191,7 @@ switch (step) { { step = 3; continue; } { step = 2; continue; } case 1: - r0 = pxsim.BufferMethods.toString(s.buf___19687); + r0 = pxsim.BufferMethods.toString(s.buf___21473); { step = 3; continue; } case 2: r0 = undefined; @@ -47106,7 +52208,7 @@ function settings_readString__P1911_mk(s) { pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - buf___19687: undefined, + buf___21473: undefined, arg0: undefined, } } @@ -47125,8 +52227,8 @@ switch (step) { case 0: s.tmp_1 = settings_readNumber__P1913_mk(s); - s.tmp_1.arg0 = globals.RUN_KEY___4455; - s.callLocIdx = 160; s.pc = 3; return s.tmp_1; + s.tmp_1.arg0 = globals.RUN_KEY___4495; + s.callLocIdx = 194; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0 = r0; @@ -47173,12 +52275,12 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.__updated___4422 = (true); - globals.__update___4420 = (s.arg0); + globals.__updated___4462 = (true); + globals.__update___4460 = (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 = 154; s.pc = 1; return s.tmp_0; + s.callLocIdx = 188; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; @@ -47274,17 +52376,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.__update___4420); + r0 = pxsim_numops_toBoolDecr(globals.__update___4460); if (!r0) { step = 1; continue; } s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.__update___4420; + s.tmp_0.argL = globals.__update___4460; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 153; s.pc = 3; return s.tmp_0; + s.callLocIdx = 187; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; case 1: case 2: - globals.__updated___4422 = (true); + globals.__updated___4462 = (true); r0 = undefined; return leave(s, r0) default: oops() @@ -47359,11 +52461,11 @@ switch (step) { } r0 = s.arg0; if (!checkSubtype(r0, particles_FireSource__C2961_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleSource_updateParticle__P5040_mk(s); + s.tmp_0 = particles_ParticleSource_updateParticle__P5080_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 1485; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1576; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = s.arg1.fields["next"]; @@ -47377,7 +52479,7 @@ switch (step) { r0 = s.arg0.fields["galois"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 30; - s.callLocIdx = 1486; s.pc = 6; return s.tmp_1; + s.callLocIdx = 1577; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; case 2: @@ -47440,7 +52542,7 @@ switch (step) { s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = 0; s.tmp_1.arg2 = 100; - s.callLocIdx = 1264; s.pc = 1; return s.tmp_1; + s.callLocIdx = 1355; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; @@ -47475,9 +52577,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___19753 = undefined; - s.i___19765 = undefined; - s.r___19772 = undefined; + s.p___21539 = undefined; + s.i___21551 = undefined; + s.r___21558 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -47488,14 +52590,14 @@ switch (step) { s.tmp_0 = particles_ParticleFactory_createParticle__P2977_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1552; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1643; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.p___19753 = (r0); + s.p___21539 = (r0); s.tmp_1 = Math_FastRandom_randomBool__P2853_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 1553; s.pc = 6; return s.tmp_1; + s.callLocIdx = 1644; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; s.tmp_0 = r0; @@ -47507,7 +52609,7 @@ switch (step) { s.tmp_3 = Math_FastRandom_randomBool__P2853_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_3.arg0 = r0; - s.callLocIdx = 1554; s.pc = 7; return s.tmp_3; + s.callLocIdx = 1645; s.pc = 7; return s.tmp_3; case 7: r0 = s.retval; s.tmp_2 = r0; @@ -47524,17 +52626,17 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_5 = r0; - r0 = (s.p___19753).fields["color"] = (s.tmp_5); + r0 = (s.p___21539).fields["color"] = (s.tmp_5); s.tmp_0 = Math_FastRandom_randomRange__P2851_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 0; - r0 = pxsim_Array__length(globals.cachedCos___5051); + r0 = pxsim_Array__length(globals.cachedCos___5091); s.tmp_0.arg2 = r0; - s.callLocIdx = 1555; s.pc = 8; return s.tmp_0; + s.callLocIdx = 1646; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.i___19765 = (r0); + s.i___21551 = (r0); s.tmp_0 = Math_FastRandom_randomRange__P2851_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_0.arg0 = r0; @@ -47542,11 +52644,11 @@ switch (step) { s.tmp_0.arg1 = r0; r0 = s.arg0.fields["maxRadius"]; s.tmp_0.arg2 = r0; - s.callLocIdx = 1556; s.pc = 9; return s.tmp_0; + s.callLocIdx = 1647; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.r___19772 = (r0); - s.tmp_0 = r0 = s.p___19753; + s.r___21558 = (r0); + s.tmp_0 = r0 = s.p___21539; s.tmp_3 = if_x_1_mk(s); s.tmp_3.arg0 = s.arg1; if (!s.tmp_3.arg0.vtable.iface) { @@ -47555,16 +52657,16 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["x"]; if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["x"]; } else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1557; s.pc = 10; return s.tmp_3; } + else { s.callLocIdx = 1648; s.pc = 10; return s.tmp_3; } } case 10: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.r___19772 * 256); + r0 = (s.r___21558 * 256); s.tmp_6 = r0; r0 = (s.tmp_6 | 0); s.tmp_5 = r0; - r0 = pxsim_Array__getAt(globals.cachedCos___5051, s.i___19765); + r0 = pxsim_Array__getAt(globals.cachedCos___5091, s.i___21551); s.tmp_7 = r0; r0 = pxsim.Math_.imul(s.tmp_5, s.tmp_7); s.tmp_8 = r0; @@ -47575,7 +52677,7 @@ switch (step) { r0 = (s.tmp_9 + s.tmp_4); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___19753; + s.tmp_0 = r0 = s.p___21539; s.tmp_3 = if_y_1_mk(s); s.tmp_3.arg0 = s.arg1; if (!s.tmp_3.arg0.vtable.iface) { @@ -47584,16 +52686,16 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["y"]; if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["y"]; } else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1561; s.pc = 11; return s.tmp_3; } + else { s.callLocIdx = 1652; s.pc = 11; return s.tmp_3; } } case 11: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.r___19772 * 256); + r0 = (s.r___21558 * 256); s.tmp_6 = r0; r0 = (s.tmp_6 | 0); s.tmp_5 = r0; - r0 = pxsim_Array__getAt(globals.cachedSin___5050, s.i___19765); + r0 = pxsim_Array__getAt(globals.cachedSin___5090, s.i___21551); s.tmp_7 = r0; r0 = pxsim.Math_.imul(s.tmp_5, s.tmp_7); s.tmp_8 = r0; @@ -47604,7 +52706,7 @@ switch (step) { r0 = (s.tmp_9 + s.tmp_4); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___19753; + s.tmp_0 = r0 = s.p___21539; r0 = pxsim.Math_.randomRange(0, 10); s.tmp_2 = r0; r0 = (s.tmp_2 * 256); @@ -47612,7 +52714,7 @@ switch (step) { r0 = (s.tmp_3 | 0); s.tmp_1 = r0; r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___19753; + s.tmp_0 = r0 = s.p___21539; r0 = pxsim.Math_.randomRange(-5, 5); s.tmp_2 = r0; r0 = (s.tmp_2 * 256); @@ -47620,8 +52722,8 @@ switch (step) { r0 = (s.tmp_3 | 0); s.tmp_1 = r0; r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); - r0 = (s.p___19753).fields["lifespan"] = (1500); - r0 = s.p___19753; + r0 = (s.p___21539).fields["lifespan"] = (1500); + r0 = s.p___21539; return leave(s, r0) default: oops() } } } @@ -47642,9 +52744,9 @@ function particles_FireFactory_createParticle__P3010_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - p___19753: undefined, - i___19765: undefined, - r___19772: undefined, + p___21539: undefined, + i___21551: undefined, + r___21558: undefined, arg0: undefined, arg1: undefined, } } @@ -47671,7 +52773,7 @@ switch (step) { if (!checkSubtype(r0, Math_FastRandom__C2847_VT)) failedCast(r0); s.tmp_3 = Math_FastRandom_next__P2850_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1263; s.pc = 1; return s.tmp_3; + s.callLocIdx = 1354; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -47738,7 +52840,7 @@ function Fx_iadd__P158_mk(s) { -function RingFactory_createParticle__P17264(s) { +function RingFactory_createParticle__P18808(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47748,47 +52850,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___19832 = undefined; + s.p___21618 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, RingFactory__C17262_VT)) failedCast(r0); + if (!checkSubtype(r0, RingFactory__C18806_VT)) failedCast(r0); s.tmp_0 = particles_RadialFactory_createParticle__P3014_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1617; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1714; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.p___19832 = (r0); - s.tmp_0 = r0 = s.p___19832; + s.p___21618 = (r0); + s.tmp_0 = r0 = s.p___21618; s.tmp_2 = Math_FastRandom_randomRange__P2851_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = 200; s.tmp_2.arg2 = 350; - s.callLocIdx = 1618; s.pc = 2; return s.tmp_2; + s.callLocIdx = 1715; s.pc = 2; return s.tmp_2; case 2: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["lifespan"] = (s.tmp_1); - r0 = s.p___19832; + r0 = s.p___21618; return leave(s, r0) default: oops() } } } -RingFactory_createParticle__P17264.info = {"start":10401,"length":210,"line":264,"column":12,"endLine":268,"endColumn":13,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +RingFactory_createParticle__P18808.info = {"start":10401,"length":210,"line":264,"column":12,"endLine":268,"endColumn":13,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"createParticle","argumentNames":["this","anchor"]} -function RingFactory_createParticle__P17264_mk(s) { +function RingFactory_createParticle__P18808_mk(s) { checkStack(s.depth); return { - parent: s, fn: RingFactory_createParticle__P17264, depth: s.depth + 1, + parent: s, fn: RingFactory_createParticle__P18808, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - p___19832: undefined, + p___21618: undefined, arg0: undefined, arg1: undefined, } } @@ -47807,9 +52909,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___19844 = undefined; - s.time___19848 = undefined; - s.offsetTime___19856 = undefined; + s.p___21630 = undefined; + s.time___21634 = undefined; + s.offsetTime___21642 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -47820,38 +52922,38 @@ switch (step) { s.tmp_0 = particles_ParticleFactory_createParticle__P2977_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1574; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1665; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.p___19844 = (r0); + s.p___21630 = (r0); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["t"]; s.tmp_2 = r0; r0 = (s.tmp_2 + 1); s.tmp_1 = r0; r0 = (s.tmp_0).fields["t"] = (s.tmp_1); - r0 = pxsim_Array__length(globals.cachedCos___5051); + r0 = pxsim_Array__length(globals.cachedCos___5091); s.tmp_3 = r0; r0 = (s.tmp_1 % s.tmp_3); - s.time___19848 = (r0); - s.tmp_1 = r0 = s.time___19848; + s.time___21634 = (r0); + s.tmp_1 = r0 = s.time___21634; s.tmp_3 = Math_FastRandom_randomRange__P2851_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_3.arg0 = r0; s.tmp_3.arg1 = 0; r0 = s.arg0.fields["spread"]; s.tmp_3.arg2 = r0; - s.callLocIdx = 1575; s.pc = 2; return s.tmp_3; + s.callLocIdx = 1666; 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_Array__length(globals.cachedCos___5051); + r0 = pxsim_Array__length(globals.cachedCos___5091); s.tmp_4 = r0; r0 = (s.tmp_0 % s.tmp_4); - s.offsetTime___19856 = (r0); - s.tmp_0 = r0 = s.p___19844; + s.offsetTime___21642 = (r0); + s.tmp_0 = r0 = s.p___21630; s.tmp_3 = if_x_1_mk(s); s.tmp_3.arg0 = s.arg1; if (!s.tmp_3.arg0.vtable.iface) { @@ -47860,14 +52962,14 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["x"]; if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["x"]; } else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1576; s.pc = 3; return s.tmp_3; } + else { s.callLocIdx = 1667; s.pc = 3; return s.tmp_3; } } case 3: r0 = s.retval; s.tmp_2 = r0; r0 = s.arg0.fields["r"]; s.tmp_5 = r0; - r0 = pxsim_Array__getAt(globals.cachedCos___5051, s.time___19848); + r0 = pxsim_Array__getAt(globals.cachedCos___5091, s.time___21634); s.tmp_6 = r0; r0 = pxsim.Math_.imul(s.tmp_5, s.tmp_6); s.tmp_7 = r0; @@ -47878,7 +52980,7 @@ switch (step) { r0 = (s.tmp_8 + s.tmp_4); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___19844; + s.tmp_0 = r0 = s.p___21630; s.tmp_3 = if_y_1_mk(s); s.tmp_3.arg0 = s.arg1; if (!s.tmp_3.arg0.vtable.iface) { @@ -47887,14 +52989,14 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["y"]; if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["y"]; } else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1579; s.pc = 4; return s.tmp_3; } + else { s.callLocIdx = 1670; s.pc = 4; return s.tmp_3; } } case 4: r0 = s.retval; s.tmp_2 = r0; r0 = s.arg0.fields["r"]; s.tmp_5 = r0; - r0 = pxsim_Array__getAt(globals.cachedSin___5050, s.time___19848); + r0 = pxsim_Array__getAt(globals.cachedSin___5090, s.time___21634); s.tmp_6 = r0; r0 = pxsim.Math_.imul(s.tmp_5, s.tmp_6); s.tmp_7 = r0; @@ -47905,10 +53007,10 @@ switch (step) { r0 = (s.tmp_8 + s.tmp_4); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___19844; + s.tmp_0 = r0 = s.p___21630; r0 = s.arg0.fields["speed"]; s.tmp_2 = r0; - r0 = pxsim_Array__getAt(globals.cachedSin___5050, s.offsetTime___19856); + r0 = pxsim_Array__getAt(globals.cachedSin___5090, s.offsetTime___21642); s.tmp_4 = r0; r0 = (0 - s.tmp_4); s.tmp_3 = r0; @@ -47917,39 +53019,39 @@ switch (step) { r0 = (s.tmp_5 >> 8); s.tmp_1 = r0; r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___19844; + s.tmp_0 = r0 = s.p___21630; r0 = s.arg0.fields["speed"]; s.tmp_2 = r0; - r0 = pxsim_Array__getAt(globals.cachedCos___5051, s.offsetTime___19856); + r0 = pxsim_Array__getAt(globals.cachedCos___5091, s.offsetTime___21642); 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); - s.tmp_0 = r0 = s.p___19844; + s.tmp_0 = r0 = s.p___21630; s.tmp_2 = Math_FastRandom_randomRange__P2851_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = 200; s.tmp_2.arg2 = 1500; - s.callLocIdx = 1585; s.pc = 5; return s.tmp_2; + s.callLocIdx = 1676; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["lifespan"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___19844; + s.tmp_0 = r0 = s.p___21630; s.tmp_2 = Math_FastRandom_pickRandom__P2852_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_2.arg0 = r0; r0 = s.arg0.fields["colors"]; s.tmp_2.arg1 = r0; - s.callLocIdx = 1586; s.pc = 6; return s.tmp_2; + s.callLocIdx = 1677; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["color"] = (s.tmp_1); - r0 = s.p___19844; + r0 = s.p___21630; return leave(s, r0) default: oops() } } } @@ -47969,9 +53071,9 @@ function particles_RadialFactory_createParticle__P3014_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - p___19844: undefined, - time___19848: undefined, - offsetTime___19856: undefined, + p___21630: undefined, + time___21634: undefined, + offsetTime___21642: undefined, arg0: undefined, arg1: undefined, } } @@ -48026,7 +53128,7 @@ switch (step) { s.tmp_7 = r0; r0 = (s.tmp_7 - 1); s.tmp_6.arg2 = r0; - s.callLocIdx = 1262; s.pc = 6; return s.tmp_6; + s.callLocIdx = 1353; s.pc = 6; return s.tmp_6; case 6: r0 = s.retval; s.tmp_5 = r0; @@ -48084,7 +53186,7 @@ switch (step) { s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg4; - s.callLocIdx = 1673; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1770; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = (s.arg0).fields["loop"] = (s.arg4); @@ -48121,7 +53223,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.result___19953 = undefined; + s.result___21739 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -48149,11 +53251,11 @@ switch (step) { s.tmp_0.arg2 = r0; r0 = s.arg0.fields["startedAt"]; s.tmp_0.arg3 = r0; - s.callLocIdx = 1674; s.pc = 8; return s.tmp_0; + s.callLocIdx = 1771; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.result___19953 = (r0); - r0 = pxsim_numops_toBoolDecr(s.result___19953); + s.result___21739 = (r0); + r0 = pxsim_numops_toBoolDecr(s.result___21739); if (!r0) { step = 5; continue; } r0 = s.arg0.fields["loop"]; s.tmp_2 = r0; @@ -48190,7 +53292,7 @@ function animation_MovementAnimation_update__P3171_mk(s) { tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - result___19953: undefined, + result___21739: undefined, arg0: undefined, } } @@ -48208,9 +53310,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.runningTime___19975 = undefined; - s.nodeIndex___19980 = undefined; - s.nodeTime___19986 = undefined; + s.runningTime___21761 = undefined; + s.nodeIndex___21766 = undefined; + s.nodeTime___21772 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -48223,13 +53325,13 @@ switch (step) { r0 = pxsim.control.millis(); s.tmp_0 = r0; r0 = (s.tmp_0 - s.arg3); - s.runningTime___19975 = (r0); - r0 = (s.runningTime___19975 / s.arg1); + s.runningTime___21761 = (r0); + r0 = (s.runningTime___21761 / s.arg1); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - s.nodeIndex___19980 = (r0); - r0 = (s.runningTime___19975 % s.arg1); - s.nodeTime___19986 = (r0); + s.nodeIndex___21766 = (r0); + r0 = (s.runningTime___21761 % s.arg1); + s.nodeTime___21772 = (r0); r0 = s.arg0.fields["lastNode"]; s.tmp_1 = r0; r0 = (s.tmp_1 > -1); @@ -48241,7 +53343,7 @@ switch (step) { case 1: r0 = s.arg0.fields["lastNode"]; s.tmp_2 = r0; - r0 = (s.tmp_2 < s.nodeIndex___19980); + r0 = (s.tmp_2 < s.nodeIndex___21766); case 2: // jmp value (already in r0) s.tmp_3 = r0; @@ -48273,7 +53375,7 @@ switch (step) { s.pc = 10; return s.tmp_6; case 10: r0 = s.retval; - s.tmp_1 = r0 = s.nodeIndex___19980; + s.tmp_1 = r0 = s.nodeIndex___21766; r0 = s.arg0.fields["nodes"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -48288,14 +53390,14 @@ switch (step) { case 6: case 7: case 8: - r0 = (s.arg0).fields["lastNode"] = (s.nodeIndex___19980); + r0 = (s.arg0).fields["lastNode"] = (s.nodeIndex___21766); s.tmp_0 = animation_PathNode__C3138_v0_4_mk(s); r0 = s.arg0.fields["nodes"]; s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.nodeIndex___19980); + r0 = pxsim_Array__getAt(s.tmp_1, s.nodeIndex___21766); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.nodeTime___19986; + s.tmp_0.arg2 = s.nodeTime___21772; s.tmp_0.arg3 = s.arg1; if (!checkSubtype(s.tmp_0.arg0, animation_PathNode__C3138_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.apply; @@ -48323,9 +53425,9 @@ function animation_Path_run__P3137_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - runningTime___19975: undefined, - nodeIndex___19980: undefined, - nodeTime___19986: undefined, + runningTime___21761: undefined, + nodeIndex___21766: undefined, + nodeTime___21772: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -48386,9 +53488,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.runningTime___20042 = undefined; - s.frameIndex___20048 = undefined; - s.newImage___20072 = undefined; + s.runningTime___21828 = undefined; + s.frameIndex___21834 = undefined; + s.newImage___21858 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -48412,16 +53514,16 @@ switch (step) { r0 = s.arg0.fields["startedAt"]; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.runningTime___20042 = (r0); + s.runningTime___21828 = (r0); r0 = s.arg0.fields["frameInterval"]; s.tmp_1 = r0; - r0 = (s.runningTime___20042 / s.tmp_1); + r0 = (s.runningTime___21828 / s.tmp_1); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - s.frameIndex___20048 = (r0); + s.frameIndex___21834 = (r0); r0 = s.arg0.fields["lastFrame"]; s.tmp_1 = r0; - r0 = (s.tmp_1 != s.frameIndex___20048); + r0 = (s.tmp_1 != s.frameIndex___21834); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 3; continue; } @@ -48447,7 +53549,7 @@ switch (step) { r0 = s.tmp_4; { step = 6; continue; } case 5: - s.tmp_7 = r0 = s.frameIndex___20048; + s.tmp_7 = r0 = s.frameIndex___21834; r0 = s.arg0.fields["frames"]; s.tmp_9 = r0; r0 = pxsim_Array__length(s.tmp_9); @@ -48464,7 +53566,7 @@ switch (step) { case 8: r0 = s.arg0.fields["frames"]; s.tmp_11 = r0; - s.tmp_13 = r0 = s.frameIndex___20048; + s.tmp_13 = r0 = s.frameIndex___21834; r0 = s.arg0.fields["frames"]; s.tmp_15 = r0; r0 = pxsim_Array__length(s.tmp_15); @@ -48472,27 +53574,27 @@ switch (step) { r0 = (s.tmp_13 % s.tmp_14); s.tmp_12 = r0; r0 = pxsim_Array__getAt(s.tmp_11, s.tmp_12); - s.newImage___20072 = (r0); + s.newImage___21858 = (r0); r0 = s.arg0.fields["sprite"]; s.tmp_2 = r0; r0 = s.tmp_2.fields["_image"]; s.tmp_1 = r0; - r0 = (s.tmp_1 !== s.newImage___20072); + r0 = (s.tmp_1 !== s.newImage___21858); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } s.tmp_3 = Sprite_setImage__P2232_mk(s); r0 = s.arg0.fields["sprite"]; s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.newImage___20072; - s.callLocIdx = 1672; s.pc = 14; return s.tmp_3; + s.tmp_3.arg1 = s.newImage___21858; + s.callLocIdx = 1769; s.pc = 14; return s.tmp_3; case 14: r0 = s.retval; case 9: case 10: case 11: case 12: - r0 = (s.arg0).fields["lastFrame"] = (s.frameIndex___20048); + r0 = (s.arg0).fields["lastFrame"] = (s.frameIndex___21834); r0 = false; case 13: return leave(s, r0) @@ -48521,9 +53623,9 @@ function animation_ImageAnimation_update__P3168_mk(s) { tmp_13: undefined, tmp_14: undefined, tmp_15: undefined, - runningTime___20042: undefined, - frameIndex___20048: undefined, - newImage___20072: undefined, + runningTime___21828: undefined, + frameIndex___21834: undefined, + newImage___21858: undefined, arg0: undefined, } } @@ -48569,8 +53671,8 @@ switch (step) { s.tmp_10 = helpers_arrayFilter__P110_mk(s); r0 = s.arg0.fields["buckets"]; s.tmp_10.arg0 = r0; - s.tmp_10.arg1 = length_inline__P20107; - s.callLocIdx = 623; s.pc = 2; return s.tmp_10; + s.tmp_10.arg1 = length_inline__P21893; + s.callLocIdx = 657; s.pc = 2; return s.tmp_10; case 2: r0 = s.retval; s.tmp_9 = r0; @@ -48616,7 +53718,7 @@ function sprites_SpriteMap_toString__P2295_mk(s) { -function length_inline__P20107(s) { +function length_inline__P21893(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48640,12 +53742,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -length_inline__P20107.info = {"start":4196,"length":8,"line":113,"column":74,"endLine":113,"endColumn":82,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["b"]} +length_inline__P21893.info = {"start":4196,"length":8,"line":113,"column":74,"endLine":113,"endColumn":82,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["b"]} -function length_inline__P20107_mk(s) { +function length_inline__P21893_mk(s) { checkStack(s.depth); return { - parent: s, fn: length_inline__P20107, depth: s.depth + 1, + parent: s, fn: length_inline__P21893, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48667,9 +53769,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___20139 = undefined; - s.maxDist___20147 = undefined; - s.ms___20167 = undefined; + s.tm___21925 = undefined; + s.maxDist___21933 = undefined; + s.ms___21953 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -48698,18 +53800,18 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 864; s.pc = 13; return s.tmp_0; + s.callLocIdx = 898; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___20139 = (r0); - s.tmp_0 = r0 = s.tm___20139; + s.tm___21925 = (r0); + s.tmp_0 = r0 = s.tm___21925; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.tm___20139.fields["_map"]; + r0 = s.tm___21925.fields["_map"]; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; @@ -48728,17 +53830,17 @@ switch (step) { r0 = (s.tmp_6 + 128); s.tmp_7 = r0; r0 = (s.tmp_7 >> 8); - s.maxDist___20147 = (r0); + s.maxDist___21933 = (r0); s.tmp_2 = Math_abs__P128_mk(s); r0 = (s.arg2 + 128); s.tmp_3 = r0; r0 = (s.tmp_3 >> 8); s.tmp_2.arg0 = r0; - s.callLocIdx = 868; s.pc = 14; return s.tmp_2; + s.callLocIdx = 902; s.pc = 14; return s.tmp_2; case 14: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.maxDist___20147); + r0 = (s.tmp_1 <= s.maxDist___21933); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 3; continue; } @@ -48750,11 +53852,11 @@ switch (step) { s.tmp_6 = r0; r0 = (s.tmp_6 >> 8); s.tmp_5.arg0 = r0; - s.callLocIdx = 870; s.pc = 15; return s.tmp_5; + s.callLocIdx = 904; s.pc = 15; return s.tmp_5; case 15: r0 = s.retval; s.tmp_4 = r0; - r0 = (s.tmp_4 <= s.maxDist___20147); + r0 = (s.tmp_4 <= s.maxDist___21933); case 4: // jmp value (already in r0) s.tmp_7 = r0; @@ -48773,23 +53875,23 @@ switch (step) { s.tmp_9.arg5 = s.arg3; s.tmp_9.arg6 = s.arg2; s.tmp_9.arg7 = s.arg3; - s.callLocIdx = 871; s.pc = 16; return s.tmp_9; + s.callLocIdx = 905; s.pc = 16; return s.tmp_9; case 16: r0 = s.retval; - s.ms___20167 = (s.tmp_8); - s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P4570_mk(s); + s.ms___21953 = (s.tmp_8); + s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P4610_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ms___20167; - s.tmp_0.arg2 = s.tm___20139; - s.callLocIdx = 872; s.pc = 17; return s.tmp_0; + s.tmp_0.arg1 = s.ms___21953; + s.tmp_0.arg2 = s.tm___21925; + s.callLocIdx = 906; s.pc = 17; return s.tmp_0; case 17: r0 = s.retval; { step = 10; continue; } case 5: s.tmp_1 = tiles_TileMap_isOnWall__P2594_mk(s); - s.tmp_1.arg0 = s.tm___20139; + s.tmp_1.arg0 = s.tm___21925; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 873; s.pc = 18; return s.tmp_1; + s.callLocIdx = 907; s.pc = 18; return s.tmp_1; case 18: r0 = s.retval; s.tmp_0 = r0; @@ -48798,11 +53900,11 @@ switch (step) { r0 = s.tmp_0; { step = 7; continue; } case 6: - s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P4572_mk(s); + s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P4612_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = s.arg1; - s.tmp_4.arg2 = s.tm___20139; - s.callLocIdx = 874; s.pc = 19; return s.tmp_4; + s.tmp_4.arg2 = s.tm___21925; + s.callLocIdx = 908; s.pc = 19; return s.tmp_4; case 19: r0 = s.retval; s.tmp_3 = r0; @@ -48853,9 +53955,9 @@ function ArcadePhysicsEngine_moveSprite__P2382_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - tm___20139: undefined, - maxDist___20147: undefined, - ms___20167: undefined, + tm___21925: undefined, + maxDist___21933: undefined, + ms___21953: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -48866,7 +53968,7 @@ function ArcadePhysicsEngine_moveSprite__P2382_mk(s) { -function ArcadePhysicsEngine_canResolveClipping__P4572(s) { +function ArcadePhysicsEngine_canResolveClipping__P4612(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48876,19 +53978,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___20212 = undefined; - s.sz___20215 = undefined; - s.maxMove___20220 = undefined; - s.origY___20222 = undefined; - s.origX___20225 = undefined; - s.l___20228 = undefined; - s.r___20233 = undefined; - s.t___20238 = undefined; - s.b___20243 = undefined; - s.offset___20248 = undefined; - s.offset___20273 = undefined; - s.offset___20304 = undefined; - s.offset___20329 = undefined; + s.hbox___21998 = undefined; + s.sz___22001 = undefined; + s.maxMove___22006 = undefined; + s.origY___22008 = undefined; + s.origX___22011 = undefined; + s.l___22014 = undefined; + s.r___22019 = undefined; + s.t___22024 = undefined; + s.b___22029 = undefined; + s.offset___22034 = undefined; + s.offset___22059 = undefined; + s.offset___22090 = undefined; + s.offset___22115 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -48917,73 +54019,73 @@ switch (step) { case 1: case 2: r0 = s.arg1.fields["_hitbox"]; - s.hbox___20212 = (r0); + s.hbox___21998 = (r0); r0 = s.arg2.fields["_scale"]; s.tmp_0 = r0; r0 = (1 << s.tmp_0); - s.sz___20215 = (r0); + s.sz___22001 = (r0); s.tmp_0 = ArcadePhysicsEngine_maxStep__P2374_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 877; s.pc = 21; return s.tmp_0; + s.callLocIdx = 911; s.pc = 21; return s.tmp_0; case 21: r0 = s.retval; - s.maxMove___20220 = (r0); + s.maxMove___22006 = (r0); r0 = s.arg1.fields["_y"]; - s.origY___20222 = (r0); + s.origY___22008 = (r0); r0 = s.arg1.fields["_x"]; - s.origX___20225 = (r0); + s.origX___22011 = (r0); s.tmp_1 = game_Hitbox_left__P2059_mk(s); - s.tmp_1.arg0 = s.hbox___20212; - s.callLocIdx = 878; s.pc = 22; return s.tmp_1; + s.tmp_1.arg0 = s.hbox___21998; + s.callLocIdx = 912; 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___20228 = (r0); + s.l___22014 = (r0); s.tmp_1 = game_Hitbox_right__P2061_mk(s); - s.tmp_1.arg0 = s.hbox___20212; - s.callLocIdx = 880; s.pc = 23; return s.tmp_1; + s.tmp_1.arg0 = s.hbox___21998; + s.callLocIdx = 914; 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___20233 = (r0); + s.r___22019 = (r0); s.tmp_1 = game_Hitbox_top__P2060_mk(s); - s.tmp_1.arg0 = s.hbox___20212; - s.callLocIdx = 882; s.pc = 24; return s.tmp_1; + s.tmp_1.arg0 = s.hbox___21998; + s.callLocIdx = 916; 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___20238 = (r0); + s.t___22024 = (r0); s.tmp_1 = game_Hitbox_bottom__P2062_mk(s); - s.tmp_1.arg0 = s.hbox___20212; - s.callLocIdx = 884; s.pc = 25; return s.tmp_1; + s.tmp_1.arg0 = s.hbox___21998; + s.callLocIdx = 918; 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___20243 = (r0); - r0 = (s.b___20243 + 1); + s.b___22029 = (r0); + r0 = (s.b___22029 + 1); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___20215); - s.offset___20248 = (r0); - r0 = (s.offset___20248 <= s.maxMove___20220); + r0 = (s.tmp_0 % s.sz___22001); + s.offset___22034 = (r0); + r0 = (s.offset___22034 <= s.maxMove___22006); 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___20248 * 256); + r0 = (s.offset___22034 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); s.tmp_4 = r0; @@ -48993,7 +54095,7 @@ switch (step) { s.tmp_3 = tiles_TileMap_isOnWall__P2594_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 888; s.pc = 26; return s.tmp_3; + s.callLocIdx = 922; s.pc = 26; return s.tmp_3; case 26: r0 = s.retval; s.tmp_2 = r0; @@ -49007,28 +54109,28 @@ switch (step) { { step = 19; continue; } { step = 4; continue; } case 3: - r0 = (s.arg1).fields["_y"] = (s.origY___20222); + r0 = (s.arg1).fields["_y"] = (s.origY___22008); case 4: case 5: case 6: - r0 = (s.t___20238 / s.sz___20215); + r0 = (s.t___22024 / s.sz___22001); 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___20215); + r0 = (s.tmp_1 * s.sz___22001); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.t___20238); - s.offset___20273 = (r0); - r0 = (s.offset___20273 <= s.maxMove___20220); + r0 = (s.tmp_0 - s.t___22024); + s.offset___22059 = (r0); + r0 = (s.offset___22059 <= s.maxMove___22006); 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___20273 * 256); + r0 = (s.offset___22059 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); s.tmp_4 = r0; @@ -49038,7 +54140,7 @@ switch (step) { s.tmp_3 = tiles_TileMap_isOnWall__P2594_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 891; s.pc = 27; return s.tmp_3; + s.callLocIdx = 925; s.pc = 27; return s.tmp_3; case 27: r0 = s.retval; s.tmp_2 = r0; @@ -49052,22 +54154,22 @@ switch (step) { { step = 19; continue; } { step = 8; continue; } case 7: - r0 = (s.arg1).fields["_y"] = (s.origY___20222); + r0 = (s.arg1).fields["_y"] = (s.origY___22008); case 8: case 9: case 10: - r0 = (s.r___20233 + 1); + r0 = (s.r___22019 + 1); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___20215); - s.offset___20304 = (r0); - r0 = (s.offset___20304 <= s.maxMove___20220); + r0 = (s.tmp_0 % s.sz___22001); + s.offset___22090 = (r0); + r0 = (s.offset___22090 <= s.maxMove___22006); 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___20304 * 256); + r0 = (s.offset___22090 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); s.tmp_4 = r0; @@ -49077,7 +54179,7 @@ switch (step) { s.tmp_3 = tiles_TileMap_isOnWall__P2594_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 894; s.pc = 28; return s.tmp_3; + s.callLocIdx = 928; s.pc = 28; return s.tmp_3; case 28: r0 = s.retval; s.tmp_2 = r0; @@ -49091,28 +54193,28 @@ switch (step) { { step = 19; continue; } { step = 12; continue; } case 11: - r0 = (s.arg1).fields["_x"] = (s.origX___20225); + r0 = (s.arg1).fields["_x"] = (s.origX___22011); case 12: case 13: case 14: - r0 = (s.l___20228 / s.sz___20215); + r0 = (s.l___22014 / s.sz___22001); 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___20215); + r0 = (s.tmp_1 * s.sz___22001); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.l___20228); - s.offset___20329 = (r0); - r0 = (s.offset___20329 <= s.maxMove___20220); + r0 = (s.tmp_0 - s.l___22014); + s.offset___22115 = (r0); + r0 = (s.offset___22115 <= s.maxMove___22006); 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___20329 * 256); + r0 = (s.offset___22115 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); s.tmp_4 = r0; @@ -49122,7 +54224,7 @@ switch (step) { s.tmp_3 = tiles_TileMap_isOnWall__P2594_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 897; s.pc = 29; return s.tmp_3; + s.callLocIdx = 931; s.pc = 29; return s.tmp_3; case 29: r0 = s.retval; s.tmp_2 = r0; @@ -49136,7 +54238,7 @@ switch (step) { { step = 19; continue; } { step = 16; continue; } case 15: - r0 = (s.arg1).fields["_x"] = (s.origX___20225); + r0 = (s.arg1).fields["_x"] = (s.origX___22011); case 16: case 17: case 18: @@ -49145,12 +54247,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_canResolveClipping__P4572.info = {"start":25086,"length":2135,"line":687,"column":4,"endLine":758,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"canResolveClipping","argumentNames":["this","s","tm"]} +ArcadePhysicsEngine_canResolveClipping__P4612.info = {"start":25086,"length":2135,"line":687,"column":4,"endLine":758,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"canResolveClipping","argumentNames":["this","s","tm"]} -function ArcadePhysicsEngine_canResolveClipping__P4572_mk(s) { +function ArcadePhysicsEngine_canResolveClipping__P4612_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P4572, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P4612, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -49158,19 +54260,19 @@ function ArcadePhysicsEngine_canResolveClipping__P4572_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - hbox___20212: undefined, - sz___20215: undefined, - maxMove___20220: undefined, - origY___20222: undefined, - origX___20225: undefined, - l___20228: undefined, - r___20233: undefined, - t___20238: undefined, - b___20243: undefined, - offset___20248: undefined, - offset___20273: undefined, - offset___20304: undefined, - offset___20329: undefined, + hbox___21998: undefined, + sz___22001: undefined, + maxMove___22006: undefined, + origY___22008: undefined, + origX___22011: undefined, + l___22014: undefined, + r___22019: undefined, + t___22024: undefined, + b___22029: undefined, + offset___22034: undefined, + offset___22059: undefined, + offset___22090: undefined, + offset___22115: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -49237,7 +54339,7 @@ switch (step) { s.tmp_1 = r0; s.tmp_3 = game_Hitbox_top__P2060_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 276; s.pc = 1; return s.tmp_3; + s.callLocIdx = 310; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -49286,7 +54388,7 @@ switch (step) { s.tmp_1 = r0; s.tmp_3 = game_Hitbox_left__P2059_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 273; s.pc = 1; return s.tmp_3; + s.callLocIdx = 307; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -49399,7 +54501,7 @@ function game_Hitbox_left__P2059_mk(s) { -function ArcadePhysicsEngine_tilemapCollisions__P4570(s) { +function ArcadePhysicsEngine_tilemapCollisions__P4610(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49409,37 +54511,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___20472 = undefined; - s.hbox___20497 = undefined; - s.tileScale___20500 = undefined; - s.tileSize___20503 = undefined; - s.xDiff___20507 = undefined; - s.yDiff___20514 = undefined; - s.right___20530 = undefined; - s.x0___20534 = undefined; - s.collidedTiles___20549 = undefined; - s.y___20551 = undefined; - s.y0___20565 = undefined; - s.obstacle___20581 = undefined; - s.collisionDirection___20608 = undefined; - s.tile___20634 = undefined; + s.s___22258 = undefined; + s.hbox___22283 = undefined; + s.tileScale___22286 = undefined; + s.tileSize___22289 = undefined; + s.xDiff___22293 = undefined; + s.yDiff___22300 = undefined; + s.right___22316 = undefined; + s.x0___22320 = undefined; + s.collidedTiles___22335 = undefined; + s.y___22337 = undefined; + s.y0___22351 = undefined; + s.obstacle___22367 = undefined; + s.collisionDirection___22394 = undefined; + s.tile___22420 = undefined; s.unnamed88___U14 = undefined; s.unnamed89___U15 = undefined; - s.down___20718 = undefined; - s.y0___20722 = undefined; - s.collidedTiles___20737 = undefined; - s.x___20739 = undefined; - s.x0___20749 = undefined; - s.obstacle___20763 = undefined; - s.collisionDirection___20790 = undefined; - s.tile___20816 = undefined; + s.down___22504 = undefined; + s.y0___22508 = undefined; + s.collidedTiles___22523 = undefined; + s.x___22525 = undefined; + s.x0___22535 = undefined; + s.obstacle___22549 = undefined; + s.collisionDirection___22576 = undefined; + s.tile___22602 = undefined; s.unnamed90___U24 = undefined; s.unnamed91___U25 = undefined; - s.overlappedTiles___20903 = undefined; - s.x___20905 = undefined; - s.x0___20915 = undefined; - s.y___20925 = undefined; - s.y0___20935 = undefined; + s.overlappedTiles___22689 = undefined; + s.x___22691 = undefined; + s.x0___22701 = undefined; + s.y___22711 = undefined; + s.y0___22721 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -49449,8 +54551,8 @@ switch (step) { r0 = s.arg0; if (!checkSubtype(r0, ArcadePhysicsEngine__C2368_VT)) failedCast(r0); r0 = s.arg1.fields["sprite"]; - s.s___20472 = (r0); - r0 = s.s___20472.fields["flags"]; + s.s___22258 = (r0); + r0 = s.s___22258.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 256); s.tmp_0 = r0; @@ -49458,8 +54560,8 @@ switch (step) { if (!r0) { step = 3; continue; } s.tmp_5 = tiles_TileMap_isOnWall__P2594_mk(s); s.tmp_5.arg0 = s.arg2; - s.tmp_5.arg1 = s.s___20472; - s.callLocIdx = 760; s.pc = 93; return s.tmp_5; + s.tmp_5.arg1 = s.s___22258; + s.callLocIdx = 794; s.pc = 93; return s.tmp_5; case 93: r0 = s.retval; s.tmp_4 = r0; @@ -49469,7 +54571,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 1; continue; } - s.tmp_6 = r0 = s.s___20472; + s.tmp_6 = r0 = s.s___22258; r0 = s.tmp_6.fields["flags"]; s.tmp_8 = r0; r0 = (s.tmp_8 & -257); @@ -49479,7 +54581,7 @@ switch (step) { case 2: case 3: case 4: - r0 = s.s___20472.fields["_image"]; + r0 = s.s___22258.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.isStatic(s.tmp_3); s.tmp_2 = r0; @@ -49490,7 +54592,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } s.tmp_4 = Sprite__C2182_v4_1_mk(s); - s.tmp_4.arg0 = s.s___20472; + s.tmp_4.arg0 = s.s___22258; if (!checkSubtype(s.tmp_4.arg0, Sprite__C2182_VT)) failedCast(s.tmp_4.arg0); s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.setHitbox; s.pc = 94; return s.tmp_4; @@ -49498,25 +54600,25 @@ switch (step) { r0 = s.retval; case 5: case 6: - r0 = s.s___20472.fields["_hitbox"]; - s.hbox___20497 = (r0); + r0 = s.s___22258.fields["_hitbox"]; + s.hbox___22283 = (r0); r0 = s.arg2.fields["_scale"]; - s.tileScale___20500 = (r0); - r0 = (1 << s.tileScale___20500); - s.tileSize___20503 = (r0); - r0 = s.s___20472.fields["_x"]; + s.tileScale___22286 = (r0); + r0 = (1 << s.tileScale___22286); + s.tileSize___22289 = (r0); + r0 = s.s___22258.fields["_x"]; s.tmp_0 = r0; - r0 = s.s___20472.fields["_lastX"]; + r0 = s.s___22258.fields["_lastX"]; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.xDiff___20507 = (r0); - r0 = s.s___20472.fields["_y"]; + s.xDiff___22293 = (r0); + r0 = s.s___22258.fields["_y"]; s.tmp_0 = r0; - r0 = s.s___20472.fields["_lastY"]; + r0 = s.s___22258.fields["_lastY"]; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.yDiff___20514 = (r0); - r0 = s.s___20472.fields["flags"]; + s.yDiff___22300 = (r0); + r0 = s.s___22258.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 2818); s.tmp_2 = r0; @@ -49526,17 +54628,17 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 79; continue; } - r0 = (s.xDiff___20507 !== 0); + r0 = (s.xDiff___22293 !== 0); s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 41; continue; } - r0 = (s.xDiff___20507 > 0); - s.right___20530 = (r0); - r0 = pxsim_numops_toBoolDecr(s.right___20530); + r0 = (s.xDiff___22293 > 0); + s.right___22316 = (r0); + r0 = pxsim_numops_toBoolDecr(s.right___22316); if (!r0) { step = 7; continue; } s.tmp_1 = game_Hitbox_right__P2061_mk(s); - s.tmp_1.arg0 = s.hbox___20497; - s.callLocIdx = 765; s.pc = 95; return s.tmp_1; + s.tmp_1.arg0 = s.hbox___22283; + s.callLocIdx = 799; s.pc = 95; return s.tmp_1; case 95: r0 = s.retval; s.tmp_0 = r0; @@ -49544,8 +54646,8 @@ switch (step) { { step = 8; continue; } case 7: s.tmp_3 = game_Hitbox_left__P2059_mk(s); - s.tmp_3.arg0 = s.hbox___20497; - s.callLocIdx = 767; s.pc = 96; return s.tmp_3; + s.tmp_3.arg0 = s.hbox___22283; + s.callLocIdx = 801; s.pc = 96; return s.tmp_3; case 96: r0 = s.retval; s.tmp_2 = r0; @@ -49555,30 +54657,30 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 128); s.tmp_5 = r0; - r0 = (s.tileScale___20500 + 8); + r0 = (s.tileScale___22286 + 8); s.tmp_6 = r0; r0 = (s.tmp_5 >> s.tmp_6); - s.x0___20534 = (r0); + s.x0___22320 = (r0); r0 = pxsim_Array__mk(); - s.collidedTiles___20549 = (r0); + s.collidedTiles___22335 = (r0); s.tmp_1 = game_Hitbox_top__P2060_mk(s); - s.tmp_1.arg0 = s.hbox___20497; - s.callLocIdx = 771; s.pc = 97; return s.tmp_1; + s.tmp_1.arg0 = s.hbox___22283; + s.callLocIdx = 805; s.pc = 97; return s.tmp_1; case 97: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.yDiff___20514); - s.y___20551 = (r0); + r0 = (s.tmp_0 - s.yDiff___22300); + s.y___22337 = (r0); case 9: - s.tmp_1 = r0 = s.y___20551; - s.tmp_3 = r0 = s.tileSize___20503; + s.tmp_1 = r0 = s.y___22337; + s.tmp_3 = r0 = s.tileSize___22289; s.tmp_6 = game_Hitbox_bottom__P2062_mk(s); - s.tmp_6.arg0 = s.hbox___20497; - s.callLocIdx = 773; s.pc = 98; return s.tmp_6; + s.tmp_6.arg0 = s.hbox___22283; + s.callLocIdx = 807; s.pc = 98; return s.tmp_6; case 98: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.yDiff___20514); + r0 = (s.tmp_5 - s.yDiff___22300); s.tmp_4 = r0; r0 = (s.tmp_3 << 8); s.tmp_7 = r0; @@ -49589,30 +54691,30 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } s.tmp_10 = Fx_min__P166_mk(s); - s.tmp_10.arg0 = s.y___20551; + s.tmp_10.arg0 = s.y___22337; s.tmp_12 = game_Hitbox_bottom__P2062_mk(s); - s.tmp_12.arg0 = s.hbox___20497; - s.callLocIdx = 776; s.pc = 100; return s.tmp_12; + s.tmp_12.arg0 = s.hbox___22283; + s.callLocIdx = 810; s.pc = 100; return s.tmp_12; case 100: r0 = s.retval; s.tmp_11 = r0; - r0 = (s.tmp_11 - s.yDiff___20514); + r0 = (s.tmp_11 - s.yDiff___22300); s.tmp_10.arg1 = r0; - s.callLocIdx = 778; s.pc = 99; return s.tmp_10; + s.callLocIdx = 812; s.pc = 99; return s.tmp_10; case 99: r0 = s.retval; s.tmp_9 = r0; r0 = (s.tmp_9 + 128); s.tmp_8 = r0; - r0 = (s.tileScale___20500 + 8); + r0 = (s.tileScale___22286 + 8); s.tmp_13 = r0; r0 = (s.tmp_8 >> s.tmp_13); - s.y0___20565 = (r0); + s.y0___22351 = (r0); s.tmp_1 = tiles_TileMap_isObstacle__P2592_mk(s); s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___20534; - s.tmp_1.arg2 = s.y0___20565; - s.callLocIdx = 781; s.pc = 101; return s.tmp_1; + s.tmp_1.arg1 = s.x0___22320; + s.tmp_1.arg2 = s.y0___22351; + s.callLocIdx = 815; s.pc = 101; return s.tmp_1; case 101: r0 = s.retval; s.tmp_0 = r0; @@ -49620,19 +54722,19 @@ switch (step) { if (!r0) { step = 12; continue; } s.tmp_2 = tiles_TileMap_getObstacle__P2593_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___20534; - s.tmp_2.arg2 = s.y0___20565; - s.callLocIdx = 782; s.pc = 102; return s.tmp_2; + s.tmp_2.arg1 = s.x0___22320; + s.tmp_2.arg2 = s.y0___22351; + s.callLocIdx = 816; s.pc = 102; return s.tmp_2; case 102: r0 = s.retval; - s.obstacle___20581 = (r0); - r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P20589); + s.obstacle___22367 = (r0); + r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P22375); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___20581); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___22367); s.tmp_4 = helpers_arraySome__P107_mk(s); - s.tmp_4.arg0 = s.collidedTiles___20549; + s.tmp_4.arg0 = s.collidedTiles___22335; s.tmp_4.arg1 = s.tmp_0; - s.callLocIdx = 783; s.pc = 103; return s.tmp_4; + s.callLocIdx = 817; s.pc = 103; return s.tmp_4; case 103: r0 = s.retval; s.tmp_3 = r0; @@ -49642,22 +54744,22 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 10; continue; } - r0 = pxsim_Array__push(s.collidedTiles___20549, s.obstacle___20581); + r0 = pxsim_Array__push(s.collidedTiles___22335, s.obstacle___22367); case 10: case 11: case 12: case 13: - r0 = (s.tileSize___20503 << 8); + r0 = (s.tileSize___22289 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.y___20551); - s.y___20551 = (r0); + r0 = (s.tmp_0 + s.y___22337); + s.y___22337 = (r0); { step = 9; continue; } case 14: - r0 = pxsim_Array__length(s.collidedTiles___20549); + r0 = pxsim_Array__length(s.collidedTiles___22335); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 39; continue; } - r0 = pxsim_numops_toBoolDecr(s.right___20530); + r0 = pxsim_numops_toBoolDecr(s.right___22316); if (!r0) { step = 15; continue; } r0 = 2; { step = 16; continue; } @@ -49666,23 +54768,23 @@ switch (step) { case 16: // jmp value (already in r0) s.tmp_1 = r0; - s.collisionDirection___20608 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.right___20530); + s.collisionDirection___22394 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.right___22316); if (!r0) { step = 17; continue; } - r0 = (s.x0___20534 << s.tileScale___20500); + r0 = (s.x0___22320 << s.tileScale___22286); 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___20497.fields["width"]; + r0 = s.hbox___22283.fields["width"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); { step = 18; continue; } case 17: - r0 = (s.x0___20534 + 1); + r0 = (s.x0___22320 + 1); s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___20500); + r0 = (s.tmp_5 << s.tileScale___22286); s.tmp_4 = r0; r0 = (s.tmp_4 * 256); s.tmp_6 = r0; @@ -49690,14 +54792,14 @@ switch (step) { case 18: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.s___20472; - r0 = s.hbox___20497.fields["ox"]; + s.tmp_8 = r0 = s.s___22258; + r0 = s.hbox___22283.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___20634 = (undefined); - s.unnamed88___U14 = (s.collidedTiles___20549); + s.tile___22420 = (undefined); + s.unnamed88___U14 = (s.collidedTiles___22335); s.unnamed89___U15 = (0); case 19: s.tmp_0 = r0 = s.unnamed89___U15; @@ -49706,8 +54808,8 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 22; continue; } r0 = pxsim_Array__getAt(s.unnamed88___U14, s.unnamed89___U15); - s.tile___20634 = (r0); - r0 = s.s___20472.fields["flags"]; + s.tile___22420 = (r0); + r0 = s.s___22258.fields["flags"]; s.tmp_5 = r0; r0 = (s.tmp_5 & 2818); s.tmp_4 = r0; @@ -49718,11 +54820,11 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 20; continue; } s.tmp_6 = Sprite_registerObstacle__P2267_mk(s); - s.tmp_6.arg0 = s.s___20472; - s.tmp_6.arg1 = s.collisionDirection___20608; - s.tmp_6.arg2 = s.tile___20634; + s.tmp_6.arg0 = s.s___22258; + s.tmp_6.arg1 = s.collisionDirection___22394; + s.tmp_6.arg2 = s.tile___22420; s.tmp_6.arg3 = s.arg2; - s.callLocIdx = 789; s.pc = 104; return s.tmp_6; + s.callLocIdx = 823; s.pc = 104; return s.tmp_6; case 104: r0 = s.retval; case 20: @@ -49732,22 +54834,22 @@ switch (step) { { step = 19; continue; } case 22: s.unnamed88___U14 = (undefined); - r0 = s.s___20472.fields["flags"]; + r0 = s.s___22258.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 = 23; continue; } s.tmp_2 = Sprite_destroy__P2269_mk(s); - s.tmp_2.arg0 = s.s___20472; + s.tmp_2.arg0 = s.s___22258; s.tmp_2.arg1 = undefined; s.tmp_2.arg2 = undefined; - s.callLocIdx = 790; s.pc = 105; return s.tmp_2; + s.callLocIdx = 824; s.pc = 105; return s.tmp_2; case 105: r0 = s.retval; { step = 38; continue; } case 23: - r0 = s.s___20472.fields["_vx"]; + r0 = s.s___22258.fields["_vx"]; s.tmp_1 = r0; r0 = s.arg1.fields["cachedVx"]; s.tmp_2 = r0; @@ -49755,13 +54857,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 34; continue; } - r0 = s.s___20472.fields["flags"]; + r0 = s.s___22258.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 = 32; continue; } - r0 = pxsim_numops_toBoolDecr(s.right___20530); + r0 = pxsim_numops_toBoolDecr(s.right___22316); s.tmp_6 = r0; r0 = pxsim_Boolean__bang(s.tmp_6); s.tmp_5 = r0; @@ -49771,8 +54873,8 @@ switch (step) { { step = 25; continue; } case 24: s.tmp_8 = Sprite_vx__P2199_mk(s); - s.tmp_8.arg0 = s.s___20472; - s.callLocIdx = 791; s.pc = 106; return s.tmp_8; + s.tmp_8.arg0 = s.s___22258; + s.callLocIdx = 825; s.pc = 106; return s.tmp_8; case 106: r0 = s.retval; s.tmp_7 = r0; @@ -49785,15 +54887,15 @@ switch (step) { r0 = s.tmp_9; { step = 29; continue; } case 26: - s.tmp_10 = r0 = s.right___20530; + s.tmp_10 = r0 = s.right___22316; r0 = pxsim_numops_toBool(s.tmp_10); if (r0) { step = 27; continue; } r0 = s.tmp_10; { step = 28; continue; } case 27: s.tmp_12 = Sprite_vx__P2199_mk(s); - s.tmp_12.arg0 = s.s___20472; - s.callLocIdx = 792; s.pc = 107; return s.tmp_12; + s.tmp_12.arg0 = s.s___22258; + s.callLocIdx = 826; s.pc = 107; return s.tmp_12; case 107: r0 = s.retval; s.tmp_11 = r0; @@ -49807,8 +54909,8 @@ switch (step) { s.tmp_14 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_14); if (!r0) { step = 30; continue; } - s.tmp_15 = r0 = s.s___20472; - r0 = s.s___20472.fields["_vx"]; + s.tmp_15 = r0 = s.s___22258; + r0 = s.s___22258.fields["_vx"]; s.tmp_17 = r0; r0 = (0 - s.tmp_17); s.tmp_16 = r0; @@ -49830,18 +54932,18 @@ switch (step) { { step = 33; continue; } case 32: r0 = (s.arg1).fields["dx"] = (0); - r0 = (s.s___20472).fields["_vx"] = (0); + r0 = (s.s___22258).fields["_vx"] = (0); case 33: { step = 37; continue; } case 34: s.tmp_2 = Math_sign__P129_mk(s); - r0 = s.s___20472.fields["_vx"]; + r0 = s.s___22258.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 = 797; s.pc = 108; return s.tmp_2; + s.callLocIdx = 831; s.pc = 108; return s.tmp_2; case 108: r0 = s.retval; s.tmp_1 = r0; @@ -49852,7 +54954,7 @@ switch (step) { s.tmp_8 = r0; r0 = (s.tmp_8 >> 8); s.tmp_6.arg0 = r0; - s.callLocIdx = 799; s.pc = 109; return s.tmp_6; + s.callLocIdx = 833; s.pc = 109; return s.tmp_6; case 109: r0 = s.retval; s.tmp_5 = r0; @@ -49869,17 +54971,17 @@ switch (step) { case 40: case 41: case 42: - r0 = (s.yDiff___20514 !== 0); + r0 = (s.yDiff___22300 !== 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 77; continue; } - r0 = (s.yDiff___20514 > 0); - s.down___20718 = (r0); - r0 = pxsim_numops_toBoolDecr(s.down___20718); + r0 = (s.yDiff___22300 > 0); + s.down___22504 = (r0); + r0 = pxsim_numops_toBoolDecr(s.down___22504); if (!r0) { step = 43; continue; } s.tmp_1 = game_Hitbox_bottom__P2062_mk(s); - s.tmp_1.arg0 = s.hbox___20497; - s.callLocIdx = 800; s.pc = 110; return s.tmp_1; + s.tmp_1.arg0 = s.hbox___22283; + s.callLocIdx = 834; s.pc = 110; return s.tmp_1; case 110: r0 = s.retval; s.tmp_0 = r0; @@ -49887,8 +54989,8 @@ switch (step) { { step = 44; continue; } case 43: s.tmp_3 = game_Hitbox_top__P2060_mk(s); - s.tmp_3.arg0 = s.hbox___20497; - s.callLocIdx = 802; s.pc = 111; return s.tmp_3; + s.tmp_3.arg0 = s.hbox___22283; + s.callLocIdx = 836; s.pc = 111; return s.tmp_3; case 111: r0 = s.retval; s.tmp_2 = r0; @@ -49898,24 +55000,24 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 128); s.tmp_5 = r0; - r0 = (s.tileScale___20500 + 8); + r0 = (s.tileScale___22286 + 8); s.tmp_6 = r0; r0 = (s.tmp_5 >> s.tmp_6); - s.y0___20722 = (r0); + s.y0___22508 = (r0); r0 = pxsim_Array__mk(); - s.collidedTiles___20737 = (r0); + s.collidedTiles___22523 = (r0); s.tmp_0 = game_Hitbox_left__P2059_mk(s); - s.tmp_0.arg0 = s.hbox___20497; - s.callLocIdx = 806; s.pc = 112; return s.tmp_0; + s.tmp_0.arg0 = s.hbox___22283; + s.callLocIdx = 840; s.pc = 112; return s.tmp_0; case 112: r0 = s.retval; - s.x___20739 = (r0); + s.x___22525 = (r0); case 45: - s.tmp_1 = r0 = s.x___20739; - s.tmp_3 = r0 = s.tileSize___20503; + s.tmp_1 = r0 = s.x___22525; + s.tmp_3 = r0 = s.tileSize___22289; s.tmp_5 = game_Hitbox_right__P2061_mk(s); - s.tmp_5.arg0 = s.hbox___20497; - s.callLocIdx = 807; s.pc = 113; return s.tmp_5; + s.tmp_5.arg0 = s.hbox___22283; + s.callLocIdx = 841; s.pc = 113; return s.tmp_5; case 113: r0 = s.retval; s.tmp_4 = r0; @@ -49928,28 +55030,28 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 50; continue; } s.tmp_9 = Fx_min__P166_mk(s); - s.tmp_9.arg0 = s.x___20739; + s.tmp_9.arg0 = s.x___22525; s.tmp_10 = game_Hitbox_right__P2061_mk(s); - s.tmp_10.arg0 = s.hbox___20497; - s.callLocIdx = 809; s.pc = 115; return s.tmp_10; + s.tmp_10.arg0 = s.hbox___22283; + s.callLocIdx = 843; s.pc = 115; return s.tmp_10; case 115: r0 = s.retval; s.tmp_9.arg1 = r0; - s.callLocIdx = 810; s.pc = 114; return s.tmp_9; + s.callLocIdx = 844; s.pc = 114; return s.tmp_9; case 114: r0 = s.retval; s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___20500 + 8); + r0 = (s.tileScale___22286 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.x0___20749 = (r0); + s.x0___22535 = (r0); s.tmp_1 = tiles_TileMap_isObstacle__P2592_mk(s); s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___20749; - s.tmp_1.arg2 = s.y0___20722; - s.callLocIdx = 813; s.pc = 116; return s.tmp_1; + s.tmp_1.arg1 = s.x0___22535; + s.tmp_1.arg2 = s.y0___22508; + s.callLocIdx = 847; s.pc = 116; return s.tmp_1; case 116: r0 = s.retval; s.tmp_0 = r0; @@ -49957,19 +55059,19 @@ switch (step) { if (!r0) { step = 48; continue; } s.tmp_2 = tiles_TileMap_getObstacle__P2593_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___20749; - s.tmp_2.arg2 = s.y0___20722; - s.callLocIdx = 814; s.pc = 117; return s.tmp_2; + s.tmp_2.arg1 = s.x0___22535; + s.tmp_2.arg2 = s.y0___22508; + s.callLocIdx = 848; s.pc = 117; return s.tmp_2; case 117: r0 = s.retval; - s.obstacle___20763 = (r0); - r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P20771); + s.obstacle___22549 = (r0); + r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P22557); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___20763); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___22549); s.tmp_4 = helpers_arraySome__P107_mk(s); - s.tmp_4.arg0 = s.collidedTiles___20737; + s.tmp_4.arg0 = s.collidedTiles___22523; s.tmp_4.arg1 = s.tmp_0; - s.callLocIdx = 815; s.pc = 118; return s.tmp_4; + s.callLocIdx = 849; s.pc = 118; return s.tmp_4; case 118: r0 = s.retval; s.tmp_3 = r0; @@ -49979,22 +55081,22 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 46; continue; } - r0 = pxsim_Array__push(s.collidedTiles___20737, s.obstacle___20763); + r0 = pxsim_Array__push(s.collidedTiles___22523, s.obstacle___22549); case 46: case 47: case 48: case 49: - r0 = (s.tileSize___20503 << 8); + r0 = (s.tileSize___22289 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.x___20739); - s.x___20739 = (r0); + r0 = (s.tmp_0 + s.x___22525); + s.x___22525 = (r0); { step = 45; continue; } case 50: - r0 = pxsim_Array__length(s.collidedTiles___20737); + r0 = pxsim_Array__length(s.collidedTiles___22523); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 75; continue; } - r0 = pxsim_numops_toBoolDecr(s.down___20718); + r0 = pxsim_numops_toBoolDecr(s.down___22504); if (!r0) { step = 51; continue; } r0 = 3; { step = 52; continue; } @@ -50003,23 +55105,23 @@ switch (step) { case 52: // jmp value (already in r0) s.tmp_1 = r0; - s.collisionDirection___20790 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.down___20718); + s.collisionDirection___22576 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.down___22504); if (!r0) { step = 53; continue; } - r0 = (s.y0___20722 << s.tileScale___20500); + r0 = (s.y0___22508 << s.tileScale___22286); 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___20497.fields["height"]; + r0 = s.hbox___22283.fields["height"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); { step = 54; continue; } case 53: - r0 = (s.y0___20722 + 1); + r0 = (s.y0___22508 + 1); s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___20500); + r0 = (s.tmp_5 << s.tileScale___22286); s.tmp_4 = r0; r0 = (s.tmp_4 * 256); s.tmp_6 = r0; @@ -50027,14 +55129,14 @@ switch (step) { case 54: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.s___20472; - r0 = s.hbox___20497.fields["oy"]; + s.tmp_8 = r0 = s.s___22258; + r0 = s.hbox___22283.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___20816 = (undefined); - s.unnamed90___U24 = (s.collidedTiles___20737); + s.tile___22602 = (undefined); + s.unnamed90___U24 = (s.collidedTiles___22523); s.unnamed91___U25 = (0); case 55: s.tmp_0 = r0 = s.unnamed91___U25; @@ -50043,8 +55145,8 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 58; continue; } r0 = pxsim_Array__getAt(s.unnamed90___U24, s.unnamed91___U25); - s.tile___20816 = (r0); - r0 = s.s___20472.fields["flags"]; + s.tile___22602 = (r0); + r0 = s.s___22258.fields["flags"]; s.tmp_5 = r0; r0 = (s.tmp_5 & 2818); s.tmp_4 = r0; @@ -50055,11 +55157,11 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 56; continue; } s.tmp_6 = Sprite_registerObstacle__P2267_mk(s); - s.tmp_6.arg0 = s.s___20472; - s.tmp_6.arg1 = s.collisionDirection___20790; - s.tmp_6.arg2 = s.tile___20816; + s.tmp_6.arg0 = s.s___22258; + s.tmp_6.arg1 = s.collisionDirection___22576; + s.tmp_6.arg2 = s.tile___22602; s.tmp_6.arg3 = s.arg2; - s.callLocIdx = 821; s.pc = 119; return s.tmp_6; + s.callLocIdx = 855; s.pc = 119; return s.tmp_6; case 119: r0 = s.retval; case 56: @@ -50069,22 +55171,22 @@ switch (step) { { step = 55; continue; } case 58: s.unnamed90___U24 = (undefined); - r0 = s.s___20472.fields["flags"]; + r0 = s.s___22258.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 = 59; continue; } s.tmp_2 = Sprite_destroy__P2269_mk(s); - s.tmp_2.arg0 = s.s___20472; + s.tmp_2.arg0 = s.s___22258; s.tmp_2.arg1 = undefined; s.tmp_2.arg2 = undefined; - s.callLocIdx = 822; s.pc = 120; return s.tmp_2; + s.callLocIdx = 856; s.pc = 120; return s.tmp_2; case 120: r0 = s.retval; { step = 74; continue; } case 59: - r0 = s.s___20472.fields["_vy"]; + r0 = s.s___22258.fields["_vy"]; s.tmp_1 = r0; r0 = s.arg1.fields["cachedVy"]; s.tmp_2 = r0; @@ -50092,13 +55194,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 70; continue; } - r0 = s.s___20472.fields["flags"]; + r0 = s.s___22258.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 = 68; continue; } - r0 = pxsim_numops_toBoolDecr(s.down___20718); + r0 = pxsim_numops_toBoolDecr(s.down___22504); s.tmp_6 = r0; r0 = pxsim_Boolean__bang(s.tmp_6); s.tmp_5 = r0; @@ -50108,8 +55210,8 @@ switch (step) { { step = 61; continue; } case 60: s.tmp_8 = Sprite_vy__P2201_mk(s); - s.tmp_8.arg0 = s.s___20472; - s.callLocIdx = 823; s.pc = 121; return s.tmp_8; + s.tmp_8.arg0 = s.s___22258; + s.callLocIdx = 857; s.pc = 121; return s.tmp_8; case 121: r0 = s.retval; s.tmp_7 = r0; @@ -50122,15 +55224,15 @@ switch (step) { r0 = s.tmp_9; { step = 65; continue; } case 62: - s.tmp_10 = r0 = s.down___20718; + s.tmp_10 = r0 = s.down___22504; r0 = pxsim_numops_toBool(s.tmp_10); if (r0) { step = 63; continue; } r0 = s.tmp_10; { step = 64; continue; } case 63: s.tmp_12 = Sprite_vy__P2201_mk(s); - s.tmp_12.arg0 = s.s___20472; - s.callLocIdx = 824; s.pc = 122; return s.tmp_12; + s.tmp_12.arg0 = s.s___22258; + s.callLocIdx = 858; s.pc = 122; return s.tmp_12; case 122: r0 = s.retval; s.tmp_11 = r0; @@ -50144,8 +55246,8 @@ switch (step) { s.tmp_14 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_14); if (!r0) { step = 66; continue; } - s.tmp_15 = r0 = s.s___20472; - r0 = s.s___20472.fields["_vy"]; + s.tmp_15 = r0 = s.s___22258; + r0 = s.s___22258.fields["_vy"]; s.tmp_17 = r0; r0 = (0 - s.tmp_17); s.tmp_16 = r0; @@ -50167,18 +55269,18 @@ switch (step) { { step = 69; continue; } case 68: r0 = (s.arg1).fields["dy"] = (0); - r0 = (s.s___20472).fields["_vy"] = (0); + r0 = (s.s___22258).fields["_vy"] = (0); case 69: { step = 73; continue; } case 70: s.tmp_2 = Math_sign__P129_mk(s); - r0 = s.s___20472.fields["_vy"]; + r0 = s.s___22258.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 = 829; s.pc = 123; return s.tmp_2; + s.callLocIdx = 863; s.pc = 123; return s.tmp_2; case 123: r0 = s.retval; s.tmp_1 = r0; @@ -50189,7 +55291,7 @@ switch (step) { s.tmp_8 = r0; r0 = (s.tmp_8 >> 8); s.tmp_6.arg0 = r0; - s.callLocIdx = 831; s.pc = 124; return s.tmp_6; + s.callLocIdx = 865; s.pc = 124; return s.tmp_6; case 124: r0 = s.retval; s.tmp_5 = r0; @@ -50208,7 +55310,7 @@ switch (step) { case 78: case 79: case 80: - r0 = s.s___20472.fields["flags"]; + r0 = s.s___22258.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 1538); s.tmp_2 = r0; @@ -50219,19 +55321,19 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 91; continue; } r0 = pxsim_Array__mk(); - s.overlappedTiles___20903 = (r0); + s.overlappedTiles___22689 = (r0); s.tmp_0 = game_Hitbox_left__P2059_mk(s); - s.tmp_0.arg0 = s.hbox___20497; - s.callLocIdx = 832; s.pc = 125; return s.tmp_0; + s.tmp_0.arg0 = s.hbox___22283; + s.callLocIdx = 866; s.pc = 125; return s.tmp_0; case 125: r0 = s.retval; - s.x___20905 = (r0); + s.x___22691 = (r0); case 81: - s.tmp_1 = r0 = s.x___20905; - s.tmp_3 = r0 = s.tileSize___20503; + s.tmp_1 = r0 = s.x___22691; + s.tmp_3 = r0 = s.tileSize___22289; s.tmp_5 = game_Hitbox_right__P2061_mk(s); - s.tmp_5.arg0 = s.hbox___20497; - s.callLocIdx = 833; s.pc = 126; return s.tmp_5; + s.tmp_5.arg0 = s.hbox___22283; + s.callLocIdx = 867; s.pc = 126; return s.tmp_5; case 126: r0 = s.retval; s.tmp_4 = r0; @@ -50244,35 +55346,35 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 88; continue; } s.tmp_9 = Fx_min__P166_mk(s); - s.tmp_9.arg0 = s.x___20905; + s.tmp_9.arg0 = s.x___22691; s.tmp_10 = game_Hitbox_right__P2061_mk(s); - s.tmp_10.arg0 = s.hbox___20497; - s.callLocIdx = 835; s.pc = 128; return s.tmp_10; + s.tmp_10.arg0 = s.hbox___22283; + s.callLocIdx = 869; s.pc = 128; return s.tmp_10; case 128: r0 = s.retval; s.tmp_9.arg1 = r0; - s.callLocIdx = 836; s.pc = 127; return s.tmp_9; + s.callLocIdx = 870; s.pc = 127; return s.tmp_9; case 127: r0 = s.retval; s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___20500 + 8); + r0 = (s.tileScale___22286 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.x0___20915 = (r0); + s.x0___22701 = (r0); s.tmp_0 = game_Hitbox_top__P2060_mk(s); - s.tmp_0.arg0 = s.hbox___20497; - s.callLocIdx = 839; s.pc = 129; return s.tmp_0; + s.tmp_0.arg0 = s.hbox___22283; + s.callLocIdx = 873; s.pc = 129; return s.tmp_0; case 129: r0 = s.retval; - s.y___20925 = (r0); + s.y___22711 = (r0); case 82: - s.tmp_1 = r0 = s.y___20925; - s.tmp_3 = r0 = s.tileSize___20503; + s.tmp_1 = r0 = s.y___22711; + s.tmp_3 = r0 = s.tileSize___22289; s.tmp_5 = game_Hitbox_bottom__P2062_mk(s); - s.tmp_5.arg0 = s.hbox___20497; - s.callLocIdx = 840; s.pc = 130; return s.tmp_5; + s.tmp_5.arg0 = s.hbox___22283; + s.callLocIdx = 874; s.pc = 130; return s.tmp_5; case 130: r0 = s.retval; s.tmp_4 = r0; @@ -50285,28 +55387,28 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 87; continue; } s.tmp_9 = Fx_min__P166_mk(s); - s.tmp_9.arg0 = s.y___20925; + s.tmp_9.arg0 = s.y___22711; s.tmp_10 = game_Hitbox_bottom__P2062_mk(s); - s.tmp_10.arg0 = s.hbox___20497; - s.callLocIdx = 842; s.pc = 132; return s.tmp_10; + s.tmp_10.arg0 = s.hbox___22283; + s.callLocIdx = 876; s.pc = 132; return s.tmp_10; case 132: r0 = s.retval; s.tmp_9.arg1 = r0; - s.callLocIdx = 843; s.pc = 131; return s.tmp_9; + s.callLocIdx = 877; s.pc = 131; return s.tmp_9; case 131: r0 = s.retval; s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___20500 + 8); + r0 = (s.tileScale___22286 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.y0___20935 = (r0); + s.y0___22721 = (r0); s.tmp_3 = tiles_TileMap_isObstacle__P2592_mk(s); s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.x0___20915; - s.tmp_3.arg2 = s.y0___20935; - s.callLocIdx = 846; s.pc = 133; return s.tmp_3; + s.tmp_3.arg1 = s.x0___22701; + s.tmp_3.arg2 = s.y0___22721; + s.callLocIdx = 880; s.pc = 133; return s.tmp_3; case 133: r0 = s.retval; s.tmp_2 = r0; @@ -50319,7 +55421,7 @@ switch (step) { r0 = s.tmp_0; { step = 84; continue; } case 83: - r0 = s.s___20472.fields["flags"]; + r0 = s.s___22258.fields["flags"]; s.tmp_8 = r0; r0 = (s.tmp_8 & 2048); s.tmp_7 = r0; @@ -50335,39 +55437,39 @@ switch (step) { s.tmp_9 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_9); if (!r0) { step = 85; continue; } - s.tmp_10 = r0 = s.overlappedTiles___20903; + s.tmp_10 = r0 = s.overlappedTiles___22689; s.tmp_12 = tiles_TileMap_getTile__P2585_mk(s); s.tmp_12.arg0 = s.arg2; - s.tmp_12.arg1 = s.x0___20915; - s.tmp_12.arg2 = s.y0___20935; - s.callLocIdx = 847; s.pc = 134; return s.tmp_12; + s.tmp_12.arg1 = s.x0___22701; + s.tmp_12.arg2 = s.y0___22721; + s.callLocIdx = 881; s.pc = 134; return s.tmp_12; case 134: r0 = s.retval; s.tmp_11 = r0; r0 = pxsim_Array__push(s.tmp_10, s.tmp_11); case 85: case 86: - r0 = (s.tileSize___20503 << 8); + r0 = (s.tileSize___22289 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.y___20925); - s.y___20925 = (r0); + r0 = (s.tmp_0 + s.y___22711); + s.y___22711 = (r0); { step = 82; continue; } case 87: - r0 = (s.tileSize___20503 << 8); + r0 = (s.tileSize___22289 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.x___20905); - s.x___20905 = (r0); + r0 = (s.tmp_0 + s.x___22691); + s.x___22691 = (r0); { step = 81; continue; } case 88: - r0 = pxsim_Array__length(s.overlappedTiles___20903); + r0 = pxsim_Array__length(s.overlappedTiles___22689); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 89; continue; } - s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P4571_mk(s); + s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P4611_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.s___20472; - s.tmp_1.arg2 = s.overlappedTiles___20903; - s.callLocIdx = 850; s.pc = 135; return s.tmp_1; + s.tmp_1.arg1 = s.s___22258; + s.tmp_1.arg2 = s.overlappedTiles___22689; + s.callLocIdx = 884; s.pc = 135; return s.tmp_1; case 135: r0 = s.retval; case 89: @@ -50378,12 +55480,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapCollisions__P4570.info = {"start":12895,"length":9572,"line":378,"column":4,"endLine":617,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapCollisions","argumentNames":["this","movingSprite","tm"]} +ArcadePhysicsEngine_tilemapCollisions__P4610.info = {"start":12895,"length":9572,"line":378,"column":4,"endLine":617,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapCollisions","argumentNames":["this","movingSprite","tm"]} -function ArcadePhysicsEngine_tilemapCollisions__P4570_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions__P4610_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P4570, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P4610, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -50403,37 +55505,37 @@ function ArcadePhysicsEngine_tilemapCollisions__P4570_mk(s) { tmp_15: undefined, tmp_16: undefined, tmp_17: undefined, - s___20472: undefined, - hbox___20497: undefined, - tileScale___20500: undefined, - tileSize___20503: undefined, - xDiff___20507: undefined, - yDiff___20514: undefined, - right___20530: undefined, - x0___20534: undefined, - collidedTiles___20549: undefined, - y___20551: undefined, - y0___20565: undefined, - obstacle___20581: undefined, - collisionDirection___20608: undefined, - tile___20634: undefined, + s___22258: undefined, + hbox___22283: undefined, + tileScale___22286: undefined, + tileSize___22289: undefined, + xDiff___22293: undefined, + yDiff___22300: undefined, + right___22316: undefined, + x0___22320: undefined, + collidedTiles___22335: undefined, + y___22337: undefined, + y0___22351: undefined, + obstacle___22367: undefined, + collisionDirection___22394: undefined, + tile___22420: undefined, unnamed88___U14: undefined, unnamed89___U15: undefined, - down___20718: undefined, - y0___20722: undefined, - collidedTiles___20737: undefined, - x___20739: undefined, - x0___20749: undefined, - obstacle___20763: undefined, - collisionDirection___20790: undefined, - tile___20816: undefined, + down___22504: undefined, + y0___22508: undefined, + collidedTiles___22523: undefined, + x___22525: undefined, + x0___22535: undefined, + obstacle___22549: undefined, + collisionDirection___22576: undefined, + tile___22602: undefined, unnamed90___U24: undefined, unnamed91___U25: undefined, - overlappedTiles___20903: undefined, - x___20905: undefined, - x0___20915: undefined, - y___20925: undefined, - y0___20935: undefined, + overlappedTiles___22689: undefined, + x___22691: undefined, + x0___22701: undefined, + y___22711: undefined, + y0___22721: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -50443,7 +55545,7 @@ function ArcadePhysicsEngine_tilemapCollisions__P4570_mk(s) { -function ArcadePhysicsEngine_tilemapCollisions_inline__P20589(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P22375(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50465,12 +55567,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapCollisions_inline__P20589.info = {"start":15113,"length":39,"line":440,"column":48,"endLine":440,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} +ArcadePhysicsEngine_tilemapCollisions_inline__P22375.info = {"start":15113,"length":39,"line":440,"column":48,"endLine":440,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} -function ArcadePhysicsEngine_tilemapCollisions_inline__P20589_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P22375_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P20589, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P22375, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -50481,7 +55583,7 @@ function ArcadePhysicsEngine_tilemapCollisions_inline__P20589_mk(s) { -function ArcadePhysicsEngine_tilemapCollisions_inline__P20771(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P22557(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50503,12 +55605,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapCollisions_inline__P20771.info = {"start":18593,"length":39,"line":521,"column":48,"endLine":521,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} +ArcadePhysicsEngine_tilemapCollisions_inline__P22557.info = {"start":18593,"length":39,"line":521,"column":48,"endLine":521,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} -function ArcadePhysicsEngine_tilemapCollisions_inline__P20771_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P22557_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P20771, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P22557, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -50519,7 +55621,7 @@ function ArcadePhysicsEngine_tilemapCollisions_inline__P20771_mk(s) { -function ArcadePhysicsEngine_tilemapOverlaps__P4571(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P4611(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50529,11 +55631,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.alreadyHandled___20982 = undefined; - s.tile___20985 = undefined; + s.alreadyHandled___22768 = undefined; + s.tile___22771 = undefined; s.unnamed92___U2 = undefined; s.unnamed93___U3 = undefined; - s.tileOverlapHandlers___21006 = undefined; + s.tileOverlapHandlers___22792 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -50543,8 +55645,8 @@ switch (step) { r0 = s.arg0; if (!checkSubtype(r0, ArcadePhysicsEngine__C2368_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.alreadyHandled___20982 = (r0); - s.tile___20985 = (undefined); + s.alreadyHandled___22768 = (r0); + s.tile___22771 = (undefined); s.unnamed92___U2 = (s.arg2); s.unnamed93___U3 = (0); case 1: @@ -50554,14 +55656,14 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 7; continue; } r0 = pxsim_Array__getAt(s.unnamed92___U2, s.unnamed93___U3); - s.tile___20985 = (r0); - r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapOverlaps_inline__P20989); + s.tile___22771 = (r0); + r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapOverlaps_inline__P22775); s.tmp_2 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___20985); + r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___22771); s.tmp_4 = helpers_arraySome__P107_mk(s); - s.tmp_4.arg0 = s.alreadyHandled___20982; + s.tmp_4.arg0 = s.alreadyHandled___22768; s.tmp_4.arg1 = s.tmp_2; - s.callLocIdx = 855; s.pc = 8; return s.tmp_4; + s.callLocIdx = 889; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; s.tmp_3 = r0; @@ -50570,33 +55672,33 @@ switch (step) { { step = 6; continue; } case 2: case 3: - r0 = pxsim_Array__push(s.alreadyHandled___20982, s.tile___20985); + r0 = pxsim_Array__push(s.alreadyHandled___22768, s.tile___22771); s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 856; s.pc = 9; return s.tmp_0; + s.callLocIdx = 890; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; r0 = r0.fields["tileOverlapHandlers"]; - s.tileOverlapHandlers___21006 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___21006); + s.tileOverlapHandlers___22792 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___22792); if (!r0) { step = 4; continue; } - r0 = pxsim_pxtcore_mkAction(2, forEach_inline__P21014); + r0 = pxsim_pxtcore_mkAction(2, forEach_inline__P22800); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___20985); - r0 = pxsim_pxtcore_mkAction(2, ArcadePhysicsEngine_tilemapOverlaps_inline__P21028); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___22771); + r0 = pxsim_pxtcore_mkAction(2, ArcadePhysicsEngine_tilemapOverlaps_inline__P22814); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___20985); + r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___22771); s.tmp_2 = helpers_arrayForEach__P109_mk(s); s.tmp_3 = helpers_arrayFilter__P110_mk(s); - s.tmp_3.arg0 = s.tileOverlapHandlers___21006; + s.tmp_3.arg0 = s.tileOverlapHandlers___22792; s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 859; s.pc = 11; return s.tmp_3; + s.callLocIdx = 893; 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 = 861; s.pc = 10; return s.tmp_2; + s.callLocIdx = 895; s.pc = 10; return s.tmp_2; case 10: r0 = s.retval; case 4: @@ -50611,23 +55713,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapOverlaps__P4571.info = {"start":22744,"length":707,"line":625,"column":4,"endLine":641,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapOverlaps","argumentNames":["this","sprite","overlappedTiles"]} +ArcadePhysicsEngine_tilemapOverlaps__P4611.info = {"start":22744,"length":707,"line":625,"column":4,"endLine":641,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapOverlaps","argumentNames":["this","sprite","overlappedTiles"]} -function ArcadePhysicsEngine_tilemapOverlaps__P4571_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P4611_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P4571, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P4611, depth: s.depth + 1, pc: 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___20982: undefined, - tile___20985: undefined, + alreadyHandled___22768: undefined, + tile___22771: undefined, unnamed92___U2: undefined, unnamed93___U3: undefined, - tileOverlapHandlers___21006: undefined, + tileOverlapHandlers___22792: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -50637,7 +55739,7 @@ function ArcadePhysicsEngine_tilemapOverlaps__P4571_mk(s) { -function ArcadePhysicsEngine_tilemapOverlaps_inline__P20989(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P22775(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50674,12 +55776,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapOverlaps_inline__P20989.info = {"start":22959,"length":51,"line":629,"column":36,"endLine":629,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["l"]} +ArcadePhysicsEngine_tilemapOverlaps_inline__P22775.info = {"start":22959,"length":51,"line":629,"column":36,"endLine":629,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["l"]} -function ArcadePhysicsEngine_tilemapOverlaps_inline__P20989_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P22775_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P20989, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P22775, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -50694,7 +55796,7 @@ function ArcadePhysicsEngine_tilemapOverlaps_inline__P20989_mk(s) { -function forEach_inline__P21014(s) { +function forEach_inline__P22800(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50723,7 +55825,7 @@ switch (step) { s.tmp_3 = r0; s.tmp_5 = tiles_getTileImage__P2604_mk(s); s.tmp_5.arg0 = s.caps[1]; - s.callLocIdx = 858; s.pc = 3; return s.tmp_5; + s.callLocIdx = 892; s.pc = 3; return s.tmp_5; case 3: r0 = s.retval; s.tmp_4 = r0; @@ -50735,12 +55837,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -forEach_inline__P21014.info = {"start":23279,"length":81,"line":637,"column":28,"endLine":637,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +forEach_inline__P22800.info = {"start":23279,"length":81,"line":637,"column":28,"endLine":637,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function forEach_inline__P21014_mk(s) { +function forEach_inline__P22800_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P21014, depth: s.depth + 1, + parent: s, fn: forEach_inline__P22800, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -50756,7 +55858,7 @@ function forEach_inline__P21014_mk(s) { -function ArcadePhysicsEngine_tilemapOverlaps_inline__P21028(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P22814(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50776,12 +55878,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 = 860; s.pc = 1; return s.tmp_0; + s.callLocIdx = 894; 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 = 860; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 860; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 860; 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 = 894; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 894; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 894; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -50789,12 +55891,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapOverlaps_inline__P21028.info = {"start":23391,"length":28,"line":638,"column":29,"endLine":638,"endColumn":57,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +ArcadePhysicsEngine_tilemapOverlaps_inline__P22814.info = {"start":23391,"length":28,"line":638,"column":29,"endLine":638,"endColumn":57,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function ArcadePhysicsEngine_tilemapOverlaps_inline__P21028_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P22814_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P21028, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P22814, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -50814,16 +55916,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___21035 = undefined; + s.scene___22821 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1102; s.pc = 6; return s.tmp_0; + s.callLocIdx = 1136; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.scene___21035 = (r0); + s.scene___22821 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -50833,7 +55935,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___21035.fields["tileMap"]; + r0 = s.scene___22821.fields["tileMap"]; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; @@ -50843,20 +55945,20 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 3; continue; } - r0 = pxsim.image.ofBuffer(_hex21045); + r0 = pxsim.image.ofBuffer(_hex22831); { step = 5; continue; } case 3: case 4: s.tmp_5 = tiles_TileMap_getTileImage__P2595_mk(s); - r0 = s.scene___21035.fields["tileMap"]; + r0 = s.scene___22821.fields["tileMap"]; s.tmp_5.arg0 = r0; s.tmp_6 = tiles_Location_tileSet__P2540_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 1103; s.pc = 8; return s.tmp_6; + s.callLocIdx = 1137; s.pc = 8; return s.tmp_6; case 8: r0 = s.retval; s.tmp_5.arg1 = r0; - s.callLocIdx = 1104; s.pc = 7; return s.tmp_5; + s.callLocIdx = 1138; s.pc = 7; return s.tmp_5; case 7: r0 = s.retval; case 5: @@ -50877,11 +55979,11 @@ function tiles_getTileImage__P2604_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - scene___21035: undefined, + scene___22821: undefined, arg0: undefined, } } -const _hex21045 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") +const _hex22831 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") @@ -50907,7 +56009,7 @@ switch (step) { r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1097; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1131; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) @@ -50948,7 +56050,7 @@ switch (step) { s.tmp_0 = tiles_TileMap_getTileIndex__P2586_mk(s); s.tmp_1 = tiles_Location_tileMap__P2531_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 1022; s.pc = 2; return s.tmp_1; + s.callLocIdx = 1056; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg0 = r0; @@ -50956,7 +56058,7 @@ switch (step) { s.tmp_0.arg1 = r0; r0 = s.arg0.fields["_row"]; s.tmp_0.arg2 = r0; - s.callLocIdx = 1023; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1057; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leaveAccessor(s, r0) @@ -51002,7 +56104,7 @@ switch (step) { s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 1052; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1086; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) @@ -51105,8 +56207,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.index___21179 = undefined; - s.tile___21191 = undefined; + s.index___22965 = undefined; + s.tile___22977 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -51120,7 +56222,7 @@ switch (step) { s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; - s.callLocIdx = 1076; s.pc = 3; return s.tmp_1; + s.callLocIdx = 1110; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0 = r0; @@ -51134,26 +56236,26 @@ switch (step) { s.tmp_2.arg0 = r0; s.tmp_2.arg1 = s.arg1; s.tmp_2.arg2 = s.arg2; - s.callLocIdx = 1077; s.pc = 4; return s.tmp_2; + s.callLocIdx = 1111; 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___21179 = (s.tmp_3); + s.index___22965 = (s.tmp_3); s.tmp_0 = tiles_TileMapData_getTileImage__P2562_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___21179; - s.callLocIdx = 1078; s.pc = 5; return s.tmp_0; + s.tmp_0.arg1 = s.index___22965; + s.callLocIdx = 1112; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tile___21191 = (r0); + s.tile___22977 = (r0); r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C2339_VT); s.tmp_0 = r0; s.tmp_1 = sprites_StaticObstacle_constructor__P2345_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.tile___21191; + s.tmp_1.arg1 = s.tile___22977; s.tmp_2 = r0 = s.arg2; r0 = s.arg0.fields["_scale"]; s.tmp_3 = r0; @@ -51166,8 +56268,8 @@ switch (step) { s.tmp_1.arg3 = r0; r0 = s.arg0.fields["_layer"]; s.tmp_1.arg4 = r0; - s.tmp_1.arg5 = s.index___21179; - s.callLocIdx = 1082; s.pc = 6; return s.tmp_1; + s.tmp_1.arg5 = s.index___22965; + s.callLocIdx = 1116; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; r0 = s.tmp_0; @@ -51187,8 +56289,8 @@ function tiles_TileMap_getObstacle__P2593_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - index___21179: undefined, - tile___21191: undefined, + index___22965: undefined, + tile___22977: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -51325,7 +56427,7 @@ switch (step) { s.tmp_8.arg0 = r0; s.tmp_8.arg1 = s.arg1; s.tmp_8.arg2 = s.arg2; - s.callLocIdx = 1074; s.pc = 6; return s.tmp_8; + s.callLocIdx = 1108; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; s.tmp_7 = r0; @@ -51428,10 +56530,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.collisionHandlers___21092 = undefined; - s.wallCollisionHandlers___21099 = undefined; - s.wallHandlersToRun___21124 = undefined; - s.asTileLocation___21137 = undefined; + s.collisionHandlers___22878 = undefined; + s.wallCollisionHandlers___22885 = undefined; + s.wallHandlersToRun___22910 = undefined; + s.asTileLocation___22923 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -51445,7 +56547,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.arg2); s.tmp_1 = game_currentScene__P2792_mk(s); - s.callLocIdx = 503; s.pc = 9; return s.tmp_1; + s.callLocIdx = 537; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; r0 = r0.fields["collisionHandlers"]; @@ -51458,42 +56560,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 = 504; s.pc = 10; return s.tmp_3; } + else { s.callLocIdx = 538; 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___21092 = (r0); + s.collisionHandlers___22878 = (r0); s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 505; s.pc = 11; return s.tmp_0; + s.callLocIdx = 539; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; r0 = r0.fields["wallCollisionHandlers"]; - s.wallCollisionHandlers___21099 = (r0); - r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___21092); + s.wallCollisionHandlers___22885 = (r0); + r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___22878); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P21107); + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P22893); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, Sprite_registerObstacle_inline__P21113); + r0 = pxsim_pxtcore_mkAction(1, Sprite_registerObstacle_inline__P22899); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); s.tmp_2 = helpers_arrayForEach__P109_mk(s); s.tmp_3 = helpers_arrayFilter__P110_mk(s); - s.tmp_3.arg0 = s.collisionHandlers___21092; + s.tmp_3.arg0 = s.collisionHandlers___22878; s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 507; s.pc = 13; return s.tmp_3; + s.callLocIdx = 541; 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 = 509; s.pc = 12; return s.tmp_2; + s.callLocIdx = 543; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; case 1: case 2: - r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___21099); + r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___22885); if (!r0) { step = 7; continue; } s.tmp_0 = r0 = s.arg3; r0 = pxsim_numops_toBool(s.tmp_0); @@ -51502,7 +56604,7 @@ switch (step) { { step = 4; continue; } case 3: s.tmp_1 = game_currentScene__P2792_mk(s); - s.callLocIdx = 510; s.pc = 14; return s.tmp_1; + s.callLocIdx = 544; s.pc = 14; return s.tmp_1; case 14: r0 = s.retval; r0 = r0.fields["tileMap"]; @@ -51510,17 +56612,17 @@ switch (step) { // jmp value (already in r0) s.tmp_2 = r0; s.arg3 = (s.tmp_2); - r0 = pxsim_pxtcore_mkAction(1, wallHandlersToRun_inline__P21126); + r0 = pxsim_pxtcore_mkAction(1, wallHandlersToRun_inline__P22912); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); s.tmp_1 = helpers_arrayFilter__P110_mk(s); - s.tmp_1.arg0 = s.wallCollisionHandlers___21099; + s.tmp_1.arg0 = s.wallCollisionHandlers___22885; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 512; s.pc = 15; return s.tmp_1; + s.callLocIdx = 546; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; - s.wallHandlersToRun___21124 = (r0); - r0 = pxsim_Array__length(s.wallHandlersToRun___21124); + s.wallHandlersToRun___22910 = (r0); + r0 = pxsim_Array__length(s.wallHandlersToRun___22910); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } @@ -51534,7 +56636,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 = 513; s.pc = 17; return s.tmp_3; } + else { s.callLocIdx = 547; s.pc = 17; return s.tmp_3; } } case 17: r0 = s.retval; @@ -51551,7 +56653,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 = 515; s.pc = 18; return s.tmp_6; } + else { s.callLocIdx = 549; s.pc = 18; return s.tmp_6; } } case 18: r0 = s.retval; @@ -51560,18 +56662,18 @@ switch (step) { s.tmp_7 = r0; r0 = (s.tmp_5 >> s.tmp_7); s.tmp_1.arg2 = r0; - s.callLocIdx = 517; s.pc = 16; return s.tmp_1; + s.callLocIdx = 551; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - s.asTileLocation___21137 = (r0); - r0 = pxsim_pxtcore_mkAction(2, Sprite_registerObstacle_inline__P21153); + s.asTileLocation___22923 = (r0); + r0 = pxsim_pxtcore_mkAction(2, Sprite_registerObstacle_inline__P22939); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___21137); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___22923); s.tmp_1 = helpers_arrayForEach__P109_mk(s); - s.tmp_1.arg0 = s.wallHandlersToRun___21124; + s.tmp_1.arg0 = s.wallHandlersToRun___22910; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 519; s.pc = 19; return s.tmp_1; + s.callLocIdx = 553; s.pc = 19; return s.tmp_1; case 19: r0 = s.retval; case 5: @@ -51597,10 +56699,10 @@ function Sprite_registerObstacle__P2267_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - collisionHandlers___21092: undefined, - wallCollisionHandlers___21099: undefined, - wallHandlersToRun___21124: undefined, - asTileLocation___21137: undefined, + collisionHandlers___22878: undefined, + wallCollisionHandlers___22885: undefined, + wallHandlersToRun___22910: undefined, + asTileLocation___22923: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -51611,7 +56713,7 @@ function Sprite_registerObstacle__P2267_mk(s) { -function forEach_inline__P21107(s) { +function forEach_inline__P22893(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51633,12 +56735,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -forEach_inline__P21107.info = {"start":25230,"length":26,"line":822,"column":24,"endLine":822,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +forEach_inline__P22893.info = {"start":25230,"length":26,"line":822,"column":24,"endLine":822,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function forEach_inline__P21107_mk(s) { +function forEach_inline__P22893_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P21107, depth: s.depth + 1, + parent: s, fn: forEach_inline__P22893, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -51649,7 +56751,7 @@ function forEach_inline__P21107_mk(s) { -function Sprite_registerObstacle_inline__P21113(s) { +function Sprite_registerObstacle_inline__P22899(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51668,12 +56770,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 = 508; s.pc = 1; return s.tmp_0; + s.callLocIdx = 542; 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 = 508; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 508; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 508; 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 = 542; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 542; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 542; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -51681,12 +56783,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_registerObstacle_inline__P21113.info = {"start":25283,"length":20,"line":823,"column":25,"endLine":823,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +Sprite_registerObstacle_inline__P22899.info = {"start":25283,"length":20,"line":823,"column":25,"endLine":823,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function Sprite_registerObstacle_inline__P21113_mk(s) { +function Sprite_registerObstacle_inline__P22899_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_registerObstacle_inline__P21113, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle_inline__P22899, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -51696,7 +56798,7 @@ function Sprite_registerObstacle_inline__P21113_mk(s) { -function wallHandlersToRun_inline__P21126(s) { +function wallHandlersToRun_inline__P22912(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51718,12 +56820,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -wallHandlersToRun_inline__P21126.info = {"start":25489,"length":32,"line":828,"column":24,"endLine":828,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +wallHandlersToRun_inline__P22912.info = {"start":25489,"length":32,"line":828,"column":24,"endLine":828,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function wallHandlersToRun_inline__P21126_mk(s) { +function wallHandlersToRun_inline__P22912_mk(s) { checkStack(s.depth); return { - parent: s, fn: wallHandlersToRun_inline__P21126, depth: s.depth + 1, + parent: s, fn: wallHandlersToRun_inline__P22912, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -51734,7 +56836,7 @@ function wallHandlersToRun_inline__P21126_mk(s) { -function Sprite_registerObstacle_inline__P21153(s) { +function Sprite_registerObstacle_inline__P22939(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51754,12 +56856,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 = 518; s.pc = 1; return s.tmp_0; + s.callLocIdx = 552; 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 = 518; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 518; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 518; 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 = 552; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 552; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 552; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -51767,12 +56869,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_registerObstacle_inline__P21153.info = {"start":25729,"length":36,"line":832,"column":29,"endLine":832,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +Sprite_registerObstacle_inline__P22939.info = {"start":25729,"length":36,"line":832,"column":29,"endLine":832,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function Sprite_registerObstacle_inline__P21153_mk(s) { +function Sprite_registerObstacle_inline__P22939_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_registerObstacle_inline__P21153, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle_inline__P22939, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -51843,26 +56945,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___21161 = undefined; - s.i___21164 = undefined; + s.len___22947 = undefined; + s.i___22950 = 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___21161 = (r0); - s.i___21164 = (0); + s.len___22947 = (r0); + s.i___22950 = (0); case 1: - r0 = (s.i___21164 < s.len___21161); + r0 = (s.i___22950 < s.len___22947); 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___21164); + r0 = pxsim_Array__getAt(s.arg0, s.i___22950); s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.i___21164; + s.tmp_2.arg1 = s.i___22950; setupLambda(s.tmp_2, s.tmp_2.argL); s.callLocIdx = 5; s.pc = 6; return s.tmp_2; case 6: @@ -51874,8 +56976,8 @@ switch (step) { { step = 5; continue; } case 2: case 3: - r0 = (s.i___21164 + 1); - s.i___21164 = (r0); + r0 = (s.i___22950 + 1); + s.i___22950 = (r0); { step = 1; continue; } case 4: r0 = false; @@ -51893,8 +56995,8 @@ function helpers_arraySome__P107_mk(s) { tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - len___21161: undefined, - i___21164: undefined, + len___22947: undefined, + i___22950: undefined, arg0: undefined, arg1: undefined, } } @@ -51913,13 +57015,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___20395 = undefined; - s.left___20398 = undefined; - s.right___20404 = undefined; - s.top___20410 = undefined; - s.bottom___20416 = undefined; - s.col___20422 = undefined; - s.row___20428 = undefined; + s.hbox___22181 = undefined; + s.left___22184 = undefined; + s.right___22190 = undefined; + s.top___22196 = undefined; + s.bottom___22202 = undefined; + s.col___22208 = undefined; + s.row___22214 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -51928,10 +57030,10 @@ switch (step) { r0 = s.arg0; if (!checkSubtype(r0, tiles_TileMap__C2571_VT)) failedCast(r0); r0 = s.arg1.fields["_hitbox"]; - s.hbox___20395 = (r0); + s.hbox___22181 = (r0); s.tmp_1 = game_Hitbox_left__P2059_mk(s); - s.tmp_1.arg0 = s.hbox___20395; - s.callLocIdx = 1083; s.pc = 8; return s.tmp_1; + s.tmp_1.arg0 = s.hbox___22181; + s.callLocIdx = 1117; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; s.tmp_0 = r0; @@ -51940,10 +57042,10 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.left___20398 = (r0); + s.left___22184 = (r0); s.tmp_1 = game_Hitbox_right__P2061_mk(s); - s.tmp_1.arg0 = s.hbox___20395; - s.callLocIdx = 1086; s.pc = 9; return s.tmp_1; + s.tmp_1.arg0 = s.hbox___22181; + s.callLocIdx = 1120; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; s.tmp_0 = r0; @@ -51952,10 +57054,10 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.right___20404 = (r0); + s.right___22190 = (r0); s.tmp_1 = game_Hitbox_top__P2060_mk(s); - s.tmp_1.arg0 = s.hbox___20395; - s.callLocIdx = 1089; s.pc = 10; return s.tmp_1; + s.tmp_1.arg0 = s.hbox___22181; + s.callLocIdx = 1123; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; s.tmp_0 = r0; @@ -51964,10 +57066,10 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.top___20410 = (r0); + s.top___22196 = (r0); s.tmp_1 = game_Hitbox_bottom__P2062_mk(s); - s.tmp_1.arg0 = s.hbox___20395; - s.callLocIdx = 1092; s.pc = 11; return s.tmp_1; + s.tmp_1.arg0 = s.hbox___22181; + s.callLocIdx = 1126; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; s.tmp_0 = r0; @@ -51976,24 +57078,24 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.bottom___20416 = (r0); - s.col___20422 = (s.left___20398); + s.bottom___22202 = (r0); + s.col___22208 = (s.left___22184); case 1: - r0 = (s.col___20422 <= s.right___20404); + r0 = (s.col___22208 <= s.right___22190); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.row___20428 = (s.top___20410); + s.row___22214 = (s.top___22196); case 2: - r0 = (s.row___20428 <= s.bottom___20416); + r0 = (s.row___22214 <= s.bottom___22202); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } s.tmp_2 = tiles_TileMap_isObstacle__P2592_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.col___20422; - s.tmp_2.arg2 = s.row___20428; - s.callLocIdx = 1095; s.pc = 12; return s.tmp_2; + s.tmp_2.arg1 = s.col___22208; + s.tmp_2.arg2 = s.row___22214; + s.callLocIdx = 1129; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; s.tmp_1 = r0; @@ -52003,12 +57105,12 @@ switch (step) { { step = 7; continue; } case 3: case 4: - r0 = (s.row___20428 + 1); - s.row___20428 = (r0); + r0 = (s.row___22214 + 1); + s.row___22214 = (r0); { step = 2; continue; } case 5: - r0 = (s.col___20422 + 1); - s.col___20422 = (r0); + r0 = (s.col___22208 + 1); + s.col___22208 = (r0); { step = 1; continue; } case 6: r0 = false; @@ -52027,13 +57129,13 @@ function tiles_TileMap_isOnWall__P2594_mk(s) { tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - hbox___20395: undefined, - left___20398: undefined, - right___20404: undefined, - top___20410: undefined, - bottom___20416: undefined, - col___20422: undefined, - row___20428: undefined, + hbox___22181: undefined, + left___22184: undefined, + right___22190: undefined, + top___22196: undefined, + bottom___22202: undefined, + col___22208: undefined, + row___22214: undefined, arg0: undefined, arg1: undefined, } } @@ -52107,25 +57209,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dtMs___21235 = undefined; - s.dt2___21241 = undefined; - s.scene___21245 = undefined; - s.tileMap___21248 = undefined; - s.movingSprites___21251 = undefined; - s.MAX_STEP_COUNT___21282 = undefined; - s.overlapHandlers___21294 = undefined; - s.selected___21301 = undefined; - s.buffers___21302 = undefined; - s.count___21306 = undefined; - s.currMovers___21316 = undefined; - s.remainingMovers___21323 = undefined; - s.ms___21328 = undefined; + s.dtMs___23021 = undefined; + s.dt2___23027 = undefined; + s.scene___23031 = undefined; + s.tileMap___23034 = undefined; + s.movingSprites___23037 = undefined; + s.MAX_STEP_COUNT___23068 = undefined; + s.overlapHandlers___23080 = undefined; + s.selected___23087 = undefined; + s.buffers___23088 = undefined; + s.count___23092 = undefined; + s.currMovers___23102 = undefined; + s.remainingMovers___23109 = undefined; + s.ms___23114 = undefined; s.unnamed82___U13 = undefined; s.unnamed83___U14 = undefined; - s.s___21330 = undefined; - s.stepX___21423 = undefined; - s.stepY___21437 = undefined; - s.bounce___21500 = undefined; + s.s___23116 = undefined; + s.stepX___23209 = undefined; + s.stepY___23223 = undefined; + s.bounce___23286 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -52137,43 +57239,43 @@ switch (step) { s.tmp_0.arg0 = 100; r0 = (s.arg1 * 1000); s.tmp_0.arg1 = r0; - s.callLocIdx = 654; s.pc = 53; return s.tmp_0; + s.callLocIdx = 688; s.pc = 53; return s.tmp_0; case 53: r0 = s.retval; - s.dtMs___21235 = (r0); - r0 = pxsim.Math_.idiv(s.dtMs___21235, 2); - s.dt2___21241 = (r0); + s.dtMs___23021 = (r0); + r0 = pxsim.Math_.idiv(s.dtMs___23021, 2); + s.dt2___23027 = (r0); s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 655; s.pc = 54; return s.tmp_0; + s.callLocIdx = 689; s.pc = 54; return s.tmp_0; case 54: r0 = s.retval; - s.scene___21245 = (r0); - r0 = s.scene___21245.fields["tileMap"]; - s.tileMap___21248 = (r0); - r0 = pxsim_pxtcore_mkAction(3, movingSprites_inline__P21253); + s.scene___23031 = (r0); + r0 = s.scene___23031.fields["tileMap"]; + s.tileMap___23034 = (r0); + r0 = pxsim_pxtcore_mkAction(3, movingSprites_inline__P23039); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtMs___21235); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___21241); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtMs___23021); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___23027); s.tmp_1 = helpers_arrayMap__P106_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 657; s.pc = 55; return s.tmp_1; + s.callLocIdx = 691; s.pc = 55; return s.tmp_1; case 55: r0 = s.retval; - s.movingSprites___21251 = (r0); + s.movingSprites___23037 = (r0); s.tmp_0 = helpers_arrayForEach__P109_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = ArcadePhysicsEngine_move_inline__P21265; - s.callLocIdx = 661; s.pc = 56; return s.tmp_0; + s.tmp_0.arg1 = ArcadePhysicsEngine_move_inline__P23051; + s.callLocIdx = 695; s.pc = 56; return s.tmp_0; case 56: r0 = s.retval; s.tmp_0 = sprites_SpriteMap_clear__P2293_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; - s.callLocIdx = 662; s.pc = 57; return s.tmp_0; + s.callLocIdx = 696; s.pc = 57; return s.tmp_0; case 57: r0 = s.retval; s.tmp_0 = sprites_SpriteMap_resizeBuckets__P2292_mk(s); @@ -52181,7 +57283,7 @@ switch (step) { s.tmp_0.arg0 = r0; r0 = s.arg0.fields["sprites"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 663; s.pc = 58; return s.tmp_0; + s.callLocIdx = 697; s.pc = 58; return s.tmp_0; case 58: r0 = s.retval; r0 = s.arg0.fields["maxVelocity"]; @@ -52192,41 +57294,41 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_5, s.tmp_4); s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.dtMs___21235); + r0 = pxsim.Math_.imul(s.tmp_2, s.dtMs___23021); s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.tmp_1, 1000); s.tmp_0 = r0; r0 = (s.tmp_0 + 128); s.tmp_6 = r0; r0 = (s.tmp_6 >> 8); - s.MAX_STEP_COUNT___21282 = (r0); + s.MAX_STEP_COUNT___23068 = (r0); s.tmp_0 = helpers_arraySlice__P115_mk(s); - r0 = s.scene___21245.fields["overlapHandlers"]; + r0 = s.scene___23031.fields["overlapHandlers"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = undefined; s.tmp_0.arg2 = undefined; - s.callLocIdx = 668; s.pc = 59; return s.tmp_0; + s.callLocIdx = 702; s.pc = 59; return s.tmp_0; case 59: r0 = s.retval; - s.overlapHandlers___21294 = (r0); - s.selected___21301 = (0); + s.overlapHandlers___23080 = (r0); + s.selected___23087 = (0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___21251); + r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___23037); r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - s.buffers___21302 = (s.tmp_0); - s.count___21306 = (0); + s.buffers___23088 = (s.tmp_0); + s.count___23092 = (0); case 1: - r0 = (s.count___21306 < s.MAX_STEP_COUNT___21282); + r0 = (s.count___23092 < s.MAX_STEP_COUNT___23068); 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___21302, s.selected___21301); + r0 = pxsim_Array__getAt(s.buffers___23088, s.selected___23087); s.tmp_2 = r0; r0 = pxsim_Array__length(s.tmp_2); s.tmp_1 = r0; @@ -52236,14 +57338,14 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 52; continue; } - r0 = pxsim_Array__getAt(s.buffers___21302, s.selected___21301); - s.currMovers___21316 = (r0); - r0 = (s.selected___21301 ^ 1); - s.selected___21301 = (r0); - r0 = pxsim_Array__getAt(s.buffers___21302, s.selected___21301); - s.remainingMovers___21323 = (r0); - s.ms___21328 = (undefined); - s.unnamed82___U13 = (s.currMovers___21316); + r0 = pxsim_Array__getAt(s.buffers___23088, s.selected___23087); + s.currMovers___23102 = (r0); + r0 = (s.selected___23087 ^ 1); + s.selected___23087 = (r0); + r0 = pxsim_Array__getAt(s.buffers___23088, s.selected___23087); + s.remainingMovers___23109 = (r0); + s.ms___23114 = (undefined); + s.unnamed82___U13 = (s.currMovers___23102); s.unnamed83___U14 = (0); case 4: s.tmp_0 = r0 = s.unnamed83___U14; @@ -52252,27 +57354,27 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 49; continue; } r0 = pxsim_Array__getAt(s.unnamed82___U13, s.unnamed83___U14); - s.ms___21328 = (r0); - r0 = s.ms___21328.fields["sprite"]; - s.s___21330 = (r0); - r0 = s.ms___21328.fields["cachedVx"]; + s.ms___23114 = (r0); + r0 = s.ms___23114.fields["sprite"]; + s.s___23116 = (r0); + r0 = s.ms___23114.fields["cachedVx"]; s.tmp_1 = r0; - r0 = s.s___21330.fields["_vx"]; + r0 = s.s___23116.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___21330.fields["_vx"]; + r0 = s.s___23116.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___21328).fields["dx"] = (0); + r0 = (s.ms___23114).fields["dx"] = (0); { step = 14; continue; } case 5: - r0 = s.s___21330.fields["_vx"]; + r0 = s.s___23116.fields["_vx"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -52281,7 +57383,7 @@ switch (step) { r0 = s.tmp_0; { step = 7; continue; } case 6: - r0 = s.ms___21328.fields["cachedVx"]; + r0 = s.ms___23114.fields["cachedVx"]; s.tmp_2 = r0; r0 = (s.tmp_2 > 0); case 7: @@ -52292,7 +57394,7 @@ switch (step) { r0 = s.tmp_3; { step = 11; continue; } case 8: - r0 = s.s___21330.fields["_vx"]; + r0 = s.s___23116.fields["_vx"]; s.tmp_5 = r0; r0 = (s.tmp_5 > 0); s.tmp_4 = r0; @@ -52301,7 +57403,7 @@ switch (step) { r0 = s.tmp_4; { step = 10; continue; } case 9: - r0 = s.ms___21328.fields["cachedVx"]; + r0 = s.ms___23114.fields["cachedVx"]; s.tmp_6 = r0; r0 = (s.tmp_6 < 0); case 10: @@ -52313,14 +57415,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___21328; - r0 = s.ms___21328.fields["dx"]; + s.tmp_9 = r0 = s.ms___23114; + r0 = s.ms___23114.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___21328; - r0 = s.ms___21328.fields["xStep"]; + s.tmp_0 = r0 = s.ms___23114; + r0 = s.ms___23114.fields["xStep"]; s.tmp_2 = r0; r0 = (0 - s.tmp_2); s.tmp_1 = r0; @@ -52328,29 +57430,29 @@ switch (step) { case 12: case 13: case 14: - r0 = s.s___21330.fields["_vx"]; + r0 = s.s___23116.fields["_vx"]; s.tmp_0 = r0; - r0 = (s.ms___21328).fields["cachedVx"] = (s.tmp_0); + r0 = (s.ms___23114).fields["cachedVx"] = (s.tmp_0); case 15: case 16: - r0 = s.ms___21328.fields["cachedVy"]; + r0 = s.ms___23114.fields["cachedVy"]; s.tmp_1 = r0; - r0 = s.s___21330.fields["_vy"]; + r0 = s.s___23116.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___21330.fields["_vy"]; + r0 = s.s___23116.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___21328).fields["dy"] = (0); + r0 = (s.ms___23114).fields["dy"] = (0); { step = 26; continue; } case 17: - r0 = s.s___21330.fields["_vy"]; + r0 = s.s___23116.fields["_vy"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -52359,7 +57461,7 @@ switch (step) { r0 = s.tmp_0; { step = 19; continue; } case 18: - r0 = s.ms___21328.fields["cachedVy"]; + r0 = s.ms___23114.fields["cachedVy"]; s.tmp_2 = r0; r0 = (s.tmp_2 > 0); case 19: @@ -52370,7 +57472,7 @@ switch (step) { r0 = s.tmp_3; { step = 23; continue; } case 20: - r0 = s.s___21330.fields["_vy"]; + r0 = s.s___23116.fields["_vy"]; s.tmp_5 = r0; r0 = (s.tmp_5 > 0); s.tmp_4 = r0; @@ -52379,7 +57481,7 @@ switch (step) { r0 = s.tmp_4; { step = 22; continue; } case 21: - r0 = s.ms___21328.fields["cachedVy"]; + r0 = s.ms___23114.fields["cachedVy"]; s.tmp_6 = r0; r0 = (s.tmp_6 < 0); case 22: @@ -52391,14 +57493,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___21328; - r0 = s.ms___21328.fields["dy"]; + s.tmp_9 = r0 = s.ms___23114; + r0 = s.ms___23114.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___21328; - r0 = s.ms___21328.fields["yStep"]; + s.tmp_0 = r0 = s.ms___23114; + r0 = s.ms___23114.fields["yStep"]; s.tmp_2 = r0; r0 = (0 - s.tmp_2); s.tmp_1 = r0; @@ -52406,22 +57508,22 @@ switch (step) { case 24: case 25: case 26: - r0 = s.s___21330.fields["_vy"]; + r0 = s.s___23116.fields["_vy"]; s.tmp_0 = r0; - r0 = (s.ms___21328).fields["cachedVy"] = (s.tmp_0); + r0 = (s.ms___23114).fields["cachedVy"] = (s.tmp_0); case 27: case 28: s.tmp_2 = Fx_abs__P165_mk(s); - r0 = s.ms___21328.fields["xStep"]; + r0 = s.ms___23114.fields["xStep"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 673; s.pc = 60; return s.tmp_2; + s.callLocIdx = 707; s.pc = 60; return s.tmp_2; case 60: r0 = s.retval; s.tmp_1 = r0; s.tmp_4 = Fx_abs__P165_mk(s); - r0 = s.ms___21328.fields["dx"]; + r0 = s.ms___23114.fields["dx"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 674; s.pc = 61; return s.tmp_4; + s.callLocIdx = 708; s.pc = 61; return s.tmp_4; case 61: r0 = s.retval; s.tmp_3 = r0; @@ -52429,25 +57531,25 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 29; continue; } - r0 = s.ms___21328.fields["dx"]; + r0 = s.ms___23114.fields["dx"]; { step = 30; continue; } case 29: - r0 = s.ms___21328.fields["xStep"]; + r0 = s.ms___23114.fields["xStep"]; case 30: // jmp value (already in r0) s.tmp_5 = r0; - s.stepX___21423 = (s.tmp_5); + s.stepX___23209 = (s.tmp_5); s.tmp_2 = Fx_abs__P165_mk(s); - r0 = s.ms___21328.fields["yStep"]; + r0 = s.ms___23114.fields["yStep"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 675; s.pc = 62; return s.tmp_2; + s.callLocIdx = 709; s.pc = 62; return s.tmp_2; case 62: r0 = s.retval; s.tmp_1 = r0; s.tmp_4 = Fx_abs__P165_mk(s); - r0 = s.ms___21328.fields["dy"]; + r0 = s.ms___23114.fields["dy"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 676; s.pc = 63; return s.tmp_4; + s.callLocIdx = 710; s.pc = 63; return s.tmp_4; case 63: r0 = s.retval; s.tmp_3 = r0; @@ -52455,45 +57557,45 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 31; continue; } - r0 = s.ms___21328.fields["dy"]; + r0 = s.ms___23114.fields["dy"]; { step = 32; continue; } case 31: - r0 = s.ms___21328.fields["yStep"]; + r0 = s.ms___23114.fields["yStep"]; case 32: // jmp value (already in r0) s.tmp_5 = r0; - s.stepY___21437 = (s.tmp_5); - s.tmp_0 = r0 = s.ms___21328; - r0 = s.ms___21328.fields["dx"]; + s.stepY___23223 = (s.tmp_5); + s.tmp_0 = r0 = s.ms___23114; + r0 = s.ms___23114.fields["dx"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepX___21423); + r0 = (s.tmp_2 - s.stepX___23209); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dx"] = (s.tmp_1); - s.tmp_0 = r0 = s.ms___21328; - r0 = s.ms___21328.fields["dy"]; + s.tmp_0 = r0 = s.ms___23114; + r0 = s.ms___23114.fields["dy"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepY___21437); + r0 = (s.tmp_2 - s.stepY___23223); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dy"] = (s.tmp_1); - r0 = s.s___21330.fields["_x"]; + r0 = s.s___23116.fields["_x"]; s.tmp_0 = r0; - r0 = (s.s___21330).fields["_lastX"] = (s.tmp_0); - r0 = s.s___21330.fields["_y"]; + r0 = (s.s___23116).fields["_lastX"] = (s.tmp_0); + r0 = s.s___23116.fields["_y"]; s.tmp_0 = r0; - r0 = (s.s___21330).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = r0 = s.s___21330; - r0 = s.s___21330.fields["_x"]; + r0 = (s.s___23116).fields["_lastY"] = (s.tmp_0); + s.tmp_0 = r0 = s.s___23116; + r0 = s.s___23116.fields["_x"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepX___21423); + r0 = (s.tmp_2 + s.stepX___23209); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.s___21330; - r0 = s.s___21330.fields["_y"]; + s.tmp_0 = r0 = s.s___23116; + r0 = s.s___23116.fields["_y"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepY___21437); + r0 = (s.tmp_2 + s.stepY___23223); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = s.s___21330.fields["flags"]; + r0 = s.s___23116.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 4610); s.tmp_2 = r0; @@ -52506,19 +57608,19 @@ switch (step) { s.tmp_4 = sprites_SpriteMap_insertAABB__P2294_mk(s); r0 = s.arg0.fields["map"]; s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.s___21330; - s.callLocIdx = 681; s.pc = 64; return s.tmp_4; + s.tmp_4.arg1 = s.s___23116; + s.callLocIdx = 715; s.pc = 64; return s.tmp_4; case 64: r0 = s.retval; case 33: case 34: - s.tmp_0 = r0 = s.tileMap___21248; + s.tmp_0 = r0 = s.tileMap___23034; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 35; continue; } r0 = s.tmp_0; { step = 36; continue; } case 35: - r0 = s.tileMap___21248.fields["_map"]; + r0 = s.tileMap___23034.fields["_map"]; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; @@ -52532,20 +57634,20 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 37; continue; } - s.tmp_6 = ArcadePhysicsEngine_tilemapCollisions__P4570_mk(s); + s.tmp_6 = ArcadePhysicsEngine_tilemapCollisions__P4610_mk(s); s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.ms___21328; - s.tmp_6.arg2 = s.tileMap___21248; - s.callLocIdx = 683; s.pc = 65; return s.tmp_6; + s.tmp_6.arg1 = s.ms___23114; + s.tmp_6.arg2 = s.tileMap___23034; + s.callLocIdx = 717; s.pc = 65; return s.tmp_6; case 65: r0 = s.retval; case 37: case 38: - r0 = s.s___21330.fields["flags"]; + r0 = s.s___23116.fields["flags"]; s.tmp_0 = r0; r0 = (s.tmp_0 & 32); - s.bounce___21500 = (r0); - r0 = s.s___21330.fields["flags"]; + s.bounce___23286 = (r0); + r0 = s.s___23116.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 8); s.tmp_0 = r0; @@ -52554,13 +57656,13 @@ switch (step) { r0 = s.tmp_0; { step = 42; continue; } case 39: - s.tmp_2 = r0 = s.bounce___21500; + s.tmp_2 = r0 = s.bounce___23286; r0 = pxsim_numops_toBool(s.tmp_2); if (r0) { step = 40; continue; } r0 = s.tmp_2; { step = 41; continue; } case 40: - r0 = pxsim_numops_toBoolDecr(s.tileMap___21248); + r0 = pxsim_numops_toBoolDecr(s.tileMap___23034); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); case 41: @@ -52572,21 +57674,21 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 43; continue; } - s.tmp_6 = ArcadePhysicsEngine_screenEdgeCollisions__P4569_mk(s); + s.tmp_6 = ArcadePhysicsEngine_screenEdgeCollisions__P4609_mk(s); s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.ms___21328; - s.tmp_6.arg2 = s.bounce___21500; - r0 = s.scene___21245.fields["camera"]; + s.tmp_6.arg1 = s.ms___23114; + s.tmp_6.arg2 = s.bounce___23286; + r0 = s.scene___23031.fields["camera"]; s.tmp_6.arg3 = r0; - s.callLocIdx = 684; s.pc = 66; return s.tmp_6; + s.callLocIdx = 718; s.pc = 66; return s.tmp_6; case 66: r0 = s.retval; case 43: case 44: s.tmp_2 = Fx_abs__P165_mk(s); - r0 = s.ms___21328.fields["dx"]; + r0 = s.ms___23114.fields["dx"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 685; s.pc = 67; return s.tmp_2; + s.callLocIdx = 719; s.pc = 67; return s.tmp_2; case 67: r0 = s.retval; s.tmp_1 = r0; @@ -52598,9 +57700,9 @@ switch (step) { { step = 46; continue; } case 45: s.tmp_4 = Fx_abs__P165_mk(s); - r0 = s.ms___21328.fields["dy"]; + r0 = s.ms___23114.fields["dy"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 686; s.pc = 68; return s.tmp_4; + s.callLocIdx = 720; s.pc = 68; return s.tmp_4; case 68: r0 = s.retval; s.tmp_3 = r0; @@ -52610,7 +57712,7 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 47; continue; } - r0 = pxsim_Array__push(s.remainingMovers___21323, s.ms___21328); + r0 = pxsim_Array__push(s.remainingMovers___23109, s.ms___23114); case 47: case 48: r0 = (s.unnamed83___U14 + 1); @@ -52618,23 +57720,23 @@ switch (step) { { step = 4; continue; } case 49: s.unnamed82___U13 = (undefined); - s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P4568_mk(s); + s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P4608_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.currMovers___21316; - s.tmp_0.arg2 = s.overlapHandlers___21294; - s.callLocIdx = 687; s.pc = 69; return s.tmp_0; + s.tmp_0.arg1 = s.currMovers___23102; + s.tmp_0.arg2 = s.overlapHandlers___23080; + s.callLocIdx = 721; s.pc = 69; return s.tmp_0; case 69: r0 = s.retval; case 50: - r0 = pxsim_Array__length(s.currMovers___21316); + r0 = pxsim_Array__length(s.currMovers___23102); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 51; continue; } - r0 = pxsim_Array_.pop(s.currMovers___21316); + r0 = pxsim_Array_.pop(s.currMovers___23102); { step = 50; continue; } case 51: - r0 = (s.count___21306 + 1); - s.count___21306 = (r0); + r0 = (s.count___23092 + 1); + s.count___23092 = (r0); { step = 1; continue; } case 52: r0 = undefined; @@ -52660,25 +57762,25 @@ function ArcadePhysicsEngine_move__P2380_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - dtMs___21235: undefined, - dt2___21241: undefined, - scene___21245: undefined, - tileMap___21248: undefined, - movingSprites___21251: undefined, - MAX_STEP_COUNT___21282: undefined, - overlapHandlers___21294: undefined, - selected___21301: undefined, - buffers___21302: undefined, - count___21306: undefined, - currMovers___21316: undefined, - remainingMovers___21323: undefined, - ms___21328: undefined, + dtMs___23021: undefined, + dt2___23027: undefined, + scene___23031: undefined, + tileMap___23034: undefined, + movingSprites___23037: undefined, + MAX_STEP_COUNT___23068: undefined, + overlapHandlers___23080: undefined, + selected___23087: undefined, + buffers___23088: undefined, + count___23092: undefined, + currMovers___23102: undefined, + remainingMovers___23109: undefined, + ms___23114: undefined, unnamed82___U13: undefined, unnamed83___U14: undefined, - s___21330: undefined, - stepX___21423: undefined, - stepY___21437: undefined, - bounce___21500: undefined, + s___23116: undefined, + stepX___23209: undefined, + stepY___23223: undefined, + bounce___23286: undefined, arg0: undefined, arg1: undefined, } } @@ -52687,7 +57789,7 @@ function ArcadePhysicsEngine_move__P2380_mk(s) { -function movingSprites_inline__P21253(s) { +function movingSprites_inline__P23039(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52701,23 +57803,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P4567_mk(s); + s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P4607_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 = 656; s.pc = 1; return s.tmp_0; + s.callLocIdx = 690; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -movingSprites_inline__P21253.info = {"start":3181,"length":52,"line":121,"column":17,"endLine":121,"endColumn":69,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["sprite"]} +movingSprites_inline__P23039.info = {"start":3181,"length":52,"line":121,"column":17,"endLine":121,"endColumn":69,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["sprite"]} -function movingSprites_inline__P21253_mk(s) { +function movingSprites_inline__P23039_mk(s) { checkStack(s.depth); return { - parent: s, fn: movingSprites_inline__P21253, depth: s.depth + 1, + parent: s, fn: movingSprites_inline__P23039, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -52727,7 +57829,7 @@ function movingSprites_inline__P21253_mk(s) { -function ArcadePhysicsEngine_move_inline__P21265(s) { +function ArcadePhysicsEngine_move_inline__P23051(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52743,7 +57845,7 @@ switch (step) { } s.tmp_1 = Sprite_vx__P2199_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 658; s.pc = 5; return s.tmp_1; + s.callLocIdx = 692; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0 = r0; @@ -52754,7 +57856,7 @@ switch (step) { case 1: s.tmp_2 = Sprite_vy__P2201_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 659; s.pc = 6; return s.tmp_2; + s.callLocIdx = 693; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; case 2: @@ -52764,7 +57866,7 @@ switch (step) { if (!r0) { step = 3; continue; } s.tmp_4 = Sprite_clearObstacles__P2266_mk(s); s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 660; s.pc = 7; return s.tmp_4; + s.callLocIdx = 694; s.pc = 7; return s.tmp_4; case 7: r0 = s.retval; case 3: @@ -52773,12 +57875,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_move_inline__P21265.info = {"start":3316,"length":66,"line":124,"column":29,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["s"]} +ArcadePhysicsEngine_move_inline__P23051.info = {"start":3316,"length":66,"line":124,"column":29,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["s"]} -function ArcadePhysicsEngine_move_inline__P21265_mk(s) { +function ArcadePhysicsEngine_move_inline__P23051_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_move_inline__P21265, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_move_inline__P23051, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -52792,7 +57894,7 @@ function ArcadePhysicsEngine_move_inline__P21265_mk(s) { -function ArcadePhysicsEngine_screenEdgeCollisions__P4569(s) { +function ArcadePhysicsEngine_screenEdgeCollisions__P4609(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52802,8 +57904,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___22058 = undefined; - s.offset___22067 = undefined; + s.s___23844 = undefined; + s.offset___23853 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -52814,8 +57916,8 @@ switch (step) { r0 = s.arg0; if (!checkSubtype(r0, ArcadePhysicsEngine__C2368_VT)) failedCast(r0); r0 = s.arg1.fields["sprite"]; - s.s___22058 = (r0); - r0 = s.s___22058.fields["_image"]; + s.s___23844 = (r0); + r0 = s.s___23844.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.isStatic(s.tmp_3); s.tmp_2 = r0; @@ -52826,7 +57928,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } s.tmp_4 = Sprite__C2182_v4_1_mk(s); - s.tmp_4.arg0 = s.s___22058; + s.tmp_4.arg0 = s.s___23844; if (!checkSubtype(s.tmp_4.arg0, Sprite__C2182_VT)) failedCast(s.tmp_4.arg0); s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.setHitbox; s.pc = 19; return s.tmp_4; @@ -52835,9 +57937,9 @@ switch (step) { case 1: case 2: s.tmp_2 = game_Hitbox_left__P2059_mk(s); - r0 = s.s___22058.fields["_hitbox"]; + r0 = s.s___23844.fields["_hitbox"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 732; s.pc = 20; return s.tmp_2; + s.callLocIdx = 766; s.pc = 20; return s.tmp_2; case 20: r0 = s.retval; s.tmp_1 = r0; @@ -52846,38 +57948,38 @@ switch (step) { r0 = s.arg3.fields["_offsetX"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); - s.offset___22067 = (r0); - r0 = (s.offset___22067 < 0); + s.offset___23853 = (r0); + r0 = (s.offset___23853 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } s.tmp_1 = Sprite_left__P2241_mk(s); - s.tmp_2 = r0 = s.s___22058; + s.tmp_2 = r0 = s.s___23844; s.tmp_1.arg0 = r0; s.tmp_4 = Sprite_left__P2240_mk(s); s.tmp_4.arg0 = s.tmp_2; - s.callLocIdx = 735; s.pc = 22; return s.tmp_4; + s.callLocIdx = 769; s.pc = 22; return s.tmp_4; case 22: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 - s.offset___22067); + r0 = (s.tmp_3 - s.offset___23853); s.tmp_1.arg1 = r0; - s.callLocIdx = 736; s.pc = 21; return s.tmp_1; + s.callLocIdx = 770; s.pc = 21; return s.tmp_1; case 21: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 3; continue; } s.tmp_0 = Sprite_vx__P2200_mk(s); - s.tmp_0.arg0 = s.s___22058; + s.tmp_0.arg0 = s.s___23844; s.tmp_2 = Sprite_vx__P2199_mk(s); - s.tmp_2.arg0 = s.s___22058; - s.callLocIdx = 737; s.pc = 24; return s.tmp_2; + s.tmp_2.arg0 = s.s___23844; + s.callLocIdx = 771; s.pc = 24; return s.tmp_2; case 24: r0 = s.retval; s.tmp_1 = r0; r0 = (0 - s.tmp_1); s.tmp_0.arg1 = r0; - s.callLocIdx = 738; s.pc = 23; return s.tmp_0; + s.callLocIdx = 772; s.pc = 23; return s.tmp_0; case 23: r0 = s.retval; case 3: @@ -52885,9 +57987,9 @@ switch (step) { { step = 10; continue; } case 5: s.tmp_4 = game_Hitbox_right__P2061_mk(s); - r0 = s.s___22058.fields["_hitbox"]; + r0 = s.s___23844.fields["_hitbox"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 739; s.pc = 25; return s.tmp_4; + s.callLocIdx = 773; s.pc = 25; return s.tmp_4; case 25: r0 = s.retval; s.tmp_3 = r0; @@ -52901,38 +58003,38 @@ switch (step) { s.tmp_6 = r0; r0 = (s.tmp_1 - s.tmp_6); s.tmp_0 = r0; - s.offset___22067 = (r0); + s.offset___23853 = (r0); r0 = (s.tmp_0 > 0); s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 8; continue; } s.tmp_8 = Sprite_right__P2243_mk(s); - s.tmp_9 = r0 = s.s___22058; + s.tmp_9 = r0 = s.s___23844; s.tmp_8.arg0 = r0; s.tmp_11 = Sprite_right__P2242_mk(s); s.tmp_11.arg0 = s.tmp_9; - s.callLocIdx = 742; s.pc = 27; return s.tmp_11; + s.callLocIdx = 776; s.pc = 27; return s.tmp_11; case 27: r0 = s.retval; s.tmp_10 = r0; - r0 = (s.tmp_10 - s.offset___22067); + r0 = (s.tmp_10 - s.offset___23853); s.tmp_8.arg1 = r0; - s.callLocIdx = 743; s.pc = 26; return s.tmp_8; + s.callLocIdx = 777; s.pc = 26; return s.tmp_8; case 26: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 6; continue; } s.tmp_0 = Sprite_vx__P2200_mk(s); - s.tmp_0.arg0 = s.s___22058; + s.tmp_0.arg0 = s.s___23844; s.tmp_2 = Sprite_vx__P2199_mk(s); - s.tmp_2.arg0 = s.s___22058; - s.callLocIdx = 744; s.pc = 29; return s.tmp_2; + s.tmp_2.arg0 = s.s___23844; + s.callLocIdx = 778; s.pc = 29; return s.tmp_2; case 29: r0 = s.retval; s.tmp_1 = r0; r0 = (0 - s.tmp_1); s.tmp_0.arg1 = r0; - s.callLocIdx = 745; s.pc = 28; return s.tmp_0; + s.callLocIdx = 779; s.pc = 28; return s.tmp_0; case 28: r0 = s.retval; case 6: @@ -52941,9 +58043,9 @@ switch (step) { case 9: case 10: s.tmp_3 = game_Hitbox_top__P2060_mk(s); - r0 = s.s___22058.fields["_hitbox"]; + r0 = s.s___23844.fields["_hitbox"]; s.tmp_3.arg0 = r0; - s.callLocIdx = 746; s.pc = 30; return s.tmp_3; + s.callLocIdx = 780; s.pc = 30; return s.tmp_3; case 30: r0 = s.retval; s.tmp_2 = r0; @@ -52953,38 +58055,38 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_1 - s.tmp_4); s.tmp_0 = r0; - s.offset___22067 = (r0); + s.offset___23853 = (r0); r0 = (s.tmp_0 < 0); s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 13; continue; } s.tmp_6 = Sprite_top__P2245_mk(s); - s.tmp_7 = r0 = s.s___22058; + s.tmp_7 = r0 = s.s___23844; s.tmp_6.arg0 = r0; s.tmp_9 = Sprite_top__P2244_mk(s); s.tmp_9.arg0 = s.tmp_7; - s.callLocIdx = 749; s.pc = 32; return s.tmp_9; + s.callLocIdx = 783; s.pc = 32; return s.tmp_9; case 32: r0 = s.retval; s.tmp_8 = r0; - r0 = (s.tmp_8 - s.offset___22067); + r0 = (s.tmp_8 - s.offset___23853); s.tmp_6.arg1 = r0; - s.callLocIdx = 750; s.pc = 31; return s.tmp_6; + s.callLocIdx = 784; s.pc = 31; return s.tmp_6; case 31: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 11; continue; } s.tmp_0 = Sprite_vy__P2202_mk(s); - s.tmp_0.arg0 = s.s___22058; + s.tmp_0.arg0 = s.s___23844; s.tmp_2 = Sprite_vy__P2201_mk(s); - s.tmp_2.arg0 = s.s___22058; - s.callLocIdx = 751; s.pc = 34; return s.tmp_2; + s.tmp_2.arg0 = s.s___23844; + s.callLocIdx = 785; s.pc = 34; return s.tmp_2; case 34: r0 = s.retval; s.tmp_1 = r0; r0 = (0 - s.tmp_1); s.tmp_0.arg1 = r0; - s.callLocIdx = 752; s.pc = 33; return s.tmp_0; + s.callLocIdx = 786; s.pc = 33; return s.tmp_0; case 33: r0 = s.retval; case 11: @@ -52992,9 +58094,9 @@ switch (step) { { step = 18; continue; } case 13: s.tmp_4 = game_Hitbox_bottom__P2062_mk(s); - r0 = s.s___22058.fields["_hitbox"]; + r0 = s.s___23844.fields["_hitbox"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 753; s.pc = 35; return s.tmp_4; + s.callLocIdx = 787; s.pc = 35; return s.tmp_4; case 35: r0 = s.retval; s.tmp_3 = r0; @@ -53008,38 +58110,38 @@ switch (step) { s.tmp_6 = r0; r0 = (s.tmp_1 - s.tmp_6); s.tmp_0 = r0; - s.offset___22067 = (r0); + s.offset___23853 = (r0); r0 = (s.tmp_0 > 0); s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 16; continue; } s.tmp_8 = Sprite_bottom__P2247_mk(s); - s.tmp_9 = r0 = s.s___22058; + s.tmp_9 = r0 = s.s___23844; s.tmp_8.arg0 = r0; s.tmp_11 = Sprite_bottom__P2246_mk(s); s.tmp_11.arg0 = s.tmp_9; - s.callLocIdx = 756; s.pc = 37; return s.tmp_11; + s.callLocIdx = 790; s.pc = 37; return s.tmp_11; case 37: r0 = s.retval; s.tmp_10 = r0; - r0 = (s.tmp_10 - s.offset___22067); + r0 = (s.tmp_10 - s.offset___23853); s.tmp_8.arg1 = r0; - s.callLocIdx = 757; s.pc = 36; return s.tmp_8; + s.callLocIdx = 791; s.pc = 36; return s.tmp_8; case 36: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 14; continue; } s.tmp_0 = Sprite_vy__P2202_mk(s); - s.tmp_0.arg0 = s.s___22058; + s.tmp_0.arg0 = s.s___23844; s.tmp_2 = Sprite_vy__P2201_mk(s); - s.tmp_2.arg0 = s.s___22058; - s.callLocIdx = 758; s.pc = 39; return s.tmp_2; + s.tmp_2.arg0 = s.s___23844; + s.callLocIdx = 792; s.pc = 39; return s.tmp_2; case 39: r0 = s.retval; s.tmp_1 = r0; r0 = (0 - s.tmp_1); s.tmp_0.arg1 = r0; - s.callLocIdx = 759; s.pc = 38; return s.tmp_0; + s.callLocIdx = 793; s.pc = 38; return s.tmp_0; case 38: r0 = s.retval; case 14: @@ -53051,12 +58153,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_screenEdgeCollisions__P4569.info = {"start":12034,"length":855,"line":355,"column":4,"endLine":376,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"screenEdgeCollisions","argumentNames":["this","movingSprite","bounce","camera"]} +ArcadePhysicsEngine_screenEdgeCollisions__P4609.info = {"start":12034,"length":855,"line":355,"column":4,"endLine":376,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"screenEdgeCollisions","argumentNames":["this","movingSprite","bounce","camera"]} -function ArcadePhysicsEngine_screenEdgeCollisions__P4569_mk(s) { +function ArcadePhysicsEngine_screenEdgeCollisions__P4609_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_screenEdgeCollisions__P4569, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_screenEdgeCollisions__P4609, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -53070,8 +58172,8 @@ function ArcadePhysicsEngine_screenEdgeCollisions__P4569_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - s___22058: undefined, - offset___22067: undefined, + s___23844: undefined, + offset___23853: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -53082,7 +58184,7 @@ function ArcadePhysicsEngine_screenEdgeCollisions__P4569_mk(s) { -function ArcadePhysicsEngine_spriteCollisions__P4568(s) { +function ArcadePhysicsEngine_spriteCollisions__P4608(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53092,18 +58194,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ms___21557 = undefined; + s.ms___23343 = undefined; s.unnamed84___U1 = undefined; s.unnamed85___U2 = undefined; - s.sprite___21559 = undefined; - s.overSprites___21566 = undefined; - s.overlapper___21574 = undefined; + s.sprite___23345 = undefined; + s.overSprites___23352 = undefined; + s.overlapper___23360 = undefined; s.unnamed86___U6 = undefined; s.unnamed87___U7 = undefined; - s.thisKind___21580 = undefined; - s.otherKind___21584 = undefined; - s.higher___21597 = undefined; - s.lower___21606 = undefined; + s.thisKind___23366 = undefined; + s.otherKind___23370 = undefined; + s.higher___23383 = undefined; + s.lower___23392 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -53123,7 +58225,7 @@ switch (step) { { step = 21; continue; } case 1: case 2: - s.ms___21557 = (undefined); + s.ms___23343 = (undefined); s.unnamed84___U1 = (s.arg1); s.unnamed85___U2 = (0); case 3: @@ -53133,10 +58235,10 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 20; continue; } r0 = pxsim_Array__getAt(s.unnamed84___U1, s.unnamed85___U2); - s.ms___21557 = (r0); - r0 = s.ms___21557.fields["sprite"]; - s.sprite___21559 = (r0); - r0 = s.sprite___21559.fields["flags"]; + s.ms___23343 = (r0); + r0 = s.ms___23343.fields["sprite"]; + s.sprite___23345 = (r0); + r0 = s.sprite___23345.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4610); s.tmp_0 = r0; @@ -53148,14 +58250,14 @@ switch (step) { s.tmp_2 = sprites_SpriteMap_overlaps__P2290_mk(s); r0 = s.arg0.fields["map"]; s.tmp_2.arg0 = r0; - r0 = s.ms___21557.fields["sprite"]; + r0 = s.ms___23343.fields["sprite"]; s.tmp_2.arg1 = r0; - s.callLocIdx = 725; s.pc = 22; return s.tmp_2; + s.callLocIdx = 759; s.pc = 22; return s.tmp_2; case 22: r0 = s.retval; - s.overSprites___21566 = (r0); - s.overlapper___21574 = (undefined); - s.unnamed86___U6 = (s.overSprites___21566); + s.overSprites___23352 = (r0); + s.overlapper___23360 = (undefined); + s.unnamed86___U6 = (s.overSprites___23352); s.unnamed87___U7 = (0); case 6: s.tmp_0 = r0 = s.unnamed87___U7; @@ -53164,8 +58266,8 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 18; continue; } r0 = pxsim_Array__getAt(s.unnamed86___U6, s.unnamed87___U7); - s.overlapper___21574 = (r0); - r0 = s.overlapper___21574.fields["flags"]; + s.overlapper___23360 = (r0); + r0 = s.overlapper___23360.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 4610); s.tmp_2 = r0; @@ -53174,13 +58276,13 @@ switch (step) { { step = 17; continue; } case 7: case 8: - r0 = s.sprite___21559.fields["_kind"]; - s.thisKind___21580 = (r0); - r0 = s.overlapper___21574.fields["_kind"]; - s.otherKind___21584 = (r0); - r0 = s.sprite___21559.fields["_kindsOverlappedWith"]; + r0 = s.sprite___23345.fields["_kind"]; + s.thisKind___23366 = (r0); + r0 = s.overlapper___23360.fields["_kind"]; + s.otherKind___23370 = (r0); + r0 = s.sprite___23345.fields["_kindsOverlappedWith"]; s.tmp_2 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___21584, undefined); + r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___23370, undefined); s.tmp_1 = r0; r0 = (s.tmp_1 === -1); s.tmp_0 = r0; @@ -53189,37 +58291,37 @@ switch (step) { { step = 17; continue; } case 9: case 10: - r0 = s.sprite___21559.fields["id"]; + r0 = s.sprite___23345.fields["id"]; s.tmp_4 = r0; - r0 = s.overlapper___21574.fields["id"]; + r0 = s.overlapper___23360.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___21559; + r0 = s.sprite___23345; { step = 12; continue; } case 11: - r0 = s.overlapper___21574; + r0 = s.overlapper___23360; case 12: // jmp value (already in r0) s.tmp_6 = r0; - s.higher___21597 = (s.tmp_6); - r0 = (s.higher___21597 === s.sprite___21559); + s.higher___23383 = (s.tmp_6); + r0 = (s.higher___23383 === s.sprite___23345); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - r0 = s.overlapper___21574; + r0 = s.overlapper___23360; { step = 14; continue; } case 13: - r0 = s.sprite___21559; + r0 = s.sprite___23345; case 14: // jmp value (already in r0) s.tmp_1 = r0; - s.lower___21606 = (s.tmp_1); - r0 = s.higher___21597.fields["_overlappers"]; + s.lower___23392 = (s.tmp_1); + r0 = s.higher___23383.fields["_overlappers"]; s.tmp_2 = r0; - r0 = s.lower___21606.fields["id"]; + r0 = s.lower___23392.fields["id"]; s.tmp_3 = r0; r0 = pxsim_Array_.indexOf(s.tmp_2, s.tmp_3, undefined); s.tmp_1 = r0; @@ -53227,27 +58329,27 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 15; continue; } - r0 = pxsim_pxtcore_mkAction(2, forEach_inline__P21626); + r0 = pxsim_pxtcore_mkAction(2, forEach_inline__P23412); s.tmp_4 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___21580); - r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___21584); - r0 = pxsim_pxtcore_mkAction(5, ArcadePhysicsEngine_spriteCollisions_inline__P21648); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___23366); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___23370); + r0 = pxsim_pxtcore_mkAction(5, ArcadePhysicsEngine_spriteCollisions_inline__P23434); s.tmp_5 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___21597); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___21606); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___21559); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___21574); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___21580); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___23383); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___23392); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___23345); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___23360); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___23366); s.tmp_6 = helpers_arrayForEach__P109_mk(s); s.tmp_7 = helpers_arrayFilter__P110_mk(s); s.tmp_7.arg0 = s.arg2; s.tmp_7.arg1 = s.tmp_4; - s.callLocIdx = 728; s.pc = 24; return s.tmp_7; + s.callLocIdx = 762; 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 = 730; s.pc = 23; return s.tmp_6; + s.callLocIdx = 764; s.pc = 23; return s.tmp_6; case 23: r0 = s.retval; case 15: @@ -53269,12 +58371,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_spriteCollisions__P4568.info = {"start":9760,"length":2268,"line":309,"column":4,"endLine":353,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"spriteCollisions","argumentNames":["this","movedSprites","handlers"]} +ArcadePhysicsEngine_spriteCollisions__P4608.info = {"start":9760,"length":2268,"line":309,"column":4,"endLine":353,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"spriteCollisions","argumentNames":["this","movedSprites","handlers"]} -function ArcadePhysicsEngine_spriteCollisions__P4568_mk(s) { +function ArcadePhysicsEngine_spriteCollisions__P4608_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P4568, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P4608, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -53284,18 +58386,18 @@ function ArcadePhysicsEngine_spriteCollisions__P4568_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - ms___21557: undefined, + ms___23343: undefined, unnamed84___U1: undefined, unnamed85___U2: undefined, - sprite___21559: undefined, - overSprites___21566: undefined, - overlapper___21574: undefined, + sprite___23345: undefined, + overSprites___23352: undefined, + overlapper___23360: undefined, unnamed86___U6: undefined, unnamed87___U7: undefined, - thisKind___21580: undefined, - otherKind___21584: undefined, - higher___21597: undefined, - lower___21606: undefined, + thisKind___23366: undefined, + otherKind___23370: undefined, + higher___23383: undefined, + lower___23392: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -53305,7 +58407,7 @@ function ArcadePhysicsEngine_spriteCollisions__P4568_mk(s) { -function forEach_inline__P21626(s) { +function forEach_inline__P23412(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53362,12 +58464,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -forEach_inline__P21626.info = {"start":11129,"length":137,"line":335,"column":32,"endLine":336,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +forEach_inline__P23412.info = {"start":11129,"length":137,"line":335,"column":32,"endLine":336,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function forEach_inline__P21626_mk(s) { +function forEach_inline__P23412_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P21626, depth: s.depth + 1, + parent: s, fn: forEach_inline__P23412, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -53385,7 +58487,7 @@ function forEach_inline__P21626_mk(s) { -function ArcadePhysicsEngine_spriteCollisions_inline__P21648(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P23434(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53404,7 +58506,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, ArcadePhysicsEngine_spriteCollisions_inline__P21658); + r0 = pxsim_pxtcore_mkAction(6, ArcadePhysicsEngine_spriteCollisions_inline__P23444); 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]); @@ -53417,12 +58519,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_spriteCollisions_inline__P21648.info = {"start":11326,"length":652,"line":338,"column":33,"endLine":349,"endColumn":25,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +ArcadePhysicsEngine_spriteCollisions_inline__P23434.info = {"start":11326,"length":652,"line":338,"column":33,"endLine":349,"endColumn":25,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function ArcadePhysicsEngine_spriteCollisions_inline__P21648_mk(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P23434_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P21648, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P23434, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -53433,7 +58535,7 @@ function ArcadePhysicsEngine_spriteCollisions_inline__P21648_mk(s) { -function ArcadePhysicsEngine_spriteCollisions_inline__P21658(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P23444(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53489,12 +58591,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 = 729; s.pc = 7; return s.tmp_12; + s.callLocIdx = 763; 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 = 729; s.pc = 7; return s.tmp_12; } - else if (s.tmp_12.fn.isGetter) { s.tmp_12.stage2Call = true; s.callLocIdx = 729; s.pc = 7; return s.tmp_12;; } - else { s.callLocIdx = 729; 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 = 763; s.pc = 7; return s.tmp_12; } + else if (s.tmp_12.fn.isGetter) { s.tmp_12.stage2Call = true; s.callLocIdx = 763; s.pc = 7; return s.tmp_12;; } + else { s.callLocIdx = 763; s.pc = 7; return s.tmp_12; } } case 7: r0 = s.retval; @@ -53509,12 +58611,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_spriteCollisions_inline__P21658.info = {"start":11447,"length":503,"line":340,"column":50,"endLine":348,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]} +ArcadePhysicsEngine_spriteCollisions_inline__P23444.info = {"start":11447,"length":503,"line":340,"column":50,"endLine":348,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]} -function ArcadePhysicsEngine_spriteCollisions_inline__P21658_mk(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P23444_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P21658, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P23444, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -53545,8 +58647,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___21691 = undefined; - s.o___21695 = undefined; + s.n___23477 = undefined; + s.o___23481 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -53557,21 +58659,21 @@ switch (step) { s.tmp_0 = sprites_SpriteMap_neighbors__P2289_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 596; s.pc = 1; return s.tmp_0; + s.callLocIdx = 630; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.n___21691 = (r0); - r0 = pxsim_pxtcore_mkAction(1, o_inline__P21697); + s.n___23477 = (r0); + r0 = pxsim_pxtcore_mkAction(1, o_inline__P23483); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); s.tmp_1 = helpers_arrayFilter__P110_mk(s); - s.tmp_1.arg0 = s.n___21691; + s.tmp_1.arg0 = s.n___23477; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 598; s.pc = 2; return s.tmp_1; + s.callLocIdx = 632; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - s.o___21695 = (r0); - r0 = s.o___21695; + s.o___23481 = (r0); + r0 = s.o___23481; return leave(s, r0) default: oops() } } } @@ -53584,8 +58686,8 @@ function sprites_SpriteMap_overlaps__P2290_mk(s) { pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - n___21691: undefined, - o___21695: undefined, + n___23477: undefined, + o___23481: undefined, arg0: undefined, arg1: undefined, } } @@ -53594,7 +58696,7 @@ function sprites_SpriteMap_overlaps__P2290_mk(s) { -function o_inline__P21697(s) { +function o_inline__P23483(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53611,18 +58713,18 @@ switch (step) { s.tmp_0 = Sprite_overlapsWith__P2261_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 597; s.pc = 1; return s.tmp_0; + s.callLocIdx = 631; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -o_inline__P21697.info = {"start":1037,"length":41,"line":32,"column":31,"endLine":32,"endColumn":72,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["neighbor"]} +o_inline__P23483.info = {"start":1037,"length":41,"line":32,"column":31,"endLine":32,"endColumn":72,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["neighbor"]} -function o_inline__P21697_mk(s) { +function o_inline__P23483_mk(s) { checkStack(s.depth); return { - parent: s, fn: o_inline__P21697, depth: s.depth + 1, + parent: s, fn: o_inline__P23483, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -53642,8 +58744,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___21948 = undefined; - s.layer___21950 = undefined; + s.n___23734 = undefined; + s.layer___23736 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -53652,87 +58754,87 @@ switch (step) { r0 = s.arg0; if (!checkSubtype(r0, sprites_SpriteMap__C2287_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.n___21948 = (r0); + s.n___23734 = (r0); r0 = s.arg1.fields["layer"]; - s.layer___21950 = (r0); - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4532_mk(s); + s.layer___23736 = (r0); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4572_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = Sprite_left__P2240_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 584; s.pc = 2; return s.tmp_1; + s.callLocIdx = 618; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; s.tmp_2 = Sprite_top__P2244_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 585; s.pc = 3; return s.tmp_2; + s.callLocIdx = 619; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___21950; - s.tmp_0.arg4 = s.n___21948; - s.callLocIdx = 586; s.pc = 1; return s.tmp_0; + s.tmp_0.arg3 = s.layer___23736; + s.tmp_0.arg4 = s.n___23734; + s.callLocIdx = 620; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4532_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4572_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = Sprite_left__P2240_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 587; s.pc = 5; return s.tmp_1; + s.callLocIdx = 621; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0.arg1 = r0; s.tmp_2 = Sprite_bottom__P2246_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 588; s.pc = 6; return s.tmp_2; + s.callLocIdx = 622; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___21950; - s.tmp_0.arg4 = s.n___21948; - s.callLocIdx = 589; s.pc = 4; return s.tmp_0; + s.tmp_0.arg3 = s.layer___23736; + s.tmp_0.arg4 = s.n___23734; + s.callLocIdx = 623; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4532_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4572_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = Sprite_right__P2242_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 590; s.pc = 8; return s.tmp_1; + s.callLocIdx = 624; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; s.tmp_0.arg1 = r0; s.tmp_2 = Sprite_top__P2244_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 591; s.pc = 9; return s.tmp_2; + s.callLocIdx = 625; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___21950; - s.tmp_0.arg4 = s.n___21948; - s.callLocIdx = 592; s.pc = 7; return s.tmp_0; + s.tmp_0.arg3 = s.layer___23736; + s.tmp_0.arg4 = s.n___23734; + s.callLocIdx = 626; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4532_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4572_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = Sprite_right__P2242_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 593; s.pc = 11; return s.tmp_1; + s.callLocIdx = 627; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; s.tmp_0.arg1 = r0; s.tmp_2 = Sprite_bottom__P2246_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 594; s.pc = 12; return s.tmp_2; + s.callLocIdx = 628; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___21950; - s.tmp_0.arg4 = s.n___21948; - s.callLocIdx = 595; s.pc = 10; return s.tmp_0; + s.tmp_0.arg3 = s.layer___23736; + s.tmp_0.arg4 = s.n___23734; + s.callLocIdx = 629; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - r0 = pxsim_Array_.removeElement(s.n___21948, s.arg1); - r0 = s.n___21948; + r0 = pxsim_Array_.removeElement(s.n___23734, s.arg1); + r0 = s.n___23734; return leave(s, r0) default: oops() } } } @@ -53746,8 +58848,8 @@ function sprites_SpriteMap_neighbors__P2289_mk(s) { tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - n___21948: undefined, - layer___21950: undefined, + n___23734: undefined, + layer___23736: undefined, arg0: undefined, arg1: undefined, } } @@ -53756,7 +58858,7 @@ function sprites_SpriteMap_neighbors__P2289_mk(s) { -function sprites_SpriteMap_mergeAtKey__P4532(s) { +function sprites_SpriteMap_mergeAtKey__P4572(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53766,9 +58868,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___21991 = undefined; - s.bucket___21996 = undefined; - s.sprite___22003 = undefined; + s.k___23777 = undefined; + s.bucket___23782 = undefined; + s.sprite___23789 = undefined; s.unnamed80___U3 = undefined; s.unnamed81___U4 = undefined; if (s.lambdaArgs) { @@ -53781,22 +58883,22 @@ switch (step) { } r0 = s.arg0; if (!checkSubtype(r0, sprites_SpriteMap__C2287_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P4530_mk(s); + s.tmp_0 = sprites_SpriteMap_key__P4570_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 622; s.pc = 9; return s.tmp_0; + s.callLocIdx = 656; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.k___21991 = (r0); + s.k___23777 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___21991); - s.bucket___21996 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___21996); + r0 = pxsim_Array__getAt(s.tmp_0, s.k___23777); + s.bucket___23782 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___23782); if (!r0) { step = 7; continue; } - s.sprite___22003 = (undefined); - s.unnamed80___U3 = (s.bucket___21996); + s.sprite___23789 = (undefined); + s.unnamed80___U3 = (s.bucket___23782); s.unnamed81___U4 = (0); case 1: s.tmp_0 = r0 = s.unnamed81___U4; @@ -53805,8 +58907,8 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } r0 = pxsim_Array__getAt(s.unnamed80___U3, s.unnamed81___U4); - s.sprite___22003 = (r0); - r0 = s.sprite___22003.fields["layer"]; + s.sprite___23789 = (r0); + r0 = s.sprite___23789.fields["layer"]; s.tmp_3 = r0; r0 = (s.tmp_3 & s.arg3); s.tmp_2 = r0; @@ -53815,7 +58917,7 @@ switch (step) { r0 = s.tmp_2; { step = 3; continue; } case 2: - r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___22003, undefined); + r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___23789, undefined); s.tmp_4 = r0; r0 = (s.tmp_4 < 0); case 3: @@ -53823,7 +58925,7 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__push(s.arg4, s.sprite___22003); + r0 = pxsim_Array__push(s.arg4, s.sprite___23789); case 4: case 5: r0 = (s.unnamed81___U4 + 1); @@ -53837,12 +58939,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteMap_mergeAtKey__P4532.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__P4572.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__P4532_mk(s) { +function sprites_SpriteMap_mergeAtKey__P4572_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_mergeAtKey__P4532, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_mergeAtKey__P4572, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -53850,9 +58952,9 @@ function sprites_SpriteMap_mergeAtKey__P4532_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - k___21991: undefined, - bucket___21996: undefined, - sprite___22003: undefined, + k___23777: undefined, + bucket___23782: undefined, + sprite___23789: undefined, unnamed80___U3: undefined, unnamed81___U4: undefined, arg0: undefined, @@ -53866,7 +58968,7 @@ function sprites_SpriteMap_mergeAtKey__P4532_mk(s) { -function sprites_SpriteMap_key__P4530(s) { +function sprites_SpriteMap_key__P4570(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53876,8 +58978,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.xi___22024 = undefined; - s.yi___22036 = undefined; + s.xi___23810 = undefined; + s.yi___23822 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -53894,10 +58996,10 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.arg1, s.tmp_1); s.tmp_0.arg2 = r0; - s.callLocIdx = 610; s.pc = 1; return s.tmp_0; + s.callLocIdx = 644; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.xi___22024 = (r0); + s.xi___23810 = (r0); s.tmp_0 = Math_clamp__P127_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg0.fields["rowCount"]; @@ -53906,31 +59008,31 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.arg2, s.tmp_1); s.tmp_0.arg2 = r0; - s.callLocIdx = 611; s.pc = 2; return s.tmp_0; + s.callLocIdx = 645; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.yi___22036 = (r0); - s.tmp_0 = r0 = s.xi___22024; + s.yi___23822 = (r0); + s.tmp_0 = r0 = s.xi___23810; r0 = s.arg0.fields["columnCount"]; s.tmp_2 = r0; - r0 = (s.yi___22036 * s.tmp_2); + r0 = (s.yi___23822 * s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); return leave(s, r0) default: oops() } } } -sprites_SpriteMap_key__P4530.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__P4570.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__P4530_mk(s) { +function sprites_SpriteMap_key__P4570_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_key__P4530, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_key__P4570, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - xi___22024: undefined, - yi___22036: undefined, + xi___23810: undefined, + yi___23822: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -53950,8 +59052,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.A___21761 = undefined; - s.B___21762 = undefined; + s.A___23547 = undefined; + s.B___23548 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -53992,7 +59094,7 @@ switch (step) { s.tmp_8.arg0 = r0; r0 = s.arg0.fields["_hitbox"]; s.tmp_8.arg1 = r0; - s.callLocIdx = 467; s.pc = 24; return s.tmp_8; + s.callLocIdx = 501; s.pc = 24; return s.tmp_8; case 24: r0 = s.retval; s.tmp_7 = r0; @@ -54006,9 +59108,9 @@ switch (step) { { step = 23; continue; } case 7: case 8: - s.tmp_12 = Sprite_isScaled__P4523_mk(s); + s.tmp_12 = Sprite_isScaled__P4563_mk(s); s.tmp_12.arg0 = s.arg0; - s.callLocIdx = 468; s.pc = 25; return s.tmp_12; + s.callLocIdx = 502; s.pc = 25; return s.tmp_12; case 25: r0 = s.retval; s.tmp_11 = r0; @@ -54021,9 +59123,9 @@ switch (step) { r0 = s.tmp_9; { step = 10; continue; } case 9: - s.tmp_15 = Sprite_isScaled__P4523_mk(s); + s.tmp_15 = Sprite_isScaled__P4563_mk(s); s.tmp_15.arg0 = s.arg1; - s.callLocIdx = 469; s.pc = 26; return s.tmp_15; + s.callLocIdx = 503; s.pc = 26; return s.tmp_15; case 26: r0 = s.retval; s.tmp_14 = r0; @@ -54041,13 +59143,13 @@ switch (step) { s.tmp_18 = r0; s.tmp_21 = Sprite_left__P2240_mk(s); s.tmp_21.arg0 = s.arg0; - s.callLocIdx = 470; s.pc = 27; return s.tmp_21; + s.callLocIdx = 504; s.pc = 27; return s.tmp_21; case 27: r0 = s.retval; s.tmp_20 = r0; s.tmp_23 = Sprite_left__P2240_mk(s); s.tmp_23.arg0 = s.arg1; - s.callLocIdx = 471; s.pc = 28; return s.tmp_23; + s.callLocIdx = 505; s.pc = 28; return s.tmp_23; case 28: r0 = s.retval; s.tmp_22 = r0; @@ -54055,13 +59157,13 @@ switch (step) { s.tmp_19 = r0; s.tmp_26 = Sprite_top__P2244_mk(s); s.tmp_26.arg0 = s.arg0; - s.callLocIdx = 472; s.pc = 29; return s.tmp_26; + s.callLocIdx = 506; s.pc = 29; return s.tmp_26; case 29: r0 = s.retval; s.tmp_25 = r0; s.tmp_28 = Sprite_top__P2244_mk(s); s.tmp_28.arg0 = s.arg1; - s.callLocIdx = 473; s.pc = 30; return s.tmp_28; + s.callLocIdx = 507; s.pc = 30; return s.tmp_28; case 30: r0 = s.retval; s.tmp_27 = r0; @@ -54073,7 +59175,7 @@ switch (step) { case 11: s.tmp_31 = Sprite_sx__P2211_mk(s); s.tmp_31.arg0 = s.arg0; - s.callLocIdx = 474; s.pc = 31; return s.tmp_31; + s.callLocIdx = 508; s.pc = 31; return s.tmp_31; case 31: r0 = s.retval; s.tmp_30 = r0; @@ -54086,7 +59188,7 @@ switch (step) { case 12: s.tmp_33 = Sprite_sy__P2213_mk(s); s.tmp_33.arg0 = s.arg0; - s.callLocIdx = 475; s.pc = 32; return s.tmp_33; + s.callLocIdx = 509; s.pc = 32; return s.tmp_33; case 32: r0 = s.retval; s.tmp_32 = r0; @@ -54101,7 +59203,7 @@ switch (step) { case 14: s.tmp_36 = Sprite_sx__P2211_mk(s); s.tmp_36.arg0 = s.arg1; - s.callLocIdx = 476; s.pc = 33; return s.tmp_36; + s.callLocIdx = 510; s.pc = 33; return s.tmp_36; case 33: r0 = s.retval; s.tmp_35 = r0; @@ -54116,7 +59218,7 @@ switch (step) { case 16: s.tmp_39 = Sprite_sy__P2213_mk(s); s.tmp_39.arg0 = s.arg1; - s.callLocIdx = 477; s.pc = 34; return s.tmp_39; + s.callLocIdx = 511; s.pc = 34; return s.tmp_39; case 34: r0 = s.retval; s.tmp_38 = r0; @@ -54132,13 +59234,13 @@ switch (step) { case 19: s.tmp_44 = Sprite_sx__P2211_mk(s); s.tmp_44.arg0 = s.arg0; - s.callLocIdx = 478; s.pc = 35; return s.tmp_44; + s.callLocIdx = 512; s.pc = 35; return s.tmp_44; case 35: r0 = s.retval; s.tmp_43 = r0; s.tmp_46 = Sprite_sy__P2213_mk(s); s.tmp_46.arg0 = s.arg0; - s.callLocIdx = 479; s.pc = 36; return s.tmp_46; + s.callLocIdx = 513; s.pc = 36; return s.tmp_46; case 36: r0 = s.retval; s.tmp_45 = r0; @@ -54146,13 +59248,13 @@ switch (step) { s.tmp_42 = r0; s.tmp_49 = Sprite_sx__P2211_mk(s); s.tmp_49.arg0 = s.arg1; - s.callLocIdx = 480; s.pc = 37; return s.tmp_49; + s.callLocIdx = 514; s.pc = 37; return s.tmp_49; case 37: r0 = s.retval; s.tmp_48 = r0; s.tmp_51 = Sprite_sy__P2213_mk(s); s.tmp_51.arg0 = s.arg1; - s.callLocIdx = 481; s.pc = 38; return s.tmp_51; + s.callLocIdx = 515; s.pc = 38; return s.tmp_51; case 38: r0 = s.retval; s.tmp_50 = r0; @@ -54162,103 +59264,103 @@ switch (step) { s.tmp_41 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_41); if (!r0) { step = 20; continue; } - s.A___21761 = (s.arg0); - s.B___21762 = (s.arg1); + s.A___23547 = (s.arg0); + s.B___23548 = (s.arg1); { step = 21; continue; } case 20: - s.A___21761 = (s.arg1); - s.B___21762 = (s.arg0); + s.A___23547 = (s.arg1); + s.B___23548 = (s.arg0); case 21: s.tmp_0 = helpers_imageBlit__P1800_mk(s); - r0 = s.A___21761.fields["_image"]; + r0 = s.A___23547.fields["_image"]; s.tmp_0.arg0 = r0; s.tmp_3 = Sprite_left__P2240_mk(s); - s.tmp_3.arg0 = s.B___21762; - s.callLocIdx = 483; s.pc = 40; return s.tmp_3; + s.tmp_3.arg0 = s.B___23548; + s.callLocIdx = 517; s.pc = 40; return s.tmp_3; case 40: r0 = s.retval; s.tmp_2 = r0; s.tmp_5 = Sprite_left__P2240_mk(s); - s.tmp_5.arg0 = s.A___21761; - s.callLocIdx = 484; s.pc = 41; return s.tmp_5; + s.tmp_5.arg0 = s.A___23547; + s.callLocIdx = 518; s.pc = 41; return s.tmp_5; case 41: r0 = s.retval; s.tmp_4 = r0; r0 = (s.tmp_2 - s.tmp_4); s.tmp_1 = r0; s.tmp_7 = Sprite_sx__P2211_mk(s); - s.tmp_7.arg0 = s.A___21761; - s.callLocIdx = 485; s.pc = 42; return s.tmp_7; + s.tmp_7.arg0 = s.A___23547; + s.callLocIdx = 519; s.pc = 42; return s.tmp_7; case 42: r0 = s.retval; s.tmp_6 = r0; r0 = (s.tmp_1 / s.tmp_6); s.tmp_0.arg1 = r0; s.tmp_10 = Sprite_top__P2244_mk(s); - s.tmp_10.arg0 = s.B___21762; - s.callLocIdx = 486; s.pc = 43; return s.tmp_10; + s.tmp_10.arg0 = s.B___23548; + s.callLocIdx = 520; s.pc = 43; return s.tmp_10; case 43: r0 = s.retval; s.tmp_9 = r0; s.tmp_12 = Sprite_top__P2244_mk(s); - s.tmp_12.arg0 = s.A___21761; - s.callLocIdx = 487; s.pc = 44; return s.tmp_12; + s.tmp_12.arg0 = s.A___23547; + s.callLocIdx = 521; s.pc = 44; return s.tmp_12; case 44: r0 = s.retval; s.tmp_11 = r0; r0 = (s.tmp_9 - s.tmp_11); s.tmp_8 = r0; s.tmp_14 = Sprite_sy__P2213_mk(s); - s.tmp_14.arg0 = s.A___21761; - s.callLocIdx = 488; s.pc = 45; return s.tmp_14; + s.tmp_14.arg0 = s.A___23547; + s.callLocIdx = 522; s.pc = 45; return s.tmp_14; case 45: r0 = s.retval; s.tmp_13 = r0; r0 = (s.tmp_8 / s.tmp_13); s.tmp_0.arg2 = r0; s.tmp_16 = Sprite_width__P2238_mk(s); - s.tmp_16.arg0 = s.B___21762; - s.callLocIdx = 489; s.pc = 46; return s.tmp_16; + s.tmp_16.arg0 = s.B___23548; + s.callLocIdx = 523; s.pc = 46; return s.tmp_16; case 46: r0 = s.retval; s.tmp_15 = r0; s.tmp_18 = Sprite_sx__P2211_mk(s); - s.tmp_18.arg0 = s.A___21761; - s.callLocIdx = 490; s.pc = 47; return s.tmp_18; + s.tmp_18.arg0 = s.A___23547; + s.callLocIdx = 524; s.pc = 47; return s.tmp_18; case 47: r0 = s.retval; s.tmp_17 = r0; r0 = (s.tmp_15 / s.tmp_17); s.tmp_0.arg3 = r0; s.tmp_20 = Sprite_height__P2239_mk(s); - s.tmp_20.arg0 = s.B___21762; - s.callLocIdx = 491; s.pc = 48; return s.tmp_20; + s.tmp_20.arg0 = s.B___23548; + s.callLocIdx = 525; s.pc = 48; return s.tmp_20; case 48: r0 = s.retval; s.tmp_19 = r0; s.tmp_22 = Sprite_sy__P2213_mk(s); - s.tmp_22.arg0 = s.A___21761; - s.callLocIdx = 492; s.pc = 49; return s.tmp_22; + s.tmp_22.arg0 = s.A___23547; + s.callLocIdx = 526; s.pc = 49; return s.tmp_22; case 49: r0 = s.retval; s.tmp_21 = r0; r0 = (s.tmp_19 / s.tmp_21); s.tmp_0.arg4 = r0; - r0 = s.B___21762.fields["_image"]; + r0 = s.B___23548.fields["_image"]; s.tmp_0.arg5 = r0; s.tmp_0.arg6 = 0; s.tmp_0.arg7 = 0; - r0 = s.B___21762.fields["_image"]; + r0 = s.B___23548.fields["_image"]; s.tmp_23 = r0; r0 = pxsim_ImageMethods.width(s.tmp_23); s.tmp_0.arg8 = r0; - r0 = s.B___21762.fields["_image"]; + r0 = s.B___23548.fields["_image"]; s.tmp_24 = r0; r0 = pxsim_ImageMethods.height(s.tmp_24); s.tmp_0.arg9 = r0; s.tmp_0.arg10 = true; s.tmp_0.arg11 = true; - s.callLocIdx = 496; s.pc = 39; return s.tmp_0; + s.callLocIdx = 530; s.pc = 39; return s.tmp_0; case 39: r0 = s.retval; { step = 23; continue; } @@ -54327,8 +59429,8 @@ function Sprite_overlapsWith__P2261_mk(s) { tmp_49: undefined, tmp_50: undefined, tmp_51: undefined, - A___21761: undefined, - B___21762: undefined, + A___23547: undefined, + B___23548: undefined, arg0: undefined, arg1: undefined, } } @@ -54337,7 +59439,7 @@ function Sprite_overlapsWith__P2261_mk(s) { -function Sprite_isScaled__P4523(s) { +function Sprite_isScaled__P4563(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54372,12 +59474,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_isScaled__P4523.info = {"start":10166,"length":100,"line":369,"column":4,"endLine":371,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isScaled","argumentNames":["this"]} +Sprite_isScaled__P4563.info = {"start":10166,"length":100,"line":369,"column":4,"endLine":371,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isScaled","argumentNames":["this"]} -function Sprite_isScaled__P4523_mk(s) { +function Sprite_isScaled__P4563_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isScaled__P4523, depth: s.depth + 1, + parent: s, fn: Sprite_isScaled__P4563, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -54409,29 +59511,29 @@ switch (step) { if (!checkSubtype(r0, game_Hitbox__C2051_VT)) failedCast(r0); s.tmp_0 = game_Hitbox_updateIfInvalid__P2065_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 300; s.pc = 18; return s.tmp_0; + s.callLocIdx = 334; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; s.tmp_0 = game_Hitbox_updateIfInvalid__P2065_mk(s); s.tmp_0.arg0 = s.arg1; - s.callLocIdx = 301; s.pc = 19; return s.tmp_0; + s.callLocIdx = 335; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; s.tmp_1 = game_Hitbox_contains__P2064_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_2 = game_Hitbox_left__P2059_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 302; s.pc = 21; return s.tmp_2; + s.callLocIdx = 336; s.pc = 21; return s.tmp_2; case 21: r0 = s.retval; s.tmp_1.arg1 = r0; s.tmp_3 = game_Hitbox_top__P2060_mk(s); s.tmp_3.arg0 = s.arg1; - s.callLocIdx = 303; s.pc = 22; return s.tmp_3; + s.callLocIdx = 337; s.pc = 22; return s.tmp_3; case 22: r0 = s.retval; s.tmp_1.arg2 = r0; - s.callLocIdx = 304; s.pc = 20; return s.tmp_1; + s.callLocIdx = 338; s.pc = 20; return s.tmp_1; case 20: r0 = s.retval; s.tmp_0 = r0; @@ -54445,17 +59547,17 @@ switch (step) { s.tmp_5.arg0 = s.arg0; s.tmp_6 = game_Hitbox_left__P2059_mk(s); s.tmp_6.arg0 = s.arg1; - s.callLocIdx = 305; s.pc = 24; return s.tmp_6; + s.callLocIdx = 339; s.pc = 24; return s.tmp_6; case 24: r0 = s.retval; s.tmp_5.arg1 = r0; s.tmp_7 = game_Hitbox_bottom__P2062_mk(s); s.tmp_7.arg0 = s.arg1; - s.callLocIdx = 306; s.pc = 25; return s.tmp_7; + s.callLocIdx = 340; s.pc = 25; return s.tmp_7; case 25: r0 = s.retval; s.tmp_5.arg2 = r0; - s.callLocIdx = 307; s.pc = 23; return s.tmp_5; + s.callLocIdx = 341; s.pc = 23; return s.tmp_5; case 23: r0 = s.retval; s.tmp_4 = r0; @@ -54469,17 +59571,17 @@ switch (step) { s.tmp_9.arg0 = s.arg0; s.tmp_10 = game_Hitbox_right__P2061_mk(s); s.tmp_10.arg0 = s.arg1; - s.callLocIdx = 308; s.pc = 27; return s.tmp_10; + s.callLocIdx = 342; s.pc = 27; return s.tmp_10; case 27: r0 = s.retval; s.tmp_9.arg1 = r0; s.tmp_11 = game_Hitbox_top__P2060_mk(s); s.tmp_11.arg0 = s.arg1; - s.callLocIdx = 309; s.pc = 28; return s.tmp_11; + s.callLocIdx = 343; s.pc = 28; return s.tmp_11; case 28: r0 = s.retval; s.tmp_9.arg2 = r0; - s.callLocIdx = 310; s.pc = 26; return s.tmp_9; + s.callLocIdx = 344; s.pc = 26; return s.tmp_9; case 26: r0 = s.retval; s.tmp_8 = r0; @@ -54493,17 +59595,17 @@ switch (step) { s.tmp_13.arg0 = s.arg0; s.tmp_14 = game_Hitbox_right__P2061_mk(s); s.tmp_14.arg0 = s.arg1; - s.callLocIdx = 311; s.pc = 30; return s.tmp_14; + s.callLocIdx = 345; s.pc = 30; return s.tmp_14; case 30: r0 = s.retval; s.tmp_13.arg1 = r0; s.tmp_15 = game_Hitbox_bottom__P2062_mk(s); s.tmp_15.arg0 = s.arg1; - s.callLocIdx = 312; s.pc = 31; return s.tmp_15; + s.callLocIdx = 346; s.pc = 31; return s.tmp_15; case 31: r0 = s.retval; s.tmp_13.arg2 = r0; - s.callLocIdx = 313; s.pc = 29; return s.tmp_13; + s.callLocIdx = 347; s.pc = 29; return s.tmp_13; case 29: r0 = s.retval; s.tmp_12 = r0; @@ -54517,17 +59619,17 @@ switch (step) { s.tmp_17.arg0 = s.arg1; s.tmp_18 = game_Hitbox_left__P2059_mk(s); s.tmp_18.arg0 = s.arg0; - s.callLocIdx = 314; s.pc = 33; return s.tmp_18; + s.callLocIdx = 348; s.pc = 33; return s.tmp_18; case 33: r0 = s.retval; s.tmp_17.arg1 = r0; s.tmp_19 = game_Hitbox_top__P2060_mk(s); s.tmp_19.arg0 = s.arg0; - s.callLocIdx = 315; s.pc = 34; return s.tmp_19; + s.callLocIdx = 349; s.pc = 34; return s.tmp_19; case 34: r0 = s.retval; s.tmp_17.arg2 = r0; - s.callLocIdx = 316; s.pc = 32; return s.tmp_17; + s.callLocIdx = 350; s.pc = 32; return s.tmp_17; case 32: r0 = s.retval; s.tmp_16 = r0; @@ -54541,17 +59643,17 @@ switch (step) { s.tmp_21.arg0 = s.arg1; s.tmp_22 = game_Hitbox_left__P2059_mk(s); s.tmp_22.arg0 = s.arg0; - s.callLocIdx = 317; s.pc = 36; return s.tmp_22; + s.callLocIdx = 351; s.pc = 36; return s.tmp_22; case 36: r0 = s.retval; s.tmp_21.arg1 = r0; s.tmp_23 = game_Hitbox_bottom__P2062_mk(s); s.tmp_23.arg0 = s.arg0; - s.callLocIdx = 318; s.pc = 37; return s.tmp_23; + s.callLocIdx = 352; s.pc = 37; return s.tmp_23; case 37: r0 = s.retval; s.tmp_21.arg2 = r0; - s.callLocIdx = 319; s.pc = 35; return s.tmp_21; + s.callLocIdx = 353; s.pc = 35; return s.tmp_21; case 35: r0 = s.retval; s.tmp_20 = r0; @@ -54565,17 +59667,17 @@ switch (step) { s.tmp_25.arg0 = s.arg1; s.tmp_26 = game_Hitbox_right__P2061_mk(s); s.tmp_26.arg0 = s.arg0; - s.callLocIdx = 320; s.pc = 39; return s.tmp_26; + s.callLocIdx = 354; s.pc = 39; return s.tmp_26; case 39: r0 = s.retval; s.tmp_25.arg1 = r0; s.tmp_27 = game_Hitbox_top__P2060_mk(s); s.tmp_27.arg0 = s.arg0; - s.callLocIdx = 321; s.pc = 40; return s.tmp_27; + s.callLocIdx = 355; s.pc = 40; return s.tmp_27; case 40: r0 = s.retval; s.tmp_25.arg2 = r0; - s.callLocIdx = 322; s.pc = 38; return s.tmp_25; + s.callLocIdx = 356; s.pc = 38; return s.tmp_25; case 38: r0 = s.retval; s.tmp_24 = r0; @@ -54589,17 +59691,17 @@ switch (step) { s.tmp_29.arg0 = s.arg1; s.tmp_30 = game_Hitbox_right__P2061_mk(s); s.tmp_30.arg0 = s.arg0; - s.callLocIdx = 323; s.pc = 42; return s.tmp_30; + s.callLocIdx = 357; s.pc = 42; return s.tmp_30; case 42: r0 = s.retval; s.tmp_29.arg1 = r0; s.tmp_31 = game_Hitbox_bottom__P2062_mk(s); s.tmp_31.arg0 = s.arg0; - s.callLocIdx = 324; s.pc = 43; return s.tmp_31; + s.callLocIdx = 358; s.pc = 43; return s.tmp_31; case 43: r0 = s.retval; s.tmp_29.arg2 = r0; - s.callLocIdx = 325; s.pc = 41; return s.tmp_29; + s.callLocIdx = 359; s.pc = 41; return s.tmp_29; case 41: r0 = s.retval; s.tmp_28 = r0; @@ -54682,7 +59784,7 @@ switch (step) { s.tmp_1 = r0 = s.arg1; s.tmp_3 = game_Hitbox_left__P2059_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 280; s.pc = 7; return s.tmp_3; + s.callLocIdx = 314; s.pc = 7; return s.tmp_3; case 7: r0 = s.retval; s.tmp_2 = r0; @@ -54696,7 +59798,7 @@ switch (step) { s.tmp_4 = r0 = s.arg1; s.tmp_6 = game_Hitbox_right__P2061_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 281; s.pc = 8; return s.tmp_6; + s.callLocIdx = 315; s.pc = 8; return s.tmp_6; case 8: r0 = s.retval; s.tmp_5 = r0; @@ -54712,7 +59814,7 @@ switch (step) { s.tmp_8 = r0 = s.arg2; s.tmp_10 = game_Hitbox_top__P2060_mk(s); s.tmp_10.arg0 = s.arg0; - s.callLocIdx = 282; s.pc = 9; return s.tmp_10; + s.callLocIdx = 316; s.pc = 9; return s.tmp_10; case 9: r0 = s.retval; s.tmp_9 = r0; @@ -54728,7 +59830,7 @@ switch (step) { s.tmp_12 = r0 = s.arg2; s.tmp_14 = game_Hitbox_bottom__P2062_mk(s); s.tmp_14.arg0 = s.arg0; - s.callLocIdx = 283; s.pc = 10; return s.tmp_14; + s.callLocIdx = 317; s.pc = 10; return s.tmp_14; case 10: r0 = s.retval; s.tmp_13 = r0; @@ -54797,7 +59899,7 @@ switch (step) { s.arg11 = (s.lambdaArgs[11]); s.lambdaArgs = null; } - s.tmp_0 = r0 = globals._blitArgs___4415; + s.tmp_0 = r0 = globals._blitArgs___4455; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; @@ -54807,36 +59909,36 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_1 = r0; - globals._blitArgs___4415 = (s.tmp_1); - s.tmp_0 = r0 = globals._blitArgs___4415; + globals._blitArgs___4455 = (s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___4455; r0 = (s.arg1 | 0); s.tmp_1 = r0; r0 = pxsim_Array_.setAt(s.tmp_0, 0, s.tmp_1); - s.tmp_0 = r0 = globals._blitArgs___4415; + s.tmp_0 = r0 = globals._blitArgs___4455; r0 = (s.arg2 | 0); s.tmp_1 = r0; r0 = pxsim_Array_.setAt(s.tmp_0, 1, s.tmp_1); - s.tmp_0 = r0 = globals._blitArgs___4415; + s.tmp_0 = r0 = globals._blitArgs___4455; r0 = (s.arg3 | 0); s.tmp_1 = r0; r0 = pxsim_Array_.setAt(s.tmp_0, 2, s.tmp_1); - s.tmp_0 = r0 = globals._blitArgs___4415; + s.tmp_0 = r0 = globals._blitArgs___4455; r0 = (s.arg4 | 0); s.tmp_1 = r0; r0 = pxsim_Array_.setAt(s.tmp_0, 3, s.tmp_1); - s.tmp_0 = r0 = globals._blitArgs___4415; + s.tmp_0 = r0 = globals._blitArgs___4455; r0 = (s.arg6 | 0); s.tmp_1 = r0; r0 = pxsim_Array_.setAt(s.tmp_0, 4, s.tmp_1); - s.tmp_0 = r0 = globals._blitArgs___4415; + s.tmp_0 = r0 = globals._blitArgs___4455; r0 = (s.arg7 | 0); s.tmp_1 = r0; r0 = pxsim_Array_.setAt(s.tmp_0, 5, s.tmp_1); - s.tmp_0 = r0 = globals._blitArgs___4415; + s.tmp_0 = r0 = globals._blitArgs___4455; r0 = (s.arg8 | 0); s.tmp_1 = r0; r0 = pxsim_Array_.setAt(s.tmp_0, 6, s.tmp_1); - s.tmp_0 = r0 = globals._blitArgs___4415; + s.tmp_0 = r0 = globals._blitArgs___4455; r0 = (s.arg9 | 0); s.tmp_1 = r0; r0 = pxsim_Array_.setAt(s.tmp_0, 7, s.tmp_1); @@ -54849,7 +59951,7 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(globals._blitArgs___4415, 8, s.tmp_0); + r0 = pxsim_Array_.setAt(globals._blitArgs___4455, 8, s.tmp_0); r0 = pxsim_numops_toBoolDecr(s.arg11); if (!r0) { step = 5; continue; } r0 = 1; @@ -54859,8 +59961,8 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(globals._blitArgs___4415, 9, s.tmp_0); - r0 = pxsim_ImageMethods._blit(s.arg0, s.arg5, globals._blitArgs___4415); + r0 = pxsim_Array_.setAt(globals._blitArgs___4455, 9, s.tmp_0); + r0 = pxsim_ImageMethods._blit(s.arg0, s.arg5, globals._blitArgs___4455); return leave(s, r0) default: oops() } } } @@ -54891,7 +59993,7 @@ function helpers_imageBlit__P1800_mk(s) { -function ArcadePhysicsEngine_createMovingSprite__P4567(s) { +function ArcadePhysicsEngine_createMovingSprite__P4607(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54901,16 +60003,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ovx___22343 = undefined; - s.ovy___22348 = undefined; - s.fx___22375 = undefined; - s.c___22382 = undefined; - s.fy___22425 = undefined; - s.c___22432 = undefined; - s.dx___22471 = undefined; - s.dy___22484 = undefined; - s.xStep___22497 = undefined; - s.yStep___22499 = undefined; + s.ovx___24129 = undefined; + s.ovy___24134 = undefined; + s.fx___24161 = undefined; + s.c___24168 = undefined; + s.fy___24211 = undefined; + s.c___24218 = undefined; + s.dx___24257 = undefined; + s.dy___24270 = undefined; + s.xStep___24283 = undefined; + s.yStep___24285 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -54920,22 +60022,22 @@ switch (step) { } r0 = s.arg0; if (!checkSubtype(r0, ArcadePhysicsEngine__C2368_VT)) failedCast(r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P4573_mk(s); + s.tmp_0 = ArcadePhysicsEngine_constrain__P4613_mk(s); s.tmp_0.arg0 = s.arg0; r0 = s.arg1.fields["_vx"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 688; s.pc = 25; return s.tmp_0; + s.callLocIdx = 722; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.ovx___22343 = (r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P4573_mk(s); + s.ovx___24129 = (r0); + s.tmp_0 = ArcadePhysicsEngine_constrain__P4613_mk(s); s.tmp_0.arg0 = s.arg0; r0 = s.arg1.fields["_vy"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 689; s.pc = 26; return s.tmp_0; + s.callLocIdx = 723; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - s.ovy___22348 = (r0); + s.ovy___24134 = (r0); r0 = s.arg1.fields["_x"]; s.tmp_0 = r0; r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); @@ -54969,12 +60071,12 @@ switch (step) { r0 = pxsim.Math_.imul(s.tmp_2, s.arg2); s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.tmp_1, 1000); - s.fx___22375 = (r0); + s.fx___24161 = (r0); r0 = s.arg1.fields["_vx"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fx___22375); - s.c___22382 = (r0); - r0 = (s.c___22382 < 0); + r0 = (s.tmp_0 - s.fx___24161); + s.c___24168 = (r0); + r0 = (s.c___24168 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } @@ -54983,16 +60085,16 @@ switch (step) { s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fx___22375); + r0 = (s.tmp_4 + s.fx___24161); s.tmp_3.arg1 = r0; - s.callLocIdx = 697; s.pc = 27; return s.tmp_3; + s.callLocIdx = 731; 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___22382 > 0); + r0 = (s.c___24168 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } @@ -55001,9 +60103,9 @@ switch (step) { s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fx___22375); + r0 = (s.tmp_4 - s.fx___24161); s.tmp_3.arg1 = r0; - s.callLocIdx = 699; s.pc = 28; return s.tmp_3; + s.callLocIdx = 733; s.pc = 28; return s.tmp_3; case 28: r0 = s.retval; s.tmp_2 = r0; @@ -55043,12 +60145,12 @@ switch (step) { r0 = pxsim.Math_.imul(s.tmp_2, s.arg2); s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.tmp_1, 1000); - s.fy___22425 = (r0); + s.fy___24211 = (r0); r0 = s.arg1.fields["_vy"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fy___22425); - s.c___22432 = (r0); - r0 = (s.c___22432 < 0); + r0 = (s.tmp_0 - s.fy___24211); + s.c___24218 = (r0); + r0 = (s.c___24218 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 10; continue; } @@ -55057,16 +60159,16 @@ switch (step) { s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fy___22425); + r0 = (s.tmp_4 + s.fy___24211); s.tmp_3.arg1 = r0; - s.callLocIdx = 707; s.pc = 29; return s.tmp_3; + s.callLocIdx = 741; 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___22432 > 0); + r0 = (s.c___24218 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } @@ -55075,9 +60177,9 @@ switch (step) { s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fy___22425); + r0 = (s.tmp_4 - s.fy___24211); s.tmp_3.arg1 = r0; - s.callLocIdx = 709; s.pc = 30; return s.tmp_3; + s.callLocIdx = 743; s.pc = 30; return s.tmp_3; case 30: r0 = s.retval; s.tmp_2 = r0; @@ -55091,28 +60193,28 @@ switch (step) { case 15: case 16: s.tmp_0 = r0 = s.arg1; - s.tmp_2 = ArcadePhysicsEngine_constrain__P4573_mk(s); + s.tmp_2 = ArcadePhysicsEngine_constrain__P4613_mk(s); s.tmp_2.arg0 = s.arg0; r0 = s.arg1.fields["_vx"]; s.tmp_2.arg1 = r0; - s.callLocIdx = 710; s.pc = 31; return s.tmp_2; + s.callLocIdx = 744; 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__P4573_mk(s); + s.tmp_2 = ArcadePhysicsEngine_constrain__P4613_mk(s); s.tmp_2.arg0 = s.arg0; r0 = s.arg1.fields["_vy"]; s.tmp_2.arg1 = r0; - s.callLocIdx = 711; s.pc = 32; return s.tmp_2; + s.callLocIdx = 745; s.pc = 32; return s.tmp_2; case 32: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.ovx___22343); + r0 = (s.tmp_4 + s.ovx___24129); s.tmp_3 = r0; r0 = (s.tmp_3 / 256); s.tmp_2 = r0; @@ -55123,10 +60225,10 @@ switch (step) { r0 = (s.tmp_0 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); - s.dx___22471 = (r0); + s.dx___24257 = (r0); r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.ovy___22348); + r0 = (s.tmp_4 + s.ovy___24134); s.tmp_3 = r0; r0 = (s.tmp_3 / 256); s.tmp_2 = r0; @@ -55137,13 +60239,13 @@ switch (step) { r0 = (s.tmp_0 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); - s.dy___22484 = (r0); - s.xStep___22497 = (s.dx___22471); - s.yStep___22499 = (s.dy___22484); + s.dy___24270 = (r0); + s.xStep___24283 = (s.dx___24257); + s.yStep___24285 = (s.dy___24270); case 17: s.tmp_2 = Fx_abs__P165_mk(s); - s.tmp_2.arg0 = s.xStep___22497; - s.callLocIdx = 718; s.pc = 33; return s.tmp_2; + s.tmp_2.arg0 = s.xStep___24283; + s.callLocIdx = 752; s.pc = 33; return s.tmp_2; case 33: r0 = s.retval; s.tmp_1 = r0; @@ -55157,8 +60259,8 @@ switch (step) { { step = 19; continue; } case 18: s.tmp_5 = Fx_abs__P165_mk(s); - s.tmp_5.arg0 = s.yStep___22499; - s.callLocIdx = 719; s.pc = 34; return s.tmp_5; + s.tmp_5.arg0 = s.yStep___24285; + s.callLocIdx = 753; s.pc = 34; return s.tmp_5; case 34: r0 = s.retval; s.tmp_4 = r0; @@ -55171,8 +60273,8 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 24; continue; } s.tmp_10 = Fx_abs__P165_mk(s); - s.tmp_10.arg0 = s.xStep___22497; - s.callLocIdx = 720; s.pc = 35; return s.tmp_10; + s.tmp_10.arg0 = s.xStep___24283; + s.callLocIdx = 754; s.pc = 35; return s.tmp_10; case 35: r0 = s.retval; s.tmp_9 = r0; @@ -55182,13 +60284,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___22497, 2); - s.xStep___22497 = (r0); + r0 = pxsim.Math_.idiv(s.xStep___24283, 2); + s.xStep___24283 = (r0); case 20: case 21: s.tmp_2 = Fx_abs__P165_mk(s); - s.tmp_2.arg0 = s.yStep___22499; - s.callLocIdx = 722; s.pc = 36; return s.tmp_2; + s.tmp_2.arg0 = s.yStep___24285; + s.callLocIdx = 756; s.pc = 36; return s.tmp_2; case 36: r0 = s.retval; s.tmp_1 = r0; @@ -55198,8 +60300,8 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 22; continue; } - r0 = pxsim.Math_.idiv(s.yStep___22499, 2); - s.yStep___22499 = (r0); + r0 = pxsim.Math_.idiv(s.yStep___24285, 2); + s.yStep___24285 = (r0); case 22: case 23: { step = 17; continue; } @@ -55213,23 +60315,23 @@ switch (step) { s.tmp_1.arg2 = r0; r0 = s.arg1.fields["_vy"]; s.tmp_1.arg3 = r0; - s.tmp_1.arg4 = s.dx___22471; - s.tmp_1.arg5 = s.dy___22484; - s.tmp_1.arg6 = s.xStep___22497; - s.tmp_1.arg7 = s.yStep___22499; - s.callLocIdx = 724; s.pc = 37; return s.tmp_1; + s.tmp_1.arg4 = s.dx___24257; + s.tmp_1.arg5 = s.dy___24270; + s.tmp_1.arg6 = s.xStep___24283; + s.tmp_1.arg7 = s.yStep___24285; + s.callLocIdx = 758; s.pc = 37; return s.tmp_1; case 37: r0 = s.retval; r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_createMovingSprite__P4567.info = {"start":6949,"length":2805,"line":217,"column":4,"endLine":307,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"createMovingSprite","argumentNames":["this","sprite","dtMs","dt2"]} +ArcadePhysicsEngine_createMovingSprite__P4607.info = {"start":6949,"length":2805,"line":217,"column":4,"endLine":307,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"createMovingSprite","argumentNames":["this","sprite","dtMs","dt2"]} -function ArcadePhysicsEngine_createMovingSprite__P4567_mk(s) { +function ArcadePhysicsEngine_createMovingSprite__P4607_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P4567, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P4607, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -55243,16 +60345,16 @@ function ArcadePhysicsEngine_createMovingSprite__P4567_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - ovx___22343: undefined, - ovy___22348: undefined, - fx___22375: undefined, - c___22382: undefined, - fy___22425: undefined, - c___22432: undefined, - dx___22471: undefined, - dy___22484: undefined, - xStep___22497: undefined, - yStep___22499: undefined, + ovx___24129: undefined, + ovy___24134: undefined, + fx___24161: undefined, + c___24168: undefined, + fy___24211: undefined, + c___24218: undefined, + dx___24257: undefined, + dy___24270: undefined, + xStep___24283: undefined, + yStep___24285: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -55263,7 +60365,7 @@ function ArcadePhysicsEngine_createMovingSprite__P4567_mk(s) { -function ArcadePhysicsEngine_constrain__P4573(s) { +function ArcadePhysicsEngine_constrain__P4613(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -55285,24 +60387,24 @@ switch (step) { r0 = s.arg0.fields["maxVelocity"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 898; s.pc = 2; return s.tmp_1; + s.callLocIdx = 932; 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 = 899; s.pc = 1; return s.tmp_0; + s.callLocIdx = 933; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_constrain__P4573.info = {"start":27227,"length":193,"line":760,"column":4,"endLine":768,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"constrain","argumentNames":["this","v"]} +ArcadePhysicsEngine_constrain__P4613.info = {"start":27227,"length":193,"line":760,"column":4,"endLine":768,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"constrain","argumentNames":["this","v"]} -function ArcadePhysicsEngine_constrain__P4573_mk(s) { +function ArcadePhysicsEngine_constrain__P4613_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_constrain__P4573, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_constrain__P4613, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -55358,12 +60460,12 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.left___22163 = undefined; - s.top___22166 = undefined; - s.xn___22169 = undefined; - s.yn___22180 = undefined; - s.x___22191 = undefined; - s.y___22196 = undefined; + s.left___23949 = undefined; + s.top___23952 = undefined; + s.xn___23955 = undefined; + s.yn___23966 = undefined; + s.x___23977 = undefined; + s.y___23982 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -55373,19 +60475,19 @@ switch (step) { if (!checkSubtype(r0, sprites_SpriteMap__C2287_VT)) failedCast(r0); s.tmp_0 = Sprite_left__P2240_mk(s); s.tmp_0.arg0 = s.arg1; - s.callLocIdx = 613; s.pc = 5; return s.tmp_0; + s.callLocIdx = 647; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.left___22163 = (r0); + s.left___23949 = (r0); s.tmp_0 = Sprite_top__P2244_mk(s); s.tmp_0.arg0 = s.arg1; - s.callLocIdx = 614; s.pc = 6; return s.tmp_0; + s.callLocIdx = 648; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.top___22166 = (r0); + s.top___23952 = (r0); s.tmp_3 = Sprite_width__P2238_mk(s); s.tmp_3.arg0 = s.arg1; - s.callLocIdx = 615; s.pc = 7; return s.tmp_3; + s.callLocIdx = 649; s.pc = 7; return s.tmp_3; case 7: r0 = s.retval; s.tmp_2 = r0; @@ -55398,10 +60500,10 @@ switch (step) { r0 = s.arg0.fields["cellWidth"]; s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.xn___22169 = (r0); + s.xn___23955 = (r0); s.tmp_3 = Sprite_height__P2239_mk(s); s.tmp_3.arg0 = s.arg1; - s.callLocIdx = 616; s.pc = 8; return s.tmp_3; + s.callLocIdx = 650; s.pc = 8; return s.tmp_3; case 8: r0 = s.retval; s.tmp_2 = r0; @@ -55414,67 +60516,67 @@ switch (step) { r0 = s.arg0.fields["cellHeight"]; s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.yn___22180 = (r0); - s.x___22191 = (0); + s.yn___23966 = (r0); + s.x___23977 = (0); case 1: - r0 = (s.x___22191 <= s.xn___22169); + r0 = (s.x___23977 <= s.xn___23955); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.y___22196 = (0); + s.y___23982 = (0); case 2: - r0 = (s.y___22196 <= s.yn___22180); + r0 = (s.y___23982 <= s.yn___23966); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_1 = sprites_SpriteMap_insertAtKey__P4531_mk(s); + s.tmp_1 = sprites_SpriteMap_insertAtKey__P4571_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = r0 = s.left___22163; + s.tmp_2 = r0 = s.left___23949; s.tmp_4 = Math_min__P131_mk(s); s.tmp_5 = Sprite_width__P2238_mk(s); s.tmp_5.arg0 = s.arg1; - s.callLocIdx = 617; s.pc = 11; return s.tmp_5; + s.callLocIdx = 651; s.pc = 11; return s.tmp_5; case 11: r0 = s.retval; s.tmp_4.arg0 = r0; r0 = s.arg0.fields["cellWidth"]; s.tmp_6 = r0; - r0 = (s.x___22191 * s.tmp_6); + r0 = (s.x___23977 * s.tmp_6); s.tmp_4.arg1 = r0; - s.callLocIdx = 618; s.pc = 10; return s.tmp_4; + s.callLocIdx = 652; s.pc = 10; return s.tmp_4; case 10: r0 = s.retval; s.tmp_3 = r0; r0 = (s.tmp_2 + s.tmp_3); s.tmp_1.arg1 = r0; - s.tmp_7 = r0 = s.top___22166; + s.tmp_7 = r0 = s.top___23952; s.tmp_9 = Math_min__P131_mk(s); s.tmp_10 = Sprite_height__P2239_mk(s); s.tmp_10.arg0 = s.arg1; - s.callLocIdx = 619; s.pc = 13; return s.tmp_10; + s.callLocIdx = 653; s.pc = 13; return s.tmp_10; case 13: r0 = s.retval; s.tmp_9.arg0 = r0; r0 = s.arg0.fields["cellHeight"]; s.tmp_11 = r0; - r0 = (s.y___22196 * s.tmp_11); + r0 = (s.y___23982 * s.tmp_11); s.tmp_9.arg1 = r0; - s.callLocIdx = 620; s.pc = 12; return s.tmp_9; + s.callLocIdx = 654; s.pc = 12; return s.tmp_9; case 12: r0 = s.retval; s.tmp_8 = r0; r0 = (s.tmp_7 + s.tmp_8); s.tmp_1.arg2 = r0; s.tmp_1.arg3 = s.arg1; - s.callLocIdx = 621; s.pc = 9; return s.tmp_1; + s.callLocIdx = 655; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - r0 = (s.y___22196 + 1); - s.y___22196 = (r0); + r0 = (s.y___23982 + 1); + s.y___23982 = (r0); { step = 2; continue; } case 3: - r0 = (s.x___22191 + 1); - s.x___22191 = (r0); + r0 = (s.x___23977 + 1); + s.x___23977 = (r0); { step = 1; continue; } case 4: r0 = undefined; @@ -55500,12 +60602,12 @@ function sprites_SpriteMap_insertAABB__P2294_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - left___22163: undefined, - top___22166: undefined, - xn___22169: undefined, - yn___22180: undefined, - x___22191: undefined, - y___22196: undefined, + left___23949: undefined, + top___23952: undefined, + xn___23955: undefined, + yn___23966: undefined, + x___23977: undefined, + y___23982: undefined, arg0: undefined, arg1: undefined, } } @@ -55514,7 +60616,7 @@ function sprites_SpriteMap_insertAABB__P2294_mk(s) { -function sprites_SpriteMap_insertAtKey__P4531(s) { +function sprites_SpriteMap_insertAtKey__P4571(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -55524,8 +60626,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___22231 = undefined; - s.bucket___22236 = undefined; + s.k___24017 = undefined; + s.bucket___24022 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -55535,19 +60637,19 @@ switch (step) { } r0 = s.arg0; if (!checkSubtype(r0, sprites_SpriteMap__C2287_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P4530_mk(s); + s.tmp_0 = sprites_SpriteMap_key__P4570_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 612; s.pc = 5; return s.tmp_0; + s.callLocIdx = 646; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.k___22231 = (r0); + s.k___24017 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___22231); - s.bucket___22236 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___22236); + r0 = pxsim_Array__getAt(s.tmp_0, s.k___24017); + s.bucket___24022 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___24022); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -55555,40 +60657,40 @@ switch (step) { if (!r0) { step = 1; continue; } r0 = s.arg0.fields["buckets"]; s.tmp_2 = r0; - s.tmp_3 = r0 = s.k___22231; + s.tmp_3 = r0 = s.k___24017; r0 = pxsim_Array__mk(); s.tmp_4 = r0; r0 = pxsim_Array_.setAt(s.tmp_2, s.tmp_3, s.tmp_4); - s.bucket___22236 = (s.tmp_4); + s.bucket___24022 = (s.tmp_4); case 1: case 2: - r0 = pxsim_Array_.indexOf(s.bucket___22236, s.arg3, undefined); + r0 = pxsim_Array_.indexOf(s.bucket___24022, 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___22236, s.arg3); + r0 = pxsim_Array__push(s.bucket___24022, s.arg3); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_insertAtKey__P4531.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__P4571.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__P4531_mk(s) { +function sprites_SpriteMap_insertAtKey__P4571_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_insertAtKey__P4531, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_insertAtKey__P4571, depth: s.depth + 1, pc: 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___22231: undefined, - bucket___22236: undefined, + k___24017: undefined, + bucket___24022: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -55649,14 +60751,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.maxWidth___22266 = undefined; - s.maxHeight___22267 = undefined; - s.sprite___22269 = undefined; + s.maxWidth___24052 = undefined; + s.maxHeight___24053 = undefined; + s.sprite___24055 = undefined; s.unnamed78___U3 = undefined; s.unnamed79___U4 = undefined; - s.tMap___22285 = undefined; - s.areaWidth___22289 = undefined; - s.areaHeight___22296 = undefined; + s.tMap___24071 = undefined; + s.areaWidth___24075 = undefined; + s.areaHeight___24082 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -55664,9 +60766,9 @@ switch (step) { } r0 = s.arg0; if (!checkSubtype(r0, sprites_SpriteMap__C2287_VT)) failedCast(r0); - s.maxWidth___22266 = (0); - s.maxHeight___22267 = (0); - s.sprite___22269 = (undefined); + s.maxWidth___24052 = (0); + s.maxHeight___24053 = (0); + s.sprite___24055 = (undefined); s.unnamed78___U3 = (s.arg1); s.unnamed79___U4 = (0); case 1: @@ -55676,41 +60778,41 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } r0 = pxsim_Array__getAt(s.unnamed78___U3, s.unnamed79___U4); - s.sprite___22269 = (r0); + s.sprite___24055 = (r0); s.tmp_4 = Sprite_width__P2238_mk(s); - s.tmp_4.arg0 = s.sprite___22269; - s.callLocIdx = 601; s.pc = 11; return s.tmp_4; + s.tmp_4.arg0 = s.sprite___24055; + s.callLocIdx = 635; s.pc = 11; return s.tmp_4; case 11: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 > s.maxWidth___22266); + r0 = (s.tmp_3 > s.maxWidth___24052); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 2; continue; } s.tmp_5 = Sprite_width__P2238_mk(s); - s.tmp_5.arg0 = s.sprite___22269; - s.callLocIdx = 602; s.pc = 12; return s.tmp_5; + s.tmp_5.arg0 = s.sprite___24055; + s.callLocIdx = 636; s.pc = 12; return s.tmp_5; case 12: r0 = s.retval; - s.maxWidth___22266 = (r0); + s.maxWidth___24052 = (r0); case 2: case 3: s.tmp_2 = Sprite_height__P2239_mk(s); - s.tmp_2.arg0 = s.sprite___22269; - s.callLocIdx = 603; s.pc = 13; return s.tmp_2; + s.tmp_2.arg0 = s.sprite___24055; + s.callLocIdx = 637; s.pc = 13; return s.tmp_2; case 13: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 > s.maxHeight___22267); + r0 = (s.tmp_1 > s.maxHeight___24053); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } s.tmp_3 = Sprite_height__P2239_mk(s); - s.tmp_3.arg0 = s.sprite___22269; - s.callLocIdx = 604; s.pc = 14; return s.tmp_3; + s.tmp_3.arg0 = s.sprite___24055; + s.callLocIdx = 638; s.pc = 14; return s.tmp_3; case 14: r0 = s.retval; - s.maxHeight___22267 = (r0); + s.maxHeight___24053 = (r0); case 4: case 5: r0 = (s.unnamed79___U4 + 1); @@ -55719,16 +60821,16 @@ switch (step) { case 6: s.unnamed78___U3 = (undefined); s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 605; s.pc = 15; return s.tmp_0; + s.callLocIdx = 639; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tMap___22285 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tMap___22285); + s.tMap___24071 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tMap___24071); if (!r0) { step = 7; continue; } s.tmp_0 = tiles_TileMap_areaWidth__P2579_mk(s); - s.tmp_0.arg0 = s.tMap___22285; - s.callLocIdx = 606; s.pc = 16; return s.tmp_0; + s.tmp_0.arg0 = s.tMap___24071; + s.callLocIdx = 640; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; { step = 8; continue; } @@ -55737,12 +60839,12 @@ switch (step) { case 8: // jmp value (already in r0) s.tmp_1 = r0; - s.areaWidth___22289 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.tMap___22285); + s.areaWidth___24075 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tMap___24071); if (!r0) { step = 9; continue; } s.tmp_0 = tiles_TileMap_areaHeight__P2580_mk(s); - s.tmp_0.arg0 = s.tMap___22285; - s.callLocIdx = 607; s.pc = 17; return s.tmp_0; + s.tmp_0.arg0 = s.tMap___24071; + s.callLocIdx = 641; s.pc = 17; return s.tmp_0; case 17: r0 = s.retval; { step = 10; continue; } @@ -55751,15 +60853,15 @@ switch (step) { case 10: // jmp value (already in r0) s.tmp_1 = r0; - s.areaHeight___22296 = (s.tmp_1); + s.areaHeight___24082 = (s.tmp_1); s.tmp_0 = r0 = s.arg0; s.tmp_2 = Math_clamp__P127_mk(s); s.tmp_2.arg0 = 8; - r0 = (s.areaWidth___22289 >> 2); + r0 = (s.areaWidth___24075 >> 2); s.tmp_2.arg1 = r0; - r0 = (s.maxWidth___22266 * 2); + r0 = (s.maxWidth___24052 * 2); s.tmp_2.arg2 = r0; - s.callLocIdx = 608; s.pc = 18; return s.tmp_2; + s.callLocIdx = 642; s.pc = 18; return s.tmp_2; case 18: r0 = s.retval; s.tmp_1 = r0; @@ -55767,11 +60869,11 @@ switch (step) { s.tmp_0 = r0 = s.arg0; s.tmp_2 = Math_clamp__P127_mk(s); s.tmp_2.arg0 = 8; - r0 = (s.areaHeight___22296 >> 2); + r0 = (s.areaHeight___24082 >> 2); s.tmp_2.arg1 = r0; - r0 = (s.maxHeight___22267 * 2); + r0 = (s.maxHeight___24053 * 2); s.tmp_2.arg2 = r0; - s.callLocIdx = 609; s.pc = 19; return s.tmp_2; + s.callLocIdx = 643; s.pc = 19; return s.tmp_2; case 19: r0 = s.retval; s.tmp_1 = r0; @@ -55779,13 +60881,13 @@ switch (step) { s.tmp_0 = r0 = s.arg0; r0 = s.arg0.fields["cellHeight"]; s.tmp_2 = r0; - r0 = pxsim.Math_.idiv(s.areaHeight___22296, s.tmp_2); + r0 = pxsim.Math_.idiv(s.areaHeight___24082, 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___22289, s.tmp_2); + r0 = pxsim.Math_.idiv(s.areaWidth___24075, s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0).fields["columnCount"] = (s.tmp_1); r0 = undefined; @@ -55805,14 +60907,14 @@ function sprites_SpriteMap_resizeBuckets__P2292_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - maxWidth___22266: undefined, - maxHeight___22267: undefined, - sprite___22269: undefined, + maxWidth___24052: undefined, + maxHeight___24053: undefined, + sprite___24055: undefined, unnamed78___U3: undefined, unnamed79___U4: undefined, - tMap___22285: undefined, - areaWidth___22289: undefined, - areaHeight___22296: undefined, + tMap___24071: undefined, + areaWidth___24075: undefined, + areaHeight___24082: undefined, arg0: undefined, arg1: undefined, } } @@ -55914,7 +61016,7 @@ switch (step) { s.tmp_0 = sprites_SpriteMap_draw__P2291_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; - s.callLocIdx = 653; s.pc = 1; return s.tmp_0; + s.callLocIdx = 687; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; @@ -55946,61 +61048,61 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x___22564 = undefined; - s.y___22570 = undefined; - s.left___22576 = undefined; - s.top___22581 = undefined; - s.k___22586 = undefined; - s.b___22591 = undefined; + s.x___24350 = undefined; + s.y___24356 = undefined; + s.left___24362 = undefined; + s.top___24367 = undefined; + s.k___24372 = undefined; + s.b___24377 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; if (!checkSubtype(r0, sprites_SpriteMap__C2287_VT)) failedCast(r0); - s.x___22564 = (0); + s.x___24350 = (0); case 1: r0 = s.arg0.fields["columnCount"]; s.tmp_1 = r0; - r0 = (s.x___22564 < s.tmp_1); + r0 = (s.x___24350 < s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - s.y___22570 = (0); + s.y___24356 = (0); case 2: r0 = s.arg0.fields["rowCount"]; s.tmp_1 = r0; - r0 = (s.y___22570 < s.tmp_1); + r0 = (s.y___24356 < 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___22564 * s.tmp_2); - s.left___22576 = (r0); + r0 = (s.x___24350 * s.tmp_2); + s.left___24362 = (r0); r0 = s.arg0.fields["cellHeight"]; s.tmp_0 = r0; - r0 = (s.y___22570 * s.tmp_0); - s.top___22581 = (r0); - s.tmp_0 = sprites_SpriteMap_key__P4530_mk(s); + r0 = (s.y___24356 * s.tmp_0); + s.top___24367 = (r0); + s.tmp_0 = sprites_SpriteMap_key__P4570_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.left___22576; - s.tmp_0.arg2 = s.top___22581; - s.callLocIdx = 599; s.pc = 9; return s.tmp_0; + s.tmp_0.arg1 = s.left___24362; + s.tmp_0.arg2 = s.top___24367; + s.callLocIdx = 633; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.k___22586 = (r0); + s.k___24372 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___22586); - s.b___22591 = (r0); - s.tmp_0 = r0 = s.b___22591; + r0 = pxsim_Array__getAt(s.tmp_0, s.k___24372); + s.b___24377 = (r0); + s.tmp_0 = r0 = s.b___24377; 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___22591); + r0 = pxsim_Array__length(s.b___24377); case 4: // jmp value (already in r0) s.tmp_1 = r0; @@ -56008,24 +61110,24 @@ switch (step) { if (!r0) { step = 5; continue; } s.tmp_2 = helpers_imageDrawRect__P1806_mk(s); s.tmp_2.arg0 = globals.screen___1877; - s.tmp_2.arg1 = s.left___22576; - s.tmp_2.arg2 = s.top___22581; + s.tmp_2.arg1 = s.left___24362; + s.tmp_2.arg2 = s.top___24367; 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 = 600; s.pc = 10; return s.tmp_2; + s.callLocIdx = 634; s.pc = 10; return s.tmp_2; case 10: r0 = s.retval; case 5: case 6: - r0 = (s.y___22570 + 1); - s.y___22570 = (r0); + r0 = (s.y___24356 + 1); + s.y___24356 = (r0); { step = 2; continue; } case 7: - r0 = (s.x___22564 + 1); - s.x___22564 = (r0); + r0 = (s.x___24350 + 1); + s.x___24350 = (r0); { step = 1; continue; } case 8: r0 = undefined; @@ -56042,12 +61144,12 @@ function sprites_SpriteMap_draw__P2291_mk(s) { tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - x___22564: undefined, - y___22570: undefined, - left___22576: undefined, - top___22581: undefined, - k___22586: undefined, - b___22591: undefined, + x___24350: undefined, + y___24356: undefined, + left___24362: undefined, + top___24367: undefined, + k___24372: undefined, + b___24377: undefined, arg0: undefined, } } @@ -56105,7 +61207,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___22628 = undefined; + s.tm___24414 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -56117,21 +61219,21 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_Array__push(s.tmp_0, s.arg1); s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 651; s.pc = 5; return s.tmp_0; + s.callLocIdx = 685; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___22628 = (r0); - s.tmp_0 = r0 = s.tm___22628; + s.tm___24414 = (r0); + s.tmp_0 = r0 = s.tm___24414; 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__P2594_mk(s); - s.tmp_1.arg0 = s.tm___22628; + s.tmp_1.arg0 = s.tm___24414; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 652; s.pc = 6; return s.tmp_1; + s.callLocIdx = 686; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; case 2: @@ -56164,7 +61266,7 @@ function ArcadePhysicsEngine_addSprite__P2377_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tm___22628: undefined, + tm___24414: undefined, arg0: undefined, arg1: undefined, } } @@ -56196,7 +61298,7 @@ switch (step) { s.tmp_2 = Math_max__P130_mk(s); s.tmp_2.arg0 = 1; s.tmp_2.arg1 = s.arg1; - s.callLocIdx = 1010; s.pc = 7; return s.tmp_2; + s.callLocIdx = 1044; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; s.tmp_1 = r0; @@ -56269,7 +61371,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.wasRunning___22699 = undefined; + s.wasRunning___24485 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -56279,7 +61381,7 @@ switch (step) { r0 = s.arg0; if (!checkSubtype(r0, effects_ImageEffect__C3077_VT)) failedCast(r0); s.tmp_4 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1639; s.pc = 8; return s.tmp_4; + s.callLocIdx = 1736; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; r0 = r0.fields["background"]; @@ -56306,7 +61408,7 @@ switch (step) { r0 = s.arg0.fields["times"]; s.tmp_9 = r0; r0 = (s.tmp_9 != undefined); - s.wasRunning___22699 = (r0); + s.wasRunning___24485 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 3; continue; } r0 = s.arg1; @@ -56317,13 +61419,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___22699); + r0 = pxsim_numops_toBoolDecr(s.wasRunning___24485); s.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, effects_ImageEffect_startScreenEffect_inline__P22712); + r0 = pxsim_pxtcore_mkAction(2, effects_ImageEffect_startScreenEffect_inline__P24498); s.tmp_2 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.arg0); r0 = pxsim_pxtrt_stclo(s.tmp_2, 1, s.arg2); @@ -56352,7 +61454,7 @@ function effects_ImageEffect_startScreenEffect__P3081_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - wasRunning___22699: undefined, + wasRunning___24485: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -56362,7 +61464,7 @@ function effects_ImageEffect_startScreenEffect__P3081_mk(s) { -function effects_ImageEffect_startScreenEffect_inline__P22712(s) { +function effects_ImageEffect_startScreenEffect_inline__P24498(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56382,11 +61484,11 @@ switch (step) { s.tmp_2 = effects_ImageEffect_change__P3080_mk(s); s.tmp_2.arg0 = s.caps[0]; s.tmp_3 = scene_backgroundImage__P2720_mk(s); - s.callLocIdx = 1641; s.pc = 6; return s.tmp_3; + s.callLocIdx = 1738; s.pc = 6; return s.tmp_3; case 6: r0 = s.retval; s.tmp_2.arg1 = r0; - s.callLocIdx = 1642; s.pc = 5; return s.tmp_2; + s.callLocIdx = 1739; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.caps[1]); @@ -56400,7 +61502,7 @@ switch (step) { s.tmp_0 = r0; s.tmp_1 = pause__P413_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 1643; s.pc = 7; return s.tmp_1; + s.callLocIdx = 1740; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; s.tmp_0 = r0 = s.caps[0]; @@ -56416,12 +61518,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ImageEffect_startScreenEffect_inline__P22712.info = {"start":1764,"length":304,"line":47,"column":38,"endLine":54,"endColumn":17,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":[]} +effects_ImageEffect_startScreenEffect_inline__P24498.info = {"start":1764,"length":304,"line":47,"column":38,"endLine":54,"endColumn":17,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":[]} -function effects_ImageEffect_startScreenEffect_inline__P22712_mk(s) { +function effects_ImageEffect_startScreenEffect_inline__P24498_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_startScreenEffect_inline__P22712, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_startScreenEffect_inline__P24498, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -56443,16 +61545,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___22731 = undefined; + s.scene___24517 = undefined; s.tmp_0 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1163; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1197; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.scene___22731 = (r0); + s.scene___24517 = (r0); s.tmp_0 = scene_Background_image__P2511_mk(s); - r0 = s.scene___22731.fields["background"]; + r0 = s.scene___24517.fields["background"]; s.tmp_0.arg0 = r0; - s.callLocIdx = 1164; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1198; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; return leave(s, r0) @@ -56466,7 +61568,7 @@ function scene_backgroundImage__P2720_mk(s) { parent: s, fn: scene_backgroundImage__P2720, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - scene___22731: undefined, + scene___24517: undefined, } } @@ -56519,7 +61621,7 @@ function scene_Background_hasBackgroundImage__P2513_mk(s) { -function game_BaseDialog_drawTextCore__P2752(s) { +function game_Dialog_drawTextCore__P2764(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56529,75 +61631,236 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.lines___24537 = undefined; + s.availableWidth___24543 = undefined; + s.availableHeight___24546 = undefined; + s.charactersPerRow___24549 = undefined; + s.rowsOfCharacters___24557 = undefined; + s.textLeft___24568 = undefined; + s.textTop___24590 = undefined; + s.row___24605 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2737_VT)) failedCast(r0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -game_BaseDialog_drawTextCore__P2752.info = {"start":1788,"length":65,"line":71,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawTextCore","argumentNames":["this"]} - -function game_BaseDialog_drawTextCore__P2752_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_BaseDialog_drawTextCore__P2752, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function game_BaseDialog_update__P2750(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, game_BaseDialog__C2737_VT)) failedCast(r0); - s.tmp_0 = game_BaseDialog_clearInterior__P4675_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1174; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, game_Dialog__C2754_VT)) failedCast(r0); + r0 = s.arg0.fields["chunks"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - r0 = s.retval; - s.tmp_0 = game_BaseDialog__C2737_v1_1_mk(s); - s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, game_BaseDialog__C2737_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.drawTextCore; - s.pc = 2; return s.tmp_0; + r0 = s.arg0.fields["chunks"]; + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 === 0); case 2: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 3; continue; } + { step = 9; continue; } + case 3: + case 4: + r0 = s.arg0.fields["chunks"]; + s.tmp_6 = r0; + r0 = s.arg0.fields["chunkIndex"]; + s.tmp_7 = r0; + r0 = pxsim_Array__getAt(s.tmp_6, s.tmp_7); + s.lines___24537 = (r0); + s.tmp_0 = game_BaseDialog_textAreaWidth__P4719_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1248; s.pc = 10; return s.tmp_0; + case 10: r0 = s.retval; - s.tmp_0 = game_BaseDialog_drawCursorRow__P2753_mk(s); + s.availableWidth___24543 = (r0); + s.tmp_0 = game_BaseDialog_textAreaHeight__P4720_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1175; s.pc = 3; return s.tmp_0; - case 3: + s.callLocIdx = 1249; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; + s.availableHeight___24546 = (r0); + s.tmp_1 = r0 = s.availableWidth___24543; + s.tmp_3 = if_charWidth_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_3.arg0 = r0; + 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 = 1250; 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 = pxsim.Math_.floor(s.tmp_0); + s.charactersPerRow___24549 = (r0); + s.tmp_1 = r0 = s.availableHeight___24546; + s.tmp_3 = game_BaseDialog_rowHeight__P4718_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1251; s.pc = 13; return s.tmp_3; + case 13: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 / s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim.Math_.floor(s.tmp_0); + s.rowsOfCharacters___24557 = (r0); + r0 = s.arg0.fields["unit"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 12); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_2 = game_BaseDialog_drawBorder__P4713_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1252; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + case 5: + case 6: + r0 = s.arg0.fields["innerLeft"]; + s.tmp_2 = r0; + r0 = (1 + s.tmp_2); + s.tmp_1 = r0; + s.tmp_4 = Math_min__P131_mk(s); + r0 = s.arg0.fields["unit"]; + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = 12; + s.callLocIdx = 1253; s.pc = 15; return s.tmp_4; + case 15: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_1 + s.tmp_3); + s.tmp_0 = r0; + s.tmp_7 = r0 = s.availableWidth___24543; + s.tmp_9 = r0 = s.charactersPerRow___24549; + s.tmp_11 = if_charWidth_1_mk(s); + r0 = s.arg0.fields["font"]; + s.tmp_11.arg0 = r0; + if (!s.tmp_11.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "charWidth"); + } else { + s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["charWidth"]; + if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["charWidth"]; } + else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } + else { s.callLocIdx = 1254; s.pc = 16; return s.tmp_11; } + } + case 16: + r0 = s.retval; + s.tmp_10 = r0; + r0 = (s.tmp_9 * s.tmp_10); + s.tmp_8 = r0; + r0 = (s.tmp_7 - s.tmp_8); + s.tmp_6 = r0; + r0 = (s.tmp_6 >> 1); + s.tmp_5 = r0; + r0 = (s.tmp_0 + s.tmp_5); + s.textLeft___24568 = (r0); + r0 = s.arg0.fields["image"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (1 + s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Array__length(s.lines___24537); + s.tmp_6 = r0; + s.tmp_8 = game_BaseDialog_rowHeight__P4718_mk(s); + s.tmp_8.arg0 = s.arg0; + s.callLocIdx = 1255; s.pc = 17; return s.tmp_8; + case 17: + r0 = s.retval; + s.tmp_7 = r0; + r0 = (s.tmp_6 * s.tmp_7); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 1); + s.tmp_4 = r0; + r0 = (s.tmp_0 - s.tmp_4); + s.textTop___24590 = (r0); + s.row___24605 = (0); + case 7: + s.tmp_1 = r0 = s.row___24605; + r0 = pxsim_Array__length(s.lines___24537); + 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_3 = helpers_imagePrint__P1835_mk(s); + r0 = s.arg0.fields["image"]; + s.tmp_3.arg0 = r0; + r0 = pxsim_Array__getAt(s.lines___24537, s.row___24605); + s.tmp_3.arg1 = r0; + s.tmp_3.arg2 = s.textLeft___24568; + s.tmp_4 = r0 = s.textTop___24590; + s.tmp_6 = r0 = s.row___24605; + s.tmp_8 = game_BaseDialog_rowHeight__P4718_mk(s); + s.tmp_8.arg0 = s.arg0; + s.callLocIdx = 1256; s.pc = 19; return s.tmp_8; + case 19: + r0 = s.retval; + s.tmp_7 = r0; + r0 = (s.tmp_6 * s.tmp_7); + s.tmp_5 = r0; + r0 = (s.tmp_4 + s.tmp_5); + s.tmp_3.arg3 = r0; + r0 = s.arg0.fields["textColor"]; + s.tmp_3.arg4 = r0; + r0 = s.arg0.fields["font"]; + s.tmp_3.arg5 = r0; + s.tmp_3.arg6 = undefined; + s.callLocIdx = 1257; s.pc = 18; return s.tmp_3; + case 18: + r0 = s.retval; + r0 = (s.row___24605 + 1); + s.row___24605 = (r0); + { step = 7; continue; } + case 8: + case 9: r0 = undefined; return leave(s, r0) default: oops() } } } -game_BaseDialog_update__P2750.info = {"start":1570,"length":121,"line":61,"column":8,"endLine":65,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"update","argumentNames":["this"]} +game_Dialog_drawTextCore__P2764.info = {"start":7266,"length":1045,"line":234,"column":8,"endLine":256,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"drawTextCore","argumentNames":["this"]} -function game_BaseDialog_update__P2750_mk(s) { +function game_Dialog_drawTextCore__P2764_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_BaseDialog_update__P2750, depth: s.depth + 1, + parent: s, fn: game_Dialog_drawTextCore__P2764, depth: s.depth + 1, pc: 0, retval: undefined, 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, + lines___24537: undefined, + availableWidth___24543: undefined, + availableHeight___24546: undefined, + charactersPerRow___24549: undefined, + rowsOfCharacters___24557: undefined, + textLeft___24568: undefined, + textTop___24590: undefined, + row___24605: undefined, arg0: undefined, } } @@ -56605,7 +61868,7 @@ function game_BaseDialog_update__P2750_mk(s) { -function music_Melody_toString__P1635(s) { +function game_BaseDialog_setText__P2751(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56617,22 +61880,24 @@ 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__C1626_VT)) failedCast(r0); - r0 = s.arg0.fields["_text"]; + if (!checkSubtype(r0, game_BaseDialog__C2737_VT)) failedCast(r0); + r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_toString__P1635.info = {"start":10020,"length":53,"line":310,"column":8,"endLine":312,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"toString","argumentNames":["this"]} +game_BaseDialog_setText__P2751.info = {"start":1701,"length":77,"line":67,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/game/textDialogs.ts","functionName":"setText","argumentNames":["this","rawString"]} -function music_Melody_toString__P1635_mk(s) { +function game_BaseDialog_setText__P2751_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_toString__P1635, depth: s.depth + 1, + parent: s, fn: game_BaseDialog_setText__P2751, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, + arg1: undefined, } } @@ -56897,7 +62162,7 @@ function tiles_TileMap_data__P2576_mk(s) { -function statusbars_StatusHandler_constructor__P6769(s) { +function statusbars_StatusHandler_constructor__P6809(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -56917,7 +62182,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, statusbars_StatusHandler__C6767_VT)) failedCast(r0); + if (!checkSubtype(r0, statusbars_StatusHandler__C6807_VT)) failedCast(r0); r0 = (s.arg0).fields["kind"] = (s.arg1); r0 = (s.arg0).fields["comparison"] = (s.arg2); r0 = (s.arg0).fields["comparisonType"] = (s.arg3); @@ -56927,12 +62192,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -statusbars_StatusHandler_constructor__P6769.info = {"start":24522,"length":257,"line":702,"column":8,"endLine":708,"endColumn":13,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["this","kind","comparison","comparisonType","percent","handler"]} +statusbars_StatusHandler_constructor__P6809.info = {"start":24522,"length":257,"line":702,"column":8,"endLine":708,"endColumn":13,"fileName":"pxt_modules/pxt-status-bar/status-bar.ts","functionName":"inline","argumentNames":["this","kind","comparison","comparisonType","percent","handler"]} -function statusbars_StatusHandler_constructor__P6769_mk(s) { +function statusbars_StatusHandler_constructor__P6809_mk(s) { checkStack(s.depth); return { - parent: s, fn: statusbars_StatusHandler_constructor__P6769, depth: s.depth + 1, + parent: s, fn: statusbars_StatusHandler_constructor__P6809, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -57034,6 +62299,166 @@ function scene_Camera_x__P2626_mk(s) { +function SnowFactory_createParticle__P9811(s) { +let r0 = s.r0, 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___24680 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, SnowFactory__C9809_VT)) failedCast(r0); + s.tmp_0 = particles_ShapeFactory_createParticle__P3005_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1720; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.p___24680 = (r0); + s.tmp_1 = Math_FastRandom_percentChance__P2854_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 80; + s.callLocIdx = 1721; 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 = 1; + { step = 2; continue; } + case 1: + r0 = 9; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = (s.p___24680).fields["color"] = (s.tmp_2); + r0 = s.p___24680; + return leave(s, r0) + default: oops() +} } } +SnowFactory_createParticle__P9811.info = {"start":12130,"length":215,"line":304,"column":12,"endLine":308,"endColumn":13,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"createParticle","argumentNames":["this","anchor"]} + +function SnowFactory_createParticle__P9811_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: SnowFactory_createParticle__P9811, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + p___24680: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function sprites_SpriteSet_toString__P2315(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_SpriteSet__C2304_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() +} } } +sprites_SpriteSet_toString__P2315.info = {"start":2586,"length":66,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"toString","argumentNames":["this"]} + +function sprites_SpriteSet_toString__P2315_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_SpriteSet_toString__P2315, depth: s.depth + 1, + pc: 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 sprites_SpriteSet_length__P2307(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_SpriteSet__C2304_VT)) failedCast(r0); + r0 = s.arg0.fields["_sprites"]; + s.tmp_0 = r0; + r0 = pxsim_Array__length(s.tmp_0); + return leaveAccessor(s, r0) + default: oops() +} } } +sprites_SpriteSet_length__P2307.info = {"start":625,"length":65,"line":26,"column":8,"endLine":28,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"length","argumentNames":["this"]} +sprites_SpriteSet_length__P2307.isGetter = true; + +function sprites_SpriteSet_length__P2307_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_SpriteSet_length__P2307, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + function particles_ParticleSource_factory__P2957(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -57079,9 +62504,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___22802 = undefined; - s.left___22805 = undefined; - s.top___22815 = undefined; + s.current___24706 = undefined; + s.left___24709 = undefined; + s.top___24719 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -57090,7 +62515,7 @@ switch (step) { r0 = s.arg0; if (!checkSubtype(r0, particles_ParticleSource__C2939_VT)) failedCast(r0); r0 = s.arg0.fields["head"]; - s.current___22802 = (r0); + s.current___24706 = (r0); r0 = s.arg0.fields["pFlags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -57108,7 +62533,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.left___22805 = (s.tmp_4); + s.left___24709 = (s.tmp_4); r0 = s.arg0.fields["pFlags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -57126,28 +62551,28 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_4 = r0; - s.top___22815 = (s.tmp_4); + s.top___24719 = (s.tmp_4); case 5: - r0 = pxsim_numops_toBoolDecr(s.current___22802); + r0 = pxsim_numops_toBoolDecr(s.current___24706); if (!r0) { step = 8; continue; } - r0 = s.current___22802.fields["lifespan"]; + r0 = s.current___24706.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__P5041_mk(s); + s.tmp_2 = particles_ParticleSource_drawParticle__P5081_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.current___22802; - s.tmp_2.arg2 = s.left___22805; - s.tmp_2.arg3 = s.top___22815; - s.callLocIdx = 1446; s.pc = 9; return s.tmp_2; + s.tmp_2.arg1 = s.current___24706; + s.tmp_2.arg2 = s.left___24709; + s.tmp_2.arg3 = s.top___24719; + s.callLocIdx = 1537; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; case 6: case 7: - r0 = s.current___22802.fields["next"]; - s.current___22802 = (r0); + r0 = s.current___24706.fields["next"]; + s.current___24706 = (r0); { step = 5; continue; } case 8: r0 = undefined; @@ -57166,9 +62591,9 @@ function particles_ParticleSource___draw__P2945_mk(s) { tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - current___22802: undefined, - left___22805: undefined, - top___22815: undefined, + current___24706: undefined, + left___24709: undefined, + top___24719: undefined, arg0: undefined, arg1: undefined, } } @@ -57177,7 +62602,7 @@ function particles_ParticleSource___draw__P2945_mk(s) { -function particles_ParticleSource_drawParticle__P5041(s) { +function particles_ParticleSource_drawParticle__P5081(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -57217,12 +62642,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_drawParticle__P5041.info = {"start":8615,"length":174,"line":287,"column":8,"endLine":289,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"drawParticle","argumentNames":["this","p","screenLeft","screenTop"]} +particles_ParticleSource_drawParticle__P5081.info = {"start":8615,"length":174,"line":287,"column":8,"endLine":289,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"drawParticle","argumentNames":["this","p","screenLeft","screenTop"]} -function particles_ParticleSource_drawParticle__P5041_mk(s) { +function particles_ParticleSource_drawParticle__P5081_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_drawParticle__P5041, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_drawParticle__P5081, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -57292,72 +62717,6 @@ function particles_ParticleFactory_drawParticle__P2978_mk(s) { -function SnowFactory_createParticle__P8105(s) { -let r0 = s.r0, 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___22866 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, SnowFactory__C8103_VT)) failedCast(r0); - s.tmp_0 = particles_ShapeFactory_createParticle__P3005_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1623; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.p___22866 = (r0); - s.tmp_1 = Math_FastRandom_percentChance__P2854_mk(s); - r0 = s.arg0.fields["galois"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 80; - s.callLocIdx = 1624; 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 = 1; - { step = 2; continue; } - case 1: - r0 = 9; - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = (s.p___22866).fields["color"] = (s.tmp_2); - r0 = s.p___22866; - return leave(s, r0) - default: oops() -} } } -SnowFactory_createParticle__P8105.info = {"start":12130,"length":215,"line":304,"column":12,"endLine":308,"endColumn":13,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"createParticle","argumentNames":["this","anchor"]} - -function SnowFactory_createParticle__P8105_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: SnowFactory_createParticle__P8105, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - p___22866: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - function particles_ShapeFactory_createParticle__P3005(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -57368,7 +62727,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___22878 = undefined; + s.p___24770 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -57379,22 +62738,22 @@ switch (step) { s.tmp_0 = particles_AreaFactory_createParticle__P2991_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1545; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1636; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.p___22878 = (r0); - s.tmp_0 = r0 = s.p___22878; + s.p___24770 = (r0); + s.tmp_0 = r0 = s.p___24770; s.tmp_2 = Math_FastRandom_randomRange__P2851_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = 1; s.tmp_2.arg2 = 14; - s.callLocIdx = 1546; s.pc = 2; return s.tmp_2; + s.callLocIdx = 1637; 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___22878; + r0 = s.p___24770; return leave(s, r0) default: oops() } } } @@ -57408,7 +62767,7 @@ function particles_ShapeFactory_createParticle__P3005_mk(s) { tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - p___22878: undefined, + p___24770: undefined, arg0: undefined, arg1: undefined, } } @@ -57427,7 +62786,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___22890 = undefined; + s.p___24782 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -57438,11 +62797,11 @@ switch (step) { s.tmp_0 = particles_SprayFactory_createParticle__P2981_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1527; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1618; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.p___22890 = (r0); - s.tmp_0 = r0 = s.p___22890; + s.p___24782 = (r0); + s.tmp_0 = r0 = s.p___24782; s.tmp_2 = Math_FastRandom_randomRange__P2851_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_2.arg0 = r0; @@ -57450,19 +62809,19 @@ switch (step) { s.tmp_2.arg1 = r0; r0 = s.arg0.fields["maxLifespan"]; s.tmp_2.arg2 = r0; - s.callLocIdx = 1528; s.pc = 4; return s.tmp_2; + s.callLocIdx = 1619; 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___22890; + s.tmp_0 = r0 = s.p___24782; s.tmp_4 = Math_FastRandom_randomRange__P2851_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 = 1529; s.pc = 5; return s.tmp_4; + s.callLocIdx = 1620; s.pc = 5; return s.tmp_4; case 5: r0 = s.retval; s.tmp_3 = r0; @@ -57472,7 +62831,7 @@ switch (step) { s.tmp_5 = r0; r0 = (s.tmp_3 - s.tmp_5); s.tmp_2 = r0; - r0 = s.p___22890.fields["_x"]; + r0 = s.p___24782.fields["_x"]; s.tmp_7 = r0; r0 = (s.tmp_2 << 8); s.tmp_8 = r0; @@ -57487,7 +62846,7 @@ switch (step) { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["height"]; if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["height"]; } else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1532; s.pc = 6; return s.tmp_1; } + else { s.callLocIdx = 1623; s.pc = 6; return s.tmp_1; } } case 6: r0 = s.retval; @@ -57502,7 +62861,7 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["height"]; if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["height"]; } else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1533; s.pc = 7; return s.tmp_3; } + else { s.callLocIdx = 1624; s.pc = 7; return s.tmp_3; } } case 7: r0 = s.retval; @@ -57514,27 +62873,27 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.tmp_5 = r0 = s.p___22890; + s.tmp_5 = r0 = s.p___24782; s.tmp_9 = Math_FastRandom_randomRange__P2851_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 = 1531; s.pc = 8; return s.tmp_9; + s.callLocIdx = 1622; 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___22890.fields["_y"]; + r0 = s.p___24782.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___22890; + r0 = s.p___24782; return leave(s, r0) default: oops() } } } @@ -57557,7 +62916,7 @@ function particles_AreaFactory_createParticle__P2991_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - p___22890: undefined, + p___24782: undefined, arg0: undefined, arg1: undefined, } } @@ -57576,8 +62935,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___22938 = undefined; - s.angle___22942 = undefined; + s.p___24830 = undefined; + s.angle___24834 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -57588,27 +62947,27 @@ switch (step) { s.tmp_0 = particles_ParticleFactory_createParticle__P2977_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1516; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1607; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.p___22938 = (r0); + s.p___24830 = (r0); r0 = s.arg0.fields["minAngle"]; s.tmp_1 = r0; s.tmp_3 = Math_FastRandom_randomRange__P2851_mk(s); - s.tmp_3.arg0 = globals.galois___5055; + s.tmp_3.arg0 = globals.galois___5095; s.tmp_3.arg1 = 0; r0 = s.arg0.fields["spread"]; s.tmp_3.arg2 = r0; - s.callLocIdx = 1517; s.pc = 2; return s.tmp_3; + s.callLocIdx = 1608; s.pc = 2; return s.tmp_3; case 2: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_1 + s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 % 100); - s.angle___22942 = (r0); - s.tmp_0 = r0 = s.p___22938; - r0 = pxsim_Array__getAt(globals.cachedSin___5050, s.angle___22942); + s.angle___24834 = (r0); + s.tmp_0 = r0 = s.p___24830; + r0 = pxsim_Array__getAt(globals.cachedSin___5090, s.angle___24834); s.tmp_2 = r0; r0 = s.arg0.fields["speed"]; s.tmp_3 = r0; @@ -57617,8 +62976,8 @@ switch (step) { r0 = (s.tmp_4 >> 8); s.tmp_1 = r0; r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___22938; - r0 = pxsim_Array__getAt(globals.cachedCos___5051, s.angle___22942); + s.tmp_0 = r0 = s.p___24830; + r0 = pxsim_Array__getAt(globals.cachedCos___5091, s.angle___24834); s.tmp_2 = r0; r0 = s.arg0.fields["speed"]; s.tmp_3 = r0; @@ -57627,7 +62986,7 @@ switch (step) { r0 = (s.tmp_4 >> 8); s.tmp_1 = r0; r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); - r0 = s.p___22938; + r0 = s.p___24830; return leave(s, r0) default: oops() } } } @@ -57643,8 +63002,8 @@ function particles_SprayFactory_createParticle__P2981_mk(s) { tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - p___22938: undefined, - angle___22942: undefined, + p___24830: undefined, + angle___24834: undefined, arg0: undefined, arg1: undefined, } } @@ -57692,7 +63051,7 @@ switch (step) { s.tmp_4 = particles_ParticleSource_enabled__P2951_mk(s); r0 = s.arg0.fields["source"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 1599; s.pc = 14; return s.tmp_4; + s.callLocIdx = 1690; s.pc = 14; return s.tmp_4; case 14: r0 = s.retval; case 4: @@ -57712,14 +63071,14 @@ switch (step) { case 8: s.tmp_0 = effects_ScreenEffect_endScreenEffect__P3057_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1600; s.pc = 15; return s.tmp_0; + s.callLocIdx = 1691; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(effects_SceneAnchor__C5083_VT); + r0 = pxsim_pxtcore_mkClassInstance(effects_SceneAnchor__C5123_VT); s.tmp_0 = r0; - s.tmp_1 = effects_SceneAnchor_constructor__P5088_mk(s); + s.tmp_1 = effects_SceneAnchor_constructor__P5128_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 1601; s.pc = 16; return s.tmp_1; + s.callLocIdx = 1692; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); @@ -57738,12 +63097,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 = 1602; s.pc = 17; return s.tmp_5; + s.callLocIdx = 1693; 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 = 1602; s.pc = 17; return s.tmp_5; } - else if (s.tmp_5.fn.isGetter) { s.tmp_5.stage2Call = true; s.callLocIdx = 1602; s.pc = 17; return s.tmp_5;; } - else { s.callLocIdx = 1602; 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 = 1693; s.pc = 17; return s.tmp_5; } + else if (s.tmp_5.fn.isGetter) { s.tmp_5.stage2Call = true; s.callLocIdx = 1693; s.pc = 17; return s.tmp_5;; } + else { s.callLocIdx = 1693; s.pc = 17; return s.tmp_5; } } case 17: r0 = s.retval; @@ -57787,7 +63146,7 @@ function effects_ScreenEffect_startScreenEffect__P3056_mk(s) { -function effects_SceneAnchor_constructor__P5088(s) { +function effects_SceneAnchor_constructor__P5128(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -57802,10 +63161,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_SceneAnchor__C5083_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_SceneAnchor__C5123_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; s.tmp_2 = game_currentScene__P2792_mk(s); - s.callLocIdx = 1595; s.pc = 1; return s.tmp_2; + s.callLocIdx = 1686; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; r0 = r0.fields["camera"]; @@ -57815,12 +63174,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_SceneAnchor_constructor__P5088.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__P5128.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__P5088_mk(s) { +function effects_SceneAnchor_constructor__P5128_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_SceneAnchor_constructor__P5088, depth: s.depth + 1, + parent: s, fn: effects_SceneAnchor_constructor__P5128, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -57855,7 +63214,7 @@ switch (step) { s.tmp_1 = particles_ParticleSource_destroy__P2953_mk(s); r0 = s.arg0.fields["source"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 1603; s.pc = 3; return s.tmp_1; + s.callLocIdx = 1694; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; r0 = (s.arg0).fields["source"] = (undefined); @@ -57881,7 +63240,7 @@ function effects_ScreenEffect_endScreenEffect__P3057_mk(s) { -function sprites_SpriteSet_toString__P2315(s) { +function music_Melody_toString__P1635(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -57896,78 +63255,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C2304_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"); + if (!checkSubtype(r0, music_Melody__C1626_VT)) failedCast(r0); + r0 = s.arg0.fields["_text"]; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_toString__P2315.info = {"start":2586,"length":66,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"toString","argumentNames":["this"]} - -function sprites_SpriteSet_toString__P2315_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_SpriteSet_toString__P2315, depth: s.depth + 1, - pc: 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 sprites_SpriteSet_length__P2307(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C2304_VT)) failedCast(r0); - r0 = s.arg0.fields["_sprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array__length(s.tmp_0); - return leaveAccessor(s, r0) - default: oops() -} } } -sprites_SpriteSet_length__P2307.info = {"start":625,"length":65,"line":26,"column":8,"endLine":28,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"length","argumentNames":["this"]} -sprites_SpriteSet_length__P2307.isGetter = true; +music_Melody_toString__P1635.info = {"start":10020,"length":53,"line":310,"column":8,"endLine":312,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"toString","argumentNames":["this"]} -function sprites_SpriteSet_length__P2307_mk(s) { +function music_Melody_toString__P1635_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_length__P2307, depth: s.depth + 1, + parent: s, fn: music_Melody_toString__P1635, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -58010,7 +63309,7 @@ switch (step) { s.tmp_7 = r0; s.tmp_14 = Sprite_x__P2195_mk(s); s.tmp_14.arg0 = s.arg0; - s.callLocIdx = 552; s.pc = 2; return s.tmp_14; + s.callLocIdx = 586; s.pc = 2; return s.tmp_14; case 2: r0 = s.retval; s.tmp_13 = r0; @@ -58029,7 +63328,7 @@ switch (step) { s.tmp_5 = r0; s.tmp_17 = Sprite_y__P2197_mk(s); s.tmp_17.arg0 = s.arg0; - s.callLocIdx = 553; s.pc = 4; return s.tmp_17; + s.callLocIdx = 587; s.pc = 4; return s.tmp_17; case 4: r0 = s.retval; s.tmp_16 = r0; @@ -58048,7 +63347,7 @@ switch (step) { s.tmp_3 = r0; s.tmp_20 = Sprite_vx__P2199_mk(s); s.tmp_20.arg0 = s.arg0; - s.callLocIdx = 554; s.pc = 6; return s.tmp_20; + s.callLocIdx = 588; s.pc = 6; return s.tmp_20; case 6: r0 = s.retval; s.tmp_19 = r0; @@ -58067,7 +63366,7 @@ switch (step) { s.tmp_1 = r0; s.tmp_23 = Sprite_vy__P2201_mk(s); s.tmp_23.arg0 = s.arg0; - s.callLocIdx = 555; s.pc = 8; return s.tmp_23; + s.callLocIdx = 589; s.pc = 8; return s.tmp_23; case 8: r0 = s.retval; s.tmp_22 = r0; @@ -58165,7 +63464,7 @@ switch (step) { r0 = (s.arg0).fields["lifespan"] = (undefined); s.tmp_0 = Sprite__destroyCore__P2270_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 463; s.pc = 11; return s.tmp_0; + s.callLocIdx = 497; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; case 1: @@ -58184,7 +63483,7 @@ switch (step) { s.tmp_2 = Sprite_isOutOfScreen__P2255_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; - s.callLocIdx = 464; s.pc = 12; return s.tmp_2; + s.callLocIdx = 498; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; case 6: @@ -58196,7 +63495,7 @@ switch (step) { s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = undefined; s.tmp_4.arg2 = undefined; - s.callLocIdx = 465; s.pc = 13; return s.tmp_4; + s.callLocIdx = 499; s.pc = 13; return s.tmp_4; case 13: r0 = s.retval; case 7: @@ -58254,8 +63553,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___23105 = undefined; - s.oy___23113 = undefined; + s.ox___24989 = undefined; + s.oy___24997 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -58276,7 +63575,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_2 = r0; - s.ox___23105 = (s.tmp_2); + s.ox___24989 = (s.tmp_2); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -58290,14 +63589,14 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___23113 = (s.tmp_2); + s.oy___24997 = (s.tmp_2); s.tmp_3 = Sprite_right__P2242_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 454; s.pc = 11; return s.tmp_3; + s.callLocIdx = 488; s.pc = 11; return s.tmp_3; case 11: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.ox___23105); + r0 = (s.tmp_2 - s.ox___24989); s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -58308,11 +63607,11 @@ switch (step) { case 5: s.tmp_6 = Sprite_bottom__P2246_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 455; s.pc = 12; return s.tmp_6; + s.callLocIdx = 489; s.pc = 12; return s.tmp_6; case 12: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.oy___23113); + r0 = (s.tmp_5 - s.oy___24997); s.tmp_4 = r0; r0 = (s.tmp_4 < 0); case 6: @@ -58325,11 +63624,11 @@ switch (step) { case 7: s.tmp_10 = Sprite_left__P2240_mk(s); s.tmp_10.arg0 = s.arg0; - s.callLocIdx = 456; s.pc = 13; return s.tmp_10; + s.callLocIdx = 490; s.pc = 13; return s.tmp_10; case 13: r0 = s.retval; s.tmp_9 = r0; - r0 = (s.tmp_9 - s.ox___23105); + r0 = (s.tmp_9 - s.ox___24989); s.tmp_8 = r0; r0 = pxsim_ImageMethods.width(globals.screen___1877); s.tmp_11 = r0; @@ -58344,11 +63643,11 @@ switch (step) { case 9: s.tmp_15 = Sprite_top__P2244_mk(s); s.tmp_15.arg0 = s.arg0; - s.callLocIdx = 457; s.pc = 14; return s.tmp_15; + s.callLocIdx = 491; s.pc = 14; return s.tmp_15; case 14: r0 = s.retval; s.tmp_14 = r0; - r0 = (s.tmp_14 - s.oy___23113); + r0 = (s.tmp_14 - s.oy___24997); s.tmp_13 = r0; r0 = pxsim_ImageMethods.height(globals.screen___1877); s.tmp_16 = r0; @@ -58385,8 +63684,8 @@ function Sprite_isOutOfScreen__P2255_mk(s) { tmp_15: undefined, tmp_16: undefined, tmp_17: undefined, - ox___23105: undefined, - oy___23113: undefined, + ox___24989: undefined, + oy___24997: undefined, arg0: undefined, arg1: undefined, } } @@ -58639,7 +63938,7 @@ function sprites_BaseSprite___visible__P1941_mk(s) { -function controller_AnyButton_isPressed__P4504(s) { +function controller_AnyButton_isPressed__P4544(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -58649,8 +63948,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctrl___23161 = undefined; - s.b___23165 = undefined; + s.ctrl___25045 = undefined; + s.b___25049 = undefined; s.unnamed70___U2 = undefined; s.unnamed71___U3 = undefined; if (s.lambdaArgs) { @@ -58658,14 +63957,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_AnyButton__C4496_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_AnyButton__C4536_VT)) failedCast(r0); s.tmp_0 = controller__player1__P1972_mk(s); - s.callLocIdx = 247; s.pc = 6; return s.tmp_0; + s.callLocIdx = 281; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.ctrl___23161 = (r0); - s.b___23165 = (undefined); - r0 = s.ctrl___23161.fields["buttons"]; + s.ctrl___25045 = (r0); + s.b___25049 = (undefined); + r0 = s.ctrl___25045.fields["buttons"]; s.unnamed70___U2 = (r0); s.unnamed71___U3 = (0); case 1: @@ -58675,9 +63974,9 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } r0 = pxsim_Array__getAt(s.unnamed70___U2, s.unnamed71___U3); - s.b___23165 = (r0); + s.b___25049 = (r0); s.tmp_3 = controller_Button__C2032_v0_1_mk(s); - s.tmp_3.arg0 = s.b___23165; + s.tmp_3.arg0 = s.b___25049; if (!checkSubtype(s.tmp_3.arg0, controller_Button__C2032_VT)) failedCast(s.tmp_3.arg0); s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; s.pc = 7; return s.tmp_3; @@ -58700,19 +63999,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_AnyButton_isPressed__P4504.info = {"start":14638,"length":202,"line":440,"column":8,"endLine":447,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} +controller_AnyButton_isPressed__P4544.info = {"start":14638,"length":202,"line":440,"column":8,"endLine":447,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} -function controller_AnyButton_isPressed__P4504_mk(s) { +function controller_AnyButton_isPressed__P4544_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_AnyButton_isPressed__P4504, depth: s.depth + 1, + parent: s, fn: controller_AnyButton_isPressed__P4544, depth: s.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___23161: undefined, - b___23165: undefined, + ctrl___25045: undefined, + b___25049: undefined, unnamed70___U2: undefined, unnamed71___U3: undefined, arg0: undefined, @@ -58841,7 +64140,7 @@ function sprites_BaseSpriteSayRenderer_constructor__P2103_mk(s) { -function effects_SceneAnchor_height__P5087(s) { +function effects_SceneAnchor_height__P5127(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -58856,18 +64155,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_SceneAnchor__C5083_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_SceneAnchor__C5123_VT)) failedCast(r0); r0 = pxsim_ImageMethods.height(globals.screen___1877); return leaveAccessor(s, r0) default: oops() } } } -effects_SceneAnchor_height__P5087.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__P5087.isGetter = true; +effects_SceneAnchor_height__P5127.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__P5127.isGetter = true; -function effects_SceneAnchor_height__P5087_mk(s) { +function effects_SceneAnchor_height__P5127_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_SceneAnchor_height__P5087, depth: s.depth + 1, + parent: s, fn: effects_SceneAnchor_height__P5127, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -58876,7 +64175,7 @@ function effects_SceneAnchor_height__P5087_mk(s) { -function effects_SceneAnchor_width__P5086(s) { +function effects_SceneAnchor_width__P5126(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -58891,18 +64190,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_SceneAnchor__C5083_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_SceneAnchor__C5123_VT)) failedCast(r0); r0 = pxsim_ImageMethods.width(globals.screen___1877); return leaveAccessor(s, r0) default: oops() } } } -effects_SceneAnchor_width__P5086.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__P5086.isGetter = true; +effects_SceneAnchor_width__P5126.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__P5126.isGetter = true; -function effects_SceneAnchor_width__P5086_mk(s) { +function effects_SceneAnchor_width__P5126_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_SceneAnchor_width__P5086, depth: s.depth + 1, + parent: s, fn: effects_SceneAnchor_width__P5126, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -58911,7 +64210,7 @@ function effects_SceneAnchor_width__P5086_mk(s) { -function effects_SceneAnchor_y__P5085(s) { +function effects_SceneAnchor_y__P5125(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -58926,7 +64225,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_SceneAnchor__C5083_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_SceneAnchor__C5123_VT)) failedCast(r0); r0 = s.arg0.fields["camera"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_offsetY"]; @@ -58939,13 +64238,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -effects_SceneAnchor_y__P5085.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__P5085.isGetter = true; +effects_SceneAnchor_y__P5125.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__P5125.isGetter = true; -function effects_SceneAnchor_y__P5085_mk(s) { +function effects_SceneAnchor_y__P5125_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_SceneAnchor_y__P5085, depth: s.depth + 1, + parent: s, fn: effects_SceneAnchor_y__P5125, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -58958,7 +64257,7 @@ function effects_SceneAnchor_y__P5085_mk(s) { -function effects_SceneAnchor_x__P5084(s) { +function effects_SceneAnchor_x__P5124(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -58973,7 +64272,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_SceneAnchor__C5083_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_SceneAnchor__C5123_VT)) failedCast(r0); r0 = s.arg0.fields["camera"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_offsetX"]; @@ -58986,13 +64285,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -effects_SceneAnchor_x__P5084.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__P5084.isGetter = true; +effects_SceneAnchor_x__P5124.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__P5124.isGetter = true; -function effects_SceneAnchor_x__P5084_mk(s) { +function effects_SceneAnchor_x__P5124_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_SceneAnchor_x__P5084, depth: s.depth + 1, + parent: s, fn: effects_SceneAnchor_x__P5124, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -59387,7 +64686,7 @@ switch (step) { s.tmp_0 = r0; s.tmp_3 = tiles_Location_tileMap__P2531_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1020; s.pc = 1; return s.tmp_3; + s.callLocIdx = 1054; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -59436,7 +64735,7 @@ switch (step) { s.tmp_0 = r0; s.tmp_3 = tiles_Location_tileMap__P2531_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1018; s.pc = 1; return s.tmp_3; + s.callLocIdx = 1052; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -59564,12 +64863,12 @@ switch (step) { 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 = 1126; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1160; 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 = 1126; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1126; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 1126; 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 = 1160; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1160; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 1160; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -59613,12 +64912,12 @@ switch (step) { 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 = 1125; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1159; 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 = 1125; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1125; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 1125; 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 = 1159; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1159; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 1159; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -59720,7 +65019,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pImage___23308 = undefined; + s.pImage___25192 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -59735,17 +65034,17 @@ switch (step) { s.tmp_1.arg0 = r0; r0 = s.arg0.fields["sources"]; s.tmp_1.arg1 = r0; - s.callLocIdx = 1540; s.pc = 1; return s.tmp_1; + s.callLocIdx = 1631; 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___23308 = (r0); + s.pImage___25192 = (r0); r0 = s.arg1.fields["color"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.replace(s.pImage___23308, 15, s.tmp_0); + r0 = pxsim_ImageMethods.replace(s.pImage___25192, 15, s.tmp_0); s.tmp_0 = r0 = globals.screen___1877; - s.tmp_1 = r0 = s.pImage___23308; + s.tmp_1 = r0 = s.pImage___25192; r0 = s.arg0.fields["ox"]; s.tmp_4 = r0; r0 = (s.arg2 - s.tmp_4); @@ -59784,7 +65083,7 @@ function particles_ShapeFactory_drawParticle__P3004_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - pImage___23308: undefined, + pImage___25192: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -59805,7 +65104,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.col___23339 = undefined; + s.col___25223 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -59841,7 +65140,7 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_5 = r0; - s.col___23339 = (s.tmp_5); + s.col___25223 = (s.tmp_5); s.tmp_0 = r0 = globals.screen___1877; r0 = (s.arg2 + 128); s.tmp_2 = r0; @@ -59851,7 +65150,7 @@ 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___23339); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, s.col___25223); r0 = undefined; return leave(s, r0) default: oops() @@ -59869,7 +65168,7 @@ function particles_AreaFactory_drawParticle__P2992_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - col___23339: undefined, + col___25223: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -59945,10 +65244,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___23372 = undefined; - s.oy___23380 = undefined; - s.l___23388 = undefined; - s.t___23394 = undefined; + s.ox___25256 = undefined; + s.oy___25264 = undefined; + s.l___25272 = undefined; + s.t___25278 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -59956,16 +65255,16 @@ switch (step) { } r0 = s.arg0; if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - s.tmp_0 = Sprite_drawSay__P4524_mk(s); + s.tmp_0 = Sprite_drawSay__P4564_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 458; s.pc = 8; return s.tmp_0; + s.callLocIdx = 492; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; s.tmp_1 = Sprite_isOutOfScreen__P2255_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 459; s.pc = 9; return s.tmp_1; + s.callLocIdx = 493; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; s.tmp_0 = r0; @@ -59987,7 +65286,7 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_4 = r0; - s.ox___23372 = (s.tmp_4); + s.ox___25256 = (s.tmp_4); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -60001,43 +65300,43 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___23380 = (s.tmp_2); + s.oy___25264 = (s.tmp_2); s.tmp_2 = Sprite_left__P2240_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 460; s.pc = 10; return s.tmp_2; + s.callLocIdx = 494; s.pc = 10; return s.tmp_2; case 10: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 - s.ox___23372); + r0 = (s.tmp_1 - s.ox___25256); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - s.l___23388 = (r0); + s.l___25272 = (r0); s.tmp_2 = Sprite_top__P2244_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 461; s.pc = 11; return s.tmp_2; + s.callLocIdx = 495; s.pc = 11; return s.tmp_2; case 11: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 - s.oy___23380); + r0 = (s.tmp_1 - s.oy___25264); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - s.t___23394 = (r0); + s.t___25278 = (r0); s.tmp_0 = Sprite__C2182_v6_3_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.l___23388; - s.tmp_0.arg2 = s.t___23394; + s.tmp_0.arg1 = s.l___25272; + s.tmp_0.arg2 = s.t___25278; if (!checkSubtype(s.tmp_0.arg0, Sprite__C2182_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.drawSprite; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_0 = Sprite_drawDebug__P4525_mk(s); + s.tmp_0 = Sprite_drawDebug__P4565_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.l___23388; - s.tmp_0.arg2 = s.t___23394; - s.tmp_0.arg3 = s.ox___23372; - s.tmp_0.arg4 = s.oy___23380; - s.callLocIdx = 462; s.pc = 13; return s.tmp_0; + s.tmp_0.arg1 = s.l___25272; + s.tmp_0.arg2 = s.t___25278; + s.tmp_0.arg3 = s.ox___25256; + s.tmp_0.arg4 = s.oy___25264; + s.callLocIdx = 496; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; case 7: @@ -60057,10 +65356,10 @@ function Sprite___drawCore__P2256_mk(s) { tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - ox___23372: undefined, - oy___23380: undefined, - l___23388: undefined, - t___23394: undefined, + ox___25256: undefined, + oy___25264: undefined, + l___25272: undefined, + t___25278: undefined, arg0: undefined, arg1: undefined, } } @@ -60069,7 +65368,7 @@ function Sprite___drawCore__P2256_mk(s) { -function Sprite_drawSprite__P4526(s) { +function Sprite_drawSprite__P4566(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -60087,9 +65386,9 @@ switch (step) { } r0 = s.arg0; if (!checkSubtype(r0, Sprite__C2182_VT)) failedCast(r0); - s.tmp_3 = Sprite_isScaled__P4523_mk(s); + s.tmp_3 = Sprite_isScaled__P4563_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 580; s.pc = 3; return s.tmp_3; + s.callLocIdx = 614; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; s.tmp_2 = r0; @@ -60110,13 +65409,13 @@ switch (step) { s.tmp_0.arg2 = s.arg2; s.tmp_1 = Sprite_width__P2238_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 581; s.pc = 5; return s.tmp_1; + s.callLocIdx = 615; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0.arg3 = r0; s.tmp_2 = Sprite_height__P2239_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 582; s.pc = 6; return s.tmp_2; + s.callLocIdx = 616; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_0.arg4 = r0; @@ -60134,7 +65433,7 @@ switch (step) { s.tmp_0.arg9 = r0; s.tmp_0.arg10 = true; s.tmp_0.arg11 = false; - s.callLocIdx = 583; s.pc = 4; return s.tmp_0; + s.callLocIdx = 617; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 2: @@ -60142,12 +65441,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_drawSprite__P4526.info = {"start":35707,"length":514,"line":1115,"column":4,"endLine":1129,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]} +Sprite_drawSprite__P4566.info = {"start":35707,"length":514,"line":1115,"column":4,"endLine":1129,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]} -function Sprite_drawSprite__P4526_mk(s) { +function Sprite_drawSprite__P4566_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_drawSprite__P4526, depth: s.depth + 1, + parent: s, fn: Sprite_drawSprite__P4566, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -60163,7 +65462,7 @@ function Sprite_drawSprite__P4526_mk(s) { -function Sprite_drawDebug__P4525(s) { +function Sprite_drawDebug__P4565(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -60173,9 +65472,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.font___23418 = undefined; - s.tx___23422 = undefined; - s.ty___23424 = undefined; + s.font___25302 = undefined; + s.tx___25306 = undefined; + s.ty___25308 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -60192,26 +65491,26 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } - s.font___23418 = (globals.font5___1825); - s.tx___23422 = (s.arg1); + s.font___25302 = (globals.font5___1825); + s.tx___25306 = (s.arg1); s.tmp_1 = r0 = s.arg2; s.tmp_3 = Sprite_height__P2239_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 556; s.pc = 13; return s.tmp_3; + s.callLocIdx = 590; s.pc = 13; return s.tmp_3; case 13: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_1 + s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 + 2); - s.ty___23424 = (r0); + s.ty___25308 = (r0); s.tmp_0 = helpers_imagePrint__P1835_mk(s); s.tmp_0.arg0 = globals.screen___1877; r0 = pxsim_String_.mkEmpty(); s.tmp_3 = r0; s.tmp_7 = Sprite_x__P2195_mk(s); s.tmp_7.arg0 = s.arg0; - s.callLocIdx = 557; s.pc = 15; return s.tmp_7; + s.callLocIdx = 591; s.pc = 15; return s.tmp_7; case 15: r0 = s.retval; s.tmp_6 = r0; @@ -60232,7 +65531,7 @@ switch (step) { s.tmp_1 = r0; s.tmp_11 = Sprite_y__P2197_mk(s); s.tmp_11.arg0 = s.arg0; - s.callLocIdx = 558; s.pc = 17; return s.tmp_11; + s.callLocIdx = 592; s.pc = 17; return s.tmp_11; case 17: r0 = s.retval; s.tmp_10 = r0; @@ -60249,33 +65548,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___23422; - s.tmp_0.arg3 = s.ty___23424; + s.tmp_0.arg2 = s.tx___25306; + s.tmp_0.arg3 = s.ty___25308; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___23418; + s.tmp_0.arg5 = s.font___25302; s.tmp_0.arg6 = undefined; - s.callLocIdx = 559; s.pc = 14; return s.tmp_0; + s.callLocIdx = 593; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - s.tmp_0 = r0 = s.tx___23422; + s.tmp_0 = r0 = s.tx___25306; s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.font___23418; + s.tmp_2.arg0 = s.font___25302; 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 = 560; s.pc = 19; return s.tmp_2; } + else { s.callLocIdx = 594; s.pc = 19; return s.tmp_2; } } case 19: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.tx___23422 = (r0); + s.tx___25306 = (r0); s.tmp_1 = Sprite_vx__P2199_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 561; s.pc = 20; return s.tmp_1; + s.callLocIdx = 595; s.pc = 20; return s.tmp_1; case 20: r0 = s.retval; s.tmp_0 = r0; @@ -60286,7 +65585,7 @@ switch (step) { case 1: s.tmp_2 = Sprite_vy__P2201_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 562; s.pc = 21; return s.tmp_2; + s.callLocIdx = 596; s.pc = 21; return s.tmp_2; case 21: r0 = s.retval; case 2: @@ -60294,16 +65593,16 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - s.tmp_4 = r0 = s.ty___23424; + s.tmp_4 = r0 = s.ty___25308; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___23418; + s.tmp_7.arg0 = s.font___25302; 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 = 563; s.pc = 22; return s.tmp_7; } + else { s.callLocIdx = 597; s.pc = 22; return s.tmp_7; } } case 22: r0 = s.retval; @@ -60311,12 +65610,12 @@ switch (step) { r0 = (s.tmp_6 + 2); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); - s.ty___23424 = (r0); + s.ty___25308 = (r0); s.tmp_0 = helpers_imagePrint__P1835_mk(s); s.tmp_0.arg0 = globals.screen___1877; s.tmp_6 = Sprite_vx__P2199_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 564; s.pc = 24; return s.tmp_6; + s.callLocIdx = 598; s.pc = 24; return s.tmp_6; case 24: r0 = s.retval; s.tmp_5 = r0; @@ -60337,7 +65636,7 @@ switch (step) { s.tmp_1 = r0; s.tmp_10 = Sprite_vy__P2201_mk(s); s.tmp_10.arg0 = s.arg0; - s.callLocIdx = 565; s.pc = 26; return s.tmp_10; + s.callLocIdx = 599; s.pc = 26; return s.tmp_10; case 26: r0 = s.retval; s.tmp_9 = r0; @@ -60354,19 +65653,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___23422; - s.tmp_0.arg3 = s.ty___23424; + s.tmp_0.arg2 = s.tx___25306; + s.tmp_0.arg3 = s.ty___25308; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___23418; + s.tmp_0.arg5 = s.font___25302; s.tmp_0.arg6 = undefined; - s.callLocIdx = 566; s.pc = 23; return s.tmp_0; + s.callLocIdx = 600; s.pc = 23; return s.tmp_0; case 23: r0 = s.retval; case 3: case 4: s.tmp_1 = Sprite_ax__P2203_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 567; s.pc = 28; return s.tmp_1; + s.callLocIdx = 601; s.pc = 28; return s.tmp_1; case 28: r0 = s.retval; s.tmp_0 = r0; @@ -60377,7 +65676,7 @@ switch (step) { case 5: s.tmp_2 = Sprite_ay__P2205_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 568; s.pc = 29; return s.tmp_2; + s.callLocIdx = 602; s.pc = 29; return s.tmp_2; case 29: r0 = s.retval; case 6: @@ -60385,16 +65684,16 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 7; continue; } - s.tmp_4 = r0 = s.ty___23424; + s.tmp_4 = r0 = s.ty___25308; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___23418; + s.tmp_7.arg0 = s.font___25302; 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 = 569; s.pc = 30; return s.tmp_7; } + else { s.callLocIdx = 603; s.pc = 30; return s.tmp_7; } } case 30: r0 = s.retval; @@ -60402,12 +65701,12 @@ switch (step) { r0 = (s.tmp_6 + 2); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); - s.ty___23424 = (r0); + s.ty___25308 = (r0); s.tmp_0 = helpers_imagePrint__P1835_mk(s); s.tmp_0.arg0 = globals.screen___1877; s.tmp_6 = Sprite_ax__P2203_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 570; s.pc = 32; return s.tmp_6; + s.callLocIdx = 604; s.pc = 32; return s.tmp_6; case 32: r0 = s.retval; s.tmp_5 = r0; @@ -60428,7 +65727,7 @@ switch (step) { s.tmp_1 = r0; s.tmp_10 = Sprite_ay__P2205_mk(s); s.tmp_10.arg0 = s.arg0; - s.callLocIdx = 571; s.pc = 34; return s.tmp_10; + s.callLocIdx = 605; s.pc = 34; return s.tmp_10; case 34: r0 = s.retval; s.tmp_9 = r0; @@ -60445,12 +65744,12 @@ 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___23422; - s.tmp_0.arg3 = s.ty___23424; + s.tmp_0.arg2 = s.tx___25306; + s.tmp_0.arg3 = s.ty___25308; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___23418; + s.tmp_0.arg5 = s.font___25302; s.tmp_0.arg6 = undefined; - s.callLocIdx = 572; s.pc = 31; return s.tmp_0; + s.callLocIdx = 606; s.pc = 31; return s.tmp_0; case 31: r0 = s.retval; case 7: @@ -60464,7 +65763,7 @@ switch (step) { s.tmp_3 = game_Hitbox_left__P2059_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_3.arg0 = r0; - s.callLocIdx = 573; s.pc = 37; return s.tmp_3; + s.callLocIdx = 607; s.pc = 37; return s.tmp_3; case 37: r0 = s.retval; s.tmp_2 = r0; @@ -60477,7 +65776,7 @@ switch (step) { s.tmp_7 = game_Hitbox_top__P2060_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_7.arg0 = r0; - s.callLocIdx = 575; s.pc = 38; return s.tmp_7; + s.callLocIdx = 609; s.pc = 38; return s.tmp_7; case 38: r0 = s.retval; s.tmp_6 = r0; @@ -60502,7 +65801,7 @@ switch (step) { r0 = (s.tmp_12 >> 8); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 1; - s.callLocIdx = 579; s.pc = 36; return s.tmp_0; + s.callLocIdx = 613; s.pc = 36; return s.tmp_0; case 36: r0 = s.retval; case 11: @@ -60511,12 +65810,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_drawDebug__P4525.info = {"start":34609,"length":1092,"line":1085,"column":4,"endLine":1113,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]} +Sprite_drawDebug__P4565.info = {"start":34609,"length":1092,"line":1085,"column":4,"endLine":1113,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]} -function Sprite_drawDebug__P4525_mk(s) { +function Sprite_drawDebug__P4565_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_drawDebug__P4525, depth: s.depth + 1, + parent: s, fn: Sprite_drawDebug__P4565, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -60531,9 +65830,9 @@ function Sprite_drawDebug__P4525_mk(s) { tmp_10: undefined, tmp_11: undefined, tmp_12: undefined, - font___23418: undefined, - tx___23422: undefined, - ty___23424: undefined, + font___25302: undefined, + tx___25306: undefined, + ty___25308: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -60545,7 +65844,7 @@ function Sprite_drawDebug__P4525_mk(s) { -function Sprite_drawSay__P4524(s) { +function Sprite_drawSay__P4564(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -60624,12 +65923,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_drawSay__P4524.info = {"start":34029,"length":574,"line":1067,"column":4,"endLine":1083,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]} +Sprite_drawSay__P4564.info = {"start":34029,"length":574,"line":1067,"column":4,"endLine":1083,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]} -function Sprite_drawSay__P4524_mk(s) { +function Sprite_drawSay__P4564_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_drawSay__P4524, depth: s.depth + 1, + parent: s, fn: Sprite_drawSay__P4564, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -60896,6 +66195,21 @@ function if_y_1_mk(s) { } } +function if_id_2_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, +} } + + function if_handler_1_mk(s) { checkStack(s.depth); return { @@ -60924,7 +66238,7 @@ function lambda_1_mk(s) { } } -function if_condition_1_mk(s) { +function if_onPlayFinished_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -60938,7 +66252,7 @@ function if_condition_1_mk(s) { } } -function if_id_2_mk(s) { +function lambda_5_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -60950,6 +66264,23 @@ function if_id_2_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, +} } + + +function if_condition_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, } } @@ -61211,7 +66542,7 @@ function if_lifeZeroHandler_1_mk(s) { } } -function if_startScreenEffect_1_mk(s) { +function game_Dialog__C2754_v1_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -61222,10 +66553,25 @@ function if_startScreenEffect_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function game_GameOverDialog__C2776_v0_1_mk(s) { +function game_BaseDialog__C2737_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 controller_Button__C2032_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -61327,7 +66673,7 @@ function if_id_1_mk(s) { } } -function controller_Button__C2032_v0_1_mk(s) { +function if_s_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -61341,7 +66687,7 @@ function controller_Button__C2032_v0_1_mk(s) { } } -function if_s_1_mk(s) { +function if_vx_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -61355,7 +66701,7 @@ function if_s_1_mk(s) { } } -function if_vx_1_mk(s) { +function if_vy_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -61369,7 +66715,7 @@ function if_vx_1_mk(s) { } } -function if_vy_1_mk(s) { +function game_BaseDialog__C2737_v2_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -61383,7 +66729,7 @@ function if_vy_1_mk(s) { } } -function game_GameOverDialog__C2776_v1_1_mk(s) { +function lambda_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -61394,10 +66740,13 @@ function game_GameOverDialog__C2776_v1_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function if_onPlayFinished_1_mk(s) { +function if_startScreenEffect_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -61411,7 +66760,21 @@ function if_onPlayFinished_1_mk(s) { } } -function lambda_5_mk(s) { +function game_GameOverDialog__C2776_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__C2776_v2_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -61422,10 +66785,6 @@ function lambda_5_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } @@ -61533,7 +66892,7 @@ function if_destroyHandler_1_mk(s) { } } -function if_callback_1_mk(s) { +function if_volume_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -61544,10 +66903,25 @@ function if_callback_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function lambda_4_mk(s) { +function if_volume_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_frequency_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -61559,8 +66933,34 @@ function lambda_4_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, +} } + + +function if_frequency_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_callback_1_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: null, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, } } @@ -61835,20 +67235,6 @@ function if_top_1_mk(s) { } } -function game_BaseDialog__C2737_v1_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 particles_ParticleFactory__C2975_v1_4_mk(s) { checkStack(s.depth); return { @@ -62052,29 +67438,29 @@ const controller_Button__C2032_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "handlerState": controller_Button_handlerState__P4498, + "handlerState": controller_Button_handlerState__P4538, "toString": controller_Button_toString__P2037, - "raiseButtonUp": controller_Button_raiseButtonUp__P4499, - "raiseButtonDown": controller_Button_raiseButtonDown__P4500, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P4501, + "raiseButtonUp": controller_Button_raiseButtonUp__P4539, + "raiseButtonDown": controller_Button_raiseButtonDown__P4540, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P4541, "onEvent": controller_Button_onEvent__P2039, "isPressed": controller_Button_isPressed__P2043, "pressureLevel": controller_Button_pressureLevel__P2044, "setPressed": controller_Button_setPressed__P2045, "__update": controller_Button___update__P2046, - "runButtonEvents": controller_Button_runButtonEvents__P4502, - "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P4503, + "runButtonEvents": controller_Button_runButtonEvents__P4542, + "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P4543, }, toStringMethod: controller_Button_toString__P2037, }); -const controller_AnyButton__C4496_VT = mkVTable({ +const controller_AnyButton__C4536_VT = mkVTable({ name: "AnyButton", numFields: 7, classNo: 17, lastSubtypeNo: 17, maxBgInstances: null, methods: { - "isPressed": controller_AnyButton_isPressed__P4504, + "isPressed": controller_AnyButton_isPressed__P4544, }, iface: { "_owner": null, @@ -62091,18 +67477,18 @@ const controller_AnyButton__C4496_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "isPressed": controller_AnyButton_isPressed__P4504, - "handlerState": controller_Button_handlerState__P4498, + "isPressed": controller_AnyButton_isPressed__P4544, + "handlerState": controller_Button_handlerState__P4538, "toString": controller_Button_toString__P2037, - "raiseButtonUp": controller_Button_raiseButtonUp__P4499, - "raiseButtonDown": controller_Button_raiseButtonDown__P4500, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P4501, + "raiseButtonUp": controller_Button_raiseButtonUp__P4539, + "raiseButtonDown": controller_Button_raiseButtonDown__P4540, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P4541, "onEvent": controller_Button_onEvent__P2039, "pressureLevel": controller_Button_pressureLevel__P2044, "setPressed": controller_Button_setPressed__P2045, "__update": controller_Button___update__P2046, - "runButtonEvents": controller_Button_runButtonEvents__P4502, - "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P4503, + "runButtonEvents": controller_Button_runButtonEvents__P4542, + "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P4543, }, }); const Math_FastRandom__C2847_VT = mkVTable({ @@ -62162,8 +67548,8 @@ const Sprite__C2182_VT = mkVTable({ "__drawCore": Sprite___drawCore__P2256, "__update": Sprite___update__P2257, "setHitbox": Sprite_setHitbox__P2235, - "recalcSize": Sprite_recalcSize__P4522, - "drawSprite": Sprite_drawSprite__P4526, + "recalcSize": Sprite_recalcSize__P4562, + "drawSprite": Sprite_drawSprite__P4566, }, iface: { "_z": null, @@ -62255,8 +67641,8 @@ const Sprite__C2182_VT = mkVTable({ "setHitbox": Sprite_setHitbox__P2235, "isStatic": Sprite_isStatic__P2236, "__visible": Sprite___visible__P2237, - "recalcSize": Sprite_recalcSize__P4522, - "isScaled": Sprite_isScaled__P4523, + "recalcSize": Sprite_recalcSize__P4562, + "isScaled": Sprite_isScaled__P4563, "width": Sprite_width__P2238, "height": Sprite_height__P2239, "left": Sprite_left__P2240, @@ -62285,9 +67671,9 @@ const Sprite__C2182_VT = mkVTable({ "_destroyCore": Sprite__destroyCore__P2270, "setScaleCore": Sprite_setScaleCore__P2272, "toString": Sprite_toString__P2275, - "drawSay": Sprite_drawSay__P4524, - "drawDebug": Sprite_drawDebug__P4525, - "drawSprite": Sprite_drawSprite__P4526, + "drawSay": Sprite_drawSay__P4564, + "drawDebug": Sprite_drawDebug__P4565, + "drawSprite": Sprite_drawSprite__P4566, "z": sprites_BaseSprite_z__P1942, "set/z": sprites_BaseSprite_z__P1943, "__draw": sprites_BaseSprite___draw__P1944, @@ -62322,7 +67708,7 @@ const controller_Controller__C1978_VT = mkVTable({ "down": controller_Controller_down__P1990, "moveSprite": controller_Controller_moveSprite__P1994, "_moveSpriteInternal": controller_Controller__moveSpriteInternal__P1995, - "button": controller_Controller_button__P4495, + "button": controller_Controller_button__P4535, "onButtonEvent": controller_Controller_onButtonEvent__P1996, "connected": controller_Controller_connected__P1998, "set/connected": controller_Controller_connected__P1999, @@ -62343,8 +67729,8 @@ const StatusBarSprite__C4155_VT = mkVTable({ "__drawCore": Sprite___drawCore__P2256, "__update": Sprite___update__P2257, "setHitbox": Sprite_setHitbox__P2235, - "recalcSize": Sprite_recalcSize__P4522, - "drawSprite": Sprite_drawSprite__P4526, + "recalcSize": Sprite_recalcSize__P4562, + "drawSprite": Sprite_drawSprite__P4566, }, iface: { "_z": null, @@ -62414,7 +67800,7 @@ const StatusBarSprite__C4155_VT = mkVTable({ "max": StatusBarSprite_max__P4159, "set/max": StatusBarSprite_max__P4160, "attachToSprite": StatusBarSprite_attachToSprite__P4161, - "applyChange": StatusBarSprite_applyChange__P6736, + "applyChange": StatusBarSprite_applyChange__P6776, "x": Sprite_x__P2195, "set/x": Sprite_x__P2196, "y": Sprite_y__P2197, @@ -62444,8 +67830,8 @@ const StatusBarSprite__C4155_VT = mkVTable({ "setHitbox": Sprite_setHitbox__P2235, "isStatic": Sprite_isStatic__P2236, "__visible": Sprite___visible__P2237, - "recalcSize": Sprite_recalcSize__P4522, - "isScaled": Sprite_isScaled__P4523, + "recalcSize": Sprite_recalcSize__P4562, + "isScaled": Sprite_isScaled__P4563, "width": Sprite_width__P2238, "height": Sprite_height__P2239, "left": Sprite_left__P2240, @@ -62474,19 +67860,42 @@ const StatusBarSprite__C4155_VT = mkVTable({ "_destroyCore": Sprite__destroyCore__P2270, "setScaleCore": Sprite_setScaleCore__P2272, "toString": Sprite_toString__P2275, - "drawSay": Sprite_drawSay__P4524, - "drawDebug": Sprite_drawDebug__P4525, - "drawSprite": Sprite_drawSprite__P4526, + "drawSay": Sprite_drawSay__P4564, + "drawDebug": Sprite_drawDebug__P4565, + "drawSprite": Sprite_drawSprite__P4566, "z": sprites_BaseSprite_z__P1942, "set/z": sprites_BaseSprite_z__P1943, "__draw": sprites_BaseSprite___draw__P1944, }, }); +const music_Melody__C1626_VT = mkVTable({ + name: "Melody", + numFields: 2, + classNo: 26, + lastSubtypeNo: 26, + maxBgInstances: null, + methods: { + }, + iface: { + "_text": null, + "set/_text": null, + "_player": null, + "set/_player": null, + "stopAll": music_Melody_stopAll__P1628, + "stop": music_Melody_stop__P1631, + "registerMelody": music_Melody_registerMelody__P4408, + "unregisterMelody": music_Melody_unregisterMelody__P4409, + "playCore": music_Melody_playCore__P4410, + "play": music_Melody_play__P1633, + "toString": music_Melody_toString__P1635, + }, + toStringMethod: music_Melody_toString__P1635, +}); const game_Hitbox__C2051_VT = mkVTable({ name: "Hitbox", numFields: 6, - classNo: 26, - lastSubtypeNo: 26, + classNo: 27, + lastSubtypeNo: 27, maxBgInstances: null, methods: { }, @@ -62516,8 +67925,8 @@ const game_Hitbox__C2051_VT = mkVTable({ const PhysicsEngine__C2352_VT = mkVTable({ name: "PhysicsEngine", numFields: 0, - classNo: 27, - lastSubtypeNo: 28, + classNo: 28, + lastSubtypeNo: 29, maxBgInstances: null, methods: { "addSprite": PhysicsEngine_addSprite__P2354, @@ -62534,25 +67943,6 @@ const PhysicsEngine__C2352_VT = mkVTable({ "move": PhysicsEngine_move__P2358, }, }); -const sprites_SpriteSet__C2304_VT = mkVTable({ - name: "SpriteSet", - numFields: 1, - classNo: 29, - lastSubtypeNo: 29, - maxBgInstances: null, - methods: { - }, - iface: { - "_sprites": null, - "set/_sprites": null, - "length": sprites_SpriteSet_length__P2307, - "add": sprites_SpriteSet_add__P2309, - "remove": sprites_SpriteSet_remove__P2311, - "contains": sprites_SpriteSet_contains__P2312, - "toString": sprites_SpriteSet_toString__P2315, - }, - toStringMethod: sprites_SpriteSet_toString__P2315, -}); const effects_ParticleEffect__C3050_VT = mkVTable({ name: "ParticleEffect", numFields: 3, @@ -62708,46 +68098,6 @@ const particles_ShapeFactory__C3001_VT = mkVTable({ "setDirection": particles_SprayFactory_setDirection__P2984, }, }); -const SnowFactory__C8103_VT = mkVTable({ - name: "SnowFactory", - numFields: 11, - classNo: 36, - lastSubtypeNo: 36, - maxBgInstances: null, - methods: { - "createParticle": SnowFactory_createParticle__P8105, - "drawParticle": particles_ShapeFactory_drawParticle__P3004, - }, - 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, - "createParticle": SnowFactory_createParticle__P8105, - "addShape": particles_ShapeFactory_addShape__P3003, - "drawParticle": particles_ShapeFactory_drawParticle__P3004, - "setSpeed": particles_SprayFactory_setSpeed__P2983, - "setDirection": particles_SprayFactory_setDirection__P2984, - }, -}); const particles_ParticleSource__C2939_VT = mkVTable({ name: "ParticleSource", numFields: 13, @@ -62759,7 +68109,7 @@ const particles_ParticleSource__C2939_VT = mkVTable({ "__draw": particles_ParticleSource___draw__P2945, "__drawCore": sprites_BaseSprite___drawCore__P1945, "__update": sprites_BaseSprite___update__P1946, - "updateParticle": particles_ParticleSource_updateParticle__P5040, + "updateParticle": particles_ParticleSource_updateParticle__P5080, }, iface: { "_z": null, @@ -62801,8 +68151,8 @@ const particles_ParticleSource__C2939_VT = mkVTable({ "setRate": particles_ParticleSource_setRate__P2956, "factory": particles_ParticleSource_factory__P2957, "setFactory": particles_ParticleSource_setFactory__P2958, - "updateParticle": particles_ParticleSource_updateParticle__P5040, - "drawParticle": particles_ParticleSource_drawParticle__P5041, + "updateParticle": particles_ParticleSource_updateParticle__P5080, + "drawParticle": particles_ParticleSource_drawParticle__P5081, "__visible": sprites_BaseSprite___visible__P1941, "z": sprites_BaseSprite_z__P1942, "set/z": sprites_BaseSprite_z__P1943, @@ -62837,108 +68187,11 @@ const particles_Particle__C2920_VT = mkVTable({ "set/color": null, }, }); -const control_EventContext__C395_VT = mkVTable({ - name: "EventContext", - numFields: 10, - classNo: 42, - lastSubtypeNo: 42, - 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, - "lastPerfDump": null, - "set/lastPerfDump": 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__P400, - "runCallbacks": control_EventContext_runCallbacks__P4326, - "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P4327, - "register": control_EventContext_register__P401, - "unregister": control_EventContext_unregister__P402, - "registerFrameHandler": control_EventContext_registerFrameHandler__P403, - "registerHandler": control_EventContext_registerHandler__P405, - }, -}); -const control_FrameCallback__C392_VT = mkVTable({ - name: "FrameCallback", - numFields: 2, - classNo: 43, - lastSubtypeNo: 43, - maxBgInstances: null, - methods: { - }, - iface: { - "order": null, - "set/order": null, - "handler": null, - "set/handler": null, - }, -}); -const control_PollEvent__C4300_VT = mkVTable({ - name: "PollEvent", - numFields: 6, - classNo: 44, - lastSubtypeNo: 44, - maxBgInstances: null, - methods: { - }, - iface: { - "eid": null, - "set/eid": null, - "vid": null, - "set/vid": null, - "start": null, - "set/start": null, - "timeOut": null, - "set/timeOut": null, - "condition": null, - "set/condition": null, - "once": null, - "set/once": null, - }, -}); -const control_EventHandler__C4321_VT = mkVTable({ - name: "EventHandler", - numFields: 4, - classNo: 45, - lastSubtypeNo: 45, - maxBgInstances: null, - methods: { - }, - iface: { - "src": null, - "set/src": null, - "value": null, - "set/value": null, - "handler": null, - "set/handler": null, - "flags": null, - "set/flags": null, - "register": control_EventHandler_register__P4322, - "unregister": control_EventHandler_unregister__P4323, - }, -}); const scene_Scene__C2678_VT = mkVTable({ name: "Scene", numFields: 24, - classNo: 46, - lastSubtypeNo: 46, + classNo: 42, + lastSubtypeNo: 42, maxBgInstances: null, methods: { }, @@ -62999,11 +68252,70 @@ const scene_Scene__C2678_VT = mkVTable({ "render": scene_Scene_render__P2706, }, }); +const sprites_SpriteSet__C2304_VT = mkVTable({ + name: "SpriteSet", + numFields: 1, + classNo: 43, + lastSubtypeNo: 43, + maxBgInstances: null, + methods: { + }, + iface: { + "_sprites": null, + "set/_sprites": null, + "length": sprites_SpriteSet_length__P2307, + "add": sprites_SpriteSet_add__P2309, + "remove": sprites_SpriteSet_remove__P2311, + "contains": sprites_SpriteSet_contains__P2312, + "toString": sprites_SpriteSet_toString__P2315, + }, + toStringMethod: sprites_SpriteSet_toString__P2315, +}); +const SnowFactory__C9809_VT = mkVTable({ + name: "SnowFactory", + numFields: 11, + classNo: 36, + lastSubtypeNo: 36, + maxBgInstances: null, + methods: { + "createParticle": SnowFactory_createParticle__P9811, + "drawParticle": particles_ShapeFactory_drawParticle__P3004, + }, + 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, + "createParticle": SnowFactory_createParticle__P9811, + "addShape": particles_ShapeFactory_addShape__P3003, + "drawParticle": particles_ShapeFactory_drawParticle__P3004, + "setSpeed": particles_SprayFactory_setSpeed__P2983, + "setDirection": particles_SprayFactory_setDirection__P2984, + }, +}); const scene_Camera__C2617_VT = mkVTable({ name: "Camera", numFields: 8, - classNo: 47, - lastSubtypeNo: 47, + classNo: 44, + lastSubtypeNo: 44, maxBgInstances: null, methods: { }, @@ -63036,11 +68348,29 @@ const scene_Camera__C2617_VT = mkVTable({ "update": scene_Camera_update__P2633, }, }); +const music_MelodyPlayer__C1636_VT = mkVTable({ + name: "MelodyPlayer", + numFields: 2, + classNo: 45, + lastSubtypeNo: 45, + maxBgInstances: null, + methods: { + }, + iface: { + "melody": null, + "set/melody": null, + "onPlayFinished": null, + "set/onPlayFinished": null, + "stop": music_MelodyPlayer_stop__P1640, + "queuePlayInstructions": music_MelodyPlayer_queuePlayInstructions__P4413, + "play": music_MelodyPlayer_play__P1641, + }, +}); const scene_GameForeverHandler__C2655_VT = mkVTable({ name: "GameForeverHandler", numFields: 2, - classNo: 48, - lastSubtypeNo: 48, + classNo: 46, + lastSubtypeNo: 46, maxBgInstances: null, methods: { }, @@ -63051,11 +68381,108 @@ const scene_GameForeverHandler__C2655_VT = mkVTable({ "set/handler": null, }, }); +const control_EventContext__C395_VT = mkVTable({ + name: "EventContext", + numFields: 10, + 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, + "lastPerfDump": null, + "set/lastPerfDump": 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__P400, + "runCallbacks": control_EventContext_runCallbacks__P4366, + "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P4367, + "register": control_EventContext_register__P401, + "unregister": control_EventContext_unregister__P402, + "registerFrameHandler": control_EventContext_registerFrameHandler__P403, + "registerHandler": control_EventContext_registerHandler__P405, + }, +}); +const control_FrameCallback__C392_VT = mkVTable({ + name: "FrameCallback", + numFields: 2, + classNo: 48, + lastSubtypeNo: 48, + maxBgInstances: null, + methods: { + }, + iface: { + "order": null, + "set/order": null, + "handler": null, + "set/handler": null, + }, +}); +const control_PollEvent__C4340_VT = mkVTable({ + name: "PollEvent", + numFields: 6, + classNo: 49, + lastSubtypeNo: 49, + maxBgInstances: null, + methods: { + }, + iface: { + "eid": null, + "set/eid": null, + "vid": null, + "set/vid": null, + "start": null, + "set/start": null, + "timeOut": null, + "set/timeOut": null, + "condition": null, + "set/condition": null, + "once": null, + "set/once": null, + }, +}); +const control_EventHandler__C4361_VT = mkVTable({ + name: "EventHandler", + numFields: 4, + classNo: 50, + lastSubtypeNo: 50, + maxBgInstances: null, + methods: { + }, + iface: { + "src": null, + "set/src": null, + "value": null, + "set/value": null, + "handler": null, + "set/handler": null, + "flags": null, + "set/flags": null, + "register": control_EventHandler_register__P4362, + "unregister": control_EventHandler_unregister__P4363, + }, +}); const statusbars_StatusBar__C4172_VT = mkVTable({ name: "StatusBar", numFields: 24, - classNo: 49, - lastSubtypeNo: 49, + classNo: 51, + lastSubtypeNo: 51, maxBgInstances: null, methods: { }, @@ -63114,19 +68541,19 @@ const statusbars_StatusBar__C4172_VT = mkVTable({ "set/max": statusbars_StatusBar_max__P4193, "current": statusbars_StatusBar_current__P4194, "set/current": statusbars_StatusBar_current__P4195, - "changeValue": statusbars_StatusBar_changeValue__P6763, + "changeValue": statusbars_StatusBar_changeValue__P6803, "image": statusbars_StatusBar_image__P4197, - "isVerticalBar": statusbars_StatusBar_isVerticalBar__P6764, - "rebuildImage": statusbars_StatusBar_rebuildImage__P6766, + "isVerticalBar": statusbars_StatusBar_isVerticalBar__P6804, + "rebuildImage": statusbars_StatusBar_rebuildImage__P6806, "updateState": statusbars_StatusBar_updateState__P4199, "updateDisplay": statusbars_StatusBar_updateDisplay__P4200, }, }); -const statusbars_StatusHandler__C6767_VT = mkVTable({ +const statusbars_StatusHandler__C6807_VT = mkVTable({ name: "StatusHandler", numFields: 5, - classNo: 50, - lastSubtypeNo: 50, + classNo: 52, + lastSubtypeNo: 52, maxBgInstances: null, methods: { }, @@ -63141,14 +68568,14 @@ const statusbars_StatusHandler__C6767_VT = mkVTable({ "set/percent": null, "handler": null, "set/handler": null, - "conditionMet": statusbars_StatusHandler_conditionMet__P6768, + "conditionMet": statusbars_StatusHandler_conditionMet__P6808, }, }); const tiles_TileMap__C2571_VT = mkVTable({ name: "TileMap", numFields: 5, - classNo: 51, - lastSubtypeNo: 51, + classNo: 53, + lastSubtypeNo: 53, maxBgInstances: null, methods: { }, @@ -63175,7 +68602,7 @@ const tiles_TileMap__C2571_VT = mkVTable({ "setData": tiles_TileMap_setData__P2584, "getTile": tiles_TileMap_getTile__P2585, "getTileIndex": tiles_TileMap_getTileIndex__P2586, - "draw": tiles_TileMap_draw__P4643, + "draw": tiles_TileMap_draw__P4683, "isObstacle": tiles_TileMap_isObstacle__P2592, "getObstacle": tiles_TileMap_getObstacle__P2593, "isOnWall": tiles_TileMap_isOnWall__P2594, @@ -63185,8 +68612,8 @@ const tiles_TileMap__C2571_VT = mkVTable({ const tiles_TileMapData__C2553_VT = mkVTable({ name: "TileMapData", numFields: 7, - classNo: 52, - lastSubtypeNo: 52, + classNo: 54, + lastSubtypeNo: 54, maxBgInstances: null, methods: { }, @@ -63244,34 +68671,11 @@ const scene_Renderable__C2635_VT = mkVTable({ "__update": sprites_BaseSprite___update__P1946, }, }); -const scene_Background__C2505_VT = mkVTable({ - name: "Background", - numFields: 4, - classNo: 53, - lastSubtypeNo: 53, - maxBgInstances: null, - methods: { - }, - iface: { - "color": null, - "set/color": null, - "_image": null, - "set/_image": null, - "camera": null, - "set/camera": null, - "_layers": null, - "set/_layers": null, - "image": scene_Background_image__P2511, - "set/image": scene_Background_image__P2512, - "hasBackgroundImage": scene_Background_hasBackgroundImage__P2513, - "draw": scene_Background_draw__P2514, - }, -}); const controller_ControlledSprite__C1974_VT = mkVTable({ name: "ControlledSprite", numFields: 4, - classNo: 54, - lastSubtypeNo: 54, + classNo: 55, + lastSubtypeNo: 55, maxBgInstances: null, methods: { }, @@ -63289,8 +68693,8 @@ const controller_ControlledSprite__C1974_VT = mkVTable({ const info_PlayerInfoImpl__C2428_VT = mkVTable({ name: "PlayerInfoImpl", numFields: 12, - classNo: 55, - lastSubtypeNo: 55, + classNo: 56, + lastSubtypeNo: 56, maxBgInstances: null, methods: { }, @@ -63319,7 +68723,7 @@ const info_PlayerInfoImpl__C2428_VT = mkVTable({ "set/left": null, "up": null, "set/up": null, - "init": info_PlayerInfoImpl_init__P4631, + "init": info_PlayerInfoImpl_init__P4671, "getState": info_PlayerInfoImpl_getState__P2441, "id": info_PlayerInfoImpl_id__P2442, "score": info_PlayerInfoImpl_score__P2443, @@ -63334,8 +68738,8 @@ const info_PlayerInfoImpl__C2428_VT = mkVTable({ const info_PlayerInfo__C2454_VT = mkVTable({ name: "PlayerInfo", numFields: 2, - classNo: 56, - lastSubtypeNo: 56, + classNo: 57, + lastSubtypeNo: 57, maxBgInstances: null, methods: { }, @@ -63344,7 +68748,7 @@ const info_PlayerInfo__C2454_VT = mkVTable({ "set/_player": null, "impl": null, "set/impl": null, - "init": info_PlayerInfo_init__P4632, + "init": info_PlayerInfo_init__P4672, "x": info_PlayerInfo_x__P2471, "set/x": info_PlayerInfo_x__P2472, "y": info_PlayerInfo_y__P2473, @@ -63358,11 +68762,11 @@ const info_PlayerInfo__C2454_VT = mkVTable({ "drawLives": info_PlayerInfo_drawLives__P2493, }, }); -const info_InfoState__C4576_VT = mkVTable({ +const info_InfoState__C4616_VT = mkVTable({ name: "InfoState", numFields: 10, - classNo: 57, - lastSubtypeNo: 57, + classNo: 58, + lastSubtypeNo: 58, maxBgInstances: null, methods: { }, @@ -63392,8 +68796,8 @@ const info_InfoState__C4576_VT = mkVTable({ const info_PlayerState__C2394_VT = mkVTable({ name: "PlayerState", numFields: 4, - classNo: 58, - lastSubtypeNo: 58, + classNo: 59, + lastSubtypeNo: 59, maxBgInstances: null, methods: { }, @@ -63408,36 +68812,15 @@ const info_PlayerState__C2394_VT = mkVTable({ "set/scoreReachedHandler": null, }, }); -const music_Melody__C1626_VT = mkVTable({ - name: "Melody", - numFields: 2, - classNo: 59, - lastSubtypeNo: 59, - maxBgInstances: null, - methods: { - }, - iface: { - "_text": null, - "set/_text": null, - "_player": null, - "set/_player": null, - "stop": music_Melody_stop__P1631, - "registerMelody": music_Melody_registerMelody__P4368, - "unregisterMelody": music_Melody_unregisterMelody__P4369, - "playCore": music_Melody_playCore__P4370, - "play": music_Melody_play__P1633, - "toString": music_Melody_toString__P1635, - }, - toStringMethod: music_Melody_toString__P1635, -}); const game_BaseDialog__C2737_VT = mkVTable({ name: "BaseDialog", numFields: 11, classNo: 60, - lastSubtypeNo: 61, + lastSubtypeNo: 62, maxBgInstances: null, methods: { "update": game_BaseDialog_update__P2750, + "setText": game_BaseDialog_setText__P2751, "drawTextCore": game_BaseDialog_drawTextCore__P2752, }, iface: { @@ -63464,26 +68847,30 @@ const game_BaseDialog__C2737_VT = mkVTable({ "textColor": null, "set/textColor": null, "update": game_BaseDialog_update__P2750, + "setText": game_BaseDialog_setText__P2751, "drawTextCore": game_BaseDialog_drawTextCore__P2752, "drawCursorRow": game_BaseDialog_drawCursorRow__P2753, - "drawBorder": game_BaseDialog_drawBorder__P4673, - "fastFill": game_BaseDialog_fastFill__P4674, - "clearInterior": game_BaseDialog_clearInterior__P4675, - "drawPartial": game_BaseDialog_drawPartial__P4676, - "cursorRowHeight": game_BaseDialog_cursorRowHeight__P4677, - "textAreaWidth": game_BaseDialog_textAreaWidth__P4679, - "textAreaHeight": game_BaseDialog_textAreaHeight__P4680, + "drawBorder": game_BaseDialog_drawBorder__P4713, + "fastFill": game_BaseDialog_fastFill__P4714, + "clearInterior": game_BaseDialog_clearInterior__P4715, + "drawPartial": game_BaseDialog_drawPartial__P4716, + "cursorRowHeight": game_BaseDialog_cursorRowHeight__P4717, + "rowHeight": game_BaseDialog_rowHeight__P4718, + "textAreaWidth": game_BaseDialog_textAreaWidth__P4719, + "textAreaHeight": game_BaseDialog_textAreaHeight__P4720, + "setFont": game_BaseDialog_setFont__P4721, }, }); -const game_GameOverDialog__C2776_VT = mkVTable({ - name: "GameOverDialog", - numFields: 16, +const game_Dialog__C2754_VT = mkVTable({ + name: "Dialog", + numFields: 13, classNo: 61, lastSubtypeNo: 61, maxBgInstances: null, methods: { - "update": game_GameOverDialog_update__P2779, - "drawTextCore": game_GameOverDialog_drawTextCore__P2780, + "update": game_BaseDialog_update__P2750, + "setText": game_Dialog_setText__P2763, + "drawTextCore": game_Dialog_drawTextCore__P2764, }, iface: { "image": null, @@ -63508,34 +68895,35 @@ const game_GameOverDialog__C2776_VT = mkVTable({ "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__P2778, - "update": game_GameOverDialog_update__P2779, - "drawTextCore": game_GameOverDialog_drawTextCore__P2780, + "chunks": null, + "set/chunks": null, + "chunkIndex": null, + "set/chunkIndex": null, + "hasNext": game_Dialog_hasNext__P2758, + "hasPrev": game_Dialog_hasPrev__P2759, + "nextPage": game_Dialog_nextPage__P2760, + "prevPage": game_Dialog_prevPage__P2761, + "chunkText": game_Dialog_chunkText__P2762, + "setText": game_Dialog_setText__P2763, + "drawTextCore": game_Dialog_drawTextCore__P2764, + "update": game_BaseDialog_update__P2750, "drawCursorRow": game_BaseDialog_drawCursorRow__P2753, - "drawBorder": game_BaseDialog_drawBorder__P4673, - "fastFill": game_BaseDialog_fastFill__P4674, - "clearInterior": game_BaseDialog_clearInterior__P4675, - "drawPartial": game_BaseDialog_drawPartial__P4676, - "cursorRowHeight": game_BaseDialog_cursorRowHeight__P4677, - "textAreaWidth": game_BaseDialog_textAreaWidth__P4679, - "textAreaHeight": game_BaseDialog_textAreaHeight__P4680, + "drawBorder": game_BaseDialog_drawBorder__P4713, + "fastFill": game_BaseDialog_fastFill__P4714, + "clearInterior": game_BaseDialog_clearInterior__P4715, + "drawPartial": game_BaseDialog_drawPartial__P4716, + "cursorRowHeight": game_BaseDialog_cursorRowHeight__P4717, + "rowHeight": game_BaseDialog_rowHeight__P4718, + "textAreaWidth": game_BaseDialog_textAreaWidth__P4719, + "textAreaHeight": game_BaseDialog_textAreaHeight__P4720, + "setFont": game_BaseDialog_setFont__P4721, }, }); const effects_ImageEffect__C3077_VT = mkVTable({ name: "ImageEffect", numFields: 4, - classNo: 62, - lastSubtypeNo: 62, + classNo: 63, + lastSubtypeNo: 63, maxBgInstances: null, methods: { }, @@ -63593,11 +68981,34 @@ const particles_ConfettiFactory__C3006_VT = mkVTable({ "setDirection": particles_SprayFactory_setDirection__P2984, }, }); +const scene_Background__C2505_VT = mkVTable({ + name: "Background", + numFields: 4, + classNo: 64, + lastSubtypeNo: 64, + maxBgInstances: null, + methods: { + }, + iface: { + "color": null, + "set/color": null, + "_image": null, + "set/_image": null, + "camera": null, + "set/camera": null, + "_layers": null, + "set/_layers": null, + "image": scene_Background_image__P2511, + "set/image": scene_Background_image__P2512, + "hasBackgroundImage": scene_Background_hasBackgroundImage__P2513, + "draw": scene_Background_draw__P2514, + }, +}); const scene_BackgroundLayer__C2515_VT = mkVTable({ name: "BackgroundLayer", numFields: 6, - classNo: 63, - lastSubtypeNo: 63, + classNo: 65, + lastSubtypeNo: 65, maxBgInstances: null, methods: { }, @@ -63620,8 +69031,8 @@ const scene_BackgroundLayer__C2515_VT = mkVTable({ const ArcadePhysicsEngine__C2368_VT = mkVTable({ name: "ArcadePhysicsEngine", numFields: 6, - classNo: 28, - lastSubtypeNo: 28, + classNo: 29, + lastSubtypeNo: 29, maxBgInstances: null, methods: { "addSprite": ArcadePhysicsEngine_addSprite__P2377, @@ -63653,21 +69064,21 @@ const ArcadePhysicsEngine__C2368_VT = mkVTable({ "removeSprite": ArcadePhysicsEngine_removeSprite__P2378, "draw": ArcadePhysicsEngine_draw__P2379, "move": ArcadePhysicsEngine_move__P2380, - "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P4567, - "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P4568, - "screenEdgeCollisions": ArcadePhysicsEngine_screenEdgeCollisions__P4569, - "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P4570, - "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P4571, + "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P4607, + "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P4608, + "screenEdgeCollisions": ArcadePhysicsEngine_screenEdgeCollisions__P4609, + "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P4610, + "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P4611, "moveSprite": ArcadePhysicsEngine_moveSprite__P2382, - "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P4572, - "constrain": ArcadePhysicsEngine_constrain__P4573, + "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P4612, + "constrain": ArcadePhysicsEngine_constrain__P4613, }, }); const sprites_SpriteMap__C2287_VT = mkVTable({ name: "SpriteMap", numFields: 5, - classNo: 64, - lastSubtypeNo: 64, + classNo: 66, + lastSubtypeNo: 66, maxBgInstances: null, methods: { }, @@ -63687,19 +69098,79 @@ const sprites_SpriteMap__C2287_VT = mkVTable({ "draw": sprites_SpriteMap_draw__P2291, "resizeBuckets": sprites_SpriteMap_resizeBuckets__P2292, "clear": sprites_SpriteMap_clear__P2293, - "key": sprites_SpriteMap_key__P4530, - "insertAtKey": sprites_SpriteMap_insertAtKey__P4531, + "key": sprites_SpriteMap_key__P4570, + "insertAtKey": sprites_SpriteMap_insertAtKey__P4571, "insertAABB": sprites_SpriteMap_insertAABB__P2294, - "mergeAtKey": sprites_SpriteMap_mergeAtKey__P4532, + "mergeAtKey": sprites_SpriteMap_mergeAtKey__P4572, "toString": sprites_SpriteMap_toString__P2295, }, toStringMethod: sprites_SpriteMap_toString__P2295, }); -const JSON_Stringifier__C4318_VT = mkVTable({ +const game_GameOverDialog__C2776_VT = mkVTable({ + name: "GameOverDialog", + numFields: 16, + classNo: 62, + lastSubtypeNo: 62, + maxBgInstances: null, + methods: { + "update": game_GameOverDialog_update__P2779, + "setText": game_BaseDialog_setText__P2751, + "drawTextCore": game_GameOverDialog_drawTextCore__P2780, + }, + 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__P2778, + "update": game_GameOverDialog_update__P2779, + "drawTextCore": game_GameOverDialog_drawTextCore__P2780, + "setText": game_BaseDialog_setText__P2751, + "drawCursorRow": game_BaseDialog_drawCursorRow__P2753, + "drawBorder": game_BaseDialog_drawBorder__P4713, + "fastFill": game_BaseDialog_fastFill__P4714, + "clearInterior": game_BaseDialog_clearInterior__P4715, + "drawPartial": game_BaseDialog_drawPartial__P4716, + "cursorRowHeight": game_BaseDialog_cursorRowHeight__P4717, + "rowHeight": game_BaseDialog_rowHeight__P4718, + "textAreaWidth": game_BaseDialog_textAreaWidth__P4719, + "textAreaHeight": game_BaseDialog_textAreaHeight__P4720, + "setFont": game_BaseDialog_setFont__P4721, + }, +}); +const JSON_Stringifier__C4358_VT = mkVTable({ name: "Stringifier", numFields: 3, - classNo: 65, - lastSubtypeNo: 65, + classNo: 67, + lastSubtypeNo: 67, maxBgInstances: null, methods: { }, @@ -63710,33 +69181,15 @@ const JSON_Stringifier__C4318_VT = mkVTable({ "set/indentStep": null, "indent": null, "set/indent": null, - "doString": JSON_Stringifier_doString__P4319, - "go": JSON_Stringifier_go__P4320, - }, -}); -const music_MelodyPlayer__C1636_VT = mkVTable({ - name: "MelodyPlayer", - numFields: 2, - classNo: 66, - lastSubtypeNo: 66, - maxBgInstances: null, - methods: { - }, - iface: { - "melody": null, - "set/melody": null, - "onPlayFinished": null, - "set/onPlayFinished": null, - "stop": music_MelodyPlayer_stop__P1640, - "queuePlayInstructions": music_MelodyPlayer_queuePlayInstructions__P4373, - "play": music_MelodyPlayer_play__P1641, + "doString": JSON_Stringifier_doString__P4359, + "go": JSON_Stringifier_go__P4360, }, }); const animation_SpriteAnimation__C3162_VT = mkVTable({ name: "SpriteAnimation", numFields: 3, - classNo: 67, - lastSubtypeNo: 69, + classNo: 68, + lastSubtypeNo: 70, maxBgInstances: null, methods: { "update": animation_SpriteAnimation_update__P3165, @@ -63755,8 +69208,8 @@ const animation_SpriteAnimation__C3162_VT = mkVTable({ const animation_ImageAnimation__C3166_VT = mkVTable({ name: "ImageAnimation", numFields: 6, - classNo: 68, - lastSubtypeNo: 68, + classNo: 69, + lastSubtypeNo: 69, maxBgInstances: null, methods: { "update": animation_ImageAnimation_update__P3168, @@ -63781,8 +69234,8 @@ const animation_ImageAnimation__C3166_VT = mkVTable({ const animation_MovementAnimation__C3169_VT = mkVTable({ name: "MovementAnimation", numFields: 5, - classNo: 69, - lastSubtypeNo: 69, + classNo: 70, + lastSubtypeNo: 70, maxBgInstances: null, methods: { "update": animation_MovementAnimation_update__P3171, @@ -63805,8 +69258,8 @@ const animation_MovementAnimation__C3169_VT = mkVTable({ const tiles_Location__C2529_VT = mkVTable({ name: "Location", numFields: 2, - classNo: 70, - lastSubtypeNo: 70, + classNo: 71, + lastSubtypeNo: 71, maxBgInstances: null, methods: { }, @@ -63854,14 +69307,14 @@ const particles_RadialFactory__C3012_VT = mkVTable({ "setRadius": particles_RadialFactory_setRadius__P3016, }, }); -const RingFactory__C17262_VT = mkVTable({ +const RingFactory__C18806_VT = mkVTable({ name: "RingFactory", numFields: 6, classNo: 39, lastSubtypeNo: 39, maxBgInstances: null, methods: { - "createParticle": RingFactory_createParticle__P17264, + "createParticle": RingFactory_createParticle__P18808, "drawParticle": particles_RadialFactory_drawParticle__P3015, }, iface: { @@ -63877,7 +69330,7 @@ const RingFactory__C17262_VT = mkVTable({ "set/galois": null, "colors": null, "set/colors": null, - "createParticle": RingFactory_createParticle__P17264, + "createParticle": RingFactory_createParticle__P18808, "drawParticle": particles_RadialFactory_drawParticle__P3015, "setRadius": particles_RadialFactory_setRadius__P3016, }, @@ -63959,7 +69412,7 @@ const particles_FireSource__C2961_VT = mkVTable({ "setRate": particles_ParticleSource_setRate__P2956, "factory": particles_ParticleSource_factory__P2957, "setFactory": particles_ParticleSource_setFactory__P2958, - "drawParticle": particles_ParticleSource_drawParticle__P5041, + "drawParticle": particles_ParticleSource_drawParticle__P5081, "__visible": sprites_BaseSprite___visible__P1941, "z": sprites_BaseSprite_z__P1942, "set/z": sprites_BaseSprite_z__P1943, @@ -63970,8 +69423,8 @@ const particles_FireSource__C2961_VT = mkVTable({ const scene_OverlapHandler__C2649_VT = mkVTable({ name: "OverlapHandler", numFields: 3, - classNo: 71, - lastSubtypeNo: 71, + classNo: 72, + lastSubtypeNo: 72, maxBgInstances: null, methods: { }, @@ -63984,11 +69437,39 @@ const scene_OverlapHandler__C2649_VT = mkVTable({ "set/handler": null, }, }); +const music_SoundEffect__C1761_VT = mkVTable({ + name: "SoundEffect", + numFields: 8, + classNo: 73, + lastSubtypeNo: 73, + maxBgInstances: null, + methods: { + }, + iface: { + "waveShape": null, + "set/waveShape": null, + "startFrequency": null, + "set/startFrequency": null, + "endFrequency": null, + "set/endFrequency": null, + "startVolume": null, + "set/startVolume": null, + "endVolume": null, + "set/endVolume": null, + "duration": null, + "set/duration": null, + "effect": null, + "set/effect": null, + "interpolation": null, + "set/interpolation": null, + "toBuffer": music_SoundEffect_toBuffer__P1771, + }, +}); const controller_ButtonHandler__C2026_VT = mkVTable({ name: "ButtonHandler", numFields: 2, - classNo: 72, - lastSubtypeNo: 72, + classNo: 74, + lastSubtypeNo: 74, maxBgInstances: null, methods: { }, @@ -64002,8 +69483,8 @@ const controller_ButtonHandler__C2026_VT = mkVTable({ const controller_ButtonEventHandlerState__C2028_VT = mkVTable({ name: "ButtonEventHandlerState", numFields: 3, - classNo: 73, - lastSubtypeNo: 73, + classNo: 75, + lastSubtypeNo: 75, maxBgInstances: null, methods: { }, @@ -64019,8 +69500,8 @@ const controller_ButtonEventHandlerState__C2028_VT = mkVTable({ const scene_TileOverlapHandler__C2653_VT = mkVTable({ name: "TileOverlapHandler", numFields: 3, - classNo: 74, - lastSubtypeNo: 74, + classNo: 76, + lastSubtypeNo: 76, maxBgInstances: null, methods: { }, @@ -64036,8 +69517,8 @@ const scene_TileOverlapHandler__C2653_VT = mkVTable({ const scene_systemMenu_PauseMenu__C2883_VT = mkVTable({ name: "PauseMenu", numFields: 7, - classNo: 75, - lastSubtypeNo: 75, + classNo: 77, + lastSubtypeNo: 77, maxBgInstances: null, methods: { }, @@ -64061,14 +69542,14 @@ const scene_systemMenu_PauseMenu__C2883_VT = mkVTable({ "setSelection": scene_systemMenu_PauseMenu_setSelection__P2887, "drawText": scene_systemMenu_PauseMenu_drawText__P2888, "dispose": scene_systemMenu_PauseMenu_dispose__P2889, - "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P4955, + "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P4995, }, }); const scene_systemMenu_MenuOption__C2875_VT = mkVTable({ name: "MenuOption", numFields: 8, - classNo: 76, - lastSubtypeNo: 76, + classNo: 78, + lastSubtypeNo: 78, maxBgInstances: null, methods: { }, @@ -64095,14 +69576,14 @@ const scene_systemMenu_MenuOption__C2875_VT = mkVTable({ "setTheme": scene_systemMenu_MenuOption_setTheme__P2880, "setState": scene_systemMenu_MenuOption_setState__P2881, "dispose": scene_systemMenu_MenuOption_dispose__P2882, - "updateCard": scene_systemMenu_MenuOption_updateCard__P4954, + "updateCard": scene_systemMenu_MenuOption_updateCard__P4994, }, }); const animation_Path__C3132_VT = mkVTable({ name: "Path", numFields: 2, - classNo: 77, - lastSubtypeNo: 77, + classNo: 79, + lastSubtypeNo: 79, maxBgInstances: null, methods: { }, @@ -64117,8 +69598,8 @@ const animation_Path__C3132_VT = mkVTable({ const animation_PathNode__C3138_VT = mkVTable({ name: "PathNode", numFields: 1, - classNo: 78, - lastSubtypeNo: 78, + classNo: 80, + lastSubtypeNo: 80, maxBgInstances: null, methods: { "apply": animation_PathNode_apply__P3141, @@ -64132,8 +69613,8 @@ const animation_PathNode__C3138_VT = mkVTable({ const MovingSprite__C2366_VT = mkVTable({ name: "MovingSprite", numFields: 7, - classNo: 79, - lastSubtypeNo: 79, + classNo: 81, + lastSubtypeNo: 81, maxBgInstances: null, methods: { }, @@ -64157,8 +69638,8 @@ const MovingSprite__C2366_VT = mkVTable({ const sprites_StaticObstacle__C2339_VT = mkVTable({ name: "StaticObstacle", numFields: 5, - classNo: 80, - lastSubtypeNo: 80, + classNo: 82, + lastSubtypeNo: 82, maxBgInstances: null, methods: { }, @@ -64179,28 +69660,28 @@ const sprites_StaticObstacle__C2339_VT = mkVTable({ "width": sprites_StaticObstacle_width__P2349, }, }); -const effects_SceneAnchor__C5083_VT = mkVTable({ +const effects_SceneAnchor__C5123_VT = mkVTable({ name: "SceneAnchor", numFields: 1, - classNo: 81, - lastSubtypeNo: 81, + classNo: 83, + lastSubtypeNo: 83, maxBgInstances: null, methods: { }, iface: { "camera": null, "set/camera": null, - "x": effects_SceneAnchor_x__P5084, - "y": effects_SceneAnchor_y__P5085, - "width": effects_SceneAnchor_width__P5086, - "height": effects_SceneAnchor_height__P5087, + "x": effects_SceneAnchor_x__P5124, + "y": effects_SceneAnchor_y__P5125, + "width": effects_SceneAnchor_width__P5126, + "height": effects_SceneAnchor_height__P5127, }, }); const sprites_BaseSpriteSayRenderer__C2102_VT = mkVTable({ name: "BaseSpriteSayRenderer", numFields: 3, - classNo: 82, - lastSubtypeNo: 82, + classNo: 84, + lastSubtypeNo: 84, maxBgInstances: null, methods: { "draw": sprites_BaseSpriteSayRenderer_draw__P2104, @@ -64220,7 +69701,7 @@ const sprites_BaseSpriteSayRenderer__C2102_VT = mkVTable({ }, }); -const breakpoints = setupDebugger(1, ["transparency16___4238","tile1___4241","tile3___4240","tile2___4239","pro2___4223","player2___4224","mySprite___4229","Facing___4231","statusbar___4227","mySprite4___4228","projectile___4226","count2___4230","count___4233","mySprite2___4235","speed___4232","mySprite3___4236","phase___4234","projectile2___4225"]) +const breakpoints = setupDebugger(1, ["transparency16___4278","tile1___4281","tile3___4280","tile2___4279","pro2___27994","player2___27997","secretweapon___28000","heal___28003","pro3___28006","mySprite___28017","Facing___28037","Soundeffects___28041","statusbar___28063","mySprite4___28068","projectile___28122","count2___28209","count___28326","mySprite2___28505","speed___28455","mySprite3___28519","tempo2___28539","tempo___28536","hihat___28542","drums___28554","b1___28574","tracks___28601","tempo4___28612","tempo3___28609","hihat2___28614","drums2___28626","b2___28646","tracks2___28658","tempo6___28671","tempo5___28668","hihat3___28673","drums3___28685","b3___28705","tracks3___28717","tempo8___28730","tempo7___28727","hihat4___28732","drums4___28744","b4___28764","tracks4___28776","phase___28453","playing___28784","beat___28451","lengths___28593","positions___28588","volumes___28598","playing2___28445","playing3___28447","playing4___28449","projectile2___28443","projectile3___28441","beat2___28439","beat3___28666","beat4___28725"]) -return _main___P24186 +return _main___P30613 }) 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 033c5bf..7138985 100644 --- a/pxt.json +++ b/pxt.json @@ -1,5 +1,6 @@ { "name": "Magic bossfight", + "version": "1.0.0", "description": "", "dependencies": { "device": "*",