From 5ed4f94d6cc4c3919f39848ae42725f5162d58de Mon Sep 17 00:00:00 2001 From: rymc88 <64868815+rymc88@users.noreply.github.com> Date: Fri, 22 Mar 2024 11:13:28 -0400 Subject: [PATCH] 0.0.5 --- assets/js/binary.js | 35128 ++++++++++++++++++++---------------------- assets/version.txt | 2 +- pxt.json | 2 +- 3 files changed, 16598 insertions(+), 18534 deletions(-) diff --git a/assets/js/binary.js b/assets/js/binary.js index 0398369..0771b52 100644 --- a/assets/js/binary.js +++ b/assets/js/binary.js @@ -1,5 +1,5 @@ -// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.12.49/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"0.0.4","target":"arcade","targetVersion":"1.12.49","repo":"rymc88/unit-1-skillmap"} -// total=1307337 new=6.14% cached=88.04% other=5.82% +// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.12.49/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"0.0.5","target":"arcade","targetVersion":"1.12.49","repo":"rymc88/unit-1-skillmap"} +// total=1248343 new=5.86% cached=88.47% other=5.67% (function (ectx) { 'use strict'; const runtime = ectx.runtime; @@ -108,10 +108,7 @@ pxtrt.mapKeyNames = [ "ay", "background", "basicCard", - "bg", "bgColor", - "borderColor", - "borderWidth", "bottom", "buckets", "button", @@ -177,7 +174,6 @@ pxtrt.mapKeyNames = [ "event", "eventContext", "fastRandom", - "fg", "fgColor", "flags", "followingSprites", @@ -233,13 +229,11 @@ pxtrt.mapKeyNames = [ "length", "lfsr", "lifespan", - "lock", "loseEffect", "loseMessage", "loseSound", "loseSoundLooping", "map", - "maxFontHeight", "maxLifespan", "maxNegativeVelocity", "maxSingleStep", @@ -266,8 +260,6 @@ pxtrt.mapKeyNames = [ "once", "options", "order", - "outlineColor", - "outlineWidth", "overlapHandlers", "overlapMap", "overlaps", @@ -337,16 +329,13 @@ pxtrt.mapKeyNames = [ "setHitbox", "setImage", "setKind", - "setMaxFontHeight", "setOffset", - "setPosition", "setPressed", "setRate", "setRelativeToCamera", "setSelection", "setSpeed", "setState", - "setText", "setTheme", "shakeAmplitude", "shakeDuration", @@ -440,7 +429,7 @@ const pxsim_pxtrt = pxsim.pxtrt; const pxsim_numops = pxsim.numops; -function _main___P106056(s) { +function _main___P35932(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -450,281 +439,280 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - globals._intervals___91924 = (undefined); - globals._pollEventQueue___91933 = (undefined); - globals.minPriority___87896 = (1); + globals._intervals___22369 = (undefined); + globals._pollEventQueue___22378 = (undefined); + globals.minPriority___18346 = (1); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, listeners_inline__P91936); - globals.listeners___91937 = (s.tmp_0); - globals.globalVolume___91990 = (null); - globals.playToneID___91997 = (0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C89147_VT); + r0 = pxsim_Array__push(s.tmp_0, listeners_inline__P22381); + globals.listeners___22382 = (s.tmp_0); + globals.globalVolume___22435 = (null); + globals.playToneID___22442 = (0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C19597_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P89150_mk(s); + s.tmp_1 = music_Melody_constructor__P19600_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = "~15 e3:3 r:1 d#:3 r:1 d:4 r:1 c#:8"; s.callLocIdx = 0; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - globals.wawawawaa___89168 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C89147_VT); + globals.wawawawaa___19618 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C19597_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P89150_mk(s); + s.tmp_1 = music_Melody_constructor__P19600_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = "g4:1 c5 e g:2 e:1 g:3"; s.callLocIdx = 1; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - globals.powerUp___89171 = (s.tmp_0); - globals.brightness___89472 = (100); + globals.powerUp___19621 = (s.tmp_0); + globals.brightness___19922 = (100); r0 = pxsim_pxtrt.mkMap(); s.tmp_0 = r0; r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "charWidth", 6); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "charHeight", 8); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex95562); - globals.font8___89496 = (s.tmp_0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex25865); + globals.font8___19946 = (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", _hex95564); - globals.font12___89497 = (s.tmp_0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex25867); + globals.font12___19947 = (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", _hex98597); - globals.font5___89501 = (s.tmp_0); - globals.__updated___92104 = (false); - r0 = pxsim.control.runInParallel(control___screen_inline__P92107); - r0 = pxsim_pxtcore.setPalette(_hex92118); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex27717); + globals.font5___19951 = (s.tmp_0); + globals.__updated___22549 = (false); + r0 = pxsim.control.runInParallel(control___screen_inline__P22552); + r0 = pxsim_pxtcore.setPalette(_hex22563); r0 = pxsim_pxtcore.getConfig(2102, 160); s.tmp_0 = r0; r0 = pxsim_pxtcore.getConfig(2103, 120); s.tmp_1 = r0; r0 = pxsim.image.create(s.tmp_0, s.tmp_1); - globals.screen___89553 = (r0); - s.tmp_0 = control___screen_setupUpdate__P89515_mk(s); - s.tmp_0.arg0 = _screen_internal_inline__P92127; + globals.screen___20003 = (r0); + s.tmp_0 = control___screen_setupUpdate__P19965_mk(s); + s.tmp_0.arg0 = _screen_internal_inline__P22572; s.callLocIdx = 6; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.control_EventContext_onStats___87919 = (_screen_internal_inline__P92132); - globals.RUN_KEY___92137 = ("#run"); - globals.SCOPE_KEY___92138 = ("#scope"); - s.tmp_0 = settings_initScopes__P92149_mk(s); + globals.control_EventContext_onStats___18369 = (_screen_internal_inline__P22577); + globals.RUN_KEY___22582 = ("#run"); + globals.SCOPE_KEY___22583 = ("#scope"); + s.tmp_0 = settings_initScopes__P22594_mk(s); s.callLocIdx = 7; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C89710_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C20160_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P89716_mk(s); + s.tmp_1 = controller_Button_constructor__P20166_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 5; s.tmp_1.arg2 = 4; s.callLocIdx = 8; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - globals.A___89634 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C89710_VT); + globals.A___20084 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C20160_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P89716_mk(s); + s.tmp_1 = controller_Button_constructor__P20166_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 6; s.tmp_1.arg2 = 5; s.callLocIdx = 9; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - globals.B___89635 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C89710_VT); + globals.B___20085 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C20160_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P89716_mk(s); + s.tmp_1 = controller_Button_constructor__P20166_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 1; s.tmp_1.arg2 = 47; s.callLocIdx = 10; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; - globals.left___89636 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C89710_VT); + globals.left___20086 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C20160_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P89716_mk(s); + s.tmp_1 = controller_Button_constructor__P20166_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 2; s.tmp_1.arg2 = 49; s.callLocIdx = 11; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - globals.up___89637 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C89710_VT); + globals.up___20087 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C20160_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P89716_mk(s); + s.tmp_1 = controller_Button_constructor__P20166_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 3; s.tmp_1.arg2 = 48; s.callLocIdx = 12; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - globals.right___89638 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C89710_VT); + globals.right___20088 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C20160_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P89716_mk(s); + s.tmp_1 = controller_Button_constructor__P20166_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 4; s.tmp_1.arg2 = 50; s.callLocIdx = 13; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; - globals.down___89639 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C89710_VT); + globals.down___20089 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C20160_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P89716_mk(s); + s.tmp_1 = controller_Button_constructor__P20166_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 7; s.tmp_1.arg2 = 51; s.callLocIdx = 14; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; - globals.menu___89640 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C89655_VT); + globals.menu___20090 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C20105_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Controller_constructor__P89659_mk(s); + s.tmp_1 = controller_Controller_constructor__P20109_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 2; s.tmp_1.arg2 = undefined; s.callLocIdx = 15; s.pc = 12; return s.tmp_1; case 12: r0 = s.retval; - globals.player2___89641 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C89655_VT); + globals.player2___20091 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C20105_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Controller_constructor__P89659_mk(s); + s.tmp_1 = controller_Controller_constructor__P20109_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 3; s.tmp_1.arg2 = undefined; s.callLocIdx = 16; s.pc = 13; return s.tmp_1; case 13: r0 = s.retval; - globals.player3___89642 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C89655_VT); + globals.player3___20092 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C20105_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Controller_constructor__P89659_mk(s); + s.tmp_1 = controller_Controller_constructor__P20109_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 4; s.tmp_1.arg2 = undefined; s.callLocIdx = 17; s.pc = 14; return s.tmp_1; case 14: r0 = s.retval; - globals.player4___89643 = (s.tmp_0); - s.tmp_0 = controller__player1__P89649_mk(s); + globals.player4___20093 = (s.tmp_0); + s.tmp_0 = controller__player1__P20099_mk(s); s.callLocIdx = 18; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - globals.player1___89644 = (r0); - s.tmp_0 = game_addScenePopHandler__P90541_mk(s); - s.tmp_0.arg0 = controller_inline__P92177; + globals.player1___20094 = (r0); + s.tmp_0 = game_addScenePopHandler__P20991_mk(s); + s.tmp_0.arg0 = controller_inline__P22622; s.callLocIdx = 23; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; - s.tmp_0 = game_addScenePushHandler__P90539_mk(s); - s.tmp_0.arg0 = controller_inline__P92217; + s.tmp_0 = game_addScenePushHandler__P20989_mk(s); + s.tmp_0.arg0 = controller_inline__P22662; s.callLocIdx = 25; s.pc = 17; return s.tmp_0; case 17: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C92241_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C22686_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P89716_mk(s); + s.tmp_1 = controller_Button_constructor__P20166_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 0; s.tmp_1.arg2 = -1; s.callLocIdx = 26; s.pc = 18; return s.tmp_1; case 18: r0 = s.retval; - globals.anyButton___89691 = (s.tmp_0); - globals._userEventsEnabled___92255 = (true); - globals.defaultRepeatDelay___92257 = (500); - globals.defaultRepeatInterval___92259 = (30); - s.tmp_0 = SpriteKind_create__P90000_mk(s); + globals.anyButton___20141 = (s.tmp_0); + globals._userEventsEnabled___22700 = (true); + globals.defaultRepeatDelay___22702 = (500); + globals.defaultRepeatInterval___22704 = (30); + s.tmp_0 = SpriteKind_create__P20450_mk(s); s.callLocIdx = 27; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - globals.Player___90001 = (r0); - s.tmp_0 = SpriteKind_create__P90000_mk(s); + globals.Player___20451 = (r0); + s.tmp_0 = SpriteKind_create__P20450_mk(s); s.callLocIdx = 28; s.pc = 20; return s.tmp_0; case 20: r0 = s.retval; - globals.Food___90003 = (r0); - s.tmp_0 = SpriteKind_create__P90000_mk(s); + globals.Food___20453 = (r0); + s.tmp_0 = SpriteKind_create__P20450_mk(s); s.callLocIdx = 29; s.pc = 21; return s.tmp_0; case 21: r0 = s.retval; - globals.Enemy___90004 = (r0); + globals.Enemy___20454 = (r0); r0 = (0.1 * 256); s.tmp_0 = r0; r0 = (s.tmp_0 | 0); - globals.MIN_MOVE_GAP___90042 = (r0); - globals.infoState___92324 = (undefined); - s.tmp_0 = game_addScenePushHandler__P90539_mk(s); - s.tmp_0.arg0 = info_inline__P92328; + globals.MIN_MOVE_GAP___20492 = (r0); + globals.infoState___22769 = (undefined); + s.tmp_0 = game_addScenePushHandler__P20989_mk(s); + s.tmp_0.arg0 = info_inline__P22773; s.callLocIdx = 31; s.pc = 22; return s.tmp_0; case 22: r0 = s.retval; - s.tmp_0 = game_addScenePopHandler__P90541_mk(s); - s.tmp_0.arg0 = info_inline__P92343; + s.tmp_0 = game_addScenePopHandler__P20991_mk(s); + s.tmp_0.arg0 = info_inline__P22788; s.callLocIdx = 35; s.pc = 23; return s.tmp_0; case 23: r0 = s.retval; r0 = pxsim_Array__mk(); - globals.scene_Scene_initializers___90386 = (r0); - r0 = pxsim.image.ofBuffer(_hex92433); - globals.img_trophy_sm___92434 = (r0); - r0 = pxsim.image.ofBuffer(_hex92436); - globals.img_trophy_lg___92437 = (r0); - r0 = pxsim.image.ofBuffer(_hex92439); - globals.img_sleepy_sim___92440 = (r0); - globals.debug___90488 = (false); - globals.stats___90489 = (false); - globals.gameOverConfig___90519 = (gameOverConfig_inline__P92452); - globals.foreverRunning___92471 = (false); - s.tmp_0 = scene_systemMenu_initVolume__P92726_mk(s); + globals.scene_Scene_initializers___20836 = (r0); + r0 = pxsim.image.ofBuffer(_hex22878); + globals.img_trophy_sm___22879 = (r0); + r0 = pxsim.image.ofBuffer(_hex22881); + globals.img_trophy_lg___22882 = (r0); + r0 = pxsim.image.ofBuffer(_hex22884); + globals.img_sleepy_sim___22885 = (r0); + globals.debug___20938 = (false); + globals.stats___20939 = (false); + globals.gameOverConfig___20969 = (gameOverConfig_inline__P22897); + s.tmp_0 = scene_systemMenu_initVolume__P23171_mk(s); s.callLocIdx = 37; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.tmp_0 = scene_systemMenu_initScreen__P92727_mk(s); + s.tmp_0 = scene_systemMenu_initScreen__P23172_mk(s); s.callLocIdx = 38; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - r0 = pxsim_Array__push(globals.scene_Scene_initializers___90386, scene_systemMenu_register__P90627); - r0 = pxsim.image.ofBuffer(_hex92734); - globals.CARD_NORMAL___90632 = (r0); - r0 = pxsim.image.ofBuffer(_hex92736); - globals.CARD_SELECTED___90633 = (r0); - r0 = pxsim.image.ofBuffer(_hex92738); - globals.CARD_ACTIVE___90634 = (r0); - r0 = pxsim.image.ofBuffer(_hex92740); - globals.VOLUME_UP_ICON___90635 = (r0); - r0 = pxsim.image.ofBuffer(_hex92742); - globals.BRIGHTNESS_DOWN_ICON___90636 = (r0); - r0 = pxsim.image.ofBuffer(_hex92744); - globals.CLOSE_MENU_ICON___90637 = (r0); - r0 = pxsim.image.ofBuffer(_hex92746); - globals.VOLUME_DOWN_ICON___90638 = (r0); - r0 = pxsim.image.ofBuffer(_hex92748); - globals.SLEEP_ICON___90639 = (r0); - r0 = pxsim.image.ofBuffer(_hex92750); - globals.CONSOLE_ICON___90640 = (r0); - r0 = pxsim.image.ofBuffer(_hex92752); - globals.BRIGHTNESS_UP_ICON___90641 = (r0); - r0 = pxsim.image.ofBuffer(_hex92754); - globals.STATS_ICON___90642 = (r0); - globals.consoleColor___92757 = (1); - globals.tabSize___92760 = (8); - globals.consoleFont___92766 = (globals.font5___89501); - r0 = pxsim_ImageMethods.height(globals.screen___89553); + r0 = pxsim_Array__push(globals.scene_Scene_initializers___20836, scene_systemMenu_register__P21077); + r0 = pxsim.image.ofBuffer(_hex23179); + globals.CARD_NORMAL___21082 = (r0); + r0 = pxsim.image.ofBuffer(_hex23181); + globals.CARD_SELECTED___21083 = (r0); + r0 = pxsim.image.ofBuffer(_hex23183); + globals.CARD_ACTIVE___21084 = (r0); + r0 = pxsim.image.ofBuffer(_hex23185); + globals.VOLUME_UP_ICON___21085 = (r0); + r0 = pxsim.image.ofBuffer(_hex23187); + globals.BRIGHTNESS_DOWN_ICON___21086 = (r0); + r0 = pxsim.image.ofBuffer(_hex23189); + globals.CLOSE_MENU_ICON___21087 = (r0); + r0 = pxsim.image.ofBuffer(_hex23191); + globals.VOLUME_DOWN_ICON___21088 = (r0); + r0 = pxsim.image.ofBuffer(_hex23193); + globals.SLEEP_ICON___21089 = (r0); + r0 = pxsim.image.ofBuffer(_hex23195); + globals.CONSOLE_ICON___21090 = (r0); + r0 = pxsim.image.ofBuffer(_hex23197); + globals.BRIGHTNESS_UP_ICON___21091 = (r0); + r0 = pxsim.image.ofBuffer(_hex23199); + globals.STATS_ICON___21092 = (r0); + globals.consoleColor___23202 = (1); + globals.tabSize___23205 = (8); + globals.consoleFont___23211 = (globals.font5___19951); + r0 = pxsim_ImageMethods.height(globals.screen___20003); s.tmp_2 = r0; s.tmp_5 = if_charHeight_1_mk(s); - s.tmp_5.arg0 = globals.consoleFont___92766; + s.tmp_5.arg0 = globals.consoleFont___23211; if (!s.tmp_5.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight"); } else { @@ -743,13 +731,13 @@ switch (step) { r0 = pxsim.Math_.floor(s.tmp_1); s.tmp_0 = r0; r0 = (s.tmp_0 - 1); - globals.consoleLines___92771 = (r0); - r0 = pxsim_ImageMethods.width(globals.screen___89553); + globals.consoleLines___23216 = (r0); + r0 = pxsim_ImageMethods.width(globals.screen___20003); 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___92766; + s.tmp_4.arg0 = globals.consoleFont___23211; if (!s.tmp_4.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); } else { @@ -764,22 +752,22 @@ switch (step) { r0 = (s.tmp_1 / s.tmp_3); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - globals.consoleColumns___92781 = (r0); - s.tmp_0 = console_addListener__P87904_mk(s); - s.tmp_0.arg0 = game_consoleOverlay_listener__P92793; + globals.consoleColumns___23226 = (r0); + s.tmp_0 = console_addListener__P18354_mk(s); + s.tmp_0.arg0 = game_consoleOverlay_listener__P23238; s.callLocIdx = 41; s.pc = 28; return s.tmp_0; case 28: r0 = s.retval; s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = MAX_SOURCES_inline__P101284; + s.tmp_0.argL = MAX_SOURCES_inline__P31152; setupLambda(s.tmp_0, s.tmp_0.argL); s.callLocIdx = 43; s.pc = 29; return s.tmp_0; case 29: r0 = s.retval; - globals.MAX_SOURCES___92795 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C90712_VT); + globals.MAX_SOURCES___23240 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C21162_VT); s.tmp_0 = r0; - s.tmp_1 = particles_SprayFactory_constructor__P90713_mk(s); + s.tmp_1 = particles_SprayFactory_constructor__P21163_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 20; s.tmp_1.arg2 = 0; @@ -787,249 +775,74 @@ switch (step) { s.callLocIdx = 44; s.pc = 30; return s.tmp_1; case 30: r0 = s.retval; - globals.defaultFactory___90692 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C90580_VT); + globals.defaultFactory___21142 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C21030_VT); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P90582_mk(s); + s.tmp_1 = Math_FastRandom_constructor__P21032_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = undefined; s.callLocIdx = 45; s.pc = 31; return s.tmp_1; case 31: r0 = s.retval; - globals.galois___92815 = (s.tmp_0); - globals.angleSlice___92823 = (0.06283185307179587); - r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C90787_VT); + globals.galois___23260 = (s.tmp_0); + globals.angleSlice___23268 = (0.06283185307179587); + r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C21237_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ScreenEffect_constructor__P90788_mk(s); + s.tmp_1 = effects_ScreenEffect_constructor__P21238_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 10; s.tmp_1.arg2 = 40; s.tmp_1.arg3 = 4000; - s.tmp_1.arg4 = confetti_inline__P101038; + s.tmp_1.arg4 = confetti_inline__P30906; s.callLocIdx = 51; s.pc = 32; return s.tmp_1; case 32: r0 = s.retval; - globals.confetti___90795 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C90811_VT); + globals.confetti___21245 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C21261_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ImageEffect_constructor__P90812_mk(s); + s.tmp_1 = effects_ImageEffect_constructor__P21262_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 100; - s.tmp_1.arg2 = dissolve_inline__P99480; + s.tmp_1.arg2 = dissolve_inline__P28695; s.callLocIdx = 57; s.pc = 33; return s.tmp_1; case 33: r0 = s.retval; - globals.dissolve___90816 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C90811_VT); + globals.dissolve___21266 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C21261_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ImageEffect_constructor__P90812_mk(s); + s.tmp_1 = effects_ImageEffect_constructor__P21262_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 125; - s.tmp_1.arg2 = melt_inline__P100984; + s.tmp_1.arg2 = melt_inline__P30852; s.callLocIdx = 60; s.pc = 34; return s.tmp_1; case 34: r0 = s.retval; - globals.melt___90817 = (s.tmp_0); - s.tmp_0 = game_setWaitAnyButton__P90521_mk(s); - s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P89726; + globals.melt___21267 = (s.tmp_0); + s.tmp_0 = game_setWaitAnyButton__P20971_mk(s); + s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P20176; s.callLocIdx = 61; s.pc = 35; return s.tmp_0; case 35: r0 = s.retval; - s.tmp_0 = game_eventContext__P90523_mk(s); + s.tmp_0 = game_eventContext__P20973_mk(s); s.callLocIdx = 62; s.pc = 36; return s.tmp_0; case 36: r0 = s.retval; - s.tmp_0 = SpriteKind_create__P90000_mk(s); + s.tmp_0 = SpriteKind_create__P20450_mk(s); s.callLocIdx = 63; s.pc = 37; return s.tmp_0; case 37: r0 = s.retval; - globals.Text___91853 = (r0); - s.tmp_0 = scene_setBackgroundColor__P90404_mk(s); - s.tmp_0.arg0 = 14; - s.callLocIdx = 64; s.pc = 38; return s.tmp_0; - case 38: - r0 = s.retval; - s.tmp_0 = textsprite_create__P91865_mk(s); - s.tmp_0.arg0 = "<"; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 13; - s.callLocIdx = 65; s.pc = 39; return s.tmp_0; - case 39: - r0 = s.retval; - globals.textSprite___91867 = (r0); - s.tmp_0 = TextSprite_setMaxFontHeight__P91857_mk(s); - s.tmp_0.arg0 = globals.textSprite___91867; - s.tmp_0.arg1 = 12; - s.callLocIdx = 66; s.pc = 40; return s.tmp_0; - case 40: - r0 = s.retval; - s.tmp_0 = textsprite_create__P91865_mk(s); - s.tmp_0.arg0 = "/"; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 9; - s.callLocIdx = 67; s.pc = 41; return s.tmp_0; - case 41: - r0 = s.retval; - globals.textSprite2___91868 = (r0); - s.tmp_0 = TextSprite_setMaxFontHeight__P91857_mk(s); - s.tmp_0.arg0 = globals.textSprite2___91868; - s.tmp_0.arg1 = 12; - s.callLocIdx = 68; s.pc = 42; return s.tmp_0; - case 42: - r0 = s.retval; - s.tmp_0 = textsprite_create__P91865_mk(s); - s.tmp_0.arg0 = ">"; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 13; - s.callLocIdx = 69; s.pc = 43; return s.tmp_0; - case 43: - r0 = s.retval; - globals.textSprite3___91869 = (r0); - s.tmp_0 = TextSprite_setMaxFontHeight__P91857_mk(s); - s.tmp_0.arg0 = globals.textSprite3___91869; - s.tmp_0.arg1 = 12; - s.callLocIdx = 70; s.pc = 44; return s.tmp_0; - case 44: - r0 = s.retval; - s.tmp_0 = textsprite_create__P91865_mk(s); - s.tmp_0.arg0 = "TEALS"; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 9; - s.callLocIdx = 71; s.pc = 45; return s.tmp_0; - case 45: - r0 = s.retval; - globals.textSprite4___91870 = (r0); - s.tmp_0 = TextSprite_setMaxFontHeight__P91857_mk(s); - s.tmp_0.arg0 = globals.textSprite4___91870; - s.tmp_0.arg1 = 12; - s.callLocIdx = 72; s.pc = 46; return s.tmp_0; - case 46: - r0 = s.retval; - s.tmp_0 = textsprite_create__P91865_mk(s); - s.tmp_0.arg0 = "|"; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 9; - s.callLocIdx = 73; s.pc = 47; return s.tmp_0; - case 47: - r0 = s.retval; - globals.textSprite5___91871 = (r0); - s.tmp_0 = TextSprite_setMaxFontHeight__P91857_mk(s); - s.tmp_0.arg0 = globals.textSprite5___91871; - s.tmp_0.arg1 = 12; - s.callLocIdx = 74; s.pc = 48; return s.tmp_0; - case 48: - r0 = s.retval; - s.tmp_0 = Sprite_setPosition__P89930_mk(s); - s.tmp_0.arg0 = globals.textSprite___91867; - s.tmp_0.arg1 = 10; - s.tmp_0.arg2 = 10; - s.callLocIdx = 75; s.pc = 49; return s.tmp_0; - case 49: - r0 = s.retval; - s.tmp_0 = Sprite_left__P89921_mk(s); - s.tmp_0.arg0 = globals.textSprite2___91868; - s.tmp_1 = Sprite_right__P89922_mk(s); - s.tmp_1.arg0 = globals.textSprite___91867; - s.callLocIdx = 76; s.pc = 51; return s.tmp_1; - case 51: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 77; s.pc = 50; return s.tmp_0; - case 50: - r0 = s.retval; - s.tmp_0 = Sprite_y__P89878_mk(s); - s.tmp_0.arg0 = globals.textSprite2___91868; - s.tmp_1 = Sprite_y__P89877_mk(s); - s.tmp_1.arg0 = globals.textSprite___91867; - s.callLocIdx = 78; s.pc = 53; return s.tmp_1; - case 53: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 79; s.pc = 52; return s.tmp_0; - case 52: - r0 = s.retval; - s.tmp_0 = Sprite_left__P89921_mk(s); - s.tmp_0.arg0 = globals.textSprite3___91869; - s.tmp_1 = Sprite_right__P89922_mk(s); - s.tmp_1.arg0 = globals.textSprite2___91868; - s.callLocIdx = 80; s.pc = 55; return s.tmp_1; - case 55: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 81; s.pc = 54; return s.tmp_0; - case 54: - r0 = s.retval; - s.tmp_0 = Sprite_y__P89878_mk(s); - s.tmp_0.arg0 = globals.textSprite3___91869; - s.tmp_1 = Sprite_y__P89877_mk(s); - s.tmp_1.arg0 = globals.textSprite___91867; - s.callLocIdx = 82; s.pc = 57; return s.tmp_1; - case 57: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 83; s.pc = 56; return s.tmp_0; - case 56: - r0 = s.retval; - s.tmp_0 = Sprite_left__P89921_mk(s); - s.tmp_0.arg0 = globals.textSprite4___91870; - s.tmp_1 = Sprite_right__P89922_mk(s); - s.tmp_1.arg0 = globals.textSprite3___91869; - s.callLocIdx = 84; s.pc = 59; return s.tmp_1; - case 59: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 85; s.pc = 58; return s.tmp_0; - case 58: - r0 = s.retval; - s.tmp_0 = Sprite_y__P89878_mk(s); - s.tmp_0.arg0 = globals.textSprite4___91870; - s.tmp_1 = Sprite_y__P89877_mk(s); - s.tmp_1.arg0 = globals.textSprite___91867; - s.callLocIdx = 86; s.pc = 61; return s.tmp_1; - case 61: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 87; s.pc = 60; return s.tmp_0; - case 60: - r0 = s.retval; - s.tmp_0 = Sprite_left__P89921_mk(s); - s.tmp_0.arg0 = globals.textSprite5___91871; - s.tmp_1 = Sprite_right__P89922_mk(s); - s.tmp_1.arg0 = globals.textSprite4___91870; - s.callLocIdx = 88; s.pc = 63; return s.tmp_1; - case 63: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 89; s.pc = 62; return s.tmp_0; - case 62: - r0 = s.retval; - s.tmp_0 = Sprite_y__P89878_mk(s); - s.tmp_0.arg0 = globals.textSprite5___91871; - s.tmp_1 = Sprite_y__P89877_mk(s); - s.tmp_1.arg0 = globals.textSprite___91867; - s.callLocIdx = 90; s.pc = 65; return s.tmp_1; - case 65: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 91; s.pc = 64; return s.tmp_0; - case 64: - r0 = s.retval; - s.tmp_0 = forever__P89604_mk(s); - s.tmp_0.arg0 = inline__P94556; - s.callLocIdx = 96; s.pc = 66; return s.tmp_0; - case 66: - r0 = s.retval; + globals.Text___22303 = (r0); r0 = undefined; return leave(s, r0) default: oops() } } } -_main___P106056.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"pxt_modules/arcade-text/main.ts","functionName":"
","argumentNames":[]} -_main___P106056.continuations = [ ] +_main___P35932.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"pxt_modules/arcade-text/main.ts","functionName":"
","argumentNames":[]} +_main___P35932.continuations = [ ] -function _main___P106056_mk(s) { +function _main___P35932_mk(s) { checkStack(s.depth); return { - parent: s, fn: _main___P106056, depth: s.depth + 1, + parent: s, fn: _main___P35932, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1039,29 +852,29 @@ function _main___P106056_mk(s) { tmp_5: undefined, } } -const _hex95562 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") -const _hex95564 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") -const _hex98597 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") -const _hex92118 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca39af00d003fad32e3d0d59dffa4839f5c406cd1d1d1191919000000") -const _hex92433 = pxsim.BufferMethods.createBufferFromHex("870407000800000000000000404400005055040450555505505501011011000000000000") -const _hex92436 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000050050000000000000550000000005045444404000000455544444400040045555555550404004555555555450500455555555511050045555555150101004555111111000100501511110100000000000550000000000000500500000000000000000000000000000000000000") -const _hex92439 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000006666666666060060ffffff666f660060fffffff6ff660060fff1ff666f660060fff1ff6666660060fffff16666660060fffff16666660060fff1ff6666660060fff1ff66f6660060ffffff6666660060fffffff6666600006666666666060000000000000000000000000000000000") -const _hex92734 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") -const _hex92736 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") -const _hex92738 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") -const _hex92740 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex92742 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex92744 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex92746 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex92748 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex92750 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex92752 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex92754 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex25865 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") +const _hex25867 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") +const _hex27717 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") +const _hex22563 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca39af00d003fad32e3d0d59dffa4839f5c406cd1d1d1191919000000") +const _hex22878 = pxsim.BufferMethods.createBufferFromHex("870407000800000000000000404400005055040450555505505501011011000000000000") +const _hex22881 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000050050000000000000550000000005045444404000000455544444400040045555555550404004555555555450500455555555511050045555555150101004555111111000100501511110100000000000550000000000000500500000000000000000000000000000000000000") +const _hex22884 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000006666666666060060ffffff666f660060fffffff6ff660060fff1ff666f660060fff1ff6666660060fffff16666660060fffff16666660060fff1ff6666660060fff1ff66f6660060ffffff6666660060fffffff6666600006666666666060000000000000000000000000000000000") +const _hex23179 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") +const _hex23181 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") +const _hex23183 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") +const _hex23185 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex23187 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex23189 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex23191 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex23193 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex23195 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex23197 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex23199 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -function control___screen_inline__P92107(s) { +function control___screen_inline__P22552(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1074,23 +887,23 @@ switch (step) { case 1: r0 = pxsim_numops_toBoolDecr(true); if (!r0) { step = 4; continue; } - globals.__updated___92104 = (false); - s.tmp_0 = pause__P87934_mk(s); + globals.__updated___22549 = (false); + s.tmp_0 = pause__P18384_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___92104); + r0 = pxsim_numops_toBoolDecr(globals.__updated___22549); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_2 = control___screen_update__P89514_mk(s); + s.tmp_2 = control___screen_update__P19964_mk(s); s.callLocIdx = 3; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; - globals.__updated___92104 = (true); + globals.__updated___22549 = (true); case 2: case 3: { step = 1; continue; } @@ -1099,12 +912,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control___screen_inline__P92107.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"inline","argumentNames":[]} +control___screen_inline__P22552.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__P92107_mk(s) { +function control___screen_inline__P22552_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_inline__P92107, depth: s.depth + 1, + parent: s, fn: control___screen_inline__P22552, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1115,7 +928,7 @@ function control___screen_inline__P92107_mk(s) { -function _screen_internal_inline__P92127(s) { +function _screen_internal_inline__P22572(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1125,17 +938,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_pxtcore.updateScreen(globals.screen___89553); + r0 = pxsim_pxtcore.updateScreen(globals.screen___20003); r0 = undefined; return leave(s, r0) default: oops() } } } -_screen_internal_inline__P92127.info = {"start":1122,"length":26,"line":32,"column":33,"endLine":32,"endColumn":59,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":[]} +_screen_internal_inline__P22572.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__P92127_mk(s) { +function _screen_internal_inline__P22572_mk(s) { checkStack(s.depth); return { - parent: s, fn: _screen_internal_inline__P92127, depth: s.depth + 1, + parent: s, fn: _screen_internal_inline__P22572, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -1143,7 +956,7 @@ function _screen_internal_inline__P92127_mk(s) { -function _screen_internal_inline__P92132(s) { +function _screen_internal_inline__P22577(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1162,12 +975,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -_screen_internal_inline__P92132.info = {"start":1185,"length":56,"line":33,"column":35,"endLine":35,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":["msg"]} +_screen_internal_inline__P22577.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__P92132_mk(s) { +function _screen_internal_inline__P22577_mk(s) { checkStack(s.depth); return { - parent: s, fn: _screen_internal_inline__P92132, depth: s.depth + 1, + parent: s, fn: _screen_internal_inline__P22577, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -1176,7 +989,7 @@ function _screen_internal_inline__P92132_mk(s) { -function controller_inline__P92177(s) { +function controller_inline__P22622(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1186,16 +999,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.stateWhenPushed___92178 = undefined; - s.i___92184 = undefined; - s.p___92190 = undefined; - s.tmp_0 = game_currentScene__P90520_mk(s); + s.stateWhenPushed___22623 = undefined; + s.i___22629 = undefined; + s.p___22635 = undefined; + s.tmp_0 = game_currentScene__P20970_mk(s); s.callLocIdx = 19; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; r0 = r0.fields["controllerConnectionState"]; - s.stateWhenPushed___92178 = (r0); - r0 = pxsim_numops_toBoolDecr(s.stateWhenPushed___92178); + s.stateWhenPushed___22623 = (r0); + r0 = pxsim_numops_toBoolDecr(s.stateWhenPushed___22623); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -1204,24 +1017,24 @@ switch (step) { { step = 11; continue; } case 1: case 2: - s.i___92184 = (0); + s.i___22629 = (0); case 3: - s.tmp_1 = r0 = s.i___92184; - r0 = pxsim_Array__length(s.stateWhenPushed___92178); + s.tmp_1 = r0 = s.i___22629; + r0 = pxsim_Array__length(s.stateWhenPushed___22623); 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 = pxsim_Array__getAt(globals._players___92175, s.i___92184); - s.p___92190 = (r0); - s.tmp_0 = r0 = s.p___92190; + r0 = pxsim_Array__getAt(globals._players___22620, s.i___22629); + s.p___22635 = (r0); + s.tmp_0 = r0 = s.p___22635; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 4; continue; } r0 = s.tmp_0; { step = 5; continue; } case 4: - r0 = pxsim_Array__getAt(s.stateWhenPushed___92178, s.i___92184); + r0 = pxsim_Array__getAt(s.stateWhenPushed___22623, s.i___22629); s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); s.tmp_4 = r0; @@ -1231,7 +1044,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; - r0 = s.p___92190.fields["_connected"]; + r0 = s.p___22635.fields["_connected"]; s.tmp_10 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_10); s.tmp_9 = r0; @@ -1247,7 +1060,7 @@ switch (step) { s.tmp_11 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_11); if (!r0) { step = 8; continue; } - r0 = s.p___92190.fields["_connected"]; + r0 = s.p___22635.fields["_connected"]; s.tmp_12 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_12); if (!r0) { step = 6; continue; } @@ -1258,13 +1071,13 @@ switch (step) { case 7: // jmp value (already in r0) s.tmp_13 = r0; - r0 = s.p___92190.fields["_id"]; + r0 = s.p___22635.fields["_id"]; s.tmp_14 = r0; r0 = pxsim.control.raiseEvent(s.tmp_14, s.tmp_13); case 8: case 9: - r0 = (s.i___92184 + 1); - s.i___92184 = (r0); + r0 = (s.i___22629 + 1); + s.i___22629 = (r0); { step = 3; continue; } case 10: case 11: @@ -1272,12 +1085,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_inline__P92177.info = {"start":344,"length":582,"line":15,"column":28,"endLine":30,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} +controller_inline__P22622.info = {"start":344,"length":582,"line":15,"column":28,"endLine":30,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} -function controller_inline__P92177_mk(s) { +function controller_inline__P22622_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_inline__P92177, depth: s.depth + 1, + parent: s, fn: controller_inline__P22622, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1294,16 +1107,16 @@ function controller_inline__P92177_mk(s) { tmp_12: undefined, tmp_13: undefined, tmp_14: undefined, - stateWhenPushed___92178: undefined, - i___92184: undefined, - p___92190: undefined, + stateWhenPushed___22623: undefined, + i___22629: undefined, + p___22635: undefined, } } -function controller_inline__P92217(s) { +function controller_inline__P22662(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1313,7 +1126,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___92222 = undefined; + s.i___22667 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -1322,43 +1135,43 @@ switch (step) { r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = (s.tmp_0).fields["controllerConnectionState"] = (s.tmp_1); - s.i___92222 = (0); + s.i___22667 = (0); case 1: - s.tmp_1 = r0 = s.i___92222; - r0 = pxsim_Array__length(globals._players___92175); + s.tmp_1 = r0 = s.i___22667; + r0 = pxsim_Array__length(globals._players___22620); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(globals._players___92175, s.i___92222); + r0 = pxsim_Array__getAt(globals._players___22620, s.i___22667); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 2; continue; } r0 = s.arg0.fields["controllerConnectionState"]; s.tmp_4 = r0; - s.tmp_5 = r0 = s.i___92222; - r0 = pxsim_Array__getAt(globals._players___92175, s.i___92222); + s.tmp_5 = r0 = s.i___22667; + r0 = pxsim_Array__getAt(globals._players___22620, s.i___22667); s.tmp_7 = r0; r0 = s.tmp_7.fields["_connected"]; s.tmp_6 = r0; r0 = pxsim_Array_.setAt(s.tmp_4, s.tmp_5, s.tmp_6); case 2: case 3: - r0 = (s.i___92222 + 1); - s.i___92222 = (r0); + r0 = (s.i___22667 + 1); + s.i___22667 = (r0); { step = 1; continue; } case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_inline__P92217.info = {"start":957,"length":254,"line":31,"column":29,"endLine":38,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["oldScene"]} +controller_inline__P22662.info = {"start":957,"length":254,"line":31,"column":29,"endLine":38,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["oldScene"]} -function controller_inline__P92217_mk(s) { +function controller_inline__P22662_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_inline__P92217, depth: s.depth + 1, + parent: s, fn: controller_inline__P22662, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1368,7 +1181,7 @@ function controller_inline__P92217_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - i___92222: undefined, + i___22667: undefined, arg0: undefined, } } @@ -1376,7 +1189,7 @@ function controller_inline__P92217_mk(s) { -function info_inline__P92328(s) { +function info_inline__P22773(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1390,36 +1203,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.infoState___92324); + r0 = pxsim_numops_toBoolDecr(globals.infoState___22769); if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___92326); + r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___22771); s.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___92326 = (r0); + globals.infoStateStack___22771 = (r0); case 1: case 2: r0 = pxsim_pxtrt.mkMap(); s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___92324); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___22769); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "scene", s.arg0); - r0 = pxsim_Array__push(globals.infoStateStack___92326, s.tmp_0); - globals.infoState___92324 = (undefined); + r0 = pxsim_Array__push(globals.infoStateStack___22771, s.tmp_0); + globals.infoState___22769 = (undefined); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -info_inline__P92328.info = {"start":2619,"length":259,"line":94,"column":29,"endLine":103,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["oldScene"]} +info_inline__P22773.info = {"start":2619,"length":259,"line":94,"column":29,"endLine":103,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["oldScene"]} -function info_inline__P92328_mk(s) { +function info_inline__P22773_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_inline__P92328, depth: s.depth + 1, + parent: s, fn: info_inline__P22773, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1430,7 +1243,7 @@ function info_inline__P92328_mk(s) { -function info_inline__P92343(s) { +function info_inline__P22788(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1440,30 +1253,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___92344 = undefined; - s.nextState___92353 = undefined; - s.tmp_0 = game_currentScene__P90520_mk(s); + s.scene___22789 = undefined; + s.nextState___22798 = undefined; + s.tmp_0 = game_currentScene__P20970_mk(s); s.callLocIdx = 32; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.scene___92344 = (r0); - globals.infoState___92324 = (undefined); - s.tmp_0 = r0 = globals.infoStateStack___92326; + s.scene___22789 = (r0); + globals.infoState___22769 = (undefined); + s.tmp_0 = r0 = globals.infoStateStack___22771; 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___92326); + r0 = pxsim_Array__length(globals.infoStateStack___22771); 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___92326); - s.nextState___92353 = (r0); + r0 = pxsim_Array_.pop(globals.infoStateStack___22771); + s.nextState___22798 = (r0); s.tmp_2 = if_scene_1_mk(s); - s.tmp_2.arg0 = s.nextState___92353; + s.tmp_2.arg0 = s.nextState___22798; if (!s.tmp_2.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "scene"); } else { @@ -1475,12 +1288,12 @@ switch (step) { case 8: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 == s.scene___92344); + r0 = (s.tmp_1 == s.scene___22789); 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___92353; + s.tmp_3.arg0 = s.nextState___22798; if (!s.tmp_3.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "state"); } else { @@ -1491,10 +1304,10 @@ switch (step) { } case 9: r0 = s.retval; - globals.infoState___92324 = (r0); + globals.infoState___22769 = (r0); { step = 4; continue; } case 3: - r0 = pxsim_Array__push(globals.infoStateStack___92326, s.nextState___92353); + r0 = pxsim_Array__push(globals.infoStateStack___22771, s.nextState___22798); case 4: case 5: case 6: @@ -1502,26 +1315,26 @@ switch (step) { return leave(s, r0) default: oops() } } } -info_inline__P92343.info = {"start":2910,"length":376,"line":105,"column":28,"endLine":116,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} +info_inline__P22788.info = {"start":2910,"length":376,"line":105,"column":28,"endLine":116,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} -function info_inline__P92343_mk(s) { +function info_inline__P22788_mk(s) { checkStack(s.depth); return { - parent: s, fn: info_inline__P92343, depth: s.depth + 1, + parent: s, fn: info_inline__P22788, depth: s.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___92344: undefined, - nextState___92353: undefined, + scene___22789: undefined, + nextState___22798: undefined, } } -function gameOverConfig_inline__P92452(s) { +function gameOverConfig_inline__P22897(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1531,32 +1344,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals._gameOverConfig___92451); + r0 = pxsim_numops_toBoolDecr(globals._gameOverConfig___22896); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkClassInstance(game_GameOverConfig__C90494_VT); + r0 = pxsim_pxtcore_mkClassInstance(game_GameOverConfig__C20944_VT); s.tmp_2 = r0; - s.tmp_3 = game_GameOverConfig_constructor__P90509_mk(s); + s.tmp_3 = game_GameOverConfig_constructor__P20959_mk(s); s.tmp_3.arg0 = s.tmp_2; s.callLocIdx = 36; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; - globals._gameOverConfig___92451 = (s.tmp_2); + globals._gameOverConfig___22896 = (s.tmp_2); case 1: case 2: - r0 = globals._gameOverConfig___92451; + r0 = globals._gameOverConfig___22896; return leave(s, r0) default: oops() } } } -gameOverConfig_inline__P92452.info = {"start":3714,"length":115,"line":107,"column":34,"endLine":110,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} +gameOverConfig_inline__P22897.info = {"start":3714,"length":115,"line":107,"column":34,"endLine":110,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} -function gameOverConfig_inline__P92452_mk(s) { +function gameOverConfig_inline__P22897_mk(s) { checkStack(s.depth); return { - parent: s, fn: gameOverConfig_inline__P92452, depth: s.depth + 1, + parent: s, fn: gameOverConfig_inline__P22897, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1568,7 +1381,7 @@ function gameOverConfig_inline__P92452_mk(s) { -function inline__P94556(s) { +function game_eventContext__P20973(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1578,39 +1391,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = TextSprite_setText__P91859_mk(s); - s.tmp_0.arg0 = globals.textSprite5___91871; - s.tmp_0.arg1 = "|"; - s.callLocIdx = 92; s.pc = 1; return s.tmp_0; + s.tmp_0 = game_init__P22912_mk(s); + s.tmp_0.arg0 = undefined; + s.callLocIdx = 943; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = pause__P87934_mk(s); - s.tmp_0.arg0 = 500; - s.callLocIdx = 93; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = TextSprite_setText__P91859_mk(s); - s.tmp_0.arg0 = globals.textSprite5___91871; - r0 = pxsim_String_.mkEmpty(); - s.tmp_0.arg1 = r0; - s.callLocIdx = 94; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = pause__P87934_mk(s); - s.tmp_0.arg0 = 500; - s.callLocIdx = 95; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = undefined; + r0 = globals._scene___22904.fields["eventContext"]; return leave(s, r0) default: oops() } } } -inline__P94556.info = {"start":735,"length":102,"line":20,"column":8,"endLine":25,"endColumn":1,"fileName":"main.ts","functionName":"inline","argumentNames":[]} +game_eventContext__P20973.info = {"start":4442,"length":112,"line":136,"column":4,"endLine":139,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"eventContext","argumentNames":[]} -function inline__P94556_mk(s) { +function game_eventContext__P20973_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P94556, depth: s.depth + 1, + parent: s, fn: game_eventContext__P20973, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -1619,7 +1414,7 @@ function inline__P94556_mk(s) { -function TextSprite_setText__P91859(s) { +function game_init__P22912(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1631,49 +1426,69 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, TextSprite__C91854_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg1; + r0 = pxsim_numops_toBoolDecr(globals._scene___22904); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_String_.mkEmpty(); + r0 = s.arg0; case 2: // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.arg0).fields["text"] = (s.tmp_1); - s.tmp_0 = TextSprite_update__P91856_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1315; s.pc = 3; return s.tmp_0; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkClassInstance(scene_Scene__C20814_VT); + s.tmp_3 = r0; + s.tmp_4 = scene_Scene_constructor__P20837_mk(s); + s.tmp_4.arg0 = s.tmp_3; + s.tmp_5 = control_pushEventContext__P18380_mk(s); + s.callLocIdx = 944; s.pc = 6; return s.tmp_5; + case 6: + r0 = s.retval; + s.tmp_4.arg1 = r0; + s.tmp_4.arg2 = globals._scene___22904; + s.callLocIdx = 945; s.pc = 5; return s.tmp_4; + case 5: + r0 = s.retval; + globals._scene___22904 = (s.tmp_3); case 3: + case 4: + s.tmp_0 = scene_Scene_init__P20838_mk(s); + s.tmp_0.arg0 = globals._scene___22904; + s.callLocIdx = 946; s.pc = 7; return s.tmp_0; + case 7: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -TextSprite_setText__P91859.info = {"start":2447,"length":89,"line":66,"column":4,"endLine":69,"endColumn":5,"fileName":"pxt_modules/arcade-text/text.ts","functionName":"setText","argumentNames":["this","text"]} +game_init__P22912.info = {"start":4560,"length":194,"line":141,"column":4,"endLine":146,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} -function TextSprite_setText__P91859_mk(s) { +function game_init__P22912_mk(s) { checkStack(s.depth); return { - parent: s, fn: TextSprite_setText__P91859, depth: s.depth + 1, + parent: s, fn: game_init__P22912, depth: s.depth + 1, pc: 0, retval: undefined, 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 TextSprite_update__P91856(s) { +function scene_Scene_init__P20838(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1683,260 +1498,130 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.borderAndPadding___94572 = undefined; - s.iconWidth___94584 = undefined; - s.iconHeight___94598 = undefined; - s.font___94605 = undefined; - s.width___94613 = undefined; - s.height___94626 = undefined; - s.img___94636 = undefined; - s.iconHeightOffset___94668 = undefined; - s.textHeightOffset___94680 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, TextSprite__C91854_VT)) failedCast(r0); - r0 = s.arg0.fields["borderWidth"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["padding"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0 = r0; - r0 = s.arg0.fields["outlineWidth"]; - s.tmp_3 = r0; - r0 = (s.tmp_0 + s.tmp_3); - s.borderAndPadding___94572 = (r0); - r0 = s.arg0.fields["icon"]; + if (!checkSubtype(r0, scene_Scene__C20814_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 = s.arg0.fields["icon"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_3); - s.tmp_2 = r0; - r0 = s.arg0.fields["padding"]; - s.tmp_4 = r0; - r0 = (s.tmp_2 + s.tmp_4); - s.tmp_1 = r0; - r0 = s.arg0.fields["outlineWidth"]; - s.tmp_5 = r0; - r0 = (s.tmp_1 + s.tmp_5); - { step = 2; continue; } + { step = 3; continue; } case 1: - r0 = 0; case 2: - // jmp value (already in r0) - s.tmp_6 = r0; - s.iconWidth___94584 = (s.tmp_6); - r0 = s.arg0.fields["icon"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.arg0.fields["icon"]; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_1); - { step = 4; continue; } - case 3: - r0 = 0; + s.tmp_1 = power_poke__P19900_mk(s); + s.callLocIdx = 907; s.pc = 4; return s.tmp_1; case 4: - // jmp value (already in r0) - s.tmp_2 = r0; - s.iconHeight___94598 = (s.tmp_2); - s.tmp_0 = textsprite_getFontForTextAndHeight__P91864_mk(s); - r0 = s.arg0.fields["text"]; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["maxFontHeight"]; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1304; s.pc = 9; return s.tmp_0; - case 9: r0 = s.retval; - s.font___94605 = (r0); - s.tmp_1 = r0 = s.iconWidth___94584; - s.tmp_4 = if_charWidth_1_mk(s); - s.tmp_4.arg0 = s.font___94605; - 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 = 1305; s.pc = 10; return s.tmp_4; } - } - case 10: + 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__P24975); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P18374_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 = 910; s.pc = 5; return s.tmp_1; + case 5: r0 = s.retval; - s.tmp_3 = r0; - r0 = s.arg0.fields["text"]; - s.tmp_6 = r0; - r0 = pxsim_String_.length(s.tmp_6); - 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 = control_EventContext_registerFrameHandler__P18374_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 13; + s.tmp_0.arg2 = controller__moveSprites__P20104; + s.callLocIdx = 911; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P24999); s.tmp_0 = r0; - r0 = (2 * s.borderAndPadding___94572); - s.tmp_7 = r0; - r0 = (s.tmp_0 + s.tmp_7); - s.width___94613 = (r0); - s.tmp_1 = Math_max__P87651_mk(s); - s.tmp_1.arg0 = s.iconHeight___94598; - s.tmp_2 = if_charHeight_1_mk(s); - s.tmp_2.arg0 = s.font___94605; - 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 = 1306; s.pc = 12; return s.tmp_2; } - } - case 12: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P18374_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 = 913; s.pc = 7; return s.tmp_1; + case 7: r0 = s.retval; - s.tmp_1.arg1 = r0; - s.callLocIdx = 1307; s.pc = 11; return s.tmp_1; - case 11: + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P25012); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P18374_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 = 917; s.pc = 8; return s.tmp_1; + case 8: r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P25033); s.tmp_0 = r0; - r0 = (2 * s.borderAndPadding___94572); - s.tmp_3 = r0; - r0 = (s.tmp_0 + s.tmp_3); - s.height___94626 = (r0); - r0 = pxsim.image.create(s.width___94613, s.height___94626); - s.img___94636 = (r0); - r0 = s.arg0.fields["borderColor"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.fill(s.img___94636, s.tmp_0); - s.tmp_0 = helpers_imageFillRect__P89477_mk(s); - s.tmp_0.arg0 = s.img___94636; - r0 = s.arg0.fields["borderWidth"]; - s.tmp_0.arg1 = r0; - r0 = s.arg0.fields["borderWidth"]; - s.tmp_0.arg2 = r0; - s.tmp_1 = r0 = s.width___94613; - r0 = s.arg0.fields["borderWidth"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 * 2); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.tmp_0.arg3 = r0; - s.tmp_4 = r0 = s.height___94626; - r0 = s.arg0.fields["borderWidth"]; - s.tmp_6 = r0; - r0 = (s.tmp_6 * 2); - s.tmp_5 = r0; - r0 = (s.tmp_4 - s.tmp_5); - s.tmp_0.arg4 = r0; - r0 = s.arg0.fields["bg"]; - s.tmp_0.arg5 = r0; - s.callLocIdx = 1308; s.pc = 13; return s.tmp_0; - case 13: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P18374_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 = 919; s.pc = 9; return s.tmp_1; + case 9: r0 = s.retval; - r0 = s.arg0.fields["icon"]; + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P25041); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = (s.height___94626 - s.iconHeight___94598); - s.tmp_1 = r0; - r0 = (s.tmp_1 / 2); - s.iconHeightOffset___94668 = (r0); - s.tmp_0 = textsprite_renderScaledImage__P91863_mk(s); - r0 = s.arg0.fields["icon"]; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P18374_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 = 923; s.pc = 10; return s.tmp_1; + case 10: + r0 = s.retval; + s.tmp_0 = control_EventContext_registerFrameHandler__P18374_mk(s); + r0 = s.arg0.fields["eventContext"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.img___94636; - s.tmp_0.arg2 = s.borderAndPadding___94572; - s.tmp_0.arg3 = s.iconHeightOffset___94668; - s.tmp_0.arg4 = 0; - s.callLocIdx = 1309; s.pc = 14; return s.tmp_0; - case 14: + s.tmp_0.arg1 = 200; + s.tmp_0.arg2 = control___screen_update__P19964; + s.callLocIdx = 924; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; - case 5: - case 6: - s.tmp_1 = r0 = s.height___94626; - s.tmp_3 = if_charHeight_1_mk(s); - s.tmp_3.arg0 = s.font___94605; - 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 = 1310; s.pc = 15; return s.tmp_3; } - } - case 15: + s.tmp_0 = multiplayer_initServer__P21359_mk(s); + s.callLocIdx = 925; s.pc = 12; return s.tmp_0; + case 12: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 / 2); - s.textHeightOffset___94680 = (r0); - s.tmp_0 = helpers_imagePrint__P89511_mk(s); - s.tmp_0.arg0 = s.img___94636; - r0 = s.arg0.fields["text"]; - s.tmp_0.arg1 = r0; - r0 = (s.iconWidth___94584 + s.borderAndPadding___94572); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.textHeightOffset___94680; - r0 = s.arg0.fields["fg"]; - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.font___94605; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1311; s.pc = 16; return s.tmp_0; - case 16: + s.tmp_0 = multiplayer_initPlayerConnectionListeners__P21360_mk(s); + s.callLocIdx = 926; s.pc = 13; return s.tmp_0; + case 13: r0 = s.retval; - r0 = s.arg0.fields["outlineWidth"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P25072); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_2 = textsprite_outlineOtherColor__P91866_mk(s); - s.tmp_2.arg0 = s.img___94636; - r0 = s.arg0.fields["fg"]; - s.tmp_2.arg1 = r0; - r0 = s.arg0.fields["outlineWidth"]; - s.tmp_2.arg2 = r0; - r0 = s.arg0.fields["outlineColor"]; - s.tmp_2.arg3 = r0; - s.callLocIdx = 1312; s.pc = 17; return s.tmp_2; - case 17: - r0 = s.retval; - case 7: - case 8: - s.tmp_0 = Sprite_setImage__P89912_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.img___94636; - s.callLocIdx = 1313; s.pc = 18; return s.tmp_0; - case 18: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = helpers_arrayForEach__P18080_mk(s); + s.tmp_1.arg0 = globals.scene_Scene_initializers___20836; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 928; s.pc = 14; return s.tmp_1; + case 14: r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -TextSprite_update__P91856.info = {"start":678,"length":1260,"line":26,"column":4,"endLine":45,"endColumn":5,"fileName":"pxt_modules/arcade-text/text.ts","functionName":"update","argumentNames":["this"]} +scene_Scene_init__P20838.info = {"start":4432,"length":2572,"line":127,"column":8,"endLine":187,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]} -function TextSprite_update__P91856_mk(s) { +function scene_Scene_init__P20838_mk(s) { checkStack(s.depth); return { - parent: s, fn: TextSprite_update__P91856, depth: s.depth + 1, + parent: s, fn: scene_Scene_init__P20838, depth: s.depth + 1, pc: 0, retval: undefined, 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, - borderAndPadding___94572: undefined, - iconWidth___94584: undefined, - iconHeight___94598: undefined, - font___94605: undefined, - width___94613: undefined, - height___94626: undefined, - img___94636: undefined, - iconHeightOffset___94668: undefined, - textHeightOffset___94680: undefined, arg0: undefined, } } @@ -1944,7 +1629,7 @@ function TextSprite_update__P91856_mk(s) { -function textsprite_outlineOtherColor__P91866(s) { +function scene_Scene_init_inline__P24975(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1954,228 +1639,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.toOutlineX___95093 = undefined; - s.toOutlineY___95095 = undefined; - s.x___95097 = undefined; - s.y___95103 = undefined; - s.sx___95109 = undefined; - s.sy___95114 = undefined; - s.i___95193 = undefined; - s.x___95199 = undefined; - s.y___95203 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.lambdaArgs = null; - } - r0 = pxsim_Array__mk(); - s.toOutlineX___95093 = (r0); - r0 = pxsim_Array__mk(); - s.toOutlineY___95095 = (r0); - s.x___95097 = (0); - case 1: - s.tmp_1 = r0 = s.x___95097; - r0 = pxsim_ImageMethods.width(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 21; continue; } - s.y___95103 = (0); - case 2: - s.tmp_1 = r0 = s.y___95103; - r0 = pxsim_ImageMethods.height(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - s.sx___95109 = (0); - case 3: - r0 = (s.sx___95109 <= s.arg2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 19; continue; } - s.sy___95114 = (0); - case 4: - r0 = (s.sy___95114 <= s.arg2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 18; continue; } - r0 = (s.sx___95109 + s.sy___95114); + s.tmp_0 = r0 = s.caps[0]; + r0 = s.tmp_0.fields["_millis"]; s.tmp_2 = r0; - r0 = (s.tmp_2 === 0); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 5; continue; } - { step = 17; continue; } - case 5: - case 6: - r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___95097, s.y___95103); - s.tmp_4 = r0; - r0 = (s.tmp_4 === s.arg1); + r0 = s.caps[0].fields["eventContext"]; + r0 = r0.fields["deltaTimeMillis"]; s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 7; continue; } - { step = 17; continue; } - case 7: - case 8: - s.tmp_7 = r0 = s.arg0; - r0 = (s.x___95097 + s.sx___95109); - s.tmp_8 = r0; - r0 = (s.y___95103 + s.sy___95114); - s.tmp_9 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_7, s.tmp_8, s.tmp_9); - s.tmp_6 = r0; - r0 = (s.tmp_6 === s.arg1); - s.tmp_5 = r0; - r0 = pxsim_numops_toBool(s.tmp_5); - if (!r0) { step = 9; continue; } - r0 = s.tmp_5; - { step = 10; continue; } - case 9: - s.tmp_11 = r0 = s.arg0; - r0 = (s.x___95097 - s.sx___95109); - s.tmp_12 = r0; - r0 = (s.y___95103 + s.sy___95114); - s.tmp_13 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_11, s.tmp_12, s.tmp_13); - s.tmp_10 = r0; - r0 = (s.tmp_10 === s.arg1); - case 10: - // jmp value (already in r0) - s.tmp_14 = r0; - r0 = pxsim_numops_toBool(s.tmp_14); - if (!r0) { step = 11; continue; } - r0 = s.tmp_14; - { step = 12; continue; } - case 11: - s.tmp_16 = r0 = s.arg0; - r0 = (s.x___95097 + s.sx___95109); - s.tmp_17 = r0; - r0 = (s.y___95103 - s.sy___95114); - s.tmp_18 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_16, s.tmp_17, s.tmp_18); - s.tmp_15 = r0; - r0 = (s.tmp_15 === s.arg1); - case 12: - // jmp value (already in r0) - s.tmp_19 = r0; - r0 = pxsim_numops_toBool(s.tmp_19); - if (!r0) { step = 13; continue; } - r0 = s.tmp_19; - { step = 14; continue; } - case 13: - s.tmp_21 = r0 = s.arg0; - r0 = (s.x___95097 - s.sx___95109); - s.tmp_22 = r0; - r0 = (s.y___95103 - s.sy___95114); - s.tmp_23 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_21, s.tmp_22, s.tmp_23); - s.tmp_20 = r0; - r0 = (s.tmp_20 === s.arg1); - case 14: - // jmp value (already in r0) - s.tmp_24 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_24); - if (!r0) { step = 15; continue; } - r0 = pxsim_Array__push(s.toOutlineX___95093, s.x___95097); - r0 = pxsim_Array__push(s.toOutlineY___95095, s.y___95103); - case 15: - case 16: - case 17: - r0 = (s.sy___95114 + 1); - s.sy___95114 = (r0); - { step = 4; continue; } - case 18: - r0 = (s.sx___95109 + 1); - s.sx___95109 = (r0); - { step = 3; continue; } - case 19: - r0 = (s.y___95103 + 1); - s.y___95103 = (r0); - { step = 2; continue; } - case 20: - r0 = (s.x___95097 + 1); - s.x___95097 = (r0); - { step = 1; continue; } - case 21: - s.i___95193 = (0); - case 22: - s.tmp_1 = r0 = s.i___95193; - r0 = pxsim_Array__length(s.toOutlineX___95093); + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_millis"] = (s.tmp_1); + s.tmp_0 = controller___update__P20136_mk(s); + r0 = s.caps[0].fields["eventContext"]; + s.tmp_1 = r0; + r0 = s.tmp_1.fields["deltaTimeMillis"]; s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 23; continue; } - r0 = pxsim_Array__getAt(s.toOutlineX___95093, s.i___95193); - s.x___95199 = (r0); - r0 = pxsim_Array__getAt(s.toOutlineY___95095, s.i___95193); - s.y___95203 = (r0); - r0 = pxsim_ImageMethods.setPixel(s.arg0, s.x___95199, s.y___95203, s.arg3); - r0 = (s.i___95193 + 1); - s.i___95193 = (r0); - { step = 22; continue; } - case 23: + r0 = (s.tmp_2 / 1000); + s.tmp_0.arg0 = r0; + s.callLocIdx = 909; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -textsprite_outlineOtherColor__P91866.info = {"start":5293,"length":1299,"line":148,"column":4,"endLine":176,"endColumn":5,"fileName":"pxt_modules/arcade-text/text.ts","functionName":"outlineOtherColor","argumentNames":["img","targetColor","outlineWidth","outlineColor"]} +scene_Scene_init_inline__P24975.info = {"start":4722,"length":217,"line":134,"column":72,"endLine":138,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function textsprite_outlineOtherColor__P91866_mk(s) { +function scene_Scene_init_inline__P24975_mk(s) { checkStack(s.depth); return { - parent: s, fn: textsprite_outlineOtherColor__P91866, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P24975, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, - tmp_16: undefined, - tmp_17: undefined, - tmp_18: undefined, - tmp_19: undefined, - tmp_20: undefined, - tmp_21: undefined, - tmp_22: undefined, - tmp_23: undefined, - tmp_24: undefined, - toOutlineX___95093: undefined, - toOutlineY___95095: undefined, - x___95097: undefined, - y___95103: undefined, - sx___95109: undefined, - sy___95114: undefined, - i___95193: undefined, - x___95199: undefined, - y___95203: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function textsprite_getFontForTextAndHeight__P91864(s) { +function scene_Scene_init_inline__P24999(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2185,128 +1689,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.baseFont___95649 = undefined; - s.hasUnicode___95653 = undefined; - s.availableFonts___95657 = undefined; - s.remainders___95665 = undefined; - s.fontIdx___95675 = undefined; - s.font___95690 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - s.tmp_0 = image_getFontForText__P89498_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1316; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.baseFont___95649 = (r0); - s.tmp_1 = if_charHeight_1_mk(s); - s.tmp_1.arg0 = s.baseFont___95649; - 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 = 1317; s.pc = 4; return s.tmp_1; } - } - case 4: - r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 === 12); - s.hasUnicode___95653 = (r0); - r0 = pxsim_numops_toBoolDecr(s.hasUnicode___95653); - if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.baseFont___95649); - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_Array__mk(); + s.tmp_0 = PhysicsEngine__C20482_v4_2_mk(s); + r0 = s.caps[0].fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + r0 = s.caps[0].fields["eventContext"]; s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_1, globals.font8___89496); - r0 = pxsim_Array__push(s.tmp_1, globals.font5___89501); - r0 = s.tmp_1; - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - s.availableFonts___95657 = (s.tmp_2); - r0 = pxsim_pxtcore_mkAction(1, remainders_inline__P95667); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayMap__P87627_mk(s); - s.tmp_1.arg0 = s.availableFonts___95657; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1319; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.remainders___95665 = (r0); - r0 = pxsim_pxtcore_mkAction(1, fontIdx_inline__P95679); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.remainders___95665); - s.tmp_1 = helpers_arrayReduce__P87633_mk(s); - s.tmp_1.arg0 = s.remainders___95665; - s.tmp_1.arg1 = s.tmp_0; - s.tmp_1.arg2 = 99; - s.callLocIdx = 1320; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - s.fontIdx___95675 = (r0); - r0 = pxsim_Array__getAt(s.availableFonts___95657, s.fontIdx___95675); - s.font___95690 = (r0); - s.tmp_0 = image_scaledFont__P89500_mk(s); - s.tmp_0.arg0 = s.font___95690; - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = if_charHeight_1_mk(s); - s.tmp_3.arg0 = s.font___95690; - 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 = 1321; s.pc = 8; return s.tmp_3; } - } - case 8: - r0 = s.retval; + r0 = s.tmp_1.fields["deltaTimeMillis"]; s.tmp_2 = r0; - r0 = (s.tmp_1 / s.tmp_2); + r0 = (s.tmp_2 / 1000); s.tmp_0.arg1 = r0; - s.callLocIdx = 1322; s.pc = 7; return s.tmp_0; - case 7: + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C20482_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() } } } -textsprite_getFontForTextAndHeight__P91864.info = {"start":4027,"length":663,"line":116,"column":4,"endLine":126,"endColumn":5,"fileName":"pxt_modules/arcade-text/text.ts","functionName":"getFontForTextAndHeight","argumentNames":["text","maxHeight"]} +scene_Scene_init_inline__P24999.info = {"start":5234,"length":159,"line":143,"column":69,"endLine":146,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function textsprite_getFontForTextAndHeight__P91864_mk(s) { +function scene_Scene_init_inline__P24999_mk(s) { checkStack(s.depth); return { - parent: s, fn: textsprite_getFontForTextAndHeight__P91864, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P24999, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - baseFont___95649: undefined, - hasUnicode___95653: undefined, - availableFonts___95657: undefined, - remainders___95665: undefined, - fontIdx___95675: undefined, - font___95690: undefined, - arg0: undefined, - arg1: undefined, } } -function remainders_inline__P95667(s) { +function scene_Scene_init_inline__P25012(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2316,46 +1733,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; - } - s.tmp_0 = r0 = s.caps[0]; - s.tmp_2 = if_charHeight_1_mk(s); - s.tmp_2.arg0 = s.arg0; + s.dt___25013 = undefined; + s.s___25021 = undefined; + s.unnamed178___U2 = undefined; + s.unnamed179___U3 = undefined; + r0 = s.caps[0].fields["eventContext"]; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["deltaTimeMillis"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 / 1000); + s.dt___25013 = (r0); + s.tmp_0 = scene_Camera_update__P20769_mk(s); + r0 = s.caps[0].fields["camera"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 915; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.s___25021 = (undefined); + r0 = s.caps[0].fields["allSprites"]; + s.unnamed178___U2 = (r0); + s.unnamed179___U3 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed179___U3; + r0 = pxsim_Array__length(s.unnamed178___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed178___U2, s.unnamed179___U3); + s.s___25021 = (r0); + s.tmp_2 = if___update_3_mk(s); + s.tmp_2.arg0 = s.s___25021; + r0 = s.caps[0].fields["camera"]; + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = s.dt___25013; if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3); + s.callLocIdx = 916; s.pc = 4; return s.tmp_2; } 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 = 1318; s.pc = 1; return s.tmp_2; } + 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 = 916; s.pc = 4; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 916; s.pc = 4; return s.tmp_2;; } + else { s.callLocIdx = 916; s.pc = 4; return s.tmp_2; } } - case 1: + case 4: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0 % s.tmp_1); + r0 = (s.unnamed179___U3 + 1); + s.unnamed179___U3 = (r0); + { step = 1; continue; } + case 2: + s.unnamed178___U2 = (undefined); + r0 = undefined; return leave(s, r0) default: oops() } } } -remainders_inline__P95667.info = {"start":4455,"length":29,"line":122,"column":46,"endLine":122,"endColumn":75,"fileName":"pxt_modules/arcade-text/text.ts","functionName":"inline","argumentNames":["s"]} +scene_Scene_init_inline__P25012.info = {"start":5582,"length":214,"line":152,"column":79,"endLine":158,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function remainders_inline__P95667_mk(s) { +function scene_Scene_init_inline__P25012_mk(s) { checkStack(s.depth); return { - parent: s, fn: remainders_inline__P95667, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P25012, 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, + dt___25013: undefined, + s___25021: undefined, + unnamed178___U2: undefined, + unnamed179___U3: undefined, } } -function fontIdx_inline__P95679(s) { +function scene_Scene_init_inline__P25033(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2365,49 +1816,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = pxsim_Array__getAt(s.caps[0], s.arg0); - 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; - { step = 2; continue; } + s.tmp_0 = scene_Scene_render__P20843_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 918; s.pc = 1; return s.tmp_0; case 1: - r0 = s.arg2; - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.tmp_2; + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -fontIdx_inline__P95679.info = {"start":4528,"length":39,"line":123,"column":42,"endLine":123,"endColumn":81,"fileName":"pxt_modules/arcade-text/text.ts","functionName":"inline","argumentNames":["p","n","i"]} +scene_Scene_init_inline__P25033.info = {"start":5937,"length":109,"line":163,"column":76,"endLine":166,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function fontIdx_inline__P95679_mk(s) { +function scene_Scene_init_inline__P25033_mk(s) { checkStack(s.depth); return { - parent: s, fn: fontIdx_inline__P95679, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P25033, 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 image_scaledFont__P89500(s) { +function scene_Scene_init_inline__P25041(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2417,117 +1849,91 @@ 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.arg1 | 0); - s.arg1 = (r0); - r0 = (s.arg1 < 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0; - { step = 5; continue; } + s.tmp_0 = r0 = globals.stats___20939; + 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___18369; case 2: - r0 = pxsim_pxtrt.mkMap(); + // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_4 = if_charWidth_1_mk(s); - s.tmp_4.arg0 = s.arg0; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charWidth"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charWidth"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 89; s.pc = 6; return s.tmp_4; } - } - case 6: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 * s.arg1); - s.tmp_2 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "charWidth", s.tmp_2); - s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.arg0; - if (!s.tmp_7.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight"); - } else { - s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["charHeight"]; - if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["charHeight"]; } - else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } - else { s.callLocIdx = 90; s.pc = 7; return s.tmp_7; } - } - case 7: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 * s.arg1); - s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "charHeight", s.tmp_5); - s.tmp_9 = if_data_1_mk(s); - s.tmp_9.arg0 = s.arg0; - if (!s.tmp_9.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "data"); - } else { - s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["data"]; - if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["data"]; } - else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } - else { s.callLocIdx = 91; s.pc = 8; return s.tmp_9; } - } + 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___18369; + if ((globals.control_EventContext_lastStats___18368) && (globals.control_EventContext_lastStats___18368).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(globals.control_EventContext_lastStats___18368); + checkResumeConsumed(); + return; + } else { s.retval = (globals.control_EventContext_lastStats___18368) + ""; } case 8: r0 = s.retval; + s.tmp_3 = r0; + r0 = s.caps[0].fields["allSprites"]; s.tmp_8 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "data", s.tmp_8); - s.tmp_11 = if_multiplier_1_mk(s); - s.tmp_11.arg0 = s.arg0; - if (!s.tmp_11.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "multiplier"); - } else { - s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["multiplier"]; - if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["multiplier"]; } - else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } - else { s.callLocIdx = 92; s.pc = 9; return s.tmp_11; } - } + 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_10 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_10); - if (!r0) { step = 3; continue; } - s.tmp_12 = r0 = s.arg1; - s.tmp_14 = if_multiplier_1_mk(s); - s.tmp_14.arg0 = s.arg0; - if (!s.tmp_14.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_14.arg0, "multiplier"); - } else { - s.tmp_14.fn = s.tmp_14.arg0.vtable.iface["multiplier"]; - if (s.tmp_14.fn == null) { s.retval = s.tmp_14.arg0.fields["multiplier"]; } - else if (!s.tmp_14.fn.isGetter) { s.retval = bind(s.tmp_14); } - else { s.callLocIdx = 93; s.pc = 10; return s.tmp_14; } - } + 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_13 = r0; - r0 = (s.tmp_12 * s.tmp_13); - { step = 4; continue; } + 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 = 920; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; case 3: - r0 = s.arg1; case 4: - // jmp value (already in r0) - s.tmp_15 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "multiplier", s.tmp_15); - r0 = s.tmp_1; + r0 = pxsim_numops_toBoolDecr(globals.debug___20938); + if (!r0) { step = 5; continue; } + s.tmp_0 = PhysicsEngine__C20482_v3_1_mk(s); + r0 = s.caps[0].fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C20482_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__P21098_mk(s); + s.callLocIdx = 921; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.tmp_0 = power_checkDeepSleep__P19901_mk(s); + s.callLocIdx = 922; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -image_scaledFont__P89500.info = {"start":12096,"length":331,"line":150,"column":4,"endLine":160,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"scaledFont","argumentNames":["f","size"]} +scene_Scene_init_inline__P25041.info = {"start":6163,"length":504,"line":168,"column":80,"endLine":180,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function image_scaledFont__P89500_mk(s) { +function scene_Scene_init_inline__P25041_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_scaledFont__P89500, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P25041, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2538,22 +1944,13 @@ function image_scaledFont__P89500_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, - arg0: undefined, - arg1: undefined, } } -function image_getFontForText__P89498(s) { +function scene_Scene_init_inline__P25072(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2563,52 +1960,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___95545 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.i___95545 = (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 = 927; s.pc = 1; return s.tmp_0; case 1: - s.tmp_1 = r0 = s.i___95545; - 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___95545); - 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___89497; - { step = 5; continue; } - case 2: - case 3: - r0 = (s.i___95545 + 1); - s.i___95545 = (r0); - { step = 1; continue; } - case 4: - r0 = globals.font8___89496; - case 5: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -image_getFontForText__P89498.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]} +scene_Scene_init_inline__P25072.info = {"start":6980,"length":12,"line":186,"column":39,"endLine":186,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]} -function image_getFontForText__P89498_mk(s) { +function scene_Scene_init_inline__P25072_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_getFontForText__P89498, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P25072, depth: s.depth + 1, pc: 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___95545: undefined, arg0: undefined, } } @@ -2616,7 +1990,7 @@ function image_getFontForText__P89498_mk(s) { -function helpers_arrayReduce__P87633(s) { +function multiplayer_initPlayerConnectionListeners__P21360(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2626,62 +2000,43 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___95728 = undefined; - s.i___95731 = 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___95728 = (r0); - s.i___95731 = (0); + s.p___25092 = undefined; + s.p___25092 = (1); case 1: - r0 = (s.i___95731 < s.len___95728); + r0 = (s.p___25092 <= 4); 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___95731); - s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = s.i___95731; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 7; s.pc = 3; return s.tmp_1; + s.tmp_1 = multiplayer_registerPlayerConnectionListeners__P23360_mk(s); + s.tmp_1.arg0 = s.p___25092; + s.callLocIdx = 1278; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.arg2 = (r0); - r0 = (s.i___95731 + 1); - s.i___95731 = (r0); + r0 = (s.p___25092 + 1); + s.p___25092 = (r0); { step = 1; continue; } case 2: - r0 = s.arg2; + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arrayReduce__P87633.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"]} +multiplayer_initPlayerConnectionListeners__P21360.info = {"start":1324,"length":154,"line":39,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"initPlayerConnectionListeners","argumentNames":[]} -function helpers_arrayReduce__P87633_mk(s) { +function multiplayer_initPlayerConnectionListeners__P21360_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayReduce__P87633, depth: s.depth + 1, + parent: s, fn: multiplayer_initPlayerConnectionListeners__P21360, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___95728: undefined, - i___95731: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, + p___25092: undefined, } } -function helpers_arrayMap__P87627(s) { +function multiplayer_registerPlayerConnectionListeners__P23360(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2691,67 +2046,53 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___95748 = undefined; - s.len___95750 = undefined; - s.i___95753 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.res___95748 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___95750 = (r0); - s.i___95753 = (0); - case 1: - r0 = (s.i___95753 < s.len___95750); + r0 = pxsim_pxtcore_mkAction(1, multiplayer_registerPlayerConnectionListeners_inline__P25104); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.res___95748; - s.tmp_3 = lambda_3_mk(s); - s.tmp_3.argL = s.arg1; - r0 = pxsim_Array__getAt(s.arg0, s.i___95753); - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.i___95753; - setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 3; s.pc = 3; return s.tmp_3; - case 3: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_onEvent__P18362_mk(s); + s.tmp_1.arg0 = 3241; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.tmp_0; + s.tmp_1.arg3 = 16; + s.callLocIdx = 1280; s.pc = 1; return s.tmp_1; + case 1: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___95753 + 1); - s.i___95753 = (r0); - { step = 1; continue; } + r0 = pxsim_pxtcore_mkAction(1, multiplayer_registerPlayerConnectionListeners_inline__P25110); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_onEvent__P18362_mk(s); + s.tmp_1.arg0 = 3242; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.tmp_0; + s.tmp_1.arg3 = 16; + s.callLocIdx = 1282; s.pc = 2; return s.tmp_1; case 2: - r0 = s.res___95748; + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arrayMap__P87627.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"]} +multiplayer_registerPlayerConnectionListeners__P23360.info = {"start":1484,"length":415,"line":45,"column":4,"endLine":56,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"registerPlayerConnectionListeners","argumentNames":["playerNumber"]} -function helpers_arrayMap__P87627_mk(s) { +function multiplayer_registerPlayerConnectionListeners__P23360_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayMap__P87627, depth: s.depth + 1, + parent: s, fn: multiplayer_registerPlayerConnectionListeners__P23360, depth: s.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___95748: undefined, - len___95750: undefined, - i___95753: undefined, arg0: undefined, - arg1: undefined, } } -function textsprite_renderScaledImage__P91863(s) { +function multiplayer_registerPlayerConnectionListeners_inline__P25104(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2761,114 +2102,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scale___95570 = undefined; - s.tile___95572 = undefined; - s.i___95574 = undefined; - s.j___95580 = 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.scale___95570 = (s.arg4); - s.tile___95572 = (s.arg0); - s.i___95574 = (0); + s.tmp_0 = multiplayer_receiveConnectionChangedEvent__P23361_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = true; + s.callLocIdx = 1279; s.pc = 1; return s.tmp_0; case 1: - s.tmp_1 = r0 = s.i___95574; - r0 = pxsim_ImageMethods.width(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.j___95580 = (0); - case 2: - s.tmp_1 = r0 = s.j___95580; - r0 = pxsim_ImageMethods.height(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = pxsim_ImageMethods.getPixel(s.arg0, s.i___95574, s.j___95580); - s.tmp_4 = r0; - r0 = (s.tmp_4 != 0); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - s.tmp_5 = r0 = s.arg1; - s.tmp_7 = r0 = s.arg2; - r0 = (s.i___95574 >> s.scale___95570); - s.tmp_8 = r0; - r0 = (s.tmp_7 + s.tmp_8); - s.tmp_6 = r0; - s.tmp_10 = r0 = s.arg3; - r0 = (s.j___95580 >> s.scale___95570); - s.tmp_11 = r0; - r0 = (s.tmp_10 + s.tmp_11); - s.tmp_9 = r0; - r0 = pxsim_ImageMethods.getPixel(s.arg0, s.i___95574, s.j___95580); - s.tmp_12 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_5, s.tmp_6, s.tmp_9, s.tmp_12); - case 3: - case 4: - s.tmp_0 = r0 = s.j___95580; - r0 = (1 << s.scale___95570); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.j___95580 = (r0); - { step = 2; continue; } - case 5: - s.tmp_0 = r0 = s.i___95574; - r0 = (1 << s.scale___95570); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.i___95574 = (r0); - { step = 1; continue; } - case 6: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -textsprite_renderScaledImage__P91863.info = {"start":3500,"length":521,"line":104,"column":4,"endLine":114,"endColumn":5,"fileName":"pxt_modules/arcade-text/text.ts","functionName":"renderScaledImage","argumentNames":["source","destination","x","y","downScalePowerOfTwo"]} +multiplayer_registerPlayerConnectionListeners_inline__P25104.info = {"start":1656,"length":55,"line":49,"column":12,"endLine":49,"endColumn":67,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} -function textsprite_renderScaledImage__P91863_mk(s) { +function multiplayer_registerPlayerConnectionListeners_inline__P25104_mk(s) { checkStack(s.depth); return { - parent: s, fn: textsprite_renderScaledImage__P91863, depth: s.depth + 1, + parent: s, fn: multiplayer_registerPlayerConnectionListeners_inline__P25104, depth: s.depth + 1, pc: 0, retval: undefined, 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, - scale___95570: undefined, - tile___95572: undefined, - i___95574: undefined, - j___95580: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function Sprite_setImage__P89912(s) { +function multiplayer_registerPlayerConnectionListeners_inline__P25110(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2878,66 +2136,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_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_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_0 = multiplayer_receiveConnectionChangedEvent__P23361_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = false; + s.callLocIdx = 1281; s.pc = 1; return s.tmp_0; 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__C89862_v5_1_mk(s); - s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, Sprite__C89862_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_setImage__P89912.info = {"start":9299,"length":131,"line":332,"column":4,"endLine":336,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setImage","argumentNames":["this","img"]} +multiplayer_registerPlayerConnectionListeners_inline__P25110.info = {"start":1826,"length":56,"line":54,"column":12,"endLine":54,"endColumn":68,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} -function Sprite_setImage__P89912_mk(s) { +function multiplayer_registerPlayerConnectionListeners_inline__P25110_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setImage__P89912, depth: s.depth + 1, + parent: s, fn: multiplayer_registerPlayerConnectionListeners_inline__P25110, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - arg0: undefined, - arg1: undefined, } } -function Sprite_recalcSize__P92267(s) { +function multiplayer_receiveConnectionChangedEvent__P23361(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2947,80 +2170,67 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.c___25115 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_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__P89891_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 344; s.pc = 1; return s.tmp_6; + 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(3, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = s.tmp_0; + { step = 5; continue; } case 1: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_3 * s.tmp_5); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_7 = r0; - r0 = (s.tmp_7 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_width"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["_image"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_4); - s.tmp_3 = r0; - s.tmp_6 = Sprite_sy__P89893_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 346; s.pc = 2; return s.tmp_6; + s.c___25115 = (globals.player1___20094); + { step = 5; continue; } case 2: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_3 * s.tmp_5); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_7 = r0; - r0 = (s.tmp_7 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_height"] = (s.tmp_1); - s.tmp_0 = Sprite_resetHitbox__P89914_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 348; s.pc = 3; return s.tmp_0; + s.c___25115 = (globals.player2___20091); + { step = 5; continue; } case 3: + s.c___25115 = (globals.player3___20092); + { step = 5; continue; } + case 4: + s.c___25115 = (globals.player4___20093); + case 5: + r0 = pxsim_numops_toBoolDecr(s.c___25115); + if (!r0) { step = 6; continue; } + s.tmp_0 = controller_Controller_connected__P20127_mk(s); + s.tmp_0.arg0 = s.c___25115; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1283; s.pc = 8; return s.tmp_0; + case 8: r0 = s.retval; + case 6: + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_recalcSize__P92267.info = {"start":9982,"length":178,"line":363,"column":4,"endLine":367,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"recalcSize","argumentNames":["this"]} +multiplayer_receiveConnectionChangedEvent__P23361.info = {"start":1905,"length":552,"line":58,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"receiveConnectionChangedEvent","argumentNames":["playerNumber","connected"]} -function Sprite_recalcSize__P92267_mk(s) { +function multiplayer_receiveConnectionChangedEvent__P23361_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_recalcSize__P92267, depth: s.depth + 1, + parent: s, fn: multiplayer_receiveConnectionChangedEvent__P23361, depth: s.depth + 1, pc: 0, retval: undefined, 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___25115: undefined, arg0: undefined, + arg1: undefined, } } -function Sprite_resetHitbox__P89914(s) { +function controller_Controller_connected__P20127(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3032,38 +2242,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, Sprite__C89862_VT)) failedCast(r0); - r0 = (s.arg0).fields["_hitbox"] = (null); - s.tmp_0 = Sprite__C89862_v4_1_mk(s); - s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, Sprite__C89862_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.setHitbox; - s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, controller_Controller__C20105_VT)) failedCast(r0); + r0 = s.arg0.fields["_connected"]; + s.tmp_1 = r0; + r0 = (s.arg1 != s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = (s.arg0).fields["_connected"] = (s.arg1); + r0 = s.arg0.fields["_connected"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 1; + { step = 2; continue; } case 1: - r0 = s.retval; + r0 = 2; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.arg0.fields["_id"]; + s.tmp_2 = r0; + r0 = pxsim.control.raiseEvent(s.tmp_2, s.tmp_1); + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_resetHitbox__P89914.info = {"start":9580,"length":76,"line":342,"column":4,"endLine":345,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"resetHitbox","argumentNames":["this"]} +controller_Controller_connected__P20127.info = {"start":7796,"length":261,"line":254,"column":8,"endLine":259,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this","value"]} -function Sprite_resetHitbox__P89914_mk(s) { +function controller_Controller_connected__P20127_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_resetHitbox__P89914, depth: s.depth + 1, + parent: s, fn: controller_Controller_connected__P20127, 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_setHitbox__P89915(s) { +function controller__player1__P20099(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3073,55 +2302,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - r0 = s.arg0.fields["_hitbox"]; + r0 = pxsim_numops_toBoolDecr(globals._players___22620); + 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; } - s.tmp_1 = game_Hitbox_updateIfInvalid__P89743_mk(s); - r0 = s.arg0.fields["_hitbox"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 342; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; + r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = game_calculateHitBox__P89745_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 343; 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); + r0 = pxsim_Array__getAt(globals._players___22620, 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: - r0 = undefined; + // 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__C20105_VT); + s.tmp_5 = r0; + r0 = pxsim_Array__mk(); + s.tmp_6 = r0; + r0 = pxsim_Array__push(s.tmp_6, globals.left___20086); + r0 = pxsim_Array__push(s.tmp_6, globals.up___20087); + r0 = pxsim_Array__push(s.tmp_6, globals.right___20088); + r0 = pxsim_Array__push(s.tmp_6, globals.down___20089); + r0 = pxsim_Array__push(s.tmp_6, globals.A___20084); + r0 = pxsim_Array__push(s.tmp_6, globals.B___20085); + r0 = pxsim_Array__push(s.tmp_6, globals.menu___20090); + s.tmp_7 = controller_Controller_constructor__P20109_mk(s); + s.tmp_7.arg0 = s.tmp_5; + s.tmp_7.arg1 = 1; + s.tmp_7.arg2 = s.tmp_6; + s.callLocIdx = 151; s.pc = 5; return s.tmp_7; + case 5: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_Array__getAt(globals._players___22620, 0); return leave(s, r0) default: oops() } } } -Sprite_setHitbox__P89915.info = {"start":9662,"length":173,"line":347,"column":4,"endLine":353,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]} +controller__player1__P20099.info = {"start":1381,"length":258,"line":47,"column":4,"endLine":51,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} -function Sprite_setHitbox__P89915_mk(s) { +function controller__player1__P20099_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setHitbox__P89915, depth: s.depth + 1, + parent: s, fn: controller__player1__P20099, 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, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, } } -function game_calculateHitBox__P89745(s) { +function controller_Controller_constructor__P20109(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3131,215 +2376,120 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___94769 = undefined; - s.minX___94772 = undefined; - s.minY___94776 = undefined; - s.maxX___94780 = undefined; - s.maxY___94782 = undefined; - s.c___94784 = undefined; - s.fxc___94785 = undefined; - s.r___94792 = undefined; - s.fxr___94793 = undefined; - s.width___94857 = undefined; - s.height___94865 = undefined; + s.leftId___25171 = undefined; + s.i___25179 = undefined; + s.i___25197 = 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.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; } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C20105_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_1 = game_Hitbox_isValid__P89741_mk(s); - r0 = s.arg0.fields["_hitbox"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 276; s.pc = 12; return s.tmp_1; - case 12: - r0 = s.retval; - case 2: - // jmp value (already in r0) + 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 = 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___94769 = (r0); - r0 = pxsim_ImageMethods.width(s.i___94769); - s.tmp_0 = r0; - r0 = (s.tmp_0 * 256); + r0 = (s.tmp_2 - 1); s.tmp_1 = r0; - r0 = (s.tmp_1 | 0); - s.minX___94772 = (r0); - r0 = pxsim_ImageMethods.height(s.i___94769); + r0 = (s.tmp_1 * 7); s.tmp_0 = r0; - r0 = (s.tmp_0 * 256); + r0 = (1 + s.tmp_0); + s.leftId___25171 = (r0); + s.i___25179 = (0); + case 2: + r0 = (s.i___25179 < 7); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C20160_VT); s.tmp_1 = r0; - r0 = (s.tmp_1 | 0); - s.minY___94776 = (r0); - s.maxX___94780 = (0); - s.maxY___94782 = (0); - s.c___94784 = (0); - s.fxc___94785 = (0); + s.tmp_2 = controller_Button_constructor__P20166_mk(s); + s.tmp_2.arg0 = s.tmp_1; + r0 = (s.leftId___25171 + s.i___25179); + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = -1; + s.callLocIdx = 157; 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___25179 + 1); + s.i___25179 = (r0); + { step = 2; continue; } + case 3: + case 4: + s.i___25197 = (0); case 5: - s.tmp_1 = r0 = s.c___94784; - r0 = pxsim_ImageMethods.width(s.i___94769); + s.tmp_1 = r0 = s.i___25197; + 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 = 10; continue; } - s.r___94792 = (0); - s.fxr___94793 = (0); + if (!r0) { step = 6; continue; } + r0 = s.arg0.fields["buttons"]; + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(s.tmp_5, s.i___25197); + s.tmp_4 = r0; + r0 = (s.tmp_4).fields["_owner"] = (s.arg0); + r0 = (s.i___25197 + 1); + s.i___25197 = (r0); + { step = 5; continue; } case 6: - s.tmp_1 = r0 = s.r___94792; - r0 = pxsim_ImageMethods.height(s.i___94769); - 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___94769, s.c___94784, s.r___94792); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 7; continue; } - s.tmp_4 = Fx_min__P87687_mk(s); - s.tmp_4.arg0 = s.minX___94772; - s.tmp_4.arg1 = s.fxc___94785; - s.callLocIdx = 280; s.pc = 13; return s.tmp_4; - case 13: - r0 = s.retval; - s.minX___94772 = (r0); - s.tmp_0 = Fx_min__P87687_mk(s); - s.tmp_0.arg0 = s.minY___94776; - s.tmp_0.arg1 = s.fxr___94793; - s.callLocIdx = 281; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - s.minY___94776 = (r0); - s.tmp_0 = Fx_max__P87688_mk(s); - s.tmp_0.arg0 = s.maxX___94780; - s.tmp_0.arg1 = s.fxc___94785; - s.callLocIdx = 282; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.maxX___94780 = (r0); - s.tmp_0 = Fx_max__P87688_mk(s); - s.tmp_0.arg0 = s.maxY___94782; - s.tmp_0.arg1 = s.fxr___94793; - s.callLocIdx = 283; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - s.maxY___94782 = (r0); - case 7: + s.tmp_0 = controller_addController__P22684_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 158; s.pc = 8; return s.tmp_0; case 8: - r0 = (s.r___94792 + 1); - s.r___94792 = (r0); - r0 = (s.fxr___94793 + 256); - s.tmp_0 = r0; - s.fxr___94793 = (r0); - r0 = s.tmp_0; - { step = 6; continue; } - case 9: - r0 = (s.c___94784 + 1); - s.c___94784 = (r0); - r0 = (s.fxc___94785 + 256); - s.tmp_0 = r0; - s.fxc___94785 = (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___94772, s.tmp_0); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - s.minX___94772 = (r0); - r0 = s.arg0.fields["_sy"]; - s.tmp_0 = r0; - r0 = pxsim.Math_.imul(s.minY___94776, s.tmp_0); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - s.minY___94776 = (r0); - r0 = s.arg0.fields["_sx"]; - s.tmp_0 = r0; - r0 = pxsim.Math_.imul(s.maxX___94780, s.tmp_0); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - s.maxX___94780 = (r0); - r0 = s.arg0.fields["_sy"]; - s.tmp_0 = r0; - r0 = pxsim.Math_.imul(s.maxY___94782, s.tmp_0); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - s.maxY___94782 = (r0); - r0 = (s.maxX___94780 - s.minX___94772); - s.tmp_0 = r0; - r0 = s.arg0.fields["_sx"]; - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.width___94857 = (r0); - r0 = (s.maxY___94782 - s.minY___94776); - s.tmp_0 = r0; - r0 = s.arg0.fields["_sy"]; - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.height___94865 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C89729_VT); - s.tmp_0 = r0; - s.tmp_1 = game_Hitbox_constructor__P89736_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.width___94857; - s.tmp_1.arg3 = s.height___94865; - r0 = (s.minX___94772 & -256); - s.tmp_1.arg4 = r0; - r0 = (s.minY___94776 & -256); - s.tmp_1.arg5 = r0; - s.callLocIdx = 296; s.pc = 17; return s.tmp_1; - case 17: r0 = s.retval; - r0 = s.tmp_0; - case 11: + r0 = undefined; return leave(s, r0) default: oops() } } } -game_calculateHitBox__P89745.info = {"start":3223,"length":1086,"line":103,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/game/hitbox.ts","functionName":"calculateHitBox","argumentNames":["s"]} +controller_Controller_constructor__P20109.info = {"start":2452,"length":696,"line":82,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","playerIndex","buttons"]} -function game_calculateHitBox__P89745_mk(s) { +function controller_Controller_constructor__P20109_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_calculateHitBox__P89745, depth: s.depth + 1, + parent: s, fn: controller_Controller_constructor__P20109, depth: s.depth + 1, pc: 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___94769: undefined, - minX___94772: undefined, - minY___94776: undefined, - maxX___94780: undefined, - maxY___94782: undefined, - c___94784: undefined, - fxc___94785: undefined, - r___94792: undefined, - fxr___94793: undefined, - width___94857: undefined, - height___94865: undefined, + tmp_5: undefined, + leftId___25171: undefined, + i___25179: undefined, + i___25197: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function Sprite_image__P89911(s) { +function controller_addController__P22684(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3353,20 +2503,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(globals._players___22620); + s.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___22620 = (r0); + case 1: + case 2: + s.tmp_0 = r0 = globals._players___22620; + r0 = s.arg0.fields["playerIndex"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.arg0); + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_image__P89911.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__P89911.isGetter = true; +controller_addController__P22684.info = {"start":1218,"length":157,"line":40,"column":4,"endLine":45,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} -function Sprite_image__P89911_mk(s) { +function controller_addController__P22684_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_image__P89911, depth: s.depth + 1, + parent: s, fn: controller_addController__P22684, 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, } } @@ -3374,7 +2540,7 @@ function Sprite_image__P89911_mk(s) { -function game_Hitbox_isValid__P89741(s) { +function control_onEvent__P18362(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3384,43 +2550,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.ctx___25270 = 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_Hitbox__C89729_VT)) failedCast(r0); - r0 = s.arg0.fields["hash"]; + s.tmp_0 = control_eventContext__P18379_mk(s); + s.callLocIdx = 39; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.ctx___25270 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___25270); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - s.tmp_2 = Sprite_calcDimensionalHash__P89913_mk(s); - r0 = s.arg0.fields["parent"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 229; s.pc = 1; return s.tmp_2; + 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__P18376_mk(s); + s.tmp_0.arg0 = s.ctx___25270; + 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 = 40; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0 === s.tmp_1); + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -game_Hitbox_isValid__P89741.info = {"start":935,"length":89,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"isValid","argumentNames":["this"]} +control_onEvent__P18362.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 game_Hitbox_isValid__P89741_mk(s) { +function control_onEvent__P18362_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_isValid__P89741, depth: s.depth + 1, + parent: s, fn: control_onEvent__P18362, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, + ctx___25270: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function Sprite_calcDimensionalHash__P89913(s) { +function control_eventContext__P18379(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3430,58 +2616,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, Sprite__C89862_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___22404); + if (!r0) { step = 1; continue; } + s.tmp_0 = r0 = globals.eventContexts___22404; + r0 = pxsim_Array__length(globals.eventContexts___22404); s.tmp_2 = r0; - r0 = pxsim_ImageMethods.revision(s.tmp_2); + r0 = (s.tmp_2 - 1); 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); + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + { step = 2; continue; } + case 1: + r0 = undefined; + case 2: + // jmp value (already in r0) s.tmp_3 = r0; - r0 = (s.tmp_1 + s.tmp_3); - 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 = s.tmp_3; return leave(s, r0) default: oops() } } } -Sprite_calcDimensionalHash__P89913.info = {"start":9436,"length":138,"line":338,"column":4,"endLine":340,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"calcDimensionalHash","argumentNames":["this"]} +control_eventContext__P18379.info = {"start":7094,"length":136,"line":213,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]} -function Sprite_calcDimensionalHash__P89913_mk(s) { +function control_eventContext__P18379_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_calcDimensionalHash__P89913, depth: s.depth + 1, + parent: s, fn: control_eventContext__P18379, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - arg0: undefined, } } -function Fx_toIntShifted__P87677(s) { +function control_EventContext_registerHandler__P18376(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3491,36 +2661,113 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.h___25293 = undefined; + s.unnamed152___U1 = undefined; + s.unnamed153___U2 = undefined; + s.hn___25316 = 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.arg0; - r0 = (s.arg1 + 8); + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C18366_VT)) failedCast(r0); + s.h___25293 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed152___U1 = (r0); + s.unnamed153___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed153___U2; + r0 = pxsim_Array__length(s.unnamed152___U1); s.tmp_1 = r0; - r0 = (s.tmp_0 >> s.tmp_1); + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 6; continue; } + r0 = pxsim_Array__getAt(s.unnamed152___U1, s.unnamed153___U2); + s.h___25293 = (r0); + r0 = s.h___25293.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___25293.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___25293).fields["flags"] = (s.arg4); + r0 = (s.h___25293).fields["handler"] = (s.arg3); + { step = 7; continue; } + case 4: + case 5: + r0 = (s.unnamed153___U2 + 1); + s.unnamed153___U2 = (r0); + { step = 1; continue; } + case 6: + s.unnamed152___U1 = (undefined); + r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C22396_VT); + s.tmp_0 = r0; + s.tmp_1 = control_EventHandler_constructor__P22399_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 = 51; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; + s.hn___25316 = (s.tmp_0); + r0 = s.arg0.fields["handlers"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.hn___25316); + s.tmp_0 = control_EventHandler_register__P22397_mk(s); + s.tmp_0.arg0 = s.hn___25316; + s.callLocIdx = 52; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + case 7: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_toIntShifted__P87677.info = {"start":404,"length":102,"line":17,"column":4,"endLine":19,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toIntShifted","argumentNames":["a","n"]} +control_EventContext_registerHandler__P18376.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 Fx_toIntShifted__P87677_mk(s) { +function control_EventContext_registerHandler__P18376_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toIntShifted__P87677, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerHandler__P18376, depth: s.depth + 1, pc: 0, retval: undefined, 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___25293: undefined, + unnamed152___U1: undefined, + unnamed153___U2: undefined, + hn___25316: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function game_Hitbox_constructor__P89736(s) { +function control_EventHandler_constructor__P22399(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3536,51 +2783,37 @@ switch (step) { 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__C89729_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Sprite_calcDimensionalHash__P89913_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 220; s.pc = 1; return s.tmp_2; - case 1: - 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); + if (!checkSubtype(r0, control_EventHandler__C22396_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() } } } -game_Hitbox_constructor__P89736.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"]} +control_EventHandler_constructor__P22399.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 game_Hitbox_constructor__P89736_mk(s) { +function control_EventHandler_constructor__P22399_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_constructor__P89736, depth: s.depth + 1, + parent: s, fn: control_EventHandler_constructor__P22399, 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 Fx_floor__P87689(s) { +function control_EventHandler_register__P22397(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3594,17 +2827,33 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (s.arg0 & -256); + r0 = s.arg0; + if (!checkSubtype(r0, control_EventHandler__C22396_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, control_EventHandler_register_inline__P25337); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = s.arg0.fields["src"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["value"]; + s.tmp_2 = r0; + r0 = s.arg0.fields["flags"]; + s.tmp_3 = r0; + r0 = pxsim.control.internalOnEvent(s.tmp_1, s.tmp_2, s.tmp_0, s.tmp_3); + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_floor__P87689.info = {"start":1919,"length":103,"line":62,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"floor","argumentNames":["v"]} +control_EventHandler_register__P22397.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} -function Fx_floor__P87689_mk(s) { +function control_EventHandler_register__P22397_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_floor__P87689, depth: s.depth + 1, + parent: s, fn: control_EventHandler_register__P22397, depth: s.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, } } @@ -3612,7 +2861,7 @@ function Fx_floor__P87689_mk(s) { -function Fx_max__P87688(s) { +function control_EventHandler_register_inline__P25337(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3622,44 +2871,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = (s.arg0 > s.arg1); + 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; - { step = 3; continue; } - { step = 2; 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 = 41; 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 = 41; s.pc = 3; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 41; s.pc = 3; return s.tmp_1;; } + else { s.callLocIdx = 41; s.pc = 3; return s.tmp_1; } + } + case 3: + r0 = s.retval; case 1: - r0 = s.arg1; - { step = 3; continue; } case 2: r0 = undefined; - case 3: return leave(s, r0) default: oops() } } } -Fx_max__P87688.info = {"start":1797,"length":117,"line":56,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"max","argumentNames":["a","b"]} +control_EventHandler_register_inline__P25337.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function Fx_max__P87688_mk(s) { +function control_EventHandler_register_inline__P25337_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_max__P87688, depth: s.depth + 1, + parent: s, fn: control_EventHandler_register_inline__P25337, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, - arg1: undefined, + tmp_1: undefined, } } -function Fx_min__P87687(s) { +function multiplayer_initServer__P21359(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3669,44 +2919,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = (s.arg0 < 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 = s.arg0; - { step = 3; continue; } - { step = 2; continue; } + s.tmp_2 = control_EventContext_registerFrameHandler__P18374_mk(s); + s.tmp_3 = game_eventContext__P20973_mk(s); + s.callLocIdx = 1276; 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__P25356; + s.callLocIdx = 1277; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; case 1: - r0 = s.arg1; - { step = 3; continue; } case 2: r0 = undefined; - case 3: return leave(s, r0) default: oops() } } } -Fx_min__P87687.info = {"start":1675,"length":117,"line":50,"column":4,"endLine":55,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"min","argumentNames":["a","b"]} +multiplayer_initServer__P21359.info = {"start":1011,"length":307,"line":29,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"initServer","argumentNames":[]} -function Fx_min__P87687_mk(s) { +function multiplayer_initServer__P21359_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_min__P87687, depth: s.depth + 1, + parent: s, fn: multiplayer_initServer__P21359, 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, } } -function Fx_mul__P87681(s) { +function multiplayer_initServer_inline__P25356(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3716,34 +2969,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 = (s.tmp_0 >> 8); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.multiplayer.postImage(globals.screen___20003); + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_mul__P87681.info = {"start":872,"length":133,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"mul","argumentNames":["a","b"]} +multiplayer_initServer_inline__P25356.info = {"start":1175,"length":126,"line":31,"column":93,"endLine":35,"endColumn":13,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} -function Fx_mul__P87681_mk(s) { +function multiplayer_initServer_inline__P25356_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_mul__P87681, depth: s.depth + 1, + parent: s, fn: multiplayer_initServer_inline__P25356, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, - arg1: undefined, + tmp_1: undefined, } } -function Fx_sub__P87680(s) { +function game_consoleOverlay_draw__P21098(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3753,31 +3007,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.lambdaArgs = null; + s.height___25409 = undefined; + s.top___25414 = undefined; + s.i___25420 = undefined; + s.t___25433 = undefined; + s.tOff___25440 = undefined; + s.tab___25442 = undefined; + s.unnamed182___U6 = undefined; + s.unnamed183___U7 = undefined; + s.padding___25444 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___23203); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_numops_toBoolDecr(globals.instance___23157); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 3; continue; } + { step = 13; continue; } + case 3: + case 4: + s.tmp_7 = if_charHeight_1_mk(s); + s.tmp_7.arg0 = globals.consoleFont___23211; + 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 = 1130; s.pc = 14; return s.tmp_7; } } - r0 = (s.arg0 - s.arg1); + case 14: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_6 + 2); + s.height___25409 = (r0); + r0 = pxsim_numops_toBoolDecr(globals.stats___20939); + if (!r0) { step = 5; continue; } + r0 = s.height___25409; + { step = 6; continue; } + case 5: + r0 = 0; + case 6: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = (2 + s.tmp_0); + s.top___25414 = (r0); + s.i___25420 = (0); + case 7: + s.tmp_1 = r0 = s.i___25420; + r0 = pxsim_Array__length(globals.consoleStrings___23203); + 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___23203, s.i___25420); + s.tmp_5 = r0; + r0 = pxsim_String_.indexOf(s.tmp_5, "\t", undefined); + s.tmp_4 = r0; + r0 = (s.tmp_4 >= 0); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 10; continue; } + s.tmp_6 = helpers_stringSplit__P18093_mk(s); + r0 = pxsim_Array__getAt(globals.consoleStrings___23203, s.i___25420); + s.tmp_6.arg0 = r0; + s.tmp_6.arg1 = "\t"; + s.tmp_6.arg2 = undefined; + s.callLocIdx = 1131; s.pc = 15; return s.tmp_6; + case 15: + r0 = s.retval; + s.t___25433 = (r0); + s.tOff___25440 = (0); + s.tab___25442 = (undefined); + s.unnamed182___U6 = (s.t___25433); + s.unnamed183___U7 = (0); + case 8: + s.tmp_0 = r0 = s.unnamed183___U7; + r0 = pxsim_Array__length(s.unnamed182___U6); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 9; continue; } + r0 = pxsim_Array__getAt(s.unnamed182___U6, s.unnamed183___U7); + s.tab___25442 = (r0); + s.tmp_2 = r0 = globals.tabSize___23205; + s.tmp_5 = r0 = s.tOff___25440; + r0 = pxsim_String_.length(s.tab___25442); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_4 % globals.tabSize___23205); + s.tmp_3 = r0; + r0 = (s.tmp_2 - s.tmp_3); + s.padding___25444 = (r0); + s.tmp_0 = helpers_imagePrint__P19961_mk(s); + s.tmp_0.arg0 = globals.screen___20003; + s.tmp_0.arg1 = s.tab___25442; + s.tmp_2 = r0 = s.tOff___25440; + s.tmp_4 = if_charWidth_1_mk(s); + s.tmp_4.arg0 = globals.consoleFont___23211; + 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 = 1132; 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___25414; + r0 = (s.i___25420 * s.height___25409); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.consoleColor___23202; + s.tmp_0.arg5 = globals.consoleFont___23211; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1133; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + s.tmp_0 = r0 = s.tOff___25440; + r0 = pxsim_String_.length(s.tab___25442); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.padding___25444); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.tOff___25440 = (r0); + r0 = (s.unnamed183___U7 + 1); + s.unnamed183___U7 = (r0); + { step = 8; continue; } + case 9: + s.unnamed182___U6 = (undefined); + { step = 11; continue; } + case 10: + s.tmp_0 = helpers_imagePrint__P19961_mk(s); + s.tmp_0.arg0 = globals.screen___20003; + r0 = pxsim_Array__getAt(globals.consoleStrings___23203, s.i___25420); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 4; + s.tmp_1 = r0 = s.top___25414; + r0 = (s.i___25420 * s.height___25409); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.consoleColor___23202; + s.tmp_0.arg5 = globals.consoleFont___23211; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1134; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + case 11: + r0 = (s.i___25420 + 1); + s.i___25420 = (r0); + { step = 7; continue; } + case 12: + case 13: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_sub__P87680.info = {"start":749,"length":118,"line":26,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"sub","argumentNames":["a","b"]} +game_consoleOverlay_draw__P21098.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} -function Fx_sub__P87680_mk(s) { +function game_consoleOverlay_draw__P21098_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_sub__P87680, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_draw__P21098, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + height___25409: undefined, + top___25414: undefined, + i___25420: undefined, + t___25433: undefined, + tOff___25440: undefined, + tab___25442: undefined, + unnamed182___U6: undefined, + unnamed183___U7: undefined, + padding___25444: undefined, } } -function Fx_add__P87678(s) { +function scene_systemMenu_isVisible__P21079(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3787,31 +3226,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = (s.arg0 + s.arg1); + r0 = pxsim_numops_toBoolDecr(globals.instance___23157); + 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() } } } -Fx_add__P87678.info = {"start":511,"length":118,"line":20,"column":4,"endLine":22,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"add","argumentNames":["a","b"]} +scene_systemMenu_isVisible__P21079.info = {"start":13170,"length":62,"line":395,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} -function Fx_add__P87678_mk(s) { +function scene_systemMenu_isVisible__P21079_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_add__P87678, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_isVisible__P21079, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, } } -function game_Hitbox_updateIfInvalid__P89743(s) { +function helpers_imagePrint__P19961(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3821,363 +3262,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.newHitBox___94982 = undefined; - s.oMinX___94987 = undefined; - s.oMinY___94990 = undefined; - s.oMaxX___94993 = undefined; - s.oMaxY___94999 = undefined; - s.nMinX___95005 = undefined; - s.nMinY___95008 = undefined; - s.nMaxX___95011 = undefined; - s.nMaxY___95017 = undefined; - s.xDiff___95023 = undefined; - s.yDiff___95034 = undefined; + s.x0___25516 = undefined; + s.cp___25518 = undefined; + s.mult___25519 = undefined; + s.dataW___25524 = undefined; + s.dataH___25530 = undefined; + s.byteHeight___25536 = undefined; + s.charSize___25542 = undefined; + s.dataSize___25546 = undefined; + s.fontdata___25550 = undefined; + s.lastchar___25553 = undefined; + s.imgBuf___25560 = undefined; + s.xOffset___25584 = undefined; + s.yOffset___25585 = undefined; + s.ch___25600 = undefined; + s.l___25619 = undefined; + s.r___25620 = undefined; + s.off___25622 = undefined; + s.guess___25623 = undefined; + s.m___25642 = undefined; + s.v___25651 = undefined; + s.i___25707 = undefined; + s.j___25712 = undefined; + s.mask___25713 = undefined; + s.c___25714 = undefined; + s.n___25731 = 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, game_Hitbox__C89729_VT)) failedCast(r0); - s.tmp_1 = game_Hitbox_isValid__P89741_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 234; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; + 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; } - { step = 7; continue; } - case 1: - case 2: - s.tmp_2 = game_calculateHitBox__P89745_mk(s); - r0 = s.arg0.fields["parent"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 235; s.pc = 9; return s.tmp_2; - case 9: - r0 = s.retval; - s.newHitBox___94982 = (r0); - r0 = s.arg0.fields["ox"]; - s.oMinX___94987 = (r0); - r0 = s.arg0.fields["oy"]; - s.oMinY___94990 = (r0); - r0 = s.arg0.fields["width"]; - s.tmp_0 = r0; - r0 = (s.oMinX___94987 + s.tmp_0); - s.oMaxX___94993 = (r0); - r0 = s.arg0.fields["height"]; - s.tmp_0 = r0; - r0 = (s.oMinY___94990 + s.tmp_0); - s.oMaxY___94999 = (r0); - r0 = s.newHitBox___94982.fields["ox"]; - s.nMinX___95005 = (r0); - r0 = s.newHitBox___94982.fields["oy"]; - s.nMinY___95008 = (r0); - r0 = s.newHitBox___94982.fields["width"]; - s.tmp_0 = r0; - r0 = (s.nMinX___95005 + s.tmp_0); - s.nMaxX___95011 = (r0); - r0 = s.newHitBox___94982.fields["height"]; - s.tmp_0 = r0; - r0 = (s.nMinY___95008 + s.tmp_0); - s.nMaxY___95017 = (r0); - s.tmp_1 = Fx_abs__P87686_mk(s); - r0 = (s.oMinX___94987 - s.nMinX___95005); - s.tmp_1.arg0 = r0; - s.callLocIdx = 241; s.pc = 10; return s.tmp_1; - case 10: - r0 = s.retval; - s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P87686_mk(s); - r0 = (s.oMaxX___94993 - s.nMaxX___95011); - s.tmp_3.arg0 = r0; - s.callLocIdx = 243; s.pc = 11; return s.tmp_3; - case 11: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - s.xDiff___95023 = (r0); - s.tmp_1 = Fx_abs__P87686_mk(s); - r0 = (s.oMinY___94990 - s.nMinY___95008); - s.tmp_1.arg0 = r0; - s.callLocIdx = 246; s.pc = 12; return s.tmp_1; - case 12: - r0 = s.retval; - s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P87686_mk(s); - r0 = (s.oMaxY___94999 - s.nMaxY___95017); - s.tmp_3.arg0 = r0; - s.callLocIdx = 248; 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___95034 = (r0); - r0 = (s.xDiff___95023 > 512); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = (s.arg0).fields["ox"] = (s.nMinX___95005); - r0 = s.newHitBox___94982.fields["width"]; - s.tmp_0 = r0; - r0 = (s.arg0).fields["width"] = (s.tmp_0); - case 3: - case 4: - r0 = (s.yDiff___95034 > 512); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = (s.arg0).fields["oy"] = (s.nMinY___95008); - r0 = s.newHitBox___94982.fields["height"]; - s.tmp_0 = r0; - r0 = (s.arg0).fields["height"] = (s.tmp_0); - case 5: - case 6: - r0 = s.newHitBox___94982.fields["hash"]; - s.tmp_0 = r0; - r0 = (s.arg0).fields["hash"] = (s.tmp_0); - case 7: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -game_Hitbox_updateIfInvalid__P89743.info = {"start":1188,"length":1317,"line":48,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"updateIfInvalid","argumentNames":["this"]} - -function game_Hitbox_updateIfInvalid__P89743_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_Hitbox_updateIfInvalid__P89743, depth: s.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___94982: undefined, - oMinX___94987: undefined, - oMinY___94990: undefined, - oMaxX___94993: undefined, - oMaxY___94999: undefined, - nMinX___95005: undefined, - nMinY___95008: undefined, - nMaxX___95011: undefined, - nMaxY___95017: undefined, - xDiff___95023: undefined, - yDiff___95034: undefined, - arg0: undefined, -} } - - - - - -function Fx_abs__P87686(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = (s.arg0 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (0 - s.arg0); - { step = 3; continue; } - { step = 2; continue; } - case 1: - r0 = s.arg0; - { step = 3; continue; } - case 2: - r0 = undefined; - case 3: - return leave(s, r0) - default: oops() -} } } -Fx_abs__P87686.info = {"start":1506,"length":164,"line":44,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"abs","argumentNames":["a"]} - -function Fx_abs__P87686_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Fx_abs__P87686, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function Sprite_sy__P89893(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C89862_VT)) failedCast(r0); - r0 = s.arg0.fields["_sy"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) - default: oops() -} } } -Sprite_sy__P89893.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__P89893.isGetter = true; - -function Sprite_sy__P89893_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_sy__P89893, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function Fx_toFloat__P87694(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = (s.arg0 / 256); - return leave(s, r0) - default: oops() -} } } -Fx_toFloat__P87694.info = {"start":2470,"length":81,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]} - -function Fx_toFloat__P87694_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Fx_toFloat__P87694, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function Sprite_sx__P89891(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C89862_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__P89891.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__P89891.isGetter = true; - -function Sprite_sx__P89891_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_sx__P89891, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function helpers_imagePrint__P89511(s) { -let r0 = s.r0, 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___95236 = undefined; - s.cp___95238 = undefined; - s.mult___95239 = undefined; - s.dataW___95244 = undefined; - s.dataH___95250 = undefined; - s.byteHeight___95256 = undefined; - s.charSize___95262 = undefined; - s.dataSize___95266 = undefined; - s.fontdata___95270 = undefined; - s.lastchar___95273 = undefined; - s.imgBuf___95280 = undefined; - s.xOffset___95304 = undefined; - s.yOffset___95305 = undefined; - s.ch___95320 = undefined; - s.l___95339 = undefined; - s.r___95340 = undefined; - s.off___95342 = undefined; - s.guess___95343 = undefined; - s.m___95362 = undefined; - s.v___95371 = undefined; - s.i___95427 = undefined; - s.j___95432 = undefined; - s.mask___95433 = undefined; - s.c___95434 = undefined; - s.n___95451 = 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__P89498_mk(s); + s.tmp_2 = image_getFontForText__P19948_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 97; s.pc = 39; return s.tmp_2; case 39: @@ -4194,8 +3324,8 @@ switch (step) { s.arg4 = (1); case 3: case 4: - s.x0___95236 = (s.arg2); - s.cp___95238 = (0); + s.x0___25516 = (s.arg2); + s.cp___25518 = (0); s.tmp_1 = if_multiplier_1_mk(s); s.tmp_1.arg0 = s.arg5; if (!s.tmp_1.arg0.vtable.iface) { @@ -4229,7 +3359,7 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_3 = r0; - s.mult___95239 = (s.tmp_3); + s.mult___25519 = (s.tmp_3); s.tmp_1 = if_charWidth_1_mk(s); s.tmp_1.arg0 = s.arg5; if (!s.tmp_1.arg0.vtable.iface) { @@ -4243,8 +3373,8 @@ switch (step) { case 42: r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___95239); - s.dataW___95244 = (r0); + r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___25519); + s.dataW___25524 = (r0); s.tmp_1 = if_charHeight_1_mk(s); s.tmp_1.arg0 = s.arg5; if (!s.tmp_1.arg0.vtable.iface) { @@ -4258,16 +3388,16 @@ switch (step) { case 43: r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___95239); - s.dataH___95250 = (r0); - r0 = (s.dataH___95250 + 7); + r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___25519); + s.dataH___25530 = (r0); + r0 = (s.dataH___25530 + 7); s.tmp_0 = r0; r0 = (s.tmp_0 >> 3); - s.byteHeight___95256 = (r0); - r0 = (s.byteHeight___95256 * s.dataW___95244); - s.charSize___95262 = (r0); - r0 = (2 + s.charSize___95262); - s.dataSize___95266 = (r0); + s.byteHeight___25536 = (r0); + r0 = (s.byteHeight___25536 * s.dataW___25524); + s.charSize___25542 = (r0); + r0 = (2 + s.charSize___25542); + s.dataSize___25546 = (r0); s.tmp_0 = if_data_1_mk(s); s.tmp_0.arg0 = s.arg5; if (!s.tmp_0.arg0.vtable.iface) { @@ -4280,44 +3410,44 @@ switch (step) { } case 44: r0 = s.retval; - s.fontdata___95270 = (r0); - r0 = pxsim.BufferMethods.length(s.fontdata___95270); + s.fontdata___25550 = (r0); + r0 = pxsim.BufferMethods.length(s.fontdata___25550); s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___95266); + r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___25546); s.tmp_0 = r0; r0 = (s.tmp_0 - 1); - s.lastchar___95273 = (r0); - r0 = (s.mult___95239 == 1); + s.lastchar___25553 = (r0); + r0 = (s.mult___25519 == 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - r0 = (8 + s.charSize___95262); + r0 = (8 + s.charSize___25542); s.tmp_1 = r0; r0 = pxsim.control.createBuffer(s.tmp_1); - s.imgBuf___95280 = (r0); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___95280, 0, 135); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___95280, 1, 1); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___95280, 2, s.dataW___95244); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___95280, 4, s.dataH___95250); + s.imgBuf___25560 = (r0); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___25560, 0, 135); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___25560, 1, 1); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___25560, 2, s.dataW___25524); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___25560, 4, s.dataH___25530); case 7: case 8: case 9: - s.tmp_1 = r0 = s.cp___95238; + s.tmp_1 = r0 = s.cp___25518; 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___95304 = (0); - s.yOffset___95305 = (0); + s.xOffset___25584 = (0); + s.yOffset___25585 = (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___95238; + s.tmp_1 = r0 = s.cp___25518; r0 = pxsim_Array__length(s.arg6); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); @@ -4327,7 +3457,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 12; continue; } s.tmp_4 = if_xOffset_1_mk(s); - r0 = pxsim_Array__getAt(s.arg6, s.cp___95238); + r0 = pxsim_Array__getAt(s.arg6, s.cp___25518); s.tmp_4.arg0 = r0; if (!s.tmp_4.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "xOffset"); @@ -4339,9 +3469,9 @@ switch (step) { } case 45: r0 = s.retval; - s.xOffset___95304 = (r0); + s.xOffset___25584 = (r0); s.tmp_0 = if_yOffset_1_mk(s); - r0 = pxsim_Array__getAt(s.arg6, s.cp___95238); + r0 = pxsim_Array__getAt(s.arg6, s.cp___25518); s.tmp_0.arg0 = r0; if (!s.tmp_0.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "yOffset"); @@ -4353,15 +3483,15 @@ switch (step) { } case 46: r0 = s.retval; - s.yOffset___95305 = (r0); + s.yOffset___25585 = (r0); case 12: case 13: - s.tmp_0 = r0 = s.cp___95238; + s.tmp_0 = r0 = s.cp___25518; r0 = (s.tmp_0 + 1); - s.cp___95238 = (r0); + s.cp___25518 = (r0); r0 = pxsim_String_.charCodeAt(s.arg1, s.tmp_0); - s.ch___95320 = (r0); - r0 = (s.ch___95320 == 10); + s.ch___25600 = (r0); + r0 = (s.ch___25600 == 10); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } @@ -4383,89 +3513,89 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_1 + s.tmp_2); s.arg3 = (r0); - s.arg2 = (s.x0___95236); + s.arg2 = (s.x0___25516); case 14: case 15: - r0 = (s.ch___95320 < 32); + r0 = (s.ch___25600 < 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___95339 = (0); - s.r___95340 = (s.lastchar___95273); - s.off___95342 = (0); - r0 = (s.ch___95320 - 32); + s.l___25619 = (0); + s.r___25620 = (s.lastchar___25553); + s.off___25622 = (0); + r0 = (s.ch___25600 - 32); s.tmp_0 = r0; - r0 = (s.tmp_0 * s.dataSize___95266); - s.guess___95343 = (r0); - r0 = pxsim.BufferMethods.getNumber(s.fontdata___95270, 4, s.guess___95343); + r0 = (s.tmp_0 * s.dataSize___25546); + s.guess___25623 = (r0); + r0 = pxsim.BufferMethods.getNumber(s.fontdata___25550, 4, s.guess___25623); s.tmp_1 = r0; - r0 = (s.tmp_1 == s.ch___95320); + r0 = (s.tmp_1 == s.ch___25600); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 18; continue; } - s.off___95342 = (s.guess___95343); + s.off___25622 = (s.guess___25623); { step = 25; continue; } case 18: case 19: - r0 = (s.l___95339 <= s.r___95340); + r0 = (s.l___25619 <= s.r___25620); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 24; continue; } - s.tmp_1 = r0 = s.l___95339; - r0 = (s.r___95340 - s.l___95339); + s.tmp_1 = r0 = s.l___25619; + r0 = (s.r___25620 - s.l___25619); s.tmp_3 = r0; r0 = (s.tmp_3 >> 1); s.tmp_2 = r0; r0 = (s.tmp_1 + s.tmp_2); - s.m___95362 = (r0); - s.tmp_0 = r0 = s.fontdata___95270; - r0 = (s.m___95362 * s.dataSize___95266); + s.m___25642 = (r0); + s.tmp_0 = r0 = s.fontdata___25550; + r0 = (s.m___25642 * s.dataSize___25546); s.tmp_1 = r0; r0 = pxsim.BufferMethods.getNumber(s.tmp_0, 4, s.tmp_1); - s.v___95371 = (r0); - r0 = (s.v___95371 == s.ch___95320); + s.v___25651 = (r0); + r0 = (s.v___25651 == s.ch___25600); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 20; continue; } - r0 = (s.m___95362 * s.dataSize___95266); - s.off___95342 = (r0); + r0 = (s.m___25642 * s.dataSize___25546); + s.off___25622 = (r0); { step = 24; continue; } case 20: case 21: - r0 = (s.v___95371 < s.ch___95320); + r0 = (s.v___25651 < s.ch___25600); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 22; continue; } - r0 = (s.m___95362 + 1); - s.l___95339 = (r0); + r0 = (s.m___25642 + 1); + s.l___25619 = (r0); { step = 23; continue; } case 22: - r0 = (s.m___95362 - 1); - s.r___95340 = (r0); + r0 = (s.m___25642 - 1); + s.r___25620 = (r0); case 23: { step = 19; continue; } case 24: case 25: - r0 = (s.mult___95239 == 1); + r0 = (s.mult___25519 == 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 26; continue; } - s.tmp_1 = r0 = s.imgBuf___95280; - s.tmp_3 = r0 = s.fontdata___95270; - r0 = (s.off___95342 + 2); + s.tmp_1 = r0 = s.imgBuf___25560; + s.tmp_3 = r0 = s.fontdata___25550; + r0 = (s.off___25622 + 2); s.tmp_4 = r0; - r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___95262); + r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___25542); s.tmp_2 = r0; r0 = pxsim.BufferMethods.write(s.tmp_1, 8, s.tmp_2); - s.tmp_0 = helpers_imageDrawIcon__P89476_mk(s); + s.tmp_0 = helpers_imageDrawIcon__P19926_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.imgBuf___95280; - r0 = (s.arg2 + s.xOffset___95304); + s.tmp_0.arg1 = s.imgBuf___25560; + r0 = (s.arg2 + s.xOffset___25584); s.tmp_0.arg2 = r0; - r0 = (s.arg3 + s.yOffset___95305); + r0 = (s.arg3 + s.yOffset___25585); s.tmp_0.arg3 = r0; s.tmp_0.arg4 = s.arg4; s.callLocIdx = 106; s.pc = 48; return s.tmp_0; @@ -4489,88 +3619,88 @@ switch (step) { s.arg2 = (r0); { step = 37; continue; } case 26: - r0 = (s.off___95342 + 2); - s.off___95342 = (r0); - s.i___95427 = (0); + r0 = (s.off___25622 + 2); + s.off___25622 = (r0); + s.i___25707 = (0); case 27: - r0 = (s.i___95427 < s.dataW___95244); + r0 = (s.i___25707 < s.dataW___25524); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 36; continue; } - s.j___95432 = (0); - s.mask___95433 = (1); - s.tmp_0 = r0 = s.off___95342; + s.j___25712 = (0); + s.mask___25713 = (1); + s.tmp_0 = r0 = s.off___25622; r0 = (s.tmp_0 + 1); - s.off___95342 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___95270, s.tmp_0); - s.c___95434 = (r0); + s.off___25622 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___25550, s.tmp_0); + s.c___25714 = (r0); case 28: - r0 = (s.j___95432 < s.dataH___95250); + r0 = (s.j___25712 < s.dataH___25530); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 35; continue; } - r0 = (s.mask___95433 == 256); + r0 = (s.mask___25713 == 256); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 29; continue; } - s.tmp_2 = r0 = s.off___95342; + s.tmp_2 = r0 = s.off___25622; r0 = (s.tmp_2 + 1); - s.off___95342 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___95270, s.tmp_2); - s.c___95434 = (r0); - s.mask___95433 = (1); + s.off___25622 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___25550, s.tmp_2); + s.c___25714 = (r0); + s.mask___25713 = (1); case 29: case 30: - s.n___95451 = (0); + s.n___25731 = (0); case 31: - r0 = (s.c___95434 & s.mask___95433); + r0 = (s.c___25714 & s.mask___25713); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 32; continue; } - r0 = (s.n___95451 + 1); - s.n___95451 = (r0); - r0 = (s.mask___95433 << 1); - s.mask___95433 = (r0); + r0 = (s.n___25731 + 1); + s.n___25731 = (r0); + r0 = (s.mask___25713 << 1); + s.mask___25713 = (r0); { step = 31; continue; } case 32: - r0 = pxsim_numops_toBoolDecr(s.n___95451); + r0 = pxsim_numops_toBoolDecr(s.n___25731); if (!r0) { step = 33; continue; } - s.tmp_0 = helpers_imageFillRect__P89477_mk(s); + s.tmp_0 = helpers_imageFillRect__P19927_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg2; - r0 = (s.xOffset___95304 * s.mult___95239); + r0 = (s.xOffset___25584 * s.mult___25519); 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___95432 + s.yOffset___95305); + r0 = (s.j___25712 + s.yOffset___25585); s.tmp_5 = r0; - r0 = (s.tmp_5 * s.mult___95239); + r0 = (s.tmp_5 * s.mult___25519); s.tmp_4 = r0; r0 = (s.tmp_3 + s.tmp_4); s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.mult___95239; - r0 = (s.mult___95239 * s.n___95451); + s.tmp_0.arg3 = s.mult___25519; + r0 = (s.mult___25519 * s.n___25731); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = s.arg4; s.callLocIdx = 108; s.pc = 50; return s.tmp_0; case 50: r0 = s.retval; - r0 = (s.j___95432 + s.n___95451); - s.j___95432 = (r0); + r0 = (s.j___25712 + s.n___25731); + s.j___25712 = (r0); { step = 34; continue; } case 33: - r0 = (s.mask___95433 << 1); - s.mask___95433 = (r0); - r0 = (s.j___95432 + 1); - s.j___95432 = (r0); + r0 = (s.mask___25713 << 1); + s.mask___25713 = (r0); + r0 = (s.j___25712 + 1); + s.j___25712 = (r0); case 34: { step = 28; continue; } case 35: - r0 = (s.arg2 + s.mult___95239); + r0 = (s.arg2 + s.mult___25519); s.arg2 = (r0); - r0 = (s.i___95427 + 1); - s.i___95427 = (r0); + r0 = (s.i___25707 + 1); + s.i___25707 = (r0); { step = 27; continue; } case 36: case 37: @@ -4580,12 +3710,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imagePrint__P89511.info = {"start":15326,"length":3300,"line":213,"column":4,"endLine":306,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"imagePrint","argumentNames":["img","text","x","y","color","font","offsets"]} +helpers_imagePrint__P19961.info = {"start":15326,"length":3300,"line":213,"column":4,"endLine":306,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"imagePrint","argumentNames":["img","text","x","y","color","font","offsets"]} -function helpers_imagePrint__P89511_mk(s) { +function helpers_imagePrint__P19961_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrint__P89511, depth: s.depth + 1, + parent: s, fn: helpers_imagePrint__P19961, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4593,31 +3723,31 @@ function helpers_imagePrint__P89511_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - x0___95236: undefined, - cp___95238: undefined, - mult___95239: undefined, - dataW___95244: undefined, - dataH___95250: undefined, - byteHeight___95256: undefined, - charSize___95262: undefined, - dataSize___95266: undefined, - fontdata___95270: undefined, - lastchar___95273: undefined, - imgBuf___95280: undefined, - xOffset___95304: undefined, - yOffset___95305: undefined, - ch___95320: undefined, - l___95339: undefined, - r___95340: undefined, - off___95342: undefined, - guess___95343: undefined, - m___95362: undefined, - v___95371: undefined, - i___95427: undefined, - j___95432: undefined, - mask___95433: undefined, - c___95434: undefined, - n___95451: undefined, + x0___25516: undefined, + cp___25518: undefined, + mult___25519: undefined, + dataW___25524: undefined, + dataH___25530: undefined, + byteHeight___25536: undefined, + charSize___25542: undefined, + dataSize___25546: undefined, + fontdata___25550: undefined, + lastchar___25553: undefined, + imgBuf___25560: undefined, + xOffset___25584: undefined, + yOffset___25585: undefined, + ch___25600: undefined, + l___25619: undefined, + r___25620: undefined, + off___25622: undefined, + guess___25623: undefined, + m___25642: undefined, + v___25651: undefined, + i___25707: undefined, + j___25712: undefined, + mask___25713: undefined, + c___25714: undefined, + n___25731: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -4631,7 +3761,70 @@ function helpers_imagePrint__P89511_mk(s) { -function helpers_imageDrawIcon__P89476(s) { +function image_getFontForText__P19948(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.i___25848 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.i___25848 = (0); + case 1: + s.tmp_1 = r0 = s.i___25848; + 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___25848); + 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___19947; + { step = 5; continue; } + case 2: + case 3: + r0 = (s.i___25848 + 1); + s.i___25848 = (r0); + { step = 1; continue; } + case 4: + r0 = globals.font8___19946; + case 5: + return leave(s, r0) + default: oops() +} } } +image_getFontForText__P19948.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]} + +function image_getFontForText__P19948_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: image_getFontForText__P19948, depth: s.depth + 1, + pc: 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___25848: undefined, + arg0: undefined, +} } + + + + + +function helpers_imageFillRect__P19927(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4647,45 +3840,54 @@ switch (step) { 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_1 = r0 = s.arg1; - s.tmp_3 = helpers_pack__P92096_mk(s); - s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.arg3; - s.callLocIdx = 78; s.pc = 1; return s.tmp_3; + s.tmp_2 = helpers_pack__P22541_mk(s); + s.tmp_2.arg0 = s.arg1; + s.tmp_2.arg1 = s.arg2; + s.callLocIdx = 79; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods._drawIcon(s.tmp_0, s.tmp_1, s.tmp_2, s.arg4); + s.tmp_1 = r0; + s.tmp_4 = helpers_pack__P22541_mk(s); + s.tmp_4.arg0 = s.arg3; + s.tmp_4.arg1 = s.arg4; + s.callLocIdx = 80; 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() } } } -helpers_imageDrawIcon__P89476.info = {"start":5304,"length":145,"line":173,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]} +helpers_imageFillRect__P19927.info = {"start":5454,"length":159,"line":176,"column":4,"endLine":178,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]} -function helpers_imageDrawIcon__P89476_mk(s) { +function helpers_imageFillRect__P19927_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawIcon__P89476, depth: s.depth + 1, + parent: s, fn: helpers_imageFillRect__P19927, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, arg0: undefined, arg1: undefined, arg2: undefined, arg3: undefined, arg4: undefined, + arg5: undefined, } } -function helpers_pack__P92096(s) { +function helpers_pack__P22541(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4700,7 +3902,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_2 = Math_clamp__P87648_mk(s); + s.tmp_2 = Math_clamp__P18098_mk(s); s.tmp_2.arg0 = -30000; s.tmp_2.arg1 = 30000; r0 = (s.arg0 | 0); @@ -4711,7 +3913,7 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_1 & 65535); s.tmp_0 = r0; - s.tmp_5 = Math_clamp__P87648_mk(s); + s.tmp_5 = Math_clamp__P18098_mk(s); s.tmp_5.arg0 = -30000; s.tmp_5.arg1 = 30000; r0 = (s.arg1 | 0); @@ -4726,12 +3928,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_pack__P92096.info = {"start":4278,"length":145,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]} +helpers_pack__P22541.info = {"start":4278,"length":145,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]} -function helpers_pack__P92096_mk(s) { +function helpers_pack__P22541_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_pack__P92096, depth: s.depth + 1, + parent: s, fn: helpers_pack__P22541, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4747,7 +3949,7 @@ function helpers_pack__P92096_mk(s) { -function Math_clamp__P87648(s) { +function Math_clamp__P18098(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4763,9 +3965,9 @@ switch (step) { s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = Math_min__P87652_mk(s); + s.tmp_0 = Math_min__P18102_mk(s); s.tmp_0.arg0 = s.arg1; - s.tmp_1 = Math_max__P87651_mk(s); + s.tmp_1 = Math_max__P18101_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg2; s.callLocIdx = 14; s.pc = 2; return s.tmp_1; @@ -4778,12 +3980,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_clamp__P87648.info = {"start":15643,"length":130,"line":528,"column":4,"endLine":530,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"clamp","argumentNames":["min","max","value"]} +Math_clamp__P18098.info = {"start":15643,"length":130,"line":528,"column":4,"endLine":530,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"clamp","argumentNames":["min","max","value"]} -function Math_clamp__P87648_mk(s) { +function Math_clamp__P18098_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_clamp__P87648, depth: s.depth + 1, + parent: s, fn: Math_clamp__P18098, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4796,7 +3998,7 @@ function Math_clamp__P87648_mk(s) { -function Math_min__P87652(s) { +function Math_min__P18102(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4824,86 +4026,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_min__P87652.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__P87652_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Math_min__P87652, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function helpers_imageFillRect__P89477(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__P92096_mk(s); - s.tmp_2.arg0 = s.arg1; - s.tmp_2.arg1 = s.arg2; - s.callLocIdx = 79; s.pc = 1; return s.tmp_2; - case 1: - r0 = s.retval; - s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P92096_mk(s); - s.tmp_4.arg0 = s.arg3; - s.tmp_4.arg1 = s.arg4; - s.callLocIdx = 80; 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() -} } } -helpers_imageFillRect__P89477.info = {"start":5454,"length":159,"line":176,"column":4,"endLine":178,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]} +Math_min__P18102.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_imageFillRect__P89477_mk(s) { +function Math_min__P18102_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageFillRect__P89477, depth: s.depth + 1, + parent: s, fn: Math_min__P18102, depth: s.depth + 1, pc: 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 Math_max__P87651(s) { +function Math_max__P18101(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4931,12 +4070,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_max__P87651.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"]} +Math_max__P18101.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 Math_max__P87651_mk(s) { +function Math_max__P18101_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_max__P87651, depth: s.depth + 1, + parent: s, fn: Math_max__P18101, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -4947,7 +4086,7 @@ function Math_max__P87651_mk(s) { -function forever__P89604(s) { +function helpers_imageDrawIcon__P19926(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4959,33 +4098,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.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - s.tmp_0 = game_forever__P90536_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 129; s.pc = 1; return s.tmp_0; + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = helpers_pack__P22541_mk(s); + s.tmp_3.arg0 = s.arg2; + s.tmp_3.arg1 = s.arg3; + s.callLocIdx = 78; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods._drawIcon(s.tmp_0, s.tmp_1, s.tmp_2, s.arg4); r0 = undefined; return leave(s, r0) default: oops() } } } -forever__P89604.info = {"start":264,"length":62,"line":6,"column":0,"endLine":8,"endColumn":1,"fileName":"pxt_modules/game/gameoverrides.ts","functionName":"forever","argumentNames":["a"]} +helpers_imageDrawIcon__P19926.info = {"start":5304,"length":145,"line":173,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]} -function forever__P89604_mk(s) { +function helpers_imageDrawIcon__P19926_mk(s) { checkStack(s.depth); return { - parent: s, fn: forever__P89604, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawIcon__P19926, depth: s.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 game_forever__P90536(s) { +function helpers_stringSplit__P18093(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4995,58 +4150,186 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.A___25871 = undefined; + s.lim___25873 = undefined; + s.s___25889 = undefined; + s.p___25892 = undefined; + s.R___25893 = undefined; + s.z___25907 = undefined; + s.T___25920 = undefined; + s.q___25921 = undefined; + s.e___25927 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.foreverRunning___92471); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = pxsim_Array__mk(); + s.A___25871 = (r0); + s.lim___25873 = (0); + r0 = (s.arg2 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.foreverRunning___92471 = (true); - r0 = pxsim.control.runInParallel(game_forever_inline__P95778); + r0 = (536870912 - 1); + s.lim___25873 = (r0); + { step = 4; continue; } case 1: - case 2: - r0 = pxsim_pxtcore_mkClassInstance(scene_GameForeverHandler__C90341_VT); + r0 = (s.arg2 < 0); s.tmp_0 = r0; - s.tmp_1 = scene_GameForeverHandler_constructor__P90343_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.callLocIdx = 971; s.pc = 3; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.lim___25873 = (0); + { step = 3; continue; } + case 2: + r0 = (s.arg2 | 0); + s.lim___25873 = (r0); case 3: - r0 = s.retval; - s.tmp_3 = game_currentScene__P90520_mk(s); - s.callLocIdx = 970; s.pc = 4; return s.tmp_3; case 4: + r0 = pxsim_String_.length(s.arg0); + s.s___25889 = (r0); + s.p___25892 = (0); + s.R___25893 = (s.arg1); + r0 = (s.lim___25873 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.A___25871; + { 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___25871, 0, s.arg0); + r0 = s.A___25871; + { step = 21; continue; } + case 7: + case 8: + r0 = (s.s___25889 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + s.tmp_1 = helpers_splitMatch__P22327_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = 0; + s.tmp_1.arg2 = s.R___25893; + s.callLocIdx = 10; s.pc = 22; return s.tmp_1; + case 22: r0 = s.retval; - r0 = r0.fields["gameForeverHandlers"]; - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_2, s.tmp_0); - r0 = undefined; + s.z___25907 = (r0); + r0 = (s.z___25907 > -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = s.A___25871; + { step = 21; continue; } + case 9: + case 10: + r0 = pxsim_Array_.setAt(s.A___25871, 0, s.arg0); + r0 = s.A___25871; + { step = 21; continue; } + case 11: + case 12: + s.q___25921 = (s.p___25892); + case 13: + r0 = (s.q___25921 != s.s___25889); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + s.tmp_1 = helpers_splitMatch__P22327_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.q___25921; + s.tmp_1.arg2 = s.R___25893; + s.callLocIdx = 11; s.pc = 23; return s.tmp_1; + case 23: + r0 = s.retval; + s.e___25927 = (r0); + r0 = (s.e___25927 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = (s.q___25921 + 1); + s.q___25921 = (r0); + { step = 19; continue; } + case 14: + r0 = (s.e___25927 == s.p___25892); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + r0 = (s.q___25921 + 1); + s.q___25921 = (r0); + { step = 18; continue; } + case 15: + s.tmp_0 = helpers_stringSlice__P18090_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.p___25892; + s.tmp_0.arg2 = s.q___25921; + s.callLocIdx = 12; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.T___25920 = (r0); + r0 = pxsim_Array__push(s.A___25871, s.T___25920); + r0 = pxsim_Array__length(s.A___25871); + s.tmp_1 = r0; + r0 = (s.tmp_1 == s.lim___25873); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + r0 = s.A___25871; + { step = 21; continue; } + case 16: + case 17: + s.p___25892 = (s.e___25927); + s.q___25921 = (s.p___25892); + case 18: + case 19: + { step = 13; continue; } + case 20: + s.tmp_0 = helpers_stringSlice__P18090_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.p___25892; + s.tmp_0.arg2 = s.q___25921; + s.callLocIdx = 13; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.T___25920 = (r0); + r0 = pxsim_Array__push(s.A___25871, s.T___25920); + r0 = s.A___25871; + case 21: return leave(s, r0) default: oops() } } } -game_forever__P90536.info = {"start":14193,"length":820,"line":421,"column":4,"endLine":444,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"forever","argumentNames":["action"]} +helpers_stringSplit__P18093.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 game_forever__P90536_mk(s) { +function helpers_stringSplit__P18093_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_forever__P90536, depth: s.depth + 1, + parent: s, fn: helpers_stringSplit__P18093, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, + A___25871: undefined, + lim___25873: undefined, + s___25889: undefined, + p___25892: undefined, + R___25893: undefined, + z___25907: undefined, + T___25920: undefined, + q___25921: undefined, + e___25927: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function game_forever_inline__P95778(s) { +function helpers_splitMatch__P22327(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5056,49 +4339,85 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.handlers___95780 = undefined; + s.r___26007 = undefined; + s.s___26010 = undefined; + s.i___26020 = 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___26007 = (r0); + r0 = pxsim_String_.length(s.arg0); + s.s___26010 = (r0); + r0 = (s.arg1 + s.r___26007); + s.tmp_1 = r0; + r0 = (s.tmp_1 > s.s___26010); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = -1; + { step = 7; continue; } case 1: - r0 = pxsim_numops_toBoolDecr(1); - if (!r0) { step = 2; continue; } - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 966; s.pc = 3; return s.tmp_0; + case 2: + s.i___26020 = (0); case 3: - r0 = s.retval; - r0 = r0.fields["gameForeverHandlers"]; - s.handlers___95780 = (r0); - s.tmp_0 = helpers_arrayForEach__P87630_mk(s); - s.tmp_0.arg0 = s.handlers___95780; - s.tmp_0.arg1 = game_forever_inline__P95786; - s.callLocIdx = 968; s.pc = 4; return s.tmp_0; + r0 = (s.i___26020 < s.r___26007); + 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___26020); + 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___26020); + 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: - r0 = s.retval; - s.tmp_0 = pause__P87934_mk(s); - s.tmp_0.arg0 = 20; - s.callLocIdx = 969; s.pc = 5; return s.tmp_0; case 5: - r0 = s.retval; - { step = 1; continue; } - case 2: - r0 = undefined; + r0 = (s.i___26020 + 1); + s.i___26020 = (r0); + { step = 3; continue; } + case 6: + r0 = (s.arg1 + s.r___26007); + case 7: return leave(s, r0) default: oops() } } } -game_forever_inline__P95778.info = {"start":14345,"length":535,"line":424,"column":34,"endLine":438,"endColumn":13,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} +helpers_splitMatch__P22327.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 game_forever_inline__P95778_mk(s) { +function helpers_splitMatch__P22327_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_forever_inline__P95778, depth: s.depth + 1, + parent: s, fn: helpers_splitMatch__P22327, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - handlers___95780: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + r___26007: undefined, + s___26010: undefined, + i___26020: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function game_forever_inline__P95786(s) { +function helpers_stringSlice__P18090(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5108,89 +4427,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.len___25972 = 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.fields["lock"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = pxsim_String_.length(s.arg0); + s.len___25972 = (r0); + r0 = (s.arg1 < 0); s.tmp_0 = r0; 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__P95795); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim.control.runInParallel(s.tmp_0); + s.tmp_1 = Math_max__P18101_mk(s); + r0 = (s.len___25972 + s.arg1); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 9; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + s.arg1 = (r0); case 1: case 2: - r0 = undefined; + r0 = (s.arg2 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.arg2 = (s.len___25972); + { step = 6; continue; } + case 3: + r0 = (s.arg2 === null); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.arg2 = (0); + case 4: + case 5: + case 6: + r0 = (s.arg2 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = (s.len___25972 + s.arg2); + s.arg2 = (r0); + case 7: + case 8: + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + r0 = (s.arg2 - s.arg1); + s.tmp_2 = r0; + r0 = pxsim_String_.substr(s.tmp_0, s.tmp_1, s.tmp_2); return leave(s, r0) default: oops() } } } -game_forever_inline__P95786.info = {"start":14496,"length":319,"line":427,"column":37,"endLine":435,"endColumn":21,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["h"]} +helpers_stringSlice__P18090.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 game_forever_inline__P95786_mk(s) { +function helpers_stringSlice__P18090_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_forever_inline__P95786, depth: s.depth + 1, + parent: s, fn: helpers_stringSlice__P18090, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + len___25972: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function game_forever_inline__P95795(s) { -let r0 = s.r0, 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 = if_handler_1_mk(s); - s.tmp_0.arg0 = s.caps[0]; - if (!s.tmp_0.arg0.vtable.iface) { - setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 1); - s.callLocIdx = 967; 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 = 967; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 967; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 967; s.pc = 1; return s.tmp_0; } - } - case 1: - r0 = s.retval; - r0 = (s.caps[0]).fields["lock"] = (false); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -game_forever_inline__P95795.info = {"start":14635,"length":130,"line":430,"column":50,"endLine":433,"endColumn":29,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} - -function game_forever_inline__P95795_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_forever_inline__P95795, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, -} } - - - - - -function scene_GameForeverHandler_constructor__P90343(s) { +function scene_Scene_render__P20843(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5200,34 +4511,147 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.s___26104 = undefined; + s.unnamed180___U1 = undefined; + s.unnamed181___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_GameForeverHandler__C90341_VT)) failedCast(r0); - r0 = (s.arg0).fields["handler"] = (s.arg1); + if (!checkSubtype(r0, scene_Scene__C20814_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__P20843_mk(s); + r0 = s.arg0.fields["previousScene"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 930; s.pc = 12; return s.tmp_3; + case 12: + r0 = s.retval; + { step = 6; continue; } + case 5: + s.tmp_0 = scene_Background_draw__P20649_mk(s); + r0 = s.arg0.fields["background"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 931; 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__P18076_mk(s); + r0 = s.arg0.fields["allSprites"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = scene_Scene_render_inline__P26081; + s.callLocIdx = 936; 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___26104 = (undefined); + r0 = s.arg0.fields["allSprites"]; + s.unnamed180___U1 = (r0); + s.unnamed181___U2 = (0); + case 9: + s.tmp_0 = r0 = s.unnamed181___U2; + r0 = pxsim_Array__length(s.unnamed180___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 10; continue; } + r0 = pxsim_Array__getAt(s.unnamed180___U1, s.unnamed181___U2); + s.s___26104 = (r0); + s.tmp_2 = if___draw_2_mk(s); + s.tmp_2.arg0 = s.s___26104; + 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 = 937; 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 = 937; s.pc = 15; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 937; s.pc = 15; return s.tmp_2;; } + else { s.callLocIdx = 937; s.pc = 15; return s.tmp_2; } + } + case 15: + r0 = s.retval; + r0 = (s.unnamed181___U2 + 1); + s.unnamed181___U2 = (r0); + { step = 9; continue; } + case 10: + s.unnamed180___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_GameForeverHandler_constructor__P90343.info = {"start":1340,"length":65,"line":47,"column":8,"endLine":49,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","handler"]} +scene_Scene_render__P20843.info = {"start":8203,"length":917,"line":228,"column":8,"endLine":252,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]} -function scene_GameForeverHandler_constructor__P90343_mk(s) { +function scene_Scene_render__P20843_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_GameForeverHandler_constructor__P90343, depth: s.depth + 1, + parent: s, fn: scene_Scene_render__P20843, depth: s.depth + 1, pc: 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___26104: undefined, + unnamed180___U1: undefined, + unnamed181___U2: undefined, arg0: undefined, - arg1: undefined, } } -function helpers_arrayForEach__P87630(s) { +function scene_Scene_render_inline__P26081(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5237,49 +4661,95 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___95813 = undefined; - s.i___95816 = 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___95813 = (r0); - s.i___95816 = (0); - case 1: - r0 = (s.i___95816 < s.len___95813); - 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___95816); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___95816; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 5; s.pc = 3; return s.tmp_1; + 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 = 932; s.pc = 3; return s.tmp_2; } + } case 3: r0 = s.retval; - r0 = (s.i___95816 + 1); - s.i___95816 = (r0); - { step = 1; continue; } + 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 = 933; 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 = 934; 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 = 935; 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 = undefined; + // jmp value (already in r0) + s.tmp_9 = r0; + r0 = s.tmp_9; return leave(s, r0) default: oops() } } } -helpers_arrayForEach__P87630.info = {"start":7439,"length":250,"line":254,"column":4,"endLine":259,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayForEach","argumentNames":["arr","callbackfn"]} +scene_Scene_render_inline__P26081.info = {"start":8781,"length":52,"line":242,"column":37,"endLine":242,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]} -function helpers_arrayForEach__P87630_mk(s) { +function scene_Scene_render_inline__P26081_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayForEach__P87630, depth: s.depth + 1, + parent: s, fn: scene_Scene_render_inline__P26081, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___95813: undefined, - i___95816: 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, } } @@ -5288,7 +4758,7 @@ function helpers_arrayForEach__P87630_mk(s) { -function Sprite_y__P89878(s) { +function scene_Background_draw__P20649(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5300,52 +4770,60 @@ 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__C89862_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P89925_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - s.tmp_4 = Sprite_height__P89919_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 311; 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 = 312; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, scene_Background__C20640_VT)) failedCast(r0); + r0 = s.arg0.fields["color"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.fill(globals.screen___20003, 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___20003, s.tmp_1, 0, 0); case 1: + case 2: + r0 = s.arg0.fields["_layers"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkAction(1, scene_Background_draw_inline__P26252); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); + s.tmp_2 = helpers_arrayForEach__P18080_mk(s); + r0 = s.arg0.fields["_layers"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 793; s.pc = 5; return s.tmp_2; + case 5: r0 = s.retval; + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_y__P89878.info = {"start":3081,"length":65,"line":126,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this","v"]} +scene_Background_draw__P20649.info = {"start":1166,"length":545,"line":48,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this"]} -function Sprite_y__P89878_mk(s) { +function scene_Background_draw__P20649_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_y__P89878, depth: s.depth + 1, + parent: s, fn: scene_Background_draw__P20649, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function Sprite_top__P89925(s) { +function scene_Background_draw_inline__P26252(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5355,62 +4833,66 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___95841 = undefined; + s.ox___26254 = undefined; + s.oy___26265 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 360; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = r0.fields["physicsEngine"]; - s.physics___95841 = (r0); - s.tmp_0 = PhysicsEngine__C90032_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___95841; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = 0; - 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___26254 = (r0); + r0 = s.caps[0].fields["camera"]; + r0 = r0.fields["drawOffsetY"]; s.tmp_1 = r0; - r0 = s.arg0.fields["_y"]; + r0 = s.arg0.fields["distance"]; s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); - s.tmp_0.arg3 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C90032_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 = (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___26265 = (r0); + s.tmp_0 = scene_BackgroundLayer_draw__P20658_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.ox___26254; + s.tmp_0.arg2 = s.oy___26265; + s.callLocIdx = 792; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_top__P89925.info = {"start":11687,"length":256,"line":421,"column":4,"endLine":431,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this","value"]} +scene_Background_draw_inline__P26252.info = {"start":1373,"length":312,"line":53,"column":37,"endLine":58,"endColumn":17,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["layer"]} -function Sprite_top__P89925_mk(s) { +function scene_Background_draw_inline__P26252_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_top__P89925, depth: s.depth + 1, + parent: s, fn: scene_Background_draw_inline__P26252, depth: s.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___95841: undefined, + ox___26254: undefined, + oy___26265: undefined, arg0: undefined, - arg1: undefined, } } -function PhysicsEngine_moveSprite__P90036(s) { +function scene_BackgroundLayer_draw__P20658(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5420,75 +4902,251 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.w___26283 = undefined; + s.h___26286 = undefined; + s.pw___26289 = undefined; + s.ph___26293 = undefined; + s.rx___26302 = undefined; + s.ry___26305 = undefined; + s.y___26374 = undefined; + s.py___26375 = undefined; + s.dh___26384 = undefined; + s.x___26392 = undefined; + s.rxl___26393 = undefined; + s.px___26399 = undefined; + s.dw___26403 = 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, PhysicsEngine__C90032_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_BackgroundLayer__C20650_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.width(globals.screen___20003); + s.w___26283 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___20003); + s.h___26286 = (r0); + r0 = s.arg0.fields["img"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_0); + s.pw___26289 = (r0); + r0 = s.arg0.fields["img"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_0); + s.ph___26293 = (r0); + r0 = pxsim_numops_toBoolDecr(s.pw___26289); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_numops_toBoolDecr(s.ph___26293); + 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___26302 = (r0); + r0 = (0 - s.arg2); + s.ry___26305 = (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___26302; + r0 = (s.w___26283 + s.pw___26289); + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.rx___26302 = (r0); + { step = 7; continue; } + case 6: + s.tmp_0 = r0 = s.rx___26302; + r0 = (s.w___26283 + s.pw___26289); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.rx___26302 = (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___26305; + r0 = (s.h___26286 + s.ph___26293); + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.ry___26305 = (r0); + { step = 10; continue; } + case 9: + s.tmp_0 = r0 = s.ry___26305; + r0 = (s.h___26286 + s.ph___26293); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.ry___26305 = (r0); + case 10: + r0 = (s.rx___26302 % s.w___26283); + s.rx___26302 = (r0); + r0 = (s.rx___26302 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + r0 = (s.rx___26302 + s.w___26283); + s.rx___26302 = (r0); + case 11: + case 12: + r0 = (s.ry___26305 % s.h___26286); + s.ry___26305 = (r0); + r0 = (s.ry___26305 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = (s.ry___26305 + s.h___26286); + s.ry___26305 = (r0); + case 13: + case 14: + r0 = pxsim.Math_.floor(s.rx___26302); + s.rx___26302 = (r0); + r0 = pxsim.Math_.floor(s.ry___26305); + s.ry___26305 = (r0); + s.y___26374 = (0); + s.py___26375 = (0); + case 15: + r0 = (s.y___26374 < s.h___26286); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + r0 = (s.y___26374 % s.ph___26293); + s.py___26375 = (r0); + s.tmp_0 = Math_min__P18102_mk(s); + r0 = (s.ph___26293 - s.py___26375); + s.tmp_0.arg0 = r0; + r0 = (s.h___26286 - s.ry___26305); + s.tmp_0.arg1 = r0; + s.callLocIdx = 795; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.dh___26384 = (r0); + s.x___26392 = (0); + s.rxl___26393 = (s.rx___26302); + case 16: + r0 = (s.x___26392 < s.w___26283); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 19; continue; } + r0 = (s.x___26392 % s.pw___26289); + s.px___26399 = (r0); + s.tmp_0 = Math_min__P18102_mk(s); + r0 = (s.pw___26289 - s.px___26399); + s.tmp_0.arg0 = r0; + r0 = (s.w___26283 - s.rxl___26393); + s.tmp_0.arg1 = r0; + s.callLocIdx = 796; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.dw___26403 = (r0); + r0 = s.arg0.fields["img"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.drawImage(globals.screen___20003, s.tmp_0, s.rxl___26393, s.ry___26305); + r0 = (s.rxl___26393 + s.dw___26403); + s.tmp_0 = r0; + r0 = (s.tmp_0 % s.w___26283); + s.rxl___26393 = (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___26403; + { step = 18; continue; } + case 17: + r0 = s.w___26283; + case 18: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.x___26392 + s.tmp_1); + s.x___26392 = (r0); + { step = 16; continue; } + case 19: + r0 = (s.ry___26305 + s.dh___26384); + s.tmp_0 = r0; + r0 = (s.tmp_0 % s.h___26286); + s.ry___26305 = (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___26384; + { step = 21; continue; } + case 20: + r0 = s.h___26286; + case 21: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.y___26374 + s.tmp_1); + s.y___26374 = (r0); + { step = 15; continue; } + case 22: + case 23: r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_moveSprite__P90036.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"]} +scene_BackgroundLayer_draw__P20658.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 PhysicsEngine_moveSprite__P90036_mk(s) { +function scene_BackgroundLayer_draw__P20658_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_moveSprite__P90036, depth: s.depth + 1, + parent: s, fn: scene_BackgroundLayer_draw__P20658, depth: s.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___26283: undefined, + h___26286: undefined, + pw___26289: undefined, + ph___26293: undefined, + rx___26302: undefined, + ry___26305: undefined, + y___26374: undefined, + py___26375: undefined, + dh___26384: undefined, + x___26392: undefined, + rxl___26393: undefined, + px___26399: undefined, + dw___26403: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, -} } - - - - - -function Sprite_top__P89924(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C89862_VT)) failedCast(r0); - r0 = s.arg0.fields["_y"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) - default: oops() -} } } -Sprite_top__P89924.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__P89924.isGetter = true; - -function Sprite_top__P89924_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_top__P89924, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, } } -function Sprite_height__P89919(s) { +function helpers_arraySort__P18076(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5500,33 +5158,58 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - r0 = s.arg0.fields["_height"]; + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_Array__length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_2 > 1); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + s.arg1 = (helpers_arraySort_inline__P26126); + case 3: + case 4: + s.tmp_0 = helpers_sortHelper__P22325_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 2; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + return leave(s, r0) default: oops() } } } -Sprite_height__P89919.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__P89919.isGetter = true; +helpers_arraySort__P18076.info = {"start":5663,"length":859,"line":207,"column":4,"endLine":227,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySort","argumentNames":["arr","callbackfn"]} -function Sprite_height__P89919_mk(s) { +function helpers_arraySort__P18076_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_height__P89919, depth: s.depth + 1, + parent: s, fn: helpers_arraySort__P18076, depth: s.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_y__P89877(s) { +function helpers_arraySort_inline__P26126(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5536,47 +5219,142 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.aIsUndef___26129 = undefined; + s.bIsUndef___26133 = undefined; + s.aIsNull___26144 = undefined; + s.bIsNull___26148 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_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); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = (s.arg0 === undefined); + s.aIsUndef___26129 = (r0); + r0 = (s.arg1 === undefined); + s.bIsUndef___26133 = (r0); + s.tmp_0 = r0 = s.aIsUndef___26129; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.bIsUndef___26133; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + r0 = 0; + { step = 17; continue; } + { step = 8; continue; } + case 3: + r0 = pxsim_numops_toBoolDecr(s.aIsUndef___26129); + if (!r0) { step = 4; continue; } + r0 = 1; + { step = 17; continue; } + { step = 7; continue; } + case 4: + r0 = pxsim_numops_toBoolDecr(s.bIsUndef___26133); + if (!r0) { step = 5; continue; } + r0 = -1; + { step = 17; continue; } + case 5: + case 6: + case 7: + case 8: + r0 = (s.arg0 === null); + s.aIsNull___26144 = (r0); + r0 = (s.arg1 === null); + s.bIsNull___26148 = (r0); + s.tmp_0 = r0 = s.aIsNull___26144; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } + case 9: + r0 = s.bIsNull___26148; + case 10: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 11; continue; } + r0 = 0; + { step = 17; continue; } + { step = 16; continue; } + case 11: + r0 = pxsim_numops_toBoolDecr(s.aIsNull___26144); + if (!r0) { step = 12; continue; } + r0 = 1; + { step = 17; continue; } + { step = 15; continue; } + case 12: + r0 = pxsim_numops_toBoolDecr(s.bIsNull___26148); + if (!r0) { step = 13; continue; } + r0 = -1; + { step = 17; continue; } + case 13: + case 14: + case 15: + case 16: + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 18); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 18: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); + s.tmp_2 = r0; + if ((s.arg1) && (s.arg1).vtable) { + setupResume(s, 19); + pxsim_String__stringConv(s.arg1); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg1) + ""; } + case 19: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_7 = r0; + r0 = pxsim_String__concat(s.tmp_6, s.tmp_7); + s.tmp_5 = r0; + r0 = pxsim_String_.compare(s.tmp_2, s.tmp_5); + case 17: + return leave(s, r0) default: oops() } } } -Sprite_y__P89877.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__P89877.isGetter = true; +helpers_arraySort_inline__P26126.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 Sprite_y__P89877_mk(s) { +function helpers_arraySort_inline__P26126_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_y__P89877, depth: s.depth + 1, + parent: s, fn: helpers_arraySort_inline__P26126, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + aIsUndef___26129: undefined, + bIsUndef___26133: undefined, + aIsNull___26144: undefined, + bIsNull___26148: undefined, arg0: undefined, + arg1: undefined, } } -function Fx_div__P87683(s) { +function helpers_sortHelper__P22325(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5586,25 +5364,105 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.len___26183 = undefined; + s.i___26186 = undefined; + s.j___26192 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 << 8); + r0 = pxsim_Array__length(s.arg0); + s.tmp_1 = r0; + r0 = (s.tmp_1 <= 0); s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.arg1); + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = s.arg0; + { step = 11; continue; } + case 3: + case 4: + r0 = pxsim_Array__length(s.arg0); + s.len___26183 = (r0); + s.i___26186 = (0); + case 5: + s.tmp_1 = r0 = s.i___26186; + r0 = (s.len___26183 - 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___26186 + 1); + s.j___26192 = (r0); + case 6: + r0 = (s.j___26192 < s.len___26183); + 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___26186); + s.tmp_3.arg0 = r0; + r0 = pxsim_Array__getAt(s.arg0, s.j___26192); + s.tmp_3.arg1 = r0; + setupLambda(s.tmp_3, s.tmp_3.argL); + s.callLocIdx = 0; s.pc = 12; return s.tmp_3; + case 12: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 > 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 7; continue; } + s.tmp_4 = helpers_swap__P22324_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = s.i___26186; + s.tmp_4.arg2 = s.j___26192; + s.callLocIdx = 1; s.pc = 13; return s.tmp_4; + case 13: + r0 = s.retval; + case 7: + case 8: + r0 = (s.j___26192 + 1); + s.j___26192 = (r0); + { step = 6; continue; } + case 9: + r0 = (s.i___26186 + 1); + s.i___26186 = (r0); + { step = 5; continue; } + case 10: + r0 = s.arg0; + case 11: return leave(s, r0) default: oops() } } } -Fx_div__P87683.info = {"start":1145,"length":129,"line":35,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"div","argumentNames":["a","b"]} +helpers_sortHelper__P22325.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 Fx_div__P87683_mk(s) { +function helpers_sortHelper__P22325_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_div__P87683, depth: s.depth + 1, + parent: s, fn: helpers_sortHelper__P22325, depth: s.depth + 1, pc: 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___26183: undefined, + i___26186: undefined, + j___26192: undefined, arg0: undefined, arg1: undefined, } } @@ -5613,7 +5471,7 @@ function Fx_div__P87683_mk(s) { -function Sprite_right__P89922(s) { +function helpers_swap__P22324(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5623,48 +5481,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.temp___26221 = 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__C89862_VT)) failedCast(r0); - s.tmp_1 = Sprite_left__P89920_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 355; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - s.tmp_0 = r0; - s.tmp_3 = Sprite_width__P89918_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 356; s.pc = 2; return s.tmp_3; - case 2: - r0 = s.retval; + r0 = pxsim_Array__getAt(s.arg0, s.arg1); + s.temp___26221 = (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 = (s.tmp_0 + s.tmp_2); - return leaveAccessor(s, r0) + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.tmp_2); + r0 = pxsim_Array_.setAt(s.arg0, s.arg2, s.temp___26221); + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_right__P89922.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__P89922.isGetter = true; +helpers_swap__P22324.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 Sprite_right__P89922_mk(s) { +function helpers_swap__P22324_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P89922, depth: s.depth + 1, + parent: s, fn: helpers_swap__P22324, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, + temp___26221: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function Sprite_width__P89918(s) { +function scene_Camera_update__P20769(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5674,27 +5530,179 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.elapsed___26490 = undefined; + s.percentComplete___26504 = undefined; + s.damp___26511 = undefined; + s.f___26520 = undefined; + s.x___26526 = undefined; + s.y___26533 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - r0 = s.arg0.fields["_width"]; + if (!checkSubtype(r0, scene_Camera__C20752_VT)) failedCast(r0); + r0 = s.arg0.fields["sprite"]; s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = r0 = s.arg0; + s.tmp_3 = Sprite_x__P20325_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 891; s.pc = 9; return s.tmp_3; + case 9: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["_lastUpdatedSpriteX"] = (s.tmp_2); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Sprite_y__P20327_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 892; s.pc = 10; return s.tmp_2; + case 10: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_lastUpdatedSpriteY"] = (s.tmp_1); + s.tmp_0 = scene_Camera_offsetX__P20758_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_2 = Sprite_x__P20325_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 893; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___20003); + 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 = 894; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = scene_Camera_offsetY__P20760_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_2 = Sprite_y__P20327_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 895; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___20003); + 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 = 896; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + case 1: + case 2: + 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___26490 = (r0); + r0 = s.arg0.fields["shakeDuration"]; + s.tmp_1 = r0; + r0 = (s.elapsed___26490 >= 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___26490 / s.tmp_0); + s.percentComplete___26504 = (r0); + s.damp___26511 = (1); + r0 = (s.percentComplete___26504 >= 0.75); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_1 = Math_max__P18101_mk(s); + s.tmp_1.arg0 = 0; + r0 = (1 - s.percentComplete___26504); + s.tmp_1.arg1 = r0; + s.callLocIdx = 899; s.pc = 15; return s.tmp_1; + case 15: + r0 = s.retval; + s.damp___26511 = (r0); + case 4: + case 5: + r0 = s.arg0.fields["shakeAmplitude"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 * s.damp___26511); + s.f___26520 = (r0); + r0 = pxsim.Math_.random(); + s.tmp_1 = r0; + r0 = (s.tmp_1 * s.f___26520); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 0); + s.x___26526 = (r0); + r0 = pxsim.Math_.random(); + s.tmp_1 = r0; + r0 = (s.tmp_1 * s.f___26520); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 0); + s.y___26533 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["drawOffsetX"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.x___26526); + 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___26533); + 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() } } } -Sprite_width__P89918.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__P89918.isGetter = true; +scene_Camera_update__P20769.info = {"start":2563,"length":1418,"line":83,"column":8,"endLine":116,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]} -function Sprite_width__P89918_mk(s) { +function scene_Camera_update__P20769_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_width__P89918, depth: s.depth + 1, + parent: s, fn: scene_Camera_update__P20769, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + elapsed___26490: undefined, + percentComplete___26504: undefined, + damp___26511: undefined, + f___26520: undefined, + x___26526: undefined, + y___26533: undefined, arg0: undefined, } } @@ -5702,7 +5710,7 @@ function Sprite_width__P89918_mk(s) { -function Sprite_left__P89921(s) { +function scene_Camera_offsetY__P20760(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5712,53 +5720,84 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___95888 = undefined; + s.scene___26552 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 352; s.pc = 1; return s.tmp_0; - case 1: + if (!checkSubtype(r0, scene_Camera__C20752_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 882; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; - r0 = r0.fields["physicsEngine"]; - s.physics___95888 = (r0); - s.tmp_0 = PhysicsEngine__C90032_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___95888; - s.tmp_0.arg1 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + s.scene___26552 = (r0); + r0 = s.scene___26552.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___26552.fields["tileMap"]; s.tmp_1 = r0; - r0 = s.arg0.fields["_x"]; + 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 = (s.tmp_1 - s.tmp_3); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = 0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C90032_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 = 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_10 = tiles_TileMap_offsetY__P20713_mk(s); + r0 = s.scene___26552.fields["tileMap"]; + s.tmp_10.arg0 = r0; + s.tmp_10.arg1 = s.arg1; + s.callLocIdx = 884; s.pc = 6; return s.tmp_10; + case 6: r0 = s.retval; + s.tmp_9 = r0; + r0 = pxsim.Math_.floor(s.tmp_9); + s.tmp_8 = r0; + r0 = (s.tmp_7).fields["_offsetY"] = (s.tmp_8); + { step = 4; continue; } + case 3: + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.Math_.floor(s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_offsetY"] = (s.tmp_1); + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_left__P89921.info = {"start":10853,"length":257,"line":391,"column":4,"endLine":401,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this","value"]} +scene_Camera_offsetY__P20760.info = {"start":1152,"length":291,"line":39,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this","v"]} -function Sprite_left__P89921_mk(s) { +function scene_Camera_offsetY__P20760_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_left__P89921, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetY__P20760, depth: s.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___95888: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + scene___26552: undefined, arg0: undefined, arg1: undefined, } } @@ -5767,7 +5806,7 @@ function Sprite_left__P89921_mk(s) { -function Sprite_left__P89920(s) { +function tiles_TileMap_enabled__P20718(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5782,22 +5821,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - r0 = s.arg0.fields["_x"]; + if (!checkSubtype(r0, tiles_TileMap__C20706_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 = (s.tmp_0 / 256); + r0 = pxsim_Boolean__bang(s.tmp_0); return leaveAccessor(s, r0) default: oops() } } } -Sprite_left__P89920.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__P89920.isGetter = true; +tiles_TileMap_enabled__P20718.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__P20718.isGetter = true; -function Sprite_left__P89920_mk(s) { +function tiles_TileMap_enabled__P20718_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_left__P89920, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_enabled__P20718, depth: s.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, } } @@ -5805,7 +5853,7 @@ function Sprite_left__P89920_mk(s) { -function Sprite_setPosition__P89930(s) { +function tiles_TileMap_offsetY__P20713(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5815,88 +5863,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___95907 = 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__C89862_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 372; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = r0.fields["physicsEngine"]; - s.physics___95907 = (r0); - s.tmp_0 = PhysicsEngine__C90032_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___95907; - s.tmp_0.arg1 = s.arg0; - s.tmp_2 = r0 = s.arg1; - s.tmp_4 = Sprite_x__P89875_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 373; s.pc = 3; return s.tmp_4; + if (!checkSubtype(r0, tiles_TileMap__C20706_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P18098_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_1 = Math_max__P18101_mk(s); + s.tmp_3 = tiles_TileMap_areaHeight__P20715_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 821; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_2 - s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_1 * 256); - s.tmp_5 = r0; - r0 = (s.tmp_5 | 0); - s.tmp_0.arg2 = r0; - s.tmp_7 = r0 = s.arg2; - s.tmp_9 = Sprite_y__P89877_mk(s); - s.tmp_9.arg0 = s.arg0; - s.callLocIdx = 375; s.pc = 4; return s.tmp_9; - case 4: - r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_7 - s.tmp_8); - s.tmp_6 = r0; - r0 = (s.tmp_6 * 256); - s.tmp_10 = r0; - r0 = (s.tmp_10 | 0); - s.tmp_0.arg3 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C90032_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.moveSprite; - s.pc = 2; return s.tmp_0; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___20003); + s.tmp_4 = r0; + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 822; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - r0 = undefined; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 823; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -Sprite_setPosition__P89930.info = {"start":13931,"length":220,"line":496,"column":4,"endLine":503,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setPosition","argumentNames":["this","x","y"]} +tiles_TileMap_offsetY__P20713.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 Sprite_setPosition__P89930_mk(s) { +function tiles_TileMap_offsetY__P20713_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setPosition__P89930, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_offsetY__P20713, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - physics___95907: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function Sprite_x__P89875(s) { +function tiles_TileMap_areaHeight__P20715(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5911,28 +5930,34 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - r0 = s.arg0.fields["_x"]; + if (!checkSubtype(r0, tiles_TileMap__C20706_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["_height"]; s.tmp_1 = r0; - r0 = s.arg0.fields["_width"]; + r0 = s.arg0.fields["_scale"]; s.tmp_3 = r0; - r0 = (s.tmp_3 << 8); + 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 = 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) + r0 = s.tmp_4; + return leave(s, r0) default: oops() } } } -Sprite_x__P89875.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__P89875.isGetter = true; +tiles_TileMap_areaHeight__P20715.info = {"start":9864,"length":93,"line":337,"column":8,"endLine":339,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} -function Sprite_x__P89875_mk(s) { +function tiles_TileMap_areaHeight__P20715_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_x__P89875, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaHeight__P20715, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5946,7 +5971,7 @@ function Sprite_x__P89875_mk(s) { -function TextSprite_setMaxFontHeight__P91857(s) { +function tiles_TileMap_scale__P20709(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5958,38 +5983,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, TextSprite__C91854_VT)) failedCast(r0); - r0 = (s.arg0).fields["maxFontHeight"] = (s.arg1); - s.tmp_0 = TextSprite_update__P91856_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1314; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, tiles_TileMap__C20706_VT)) failedCast(r0); + r0 = s.arg0.fields["_scale"]; + return leaveAccessor(s, r0) default: oops() } } } -TextSprite_setMaxFontHeight__P91857.info = {"start":2047,"length":106,"line":50,"column":4,"endLine":53,"endColumn":5,"fileName":"pxt_modules/arcade-text/text.ts","functionName":"setMaxFontHeight","argumentNames":["this","height"]} +tiles_TileMap_scale__P20709.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__P20709.isGetter = true; -function TextSprite_setMaxFontHeight__P91857_mk(s) { +function tiles_TileMap_scale__P20709_mk(s) { checkStack(s.depth); return { - parent: s, fn: TextSprite_setMaxFontHeight__P91857, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_scale__P20709, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function textsprite_create__P91865(s) { +function tiles_TileMapData_height__P20691(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5999,68 +6016,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sprite___95939 = 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(TextSprite__C91854_VT); - s.tmp_0 = r0; - s.tmp_1 = TextSprite_constructor__P91855_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.arg1; - s.tmp_1.arg3 = s.arg2; - s.tmp_1.arg4 = 8; - s.tmp_1.arg5 = 0; - s.tmp_1.arg6 = 0; - s.tmp_1.arg7 = 0; - s.tmp_1.arg8 = 0; - s.tmp_1.arg9 = 0; - s.tmp_1.arg10 = null; - s.callLocIdx = 1323; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - s.sprite___95939 = (s.tmp_0); - s.tmp_0 = PhysicsEngine__C90032_v0_2_mk(s); - s.tmp_1 = game_currentScene__P90520_mk(s); - s.callLocIdx = 1324; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - r0 = r0.fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.sprite___95939; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C90032_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.addSprite; - s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - r0 = s.sprite___95939; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C20688_VT)) failedCast(r0); + r0 = s.arg0.fields["_height"]; + return leaveAccessor(s, r0) default: oops() } } } -textsprite_create__P91865.info = {"start":5013,"length":274,"line":138,"column":4,"endLine":146,"endColumn":5,"fileName":"pxt_modules/arcade-text/text.ts","functionName":"create","argumentNames":["text","bg","fg"]} +tiles_TileMapData_height__P20691.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__P20691.isGetter = true; -function textsprite_create__P91865_mk(s) { +function tiles_TileMapData_height__P20691_mk(s) { checkStack(s.depth); return { - parent: s, fn: textsprite_create__P91865, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_height__P20691, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - sprite___95939: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function TextSprite_constructor__P91855(s) { +function scene_Camera_offsetY__P20759(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6072,85 +6053,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.arg8 = (s.lambdaArgs[8]); - s.arg9 = (s.lambdaArgs[9]); - s.arg10 = (s.lambdaArgs[10]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, TextSprite__C91854_VT)) failedCast(r0); - r0 = (s.arg0).fields["text"] = (s.arg1); - r0 = (s.arg0).fields["bg"] = (s.arg2); - r0 = (s.arg0).fields["fg"] = (s.arg3); - r0 = (s.arg0).fields["maxFontHeight"] = (s.arg4); - r0 = (s.arg0).fields["borderWidth"] = (s.arg5); - r0 = (s.arg0).fields["borderColor"] = (s.arg6); - r0 = (s.arg0).fields["padding"] = (s.arg7); - r0 = (s.arg0).fields["outlineWidth"] = (s.arg8); - r0 = (s.arg0).fields["outlineColor"] = (s.arg9); - r0 = (s.arg0).fields["icon"] = (s.arg10); - s.tmp_0 = Sprite_constructor__P89909_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = pxsim.image.create(0, 0); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1300; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = Sprite_setKind__P89929_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.Text___91853; - s.callLocIdx = 1301; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = Sprite_setFlag__P89940_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 7168; - s.tmp_0.arg2 = true; - s.callLocIdx = 1302; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = TextSprite_update__P91856_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1303; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, scene_Camera__C20752_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetY"]; + return leaveAccessor(s, r0) default: oops() } } } -TextSprite_constructor__P91855.info = {"start":171,"length":501,"line":8,"column":4,"endLine":24,"endColumn":5,"fileName":"pxt_modules/arcade-text/text.ts","functionName":"inline","argumentNames":["this","text","bg","fg","maxFontHeight","borderWidth","borderColor","padding","outlineWidth","outlineColor","icon"]} +scene_Camera_offsetY__P20759.info = {"start":1084,"length":59,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this"]} +scene_Camera_offsetY__P20759.isGetter = true; -function TextSprite_constructor__P91855_mk(s) { +function scene_Camera_offsetY__P20759_mk(s) { checkStack(s.depth); return { - parent: s, fn: TextSprite_constructor__P91855, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetY__P20759, 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, - arg6: undefined, - arg7: undefined, - arg8: undefined, - arg9: undefined, - arg10: undefined, } } -function Sprite_setFlag__P89940(s) { +function scene_Camera_offsetX__P20758(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6160,61 +6086,93 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___26612 = 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__C89862_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); + if (!checkSubtype(r0, scene_Camera__C20752_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 879; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.scene___26612 = (r0); + r0 = s.scene___26612.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___26612.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 = (s.tmp_3 | s.arg1); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; - r0 = (~ s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + 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_10 = tiles_TileMap_offsetX__P20712_mk(s); + r0 = s.scene___26612.fields["tileMap"]; + s.tmp_10.arg0 = r0; + s.tmp_10.arg1 = s.arg1; + s.callLocIdx = 881; s.pc = 6; return s.tmp_10; + case 6: + r0 = s.retval; + s.tmp_9 = r0; + r0 = pxsim.Math_.floor(s.tmp_9); + s.tmp_8 = r0; + r0 = (s.tmp_7).fields["_offsetX"] = (s.tmp_8); + { step = 4; continue; } + case 3: + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.Math_.floor(s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_offsetX"] = (s.tmp_1); + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_setFlag__P89940.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"]} +scene_Camera_offsetX__P20758.info = {"start":784,"length":291,"line":28,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this","v"]} -function Sprite_setFlag__P89940_mk(s) { +function scene_Camera_offsetX__P20758_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setFlag__P89940, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetX__P20758, depth: s.depth + 1, pc: 0, retval: undefined, 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, + scene___26612: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function Sprite_setKind__P89929(s) { +function tiles_TileMap_offsetX__P20712(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6224,144 +6182,50 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.spritesByKind___95992 = undefined; - s.overlapMap___96021 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_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; } + if (!checkSubtype(r0, tiles_TileMap__C20706_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P18098_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_1 = Math_max__P18101_mk(s); + s.tmp_3 = tiles_TileMap_areaWidth__P20714_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 818; s.pc = 3; return s.tmp_3; case 3: - case 4: - s.tmp_3 = game_currentScene__P90520_mk(s); - s.callLocIdx = 367; s.pc = 16; return s.tmp_3; - case 16: - r0 = s.retval; - r0 = r0.fields["spritesByKind"]; - s.spritesByKind___95992 = (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___95992, 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__P89991_mk(s); - r0 = s.arg0.fields["_kind"]; - s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___95992, s.tmp_5); - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.arg0; - s.callLocIdx = 368; 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___95992, 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__C89984_VT); + r0 = pxsim_ImageMethods.width(globals.screen___20003); s.tmp_4 = r0; - s.tmp_5 = sprites_SpriteSet_constructor__P89986_mk(s); - s.tmp_5.arg0 = s.tmp_4; - s.callLocIdx = 369; s.pc = 18; return s.tmp_5; - case 18: - r0 = s.retval; - r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___95992, s.arg1, s.tmp_4); - case 9: - case 10: - s.tmp_0 = sprites_SpriteSet_add__P89989_mk(s); - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___95992, s.arg1); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 370; s.pc = 19; return s.tmp_0; - case 19: + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 819; s.pc = 2; return s.tmp_1; + case 2: r0 = s.retval; - case 11: - case 12: - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 371; s.pc = 20; return s.tmp_0; - case 20: + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 820; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - r0 = r0.fields["overlapMap"]; - s.overlapMap___96021 = (r0); - r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___96021, 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___96021; - 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___96021, 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() } } } -Sprite_setKind__P89929.info = {"start":12841,"length":663,"line":464,"column":4,"endLine":484,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setKind","argumentNames":["this","value"]} +tiles_TileMap_offsetX__P20712.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 Sprite_setKind__P89929_mk(s) { +function tiles_TileMap_offsetX__P20712_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setKind__P89929, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_offsetX__P20712, depth: s.depth + 1, pc: 0, retval: undefined, 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___95992: undefined, - overlapMap___96021: undefined, arg0: undefined, arg1: undefined, } } @@ -6370,7 +6234,7 @@ function Sprite_setKind__P89929_mk(s) { -function sprites_SpriteSet_remove__P89991(s) { +function tiles_TileMap_areaWidth__P20714(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6380,58 +6244,53 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___96069 = 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__C89984_VT)) failedCast(r0); - r0 = s.arg0.fields["_sprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_0, s.arg1, undefined); - s.i___96069 = (r0); - r0 = (s.i___96069 > -1); + if (!checkSubtype(r0, tiles_TileMap__C20706_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_arraySplice__P87621_mk(s); - r0 = s.arg0.fields["_sprites"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___96069; - s.tmp_1.arg2 = 1; - s.callLocIdx = 522; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - r0 = true; - { step = 3; continue; } + r0 = s.arg0.fields["_map"]; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["_width"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 << s.tmp_3); + { step = 2; continue; } case 1: + r0 = 0; case 2: - r0 = false; - case 3: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_remove__P89991.info = {"start":1827,"length":235,"line":66,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"remove","argumentNames":["this","sprite"]} +tiles_TileMap_areaWidth__P20714.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_SpriteSet_remove__P89991_mk(s) { +function tiles_TileMap_areaWidth__P20714_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_remove__P89991, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaWidth__P20714, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - i___96069: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function helpers_arraySplice__P87621(s) { +function tiles_TileMapData_width__P20690(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6441,55 +6300,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___96089 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = (s.arg1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 5; continue; } - case 1: - case 2: - s.i___96089 = (0); - case 3: - r0 = (s.i___96089 < 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___96089 + 1); - s.i___96089 = (r0); - { step = 3; continue; } - case 4: - case 5: - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C20688_VT)) failedCast(r0); + r0 = s.arg0.fields["_width"]; + return leaveAccessor(s, r0) default: oops() } } } -helpers_arraySplice__P87621.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"]} +tiles_TileMapData_width__P20690.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__P20690.isGetter = true; -function helpers_arraySplice__P87621_mk(s) { +function tiles_TileMapData_width__P20690_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySplice__P87621, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_width__P20690, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - i___96089: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function sprites_SpriteSet_add__P89989(s) { +function scene_Camera_offsetX__P20757(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6501,63 +6337,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C89984_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = false; - { step = 5; continue; } - case 1: - 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) + if (!checkSubtype(r0, scene_Camera__C20752_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetX"]; + return leaveAccessor(s, r0) default: oops() } } } -sprites_SpriteSet_add__P89989.info = {"start":1041,"length":263,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"add","argumentNames":["this","sprite"]} +scene_Camera_offsetX__P20757.info = {"start":716,"length":59,"line":25,"column":8,"endLine":27,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this"]} +scene_Camera_offsetX__P20757.isGetter = true; -function sprites_SpriteSet_add__P89989_mk(s) { +function scene_Camera_offsetX__P20757_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_add__P89989, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetX__P20757, depth: s.depth + 1, pc: 0, retval: undefined, 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 sprites_SpriteSet_contains__P89992(s) { +function Sprite_y__P20327(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6569,37 +6372,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, sprites_SpriteSet__C89984_VT)) failedCast(r0); - r0 = s.arg0.fields["_sprites"]; + if (!checkSubtype(r0, Sprite__C20312_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__P89992.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__P20327.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__P20327.isGetter = true; -function sprites_SpriteSet_contains__P89992_mk(s) { +function Sprite_y__P20327_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_contains__P89992, depth: s.depth + 1, + parent: s, fn: Sprite_y__P20327, depth: s.depth + 1, pc: 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_SpriteSet_constructor__P89986(s) { +function Fx_toFloat__P18144(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6613,25 +6424,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C89984_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; + r0 = (s.arg0 / 256); return leave(s, r0) default: oops() } } } -sprites_SpriteSet_constructor__P89986.info = {"start":485,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]} +Fx_toFloat__P18144.info = {"start":2470,"length":81,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]} -function sprites_SpriteSet_constructor__P89986_mk(s) { +function Fx_toFloat__P18144_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_constructor__P89986, depth: s.depth + 1, + parent: s, fn: Fx_toFloat__P18144, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -6639,7 +6442,7 @@ function sprites_SpriteSet_constructor__P89986_mk(s) { -function Sprite_constructor__P89909(s) { +function Fx_div__P18133(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6654,127 +6457,20 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_constructor__P89617_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 329; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___89553); - 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___89553); - 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"]; + r0 = (s.arg0 << 8); s.tmp_0 = r0; - r0 = (s.arg0).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = Sprite_vx__P89880_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 332; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = Sprite_vy__P89882_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 333; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = Sprite_ax__P89884_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 334; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = Sprite_ay__P89886_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 335; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = Sprite_fx__P89888_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 336; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = Sprite_fy__P89890_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 337; 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__P89912_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 338; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.tmp_0 = Sprite_setKind__P89929_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = -1; - s.callLocIdx = 339; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - r0 = (s.arg0).fields["layer"] = (1); - r0 = (s.arg0).fields["lifespan"] = (undefined); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_overlappers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_obstacles"] = (s.tmp_1); - r0 = undefined; + r0 = pxsim.Math_.idiv(s.tmp_0, s.arg1); return leave(s, r0) default: oops() } } } -Sprite_constructor__P89909.info = {"start":7406,"length":678,"line":278,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]} +Fx_div__P18133.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 Sprite_constructor__P89909_mk(s) { +function Fx_div__P18133_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_constructor__P89909, depth: s.depth + 1, + parent: s, fn: Fx_div__P18133, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -6783,7 +6479,7 @@ function Sprite_constructor__P89909_mk(s) { -function Sprite_fy__P89890(s) { +function Fx_add__P18128(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6798,37 +6494,17 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P87651_mk(s); - s.tmp_3.arg0 = 0; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 325; s.pc = 1; return s.tmp_3; - case 1: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_fy"] = (s.tmp_1); - r0 = undefined; + r0 = (s.arg0 + s.arg1); return leave(s, r0) default: oops() } } } -Sprite_fy__P89890.info = {"start":5109,"length":64,"line":191,"column":4,"endLine":193,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this","v"]} +Fx_add__P18128.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_fy__P89890_mk(s) { +function Fx_add__P18128_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fy__P89890, depth: s.depth + 1, + parent: s, fn: Fx_add__P18128, depth: s.depth + 1, pc: 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, } } @@ -6837,7 +6513,7 @@ function Sprite_fy__P89890_mk(s) { -function Sprite_fy__P89889(s) { +function Sprite_x__P20325(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6852,22 +6528,34 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - r0 = s.arg0.fields["_fy"]; + if (!checkSubtype(r0, Sprite__C20312_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_fy__P89889.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__P89889.isGetter = true; +Sprite_x__P20325.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__P20325.isGetter = true; -function Sprite_fy__P89889_mk(s) { +function Sprite_x__P20325_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fy__P89889, depth: s.depth + 1, + parent: s, fn: Sprite_x__P20325, depth: s.depth + 1, pc: 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, } } @@ -6875,7 +6563,7 @@ function Sprite_fy__P89889_mk(s) { -function Sprite_fx__P89888(s) { +function PhysicsEngine_move__P20488(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6891,36 +6579,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P87651_mk(s); - s.tmp_3.arg0 = 0; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 322; s.pc = 1; return s.tmp_3; - case 1: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_fx"] = (s.tmp_1); + if (!checkSubtype(r0, PhysicsEngine__C20482_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_fx__P89888.info = {"start":4766,"length":64,"line":181,"column":4,"endLine":183,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this","v"]} +PhysicsEngine_move__P20488.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 Sprite_fx__P89888_mk(s) { +function PhysicsEngine_move__P20488_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P89888, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_move__P20488, depth: s.depth + 1, pc: 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, } } @@ -6929,7 +6599,7 @@ function Sprite_fx__P89888_mk(s) { -function Sprite_fx__P89887(s) { +function PhysicsEngine_draw__P20487(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6944,22 +6614,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - r0 = s.arg0.fields["_fx"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, PhysicsEngine__C20482_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_fx__P89887.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__P89887.isGetter = true; +PhysicsEngine_draw__P20487.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} -function Sprite_fx__P89887_mk(s) { +function PhysicsEngine_draw__P20487_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P89887, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_draw__P20487, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -6967,7 +6633,7 @@ function Sprite_fx__P89887_mk(s) { -function Sprite_ay__P89886(s) { +function controller___update__P20136(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6977,42 +6643,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.dtms___26944 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_ay"] = (s.tmp_1); + r0 = (s.arg0 * 1000); + s.tmp_0 = r0; + r0 = (s.tmp_0 | 0); + s.dtms___26944 = (r0); + r0 = pxsim_pxtcore_mkAction(1, controller___update_inline__P26951); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___26944); + s.tmp_1 = helpers_arrayForEach__P18080_mk(s); + s.tmp_2 = controller_players__P20100_mk(s); + s.callLocIdx = 193; 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 = 195; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_ay__P89886.info = {"start":4435,"length":51,"line":170,"column":4,"endLine":172,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this","v"]} +controller___update__P20136.info = {"start":13733,"length":137,"line":414,"column":4,"endLine":417,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]} -function Sprite_ay__P89886_mk(s) { +function controller___update__P20136_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ay__P89886, depth: s.depth + 1, + parent: s, fn: controller___update__P20136, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + dtms___26944: undefined, arg0: undefined, - arg1: undefined, } } -function Sprite_ay__P89885(s) { +function controller___update_inline__P26951(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7026,21 +6701,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - r0 = s.arg0.fields["_ay"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + s.tmp_0 = controller_Controller___update__P20134_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + s.callLocIdx = 194; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_ay__P89885.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__P89885.isGetter = true; +controller___update_inline__P26951.info = {"start":13835,"length":27,"line":416,"column":26,"endLine":416,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function Sprite_ay__P89885_mk(s) { +function controller___update_inline__P26951_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ay__P89885, depth: s.depth + 1, + parent: s, fn: controller___update_inline__P26951, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -7050,7 +6726,7 @@ function Sprite_ay__P89885_mk(s) { -function Sprite_ax__P89884(s) { +function controller_Controller___update__P20134(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7066,27 +6742,42 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + if (!checkSubtype(r0, controller_Controller__C20105_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 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_ax"] = (s.tmp_1); + r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2); + r0 = pxsim_pxtcore_mkAction(1, controller_Controller___update_inline__P26964); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + s.tmp_1 = helpers_arrayForEach__P18080_mk(s); + r0 = s.arg0.fields["buttons"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 192; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_ax__P89884.info = {"start":4096,"length":51,"line":159,"column":4,"endLine":161,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this","v"]} +controller_Controller___update__P20134.info = {"start":13211,"length":124,"line":396,"column":8,"endLine":399,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} -function Sprite_ax__P89884_mk(s) { +function controller_Controller___update__P20134_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ax__P89884, depth: s.depth + 1, + parent: s, fn: controller_Controller___update__P20134, depth: s.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, } } @@ -7095,7 +6786,7 @@ function Sprite_ax__P89884_mk(s) { -function Sprite_ax__P89883(s) { +function controller_Controller___update_inline__P26964(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7109,21 +6800,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - r0 = s.arg0.fields["_ax"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + s.tmp_0 = controller_Button___update__P20174_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_0.arg1 = r0; + s.callLocIdx = 191; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_ax__P89883.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__P89883.isGetter = true; +controller_Controller___update_inline__P26964.info = {"start":13298,"length":25,"line":398,"column":33,"endLine":398,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} -function Sprite_ax__P89883_mk(s) { +function controller_Controller___update_inline__P26964_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ax__P89883, depth: s.depth + 1, + parent: s, fn: controller_Controller___update_inline__P26964, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -7133,7 +6826,7 @@ function Sprite_ax__P89883_mk(s) { -function Sprite_vy__P89882(s) { +function controller_Button___update__P20174(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7143,116 +6836,115 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.delay___26980 = undefined; + s.interval___26989 = undefined; + s.count___27002 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + if (!checkSubtype(r0, controller_Button__C20160_VT)) failedCast(r0); + r0 = s.arg0.fields["_pressed"]; s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -Sprite_vy__P89882.info = {"start":3757,"length":51,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this","v"]} - -function Sprite_vy__P89882_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_vy__P89882, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function Sprite_vy__P89881(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C89862_VT)) failedCast(r0); - r0 = s.arg0.fields["_vy"]; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) - default: oops() -} } } -Sprite_vy__P89881.info = {"start":3595,"length":60,"line":143,"column":4,"endLine":145,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this"]} -Sprite_vy__P89881.isGetter = true; - -function Sprite_vy__P89881_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_vy__P89881, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function Sprite_vx__P89880(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C89862_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 11; continue; } + case 1: + case 2: + s.tmp_3 = r0 = s.arg0; + r0 = s.tmp_3.fields["_pressedElasped"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 + s.arg1); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["_pressedElasped"] = (s.tmp_4); + r0 = s.arg0.fields["repeatDelay"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = globals.defaultRepeatDelay___22702; + { step = 4; continue; } + case 3: + r0 = s.arg0.fields["repeatDelay"]; + case 4: + // jmp value (already in r0) s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + s.delay___26980 = (s.tmp_2); + r0 = s.arg0.fields["repeatInterval"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); + r0 = (s.tmp_1 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = globals.defaultRepeatInterval___22704; + { step = 6; continue; } + case 5: + r0 = s.arg0.fields["repeatInterval"]; + case 6: + // jmp value (already in r0) + s.tmp_2 = r0; + s.interval___26989 = (s.tmp_2); + r0 = s.arg0.fields["_pressedElasped"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 < s.delay___26980); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + { step = 11; continue; } + case 7: + case 8: + r0 = s.arg0.fields["_pressedElasped"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 - s.delay___26980); + s.tmp_4 = r0; + r0 = (s.tmp_4 - s.interval___26989); + s.tmp_3 = r0; + r0 = (s.tmp_3 / s.interval___26989); + s.tmp_2 = r0; + r0 = pxsim.Math_.floor(s.tmp_2); + s.count___27002 = (r0); + r0 = s.arg0.fields["_repeatCount"]; + s.tmp_1 = r0; + r0 = (s.count___27002 != 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__P22691_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 207; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + r0 = (s.arg0).fields["_repeatCount"] = (s.count___27002); + case 9: + case 10: + case 11: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_vx__P89880.info = {"start":3426,"length":51,"line":137,"column":4,"endLine":139,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this","v"]} +controller_Button___update__P20174.info = {"start":7291,"length":704,"line":217,"column":8,"endLine":234,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"__update","argumentNames":["this","dtms"]} -function Sprite_vx__P89880_mk(s) { +function controller_Button___update__P20174_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P89880, depth: s.depth + 1, + parent: s, fn: controller_Button___update__P20174, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + delay___26980: undefined, + interval___26989: undefined, + count___27002: undefined, arg0: undefined, arg1: undefined, } } @@ -7261,7 +6953,7 @@ function Sprite_vx__P89880_mk(s) { -function Sprite_vx__P89879(s) { +function controller_Button_raiseButtonRepeat__P22691(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7276,20 +6968,28 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - r0 = s.arg0.fields["_vx"]; + if (!checkSubtype(r0, controller_Button__C20160_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___22700); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["id"]; s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = pxsim.control.raiseEvent(2054, s.tmp_0); + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["id"]; + s.tmp_0 = r0; + r0 = pxsim.control.raiseEvent(2055, s.tmp_0); + case 2: + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_vx__P89879.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__P89879.isGetter = true; +controller_Button_raiseButtonRepeat__P22691.info = {"start":3303,"length":211,"line":110,"column":8,"endLine":115,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]} -function Sprite_vx__P89879_mk(s) { +function controller_Button_raiseButtonRepeat__P22691_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P89879, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonRepeat__P22691, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -7299,7 +6999,7 @@ function Sprite_vx__P89879_mk(s) { -function sprites_BaseSprite_constructor__P89617(s) { +function controller_players__P20100(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7309,51 +7009,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C89615_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_z__P89620_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 130; s.pc = 1; return s.tmp_0; + s.tmp_0 = controller__player1__P20099_mk(s); + s.callLocIdx = 152; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = scene_Scene_addSprite__P90391_mk(s); - s.tmp_1 = game_currentScene__P90520_mk(s); - s.callLocIdx = 131; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 132; s.pc = 2; return s.tmp_0; + s.tmp_0 = helpers_arrayFilter__P18081_mk(s); + s.tmp_0.arg0 = globals._players___22620; + s.tmp_0.arg1 = controller_players_inline__P26934; + s.callLocIdx = 153; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite_constructor__P89617.info = {"start":344,"length":170,"line":15,"column":8,"endLine":20,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"inline","argumentNames":["this","z"]} +controller_players__P20100.info = {"start":1645,"length":144,"line":53,"column":4,"endLine":56,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} -function sprites_BaseSprite_constructor__P89617_mk(s) { +function controller_players__P20100_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_constructor__P89617, depth: s.depth + 1, + parent: s, fn: controller_players__P20100, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, - arg1: undefined, } } -function scene_Scene_addSprite__P90391(s) { +function controller_players_inline__P26934(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7365,57 +7048,36 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C90364_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"]; + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); + r0 = pxsim_Boolean__bang(s.tmp_2); 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 = 935; s.pc = 1; return s.tmp_3; } - } - case 1: - r0 = s.retval; - r0 = undefined; + 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_Scene_addSprite__P90391.info = {"start":7218,"length":128,"line":200,"column":8,"endLine":203,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +controller_players_inline__P26934.info = {"start":1767,"length":14,"line":55,"column":31,"endLine":55,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function scene_Scene_addSprite__P90391_mk(s) { +function controller_players_inline__P26934_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_addSprite__P90391, depth: s.depth + 1, + parent: s, fn: controller_players_inline__P26934, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, arg0: undefined, - arg1: undefined, } } -function sprites_BaseSprite_z__P89620(s) { +function helpers_arrayFilter__P18081(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7425,47 +7087,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.res___26853 = undefined; + s.len___26855 = undefined; + s.i___26858 = undefined; + s.v___26863 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C89615_VT)) failedCast(r0); - r0 = s.arg0.fields["_z"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== s.arg1); + r0 = pxsim_Array__mk(); + s.res___26853 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___26855 = (r0); + s.i___26858 = (0); + case 1: + r0 = (s.i___26858 < s.len___26855); 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__P90520_mk(s); - s.callLocIdx = 133; s.pc = 3; return s.tmp_1; - case 3: + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.arg0, s.i___26858); + s.v___26863 = (r0); + s.tmp_1 = lambda_3_mk(s); + s.tmp_1.argL = s.arg1; + s.tmp_1.arg0 = s.v___26863; + s.tmp_1.arg1 = s.i___26858; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 6; s.pc = 5; return s.tmp_1; + case 5: r0 = s.retval; s.tmp_0 = r0; - r0 = s.tmp_0.fields["flags"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 | 1); - s.tmp_2 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_2); - case 1: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__push(s.res___26853, s.v___26863); case 2: - r0 = undefined; + case 3: + r0 = (s.i___26858 + 1); + s.i___26858 = (r0); + { step = 1; continue; } + case 4: + r0 = s.res___26853; return leave(s, r0) default: oops() } } } -sprites_BaseSprite_z__P89620.info = {"start":656,"length":174,"line":30,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"z","argumentNames":["this","v"]} +helpers_arrayFilter__P18081.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 sprites_BaseSprite_z__P89620_mk(s) { +function helpers_arrayFilter__P18081_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_z__P89620, depth: s.depth + 1, + parent: s, fn: helpers_arrayFilter__P18081, depth: s.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___26853: undefined, + len___26855: undefined, + i___26858: undefined, + v___26863: undefined, arg0: undefined, arg1: undefined, } } @@ -7474,42 +7151,7 @@ function sprites_BaseSprite_z__P89620_mk(s) { -function sprites_BaseSprite_z__P89619(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C89615_VT)) failedCast(r0); - r0 = s.arg0.fields["_z"]; - return leaveAccessor(s, r0) - default: oops() -} } } -sprites_BaseSprite_z__P89619.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__P89619.isGetter = true; - -function sprites_BaseSprite_z__P89619_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_BaseSprite_z__P89619, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function PhysicsEngine_addSprite__P90034(s) { +function controller__moveSprites__P20104(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7519,33 +7161,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C90032_VT)) failedCast(r0); + s.tmp_0 = helpers_arrayForEach__P18080_mk(s); + s.tmp_1 = controller_players__P20100_mk(s); + s.callLocIdx = 154; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = controller__moveSprites_inline__P26703; + s.callLocIdx = 156; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_addSprite__P90034.info = {"start":124,"length":29,"line":8,"column":4,"endLine":8,"endColumn":33,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +controller__moveSprites__P20104.info = {"start":2005,"length":180,"line":67,"column":4,"endLine":71,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]} -function PhysicsEngine_addSprite__P90034_mk(s) { +function controller__moveSprites__P20104_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_addSprite__P90034, depth: s.depth + 1, + parent: s, fn: controller__moveSprites__P20104, 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 scene_setBackgroundColor__P90404(s) { +function controller__moveSprites_inline__P26703(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7555,32 +7200,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___96263 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 944; s.pc = 1; return s.tmp_0; + s.tmp_0 = controller_Controller___preUpdate__P20133_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 155; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.scene___96263 = (r0); - r0 = s.scene___96263.fields["background"]; - s.tmp_0 = r0; - r0 = (s.tmp_0).fields["color"] = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_setBackgroundColor__P90404.info = {"start":1231,"length":140,"line":53,"column":4,"endLine":56,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setBackgroundColor","argumentNames":["color"]} +controller__moveSprites_inline__P26703.info = {"start":2151,"length":26,"line":70,"column":26,"endLine":70,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function scene_setBackgroundColor__P90404_mk(s) { +function controller__moveSprites_inline__P26703_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_setBackgroundColor__P90404, depth: s.depth + 1, + parent: s, fn: controller__moveSprites_inline__P26703, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - scene___96263: undefined, arg0: undefined, } } @@ -7588,40 +7228,7 @@ function scene_setBackgroundColor__P90404_mk(s) { -function game_eventContext__P90523(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.tmp_0 = game_init__P92467_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 950; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = globals._scene___92459.fields["eventContext"]; - return leave(s, r0) - default: oops() -} } } -game_eventContext__P90523.info = {"start":4442,"length":112,"line":136,"column":4,"endLine":139,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"eventContext","argumentNames":[]} - -function game_eventContext__P90523_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_eventContext__P90523, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, -} } - - - - - -function game_init__P92467(s) { +function controller_Controller___preUpdate__P20133(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7631,56 +7238,308 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.deadSprites___26710 = undefined; + s.svx___26711 = undefined; + s.svy___26712 = undefined; + s.svxInCricle___26747 = undefined; + s.svyInCircle___26749 = undefined; + s.sq___26751 = undefined; + s.scale___26766 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scene___92459); + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C20105_VT)) failedCast(r0); + s.tmp_3 = controller_Controller__controlledSprites__P20110_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 166; 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_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + { step = 17; continue; } case 1: - r0 = s.arg0; case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = pxsim_pxtrt.mklocRef(); + s.deadSprites___26710 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.deadSprites___26710, false); + r0 = pxsim_pxtrt.mklocRef(); + s.svx___26711 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svx___26711, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.svy___26712 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svy___26712, 0); + r0 = s.arg0.fields["analog"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(scene_Scene__C90364_VT); + s.tmp_1 = r0 = s.svx___26711; + s.tmp_5 = controller_Button_pressureLevel__P20172_mk(s); + s.tmp_6 = controller_Controller_right__P20115_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 167; s.pc = 20; return s.tmp_6; + case 20: + r0 = s.retval; + s.tmp_5.arg0 = r0; + s.callLocIdx = 168; s.pc = 19; return s.tmp_5; + case 19: + r0 = s.retval; + s.tmp_4 = r0; + s.tmp_8 = controller_Button_pressureLevel__P20172_mk(s); + s.tmp_9 = controller_Controller_left__P20114_mk(s); + s.tmp_9.arg0 = s.arg0; + s.callLocIdx = 169; s.pc = 22; return s.tmp_9; + case 22: + r0 = s.retval; + s.tmp_8.arg0 = r0; + s.callLocIdx = 170; 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; - s.tmp_4 = scene_Scene_constructor__P90387_mk(s); - s.tmp_4.arg0 = s.tmp_3; - s.tmp_5 = control_pushEventContext__P87930_mk(s); - s.callLocIdx = 951; s.pc = 6; return s.tmp_5; - case 6: + 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___26712; + s.tmp_4 = controller_Button_pressureLevel__P20172_mk(s); + s.tmp_5 = controller_Controller_down__P20117_mk(s); + s.tmp_5.arg0 = s.arg0; + s.callLocIdx = 171; s.pc = 24; return s.tmp_5; + case 24: r0 = s.retval; - s.tmp_4.arg1 = r0; - s.tmp_4.arg2 = globals._scene___92459; - s.callLocIdx = 952; s.pc = 5; return s.tmp_4; - case 5: + s.tmp_4.arg0 = r0; + s.callLocIdx = 172; s.pc = 23; return s.tmp_4; + case 23: + r0 = s.retval; + s.tmp_3 = r0; + s.tmp_7 = controller_Button_pressureLevel__P20172_mk(s); + s.tmp_8 = controller_Controller_up__P20116_mk(s); + s.tmp_8.arg0 = s.arg0; + s.callLocIdx = 173; s.pc = 26; return s.tmp_8; + case 26: r0 = s.retval; - globals._scene___92459 = (s.tmp_3); + s.tmp_7.arg0 = r0; + s.callLocIdx = 174; 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__C20160_v0_1_mk(s); + s.tmp_2 = controller_Controller_right__P20115_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 175; 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__C20160_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: - s.tmp_0 = scene_Scene_init__P90388_mk(s); - s.tmp_0.arg0 = globals._scene___92459; - s.callLocIdx = 953; s.pc = 7; return s.tmp_0; + r0 = 0; + case 5: + // jmp value (already in r0) + s.tmp_3 = r0; + s.tmp_5 = controller_Button__C20160_v0_1_mk(s); + s.tmp_6 = controller_Controller_left__P20114_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 176; 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__C20160_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___26711; + 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__C20160_v0_1_mk(s); + s.tmp_2 = controller_Controller_down__P20117_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 177; 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__C20160_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__C20160_v0_1_mk(s); + s.tmp_6 = controller_Controller_up__P20116_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 178; 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__C20160_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___26712; + 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___26747 = (r0); + s.tmp_0 = r0 = s.svxInCricle___26747; + r0 = pxsim_pxtrt_ldlocRef(s.svx___26711); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt.mklocRef(); + s.svyInCircle___26749 = (r0); + s.tmp_0 = r0 = s.svyInCircle___26749; + r0 = pxsim_pxtrt_ldlocRef(s.svy___26712); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt_ldlocRef(s.svx___26711); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svx___26711); + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svy___26712); + s.tmp_4 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svy___26712); + s.tmp_5 = r0; + r0 = (s.tmp_4 * s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_0 + s.tmp_3); + s.sq___26751 = (r0); + r0 = (s.sq___26751 > 65536); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = (65536 / s.sq___26751); + s.tmp_1 = r0; + r0 = pxsim.Math_.sqrt(s.tmp_1); + s.scale___26766 = (r0); + s.tmp_0 = r0 = s.svxInCricle___26747; + s.tmp_3 = r0 = s.scale___26766; + r0 = pxsim_pxtrt_ldlocRef(s.svx___26711); + 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___26749; + s.tmp_3 = r0 = s.scale___26766; + r0 = pxsim_pxtrt_ldlocRef(s.svy___26712); + 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__P26784); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___26710); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___26711); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___26712); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___26747); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___26749); + s.tmp_1 = helpers_arrayForEach__P18080_mk(s); + s.tmp_2 = controller_Controller__controlledSprites__P20110_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 179; 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 = 187; s.pc = 35; return s.tmp_1; + case 35: + r0 = s.retval; + r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___26710); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + s.tmp_1 = controller_Controller__controlledSprites__P20111_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_2 = helpers_arrayFilter__P18081_mk(s); + s.tmp_3 = controller_Controller__controlledSprites__P20110_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 188; 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__P26841; + s.callLocIdx = 189; s.pc = 38; return s.tmp_2; + case 38: + r0 = s.retval; + s.tmp_1.arg1 = r0; + s.callLocIdx = 190; 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_init__P92467.info = {"start":4560,"length":194,"line":141,"column":4,"endLine":146,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} +controller_Controller___preUpdate__P20133.info = {"start":10666,"length":2535,"line":330,"column":8,"endLine":394,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]} -function game_init__P92467_mk(s) { +function controller_Controller___preUpdate__P20133_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_init__P92467, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate__P20133, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -7688,6 +7547,17 @@ function game_init__P92467_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + deadSprites___26710: undefined, + svx___26711: undefined, + svy___26712: undefined, + svxInCricle___26747: undefined, + svyInCircle___26749: undefined, + sq___26751: undefined, + scale___26766: undefined, arg0: undefined, } } @@ -7695,7 +7565,7 @@ function game_init__P92467_mk(s) { -function scene_Scene_init__P90388(s) { +function controller_Controller___preUpdate_inline__P26784(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7705,130 +7575,167 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.s___26787 = undefined; + s.vx___26788 = undefined; + s.vy___26789 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C90364_VT)) failedCast(r0); - r0 = s.arg0.fields["allSprites"]; + 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 = 180; s.pc = 22; return s.tmp_0; } + } + case 22: + r0 = s.retval; + s.s___26787 = (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 = 181; s.pc = 23; return s.tmp_2; } + } + case 23: + r0 = s.retval; + s.vx___26788 = (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 = 182; s.pc = 24; return s.tmp_3; } + } + case 24: + r0 = s.retval; + s.vy___26789 = (r0); + r0 = s.s___26787.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 = 3; continue; } + r0 = pxsim_pxtrt_stlocRef(s.caps[0], true); + { step = 21; continue; } case 1: case 2: - s.tmp_1 = power_poke__P89450_mk(s); - s.callLocIdx = 913; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["allSprites"] = (s.tmp_1); - r0 = (s.arg0).fields["spriteNextId"] = (0); - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P96299); + r0 = s.arg0.fields["_inputLastFrame"]; s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P87924_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 = 916; s.pc = 5; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = pxsim_numops_toBoolDecr(s.vx___26788); + if (!r0) { step = 3; continue; } + r0 = (s.s___26787).fields["_vx"] = (0); + case 3: + case 4: + r0 = pxsim_numops_toBoolDecr(s.vy___26789); + if (!r0) { step = 5; continue; } + r0 = (s.s___26787).fields["_vy"] = (0); case 5: - r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P87924_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 13; - s.tmp_0.arg2 = controller__moveSprites__P89654; - s.callLocIdx = 917; s.pc = 6; return s.tmp_0; case 6: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P96323); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P87924_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 = 919; s.pc = 7; return s.tmp_1; case 7: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P96336); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P87924_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 = 923; s.pc = 8; return s.tmp_1; case 8: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P96357); + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P87924_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 = 925; s.pc = 9; return s.tmp_1; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } case 9: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P96365); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P87924_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 = 929; s.pc = 10; return s.tmp_1; + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); case 10: - r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P87924_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 200; - s.tmp_0.arg2 = control___screen_update__P89514; - s.callLocIdx = 930; s.pc = 11; return s.tmp_0; + // 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___26788; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 11; continue; } + r0 = s.tmp_2; + { step = 12; continue; } case 11: - r0 = s.retval; - s.tmp_0 = multiplayer_initServer__P90909_mk(s); - s.callLocIdx = 931; s.pc = 12; return s.tmp_0; + r0 = s.vy___26789; case 12: - r0 = s.retval; - s.tmp_0 = multiplayer_initPlayerConnectionListeners__P90910_mk(s); - s.callLocIdx = 932; s.pc = 13; return s.tmp_0; + // 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___26787; + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + s.tmp_6 = r0; + r0 = pxsim.Math_.imul(s.tmp_6, s.vx___26788); + s.tmp_5 = r0; + r0 = (s.tmp_4).fields["_vx"] = (s.tmp_5); + s.tmp_0 = r0 = s.s___26787; + r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___26789); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); + { step = 18; continue; } case 13: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P96396); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P87630_mk(s); - s.tmp_1.arg0 = globals.scene_Scene_initializers___90386; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 934; s.pc = 14; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.vx___26788); + if (!r0) { step = 14; continue; } + s.tmp_0 = r0 = s.s___26787; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.vx___26788); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); + { step = 17; continue; } case 14: - r0 = s.retval; - case 3: + r0 = pxsim_numops_toBoolDecr(s.vy___26789); + if (!r0) { step = 15; continue; } + s.tmp_0 = r0 = s.s___26787; + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___26789); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); + case 15: + case 16: + case 17: + case 18: + r0 = (s.arg0).fields["_inputLastFrame"] = (true); + { step = 20; continue; } + case 19: + r0 = (s.arg0).fields["_inputLastFrame"] = (false); + case 20: + case 21: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_init__P90388.info = {"start":4432,"length":2572,"line":127,"column":8,"endLine":187,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]} +controller_Controller___preUpdate_inline__P26784.info = {"start":11849,"length":1171,"line":361,"column":44,"endLine":389,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} -function scene_Scene_init__P90388_mk(s) { +function controller_Controller___preUpdate_inline__P26784_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init__P90388, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate_inline__P26784, depth: s.depth + 1, pc: 0, retval: undefined, 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___26787: undefined, + vx___26788: undefined, + vy___26789: undefined, arg0: undefined, } } @@ -7836,7 +7743,7 @@ function scene_Scene_init__P90388_mk(s) { -function scene_Scene_init_inline__P96299(s) { +function controller_Controller___preUpdate_inline__P26841(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7846,47 +7753,39 @@ 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.fields["s"]; + r0 = r0.fields["flags"]; s.tmp_2 = r0; - r0 = s.caps[0].fields["eventContext"]; - r0 = r0.fields["deltaTimeMillis"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_millis"] = (s.tmp_1); - s.tmp_0 = controller___update__P89686_mk(s); - r0 = s.caps[0].fields["eventContext"]; + r0 = (s.tmp_2 & 2); 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 = 915; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + 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_Scene_init_inline__P96299.info = {"start":4722,"length":217,"line":134,"column":72,"endLine":138,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +controller_Controller___preUpdate_inline__P26841.info = {"start":13147,"length":42,"line":393,"column":28,"endLine":393,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]} -function scene_Scene_init_inline__P96299_mk(s) { +function controller_Controller___preUpdate_inline__P26841_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P96299, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate_inline__P26841, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, + arg0: undefined, } } -function scene_Scene_init_inline__P96323(s) { +function controller_Button_pressureLevel__P20172(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7896,41 +7795,70 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = PhysicsEngine__C90032_v4_2_mk(s); - r0 = s.caps[0].fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - r0 = s.caps[0].fields["eventContext"]; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C20160_VT)) failedCast(r0); + r0 = pxsim.control.deviceDalVersion(); s.tmp_1 = r0; - r0 = s.tmp_1.fields["deltaTimeMillis"]; + 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__C20160_v0_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C20160_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; + s.pc = 6; return s.tmp_3; + case 6: + r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 / 1000); - s.tmp_0.arg1 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C90032_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 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 1; continue; } + r0 = 512; + { step = 2; continue; } case 1: - r0 = s.retval; + 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() } } } -scene_Scene_init_inline__P96323.info = {"start":5234,"length":159,"line":143,"column":69,"endLine":146,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +controller_Button_pressureLevel__P20172.info = {"start":6453,"length":311,"line":192,"column":8,"endLine":199,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"pressureLevel","argumentNames":["this"]} -function scene_Scene_init_inline__P96323_mk(s) { +function controller_Button_pressureLevel__P20172_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P96323, depth: s.depth + 1, + parent: s, fn: controller_Button_pressureLevel__P20172, depth: s.depth + 1, pc: 0, retval: undefined, 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 scene_Scene_init_inline__P96336(s) { +function controller_Button_isPressed__P20171(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7940,80 +7868,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dt___96337 = undefined; - s.s___96345 = undefined; - s.unnamed734___U2 = undefined; - s.unnamed735___U3 = undefined; - r0 = s.caps[0].fields["eventContext"]; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["deltaTimeMillis"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 / 1000); - s.dt___96337 = (r0); - s.tmp_0 = scene_Camera_update__P90319_mk(s); - r0 = s.caps[0].fields["camera"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 921; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.s___96345 = (undefined); - r0 = s.caps[0].fields["allSprites"]; - s.unnamed734___U2 = (r0); - s.unnamed735___U3 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed735___U3; - r0 = pxsim_Array__length(s.unnamed734___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed734___U2, s.unnamed735___U3); - s.s___96345 = (r0); - s.tmp_2 = if___update_3_mk(s); - s.tmp_2.arg0 = s.s___96345; - r0 = s.caps[0].fields["camera"]; - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = s.dt___96337; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3); - s.callLocIdx = 922; 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 = 922; s.pc = 4; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 922; s.pc = 4; return s.tmp_2;; } - else { s.callLocIdx = 922; s.pc = 4; return s.tmp_2; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; } - case 4: - r0 = s.retval; - r0 = (s.unnamed735___U3 + 1); - s.unnamed735___U3 = (r0); - { step = 1; continue; } - case 2: - s.unnamed734___U2 = (undefined); - r0 = undefined; + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C20160_VT)) failedCast(r0); + r0 = s.arg0.fields["_pressed"]; return leave(s, r0) default: oops() } } } -scene_Scene_init_inline__P96336.info = {"start":5582,"length":214,"line":152,"column":79,"endLine":158,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +controller_Button_isPressed__P20171.info = {"start":6303,"length":57,"line":185,"column":8,"endLine":187,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"isPressed","argumentNames":["this"]} -function scene_Scene_init_inline__P96336_mk(s) { +function controller_Button_isPressed__P20171_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P96336, depth: s.depth + 1, + parent: s, fn: controller_Button_isPressed__P20171, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - dt___96337: undefined, - s___96345: undefined, - unnamed734___U2: undefined, - unnamed735___U3: undefined, + arg0: undefined, } } -function scene_Scene_init_inline__P96357(s) { +function controller_Controller_down__P20117(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8023,30 +7902,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_Scene_render__P90393_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 924; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C20105_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() } } } -scene_Scene_init_inline__P96357.info = {"start":5937,"length":109,"line":163,"column":76,"endLine":166,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +controller_Controller_down__P20117.info = {"start":4131,"length":77,"line":145,"column":8,"endLine":147,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"down","argumentNames":["this"]} +controller_Controller_down__P20117.isGetter = true; -function scene_Scene_init_inline__P96357_mk(s) { +function controller_Controller_down__P20117_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P96357, depth: s.depth + 1, + parent: s, fn: controller_Controller_down__P20117, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, } } -function scene_Scene_init_inline__P96365(s) { +function controller_Controller_button__P22685(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8056,108 +7943,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = r0 = globals.stats___90489; - 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___87919; - 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, controller_Controller__C20105_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; + s.tmp_0 = r0; + r0 = (s.arg1 - 1); 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___87919; - if ((globals.control_EventContext_lastStats___87918) && (globals.control_EventContext_lastStats___87918).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(globals.control_EventContext_lastStats___87918); - checkResumeConsumed(); - return; - } else { s.retval = (globals.control_EventContext_lastStats___87918) + ""; } - 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 = 926; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(globals.debug___90488); - if (!r0) { step = 5; continue; } - s.tmp_0 = PhysicsEngine__C90032_v3_1_mk(s); - r0 = s.caps[0].fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C90032_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__P90648_mk(s); - s.callLocIdx = 927; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.tmp_0 = power_checkDeepSleep__P89451_mk(s); - s.callLocIdx = 928; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - r0 = undefined; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); return leave(s, r0) default: oops() } } } -scene_Scene_init_inline__P96365.info = {"start":6163,"length":504,"line":168,"column":80,"endLine":180,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +controller_Controller_button__P22685.info = {"start":6666,"length":105,"line":220,"column":8,"endLine":222,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"button","argumentNames":["this","button"]} -function scene_Scene_init_inline__P96365_mk(s) { +function controller_Controller_button__P22685_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P96365, depth: s.depth + 1, + parent: s, fn: controller_Controller_button__P22685, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_Scene_init_inline__P96396(s) { +function controller_Controller_up__P20116(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8171,25 +7989,26 @@ 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 = 933; 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__C20105_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; + s.tmp_0 = r0; + r0 = (2 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -scene_Scene_init_inline__P96396.info = {"start":6980,"length":12,"line":186,"column":39,"endLine":186,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]} +controller_Controller_up__P20116.info = {"start":3979,"length":73,"line":137,"column":8,"endLine":139,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"up","argumentNames":["this"]} +controller_Controller_up__P20116.isGetter = true; -function scene_Scene_init_inline__P96396_mk(s) { +function controller_Controller_up__P20116_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init_inline__P96396, depth: s.depth + 1, + parent: s, fn: controller_Controller_up__P20116, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -8197,7 +8016,7 @@ function scene_Scene_init_inline__P96396_mk(s) { -function multiplayer_initPlayerConnectionListeners__P90910(s) { +function controller_Controller_right__P20115(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8207,43 +8026,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___96399 = undefined; - s.p___96399 = (1); - case 1: - r0 = (s.p___96399 <= 4); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C20105_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = multiplayer_registerPlayerConnectionListeners__P92915_mk(s); - s.tmp_1.arg0 = s.p___96399; - s.callLocIdx = 1291; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - r0 = (s.p___96399 + 1); - s.p___96399 = (r0); - { step = 1; continue; } - case 2: - 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() } } } -multiplayer_initPlayerConnectionListeners__P90910.info = {"start":1324,"length":154,"line":39,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"initPlayerConnectionListeners","argumentNames":[]} +controller_Controller_right__P20115.info = {"start":3823,"length":79,"line":129,"column":8,"endLine":131,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"right","argumentNames":["this"]} +controller_Controller_right__P20115.isGetter = true; -function multiplayer_initPlayerConnectionListeners__P90910_mk(s) { +function controller_Controller_right__P20115_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_initPlayerConnectionListeners__P90910, depth: s.depth + 1, + parent: s, fn: controller_Controller_right__P20115, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - p___96399: undefined, + arg0: undefined, } } -function multiplayer_registerPlayerConnectionListeners__P92915(s) { +function controller_Controller_left__P20114(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8257,38 +8071,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkAction(1, multiplayer_registerPlayerConnectionListeners_inline__P96411); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_onEvent__P87912_mk(s); - s.tmp_1.arg0 = 3241; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.tmp_0; - s.tmp_1.arg3 = 16; - s.callLocIdx = 1293; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, multiplayer_registerPlayerConnectionListeners_inline__P96417); + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C20105_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_onEvent__P87912_mk(s); - s.tmp_1.arg0 = 3242; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.tmp_0; - s.tmp_1.arg3 = 16; - s.callLocIdx = 1295; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = (1 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -multiplayer_registerPlayerConnectionListeners__P92915.info = {"start":1484,"length":415,"line":45,"column":4,"endLine":56,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"registerPlayerConnectionListeners","argumentNames":["playerNumber"]} +controller_Controller_left__P20114.info = {"start":3666,"length":77,"line":121,"column":8,"endLine":123,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"left","argumentNames":["this"]} +controller_Controller_left__P20114.isGetter = true; -function multiplayer_registerPlayerConnectionListeners__P92915_mk(s) { +function controller_Controller_left__P20114_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_registerPlayerConnectionListeners__P92915, depth: s.depth + 1, + parent: s, fn: controller_Controller_left__P20114, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8299,7 +8098,7 @@ function multiplayer_registerPlayerConnectionListeners__P92915_mk(s) { -function multiplayer_registerPlayerConnectionListeners_inline__P96411(s) { +function controller_Controller__controlledSprites__P20111(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8309,31 +8108,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = multiplayer_receiveConnectionChangedEvent__P92916_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = true; - s.callLocIdx = 1292; s.pc = 1; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C20105_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P20970_mk(s); + s.callLocIdx = 160; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; + r0 = r0.fields["controlledSprites"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["playerIndex"]; + s.tmp_2 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_2, s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -multiplayer_registerPlayerConnectionListeners_inline__P96411.info = {"start":1656,"length":55,"line":49,"column":12,"endLine":49,"endColumn":67,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} +controller_Controller__controlledSprites__P20111.info = {"start":3300,"length":134,"line":105,"column":8,"endLine":107,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this","cps"]} -function multiplayer_registerPlayerConnectionListeners_inline__P96411_mk(s) { +function controller_Controller__controlledSprites__P20111_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_registerPlayerConnectionListeners_inline__P96411, depth: s.depth + 1, + parent: s, fn: controller_Controller__controlledSprites__P20111, 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 multiplayer_registerPlayerConnectionListeners_inline__P96417(s) { +function controller_Controller__controlledSprites__P20110(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8343,31 +8156,43 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = multiplayer_receiveConnectionChangedEvent__P92916_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = false; - s.callLocIdx = 1294; s.pc = 1; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C20105_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P20970_mk(s); + s.callLocIdx = 159; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = r0.fields["controlledSprites"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["playerIndex"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2); + return leaveAccessor(s, r0) default: oops() } } } -multiplayer_registerPlayerConnectionListeners_inline__P96417.info = {"start":1826,"length":56,"line":54,"column":12,"endLine":54,"endColumn":68,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} +controller_Controller__controlledSprites__P20110.info = {"start":3158,"length":132,"line":101,"column":8,"endLine":103,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this"]} +controller_Controller__controlledSprites__P20110.isGetter = true; -function multiplayer_registerPlayerConnectionListeners_inline__P96417_mk(s) { +function controller_Controller__controlledSprites__P20110_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_registerPlayerConnectionListeners_inline__P96417, depth: s.depth + 1, + parent: s, fn: controller_Controller__controlledSprites__P20110, 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 multiplayer_receiveConnectionChangedEvent__P92916(s) { +function Fx_imul__P18132(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8377,58 +8202,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.c___96422 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); 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(3, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = s.tmp_0; - { step = 5; continue; } - case 1: - s.c___96422 = (globals.player1___89644); - { step = 5; continue; } - case 2: - s.c___96422 = (globals.player2___89641); - { step = 5; continue; } - case 3: - s.c___96422 = (globals.player3___89642); - { step = 5; continue; } - case 4: - s.c___96422 = (globals.player4___89643); - case 5: - r0 = pxsim_numops_toBoolDecr(s.c___96422); - if (!r0) { step = 6; continue; } - s.tmp_0 = controller_Controller_connected__P89677_mk(s); - s.tmp_0.arg0 = s.c___96422; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1296; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - case 6: - case 7: - r0 = undefined; + r0 = pxsim.Math_.imul(s.arg0, s.arg1); return leave(s, r0) default: oops() } } } -multiplayer_receiveConnectionChangedEvent__P92916.info = {"start":1905,"length":552,"line":58,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"receiveConnectionChangedEvent","argumentNames":["playerNumber","connected"]} +Fx_imul__P18132.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 multiplayer_receiveConnectionChangedEvent__P92916_mk(s) { +function Fx_imul__P18132_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_receiveConnectionChangedEvent__P92916, depth: s.depth + 1, + parent: s, fn: Fx_imul__P18132, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - c___96422: undefined, arg0: undefined, arg1: undefined, } } @@ -8437,7 +8226,7 @@ function multiplayer_receiveConnectionChangedEvent__P92916_mk(s) { -function controller_Controller_connected__P89677(s) { +function power_checkDeepSleep__P19901(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8447,59 +8236,94 @@ 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__C89655_VT)) failedCast(r0); - r0 = s.arg0.fields["_connected"]; - s.tmp_1 = r0; - r0 = (s.arg1 != s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = (s.arg0).fields["_connected"] = (s.arg1); - r0 = s.arg0.fields["_connected"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + s.p___25364 = undefined; + s.to___25367 = undefined; + s.tmp_0 = power_init__P22529_mk(s); + s.callLocIdx = 75; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = r0 = globals._poked___22527; + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = 1; + r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = 2; + r0 = 0; case 2: // jmp value (already in r0) s.tmp_1 = r0; - r0 = s.arg0.fields["_id"]; - s.tmp_2 = r0; - r0 = pxsim.control.raiseEvent(s.tmp_2, s.tmp_1); + s.p___25364 = (s.tmp_1); + s.tmp_0 = r0 = globals._timeout___22528; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } case 3: + r0 = 0; case 4: + // jmp value (already in r0) + s.tmp_1 = r0; + s.to___25367 = (s.tmp_1); + r0 = (s.to___25367 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 5: + r0 = pxsim.control.millis(); + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.p___25364); + s.tmp_1 = r0; + r0 = (s.tmp_1 > s.to___25367); + case 6: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (r0) { step = 7; continue; } + r0 = s.tmp_3; + { step = 8; continue; } + case 7: + r0 = pxsim.control.isUSBInitialized(); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + case 8: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 9; continue; } + r0 = pxsim_pxtcore.deepSleep(); + case 9: + case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller_connected__P89677.info = {"start":7796,"length":261,"line":254,"column":8,"endLine":259,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this","value"]} +power_checkDeepSleep__P19901.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]} -function controller_Controller_connected__P89677_mk(s) { +function power_checkDeepSleep__P19901_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_connected__P89677, depth: s.depth + 1, + parent: s, fn: power_checkDeepSleep__P19901, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - arg0: undefined, - arg1: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + p___25364: undefined, + to___25367: undefined, } } -function controller__player1__P89649(s) { +function power_init__P22529(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8509,71 +8333,88 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals._players___92175); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (globals._timeout___22528 !== 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; } + { step = 7; continue; } case 1: - r0 = pxsim_Array__getAt(globals._players___92175, 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__C89655_VT); - s.tmp_5 = r0; - r0 = pxsim_Array__mk(); - s.tmp_6 = r0; - r0 = pxsim_Array__push(s.tmp_6, globals.left___89636); - r0 = pxsim_Array__push(s.tmp_6, globals.up___89637); - r0 = pxsim_Array__push(s.tmp_6, globals.right___89638); - r0 = pxsim_Array__push(s.tmp_6, globals.down___89639); - r0 = pxsim_Array__push(s.tmp_6, globals.A___89634); - r0 = pxsim_Array__push(s.tmp_6, globals.B___89635); - r0 = pxsim_Array__push(s.tmp_6, globals.menu___89640); - s.tmp_7 = controller_Controller_constructor__P89659_mk(s); - s.tmp_7.arg0 = s.tmp_5; - s.tmp_7.arg1 = 1; - s.tmp_7.arg2 = s.tmp_6; - s.callLocIdx = 152; s.pc = 5; return s.tmp_7; - case 5: - r0 = s.retval; + r0 = pxsim_pxtcore.getConfig(212, -1); + s.tmp_1 = r0; + r0 = (s.tmp_1 * 1000); + globals._timeout___22528 = (r0); + r0 = (globals._timeout___22528 > 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___22528 < 300000); case 4: - r0 = pxsim_Array__getAt(globals._players___92175, 0); + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 5; continue; } + globals._timeout___22528 = (300000); + case 5: + case 6: + case 7: + r0 = undefined; return leave(s, r0) default: oops() } } } -controller__player1__P89649.info = {"start":1381,"length":258,"line":47,"column":4,"endLine":51,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} +power_init__P22529.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]} -function controller__player1__P89649_mk(s) { +function power_init__P22529_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__player1__P89649, depth: s.depth + 1, + parent: s, fn: power_init__P22529, depth: s.depth + 1, pc: 0, retval: undefined, 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__P89659(s) { +function power_poke__P19900(s) { +let r0 = s.r0, 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 = power_init__P22529_mk(s); + s.callLocIdx = 74; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = pxsim.control.millis(); + globals._poked___22527 = (r0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +power_poke__P19900.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]} + +function power_poke__P19900_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: power_poke__P19900, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function control_EventContext_registerFrameHandler__P18374(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8583,9 +8424,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.leftId___96478 = undefined; - s.i___96486 = undefined; - s.i___96504 = undefined; + s.fn___27046 = undefined; + s.i___27055 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -8593,59 +8433,34 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C89655_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"]; + if (!checkSubtype(r0, control_EventContext__C18366_VT)) failedCast(r0); + r0 = s.arg0.fields["frameCallbacks"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 * 7); - s.tmp_0 = r0; - r0 = (1 + s.tmp_0); - s.leftId___96478 = (r0); - s.i___96486 = (0); - case 2: - r0 = (s.i___96486 < 7); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C89710_VT); - s.tmp_1 = r0; - s.tmp_2 = controller_Button_constructor__P89716_mk(s); - s.tmp_2.arg0 = s.tmp_1; - r0 = (s.leftId___96478 + s.i___96486); - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = -1; - s.callLocIdx = 158; s.pc = 7; return s.tmp_2; - case 7: + 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__P22402_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 50; s.pc = 8; return s.tmp_0; + case 8: 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___96486 + 1); - s.i___96486 = (r0); - { step = 2; continue; } + case 1: + case 2: + r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C18363_VT); + s.fn___27046 = (r0); + r0 = (s.fn___27046).fields["order"] = (s.arg1); + r0 = (s.fn___27046).fields["handler"] = (s.arg2); + s.i___27055 = (0); case 3: - case 4: - s.i___96504 = (0); - case 5: - s.tmp_1 = r0 = s.i___96504; - r0 = s.arg0.fields["buttons"]; + s.tmp_1 = r0 = s.i___27055; + r0 = s.arg0.fields["frameCallbacks"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); s.tmp_2 = r0; @@ -8653,30 +8468,40 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - r0 = s.arg0.fields["buttons"]; + r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_6 = r0; + r0 = pxsim_Array__getAt(s.tmp_6, s.i___27055); + r0 = r0.fields["order"]; s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.i___96504); + r0 = (s.tmp_5 > s.arg1); s.tmp_4 = r0; - r0 = (s.tmp_4).fields["_owner"] = (s.arg0); - r0 = (s.i___96504 + 1); - s.i___96504 = (r0); - { step = 5; continue; } + 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___27055, s.fn___27046); + r0 = s.fn___27046; + { step = 7; continue; } + case 4: + case 5: + r0 = (s.i___27055 + 1); + s.i___27055 = (r0); + { step = 3; continue; } case 6: - s.tmp_0 = controller_addController__P92239_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 159; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - r0 = undefined; + r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.fn___27046); + r0 = s.fn___27046; + case 7: return leave(s, r0) default: oops() } } } -controller_Controller_constructor__P89659.info = {"start":2452,"length":696,"line":82,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","playerIndex","buttons"]} +control_EventContext_registerFrameHandler__P18374.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 controller_Controller_constructor__P89659_mk(s) { +function control_EventContext_registerFrameHandler__P18374_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_constructor__P89659, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameHandler__P18374, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8684,9 +8509,10 @@ function controller_Controller_constructor__P89659_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - leftId___96478: undefined, - i___96486: undefined, - i___96504: undefined, + tmp_6: undefined, + tmp_7: undefined, + fn___27046: undefined, + i___27055: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -8696,7 +8522,7 @@ function controller_Controller_constructor__P89659_mk(s) { -function controller_addController__P92239(s) { +function control_EventContext_registerFrameCallbacks__P22402(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8706,40 +8532,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.worker___27089 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._players___92175); + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C18366_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; } - r0 = pxsim_Array__mk(); - globals._players___92175 = (r0); + { step = 3; continue; } case 1: case 2: - s.tmp_0 = r0 = globals._players___92175; - 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 = s.arg0.fields["frameWorker"]; + s.worker___27089 = (r0); + r0 = pxsim_pxtcore_mkAction(2, control_EventContext_registerFrameCallbacks_inline__P27095); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___27089); + r0 = pxsim.control.runInParallel(s.tmp_0); + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_addController__P92239.info = {"start":1218,"length":157,"line":40,"column":4,"endLine":45,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} +control_EventContext_registerFrameCallbacks__P22402.info = {"start":3668,"length":895,"line":109,"column":8,"endLine":133,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} -function controller_addController__P92239_mk(s) { +function control_EventContext_registerFrameCallbacks__P22402_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_addController__P92239, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks__P22402, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + worker___27089: undefined, arg0: undefined, } } @@ -8747,7 +8580,7 @@ function controller_addController__P92239_mk(s) { -function control_onEvent__P87912(s) { +function control_EventContext_registerFrameCallbacks_inline__P27095(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8757,63 +8590,73 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___96577 = 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__P87929_mk(s); - s.callLocIdx = 39; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.ctx___96577 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___96577); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + s.delay___27125 = 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.control.internalOnEvent(s.arg0, s.arg1, s.arg2, s.arg3); - { step = 2; continue; } - case 1: - s.tmp_0 = control_EventContext_registerHandler__P87926_mk(s); - s.tmp_0.arg0 = s.ctx___96577; - 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 = 40; s.pc = 4; return s.tmp_0; - case 4: + r0 = pxsim_pxtcore_mkAction(1, control_EventContext_registerFrameCallbacks_inline__P27101); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.caps[0]); + s.tmp_2 = pauseUntil__P18338_mk(s); + s.tmp_2.arg0 = s.tmp_1; + s.tmp_2.arg1 = undefined; + s.callLocIdx = 44; 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__P22401_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.callLocIdx = 45; s.pc = 6; return s.tmp_2; + case 6: + r0 = s.retval; + s.delay___27125 = (r0); + s.tmp_0 = pause__P18384_mk(s); + s.tmp_0.arg0 = s.delay___27125; + s.callLocIdx = 46; 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() } } } -control_onEvent__P87912.info = {"start":336,"length":325,"line":9,"column":4,"endLine":15,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"onEvent","argumentNames":["src","value","handler","flags"]} +control_EventContext_registerFrameCallbacks_inline__P27095.info = {"start":3829,"length":723,"line":113,"column":34,"endLine":132,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function control_onEvent__P87912_mk(s) { +function control_EventContext_registerFrameCallbacks_inline__P27095_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_onEvent__P87912, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P27095, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - ctx___96577: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, + tmp_2: undefined, + delay___27125: undefined, } } -function control_eventContext__P87929(s) { +function control_EventContext_registerFrameCallbacks_inline__P27101(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8823,42 +8666,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___91959); - if (!r0) { step = 1; continue; } - s.tmp_0 = r0 = globals.eventContexts___91959; - r0 = pxsim_Array__length(globals.eventContexts___91959); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); + r0 = s.caps[0].fields["runningCallbacks"]; s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - { step = 2; continue; } - case 1: - r0 = undefined; - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = s.tmp_3; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -control_eventContext__P87929.info = {"start":7094,"length":136,"line":213,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]} +control_EventContext_registerFrameCallbacks_inline__P27101.info = {"start":4060,"length":28,"line":117,"column":31,"endLine":117,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function control_eventContext__P87929_mk(s) { +function control_EventContext_registerFrameCallbacks_inline__P27101_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_eventContext__P87929, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P27101, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, } } -function control_EventContext_registerHandler__P87926(s) { +function control_EventContext_runCallbacks__P22401(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8868,90 +8699,255 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___96600 = undefined; - s.unnamed708___U1 = undefined; - s.unnamed709___U2 = undefined; - s.hn___96623 = undefined; + s.loopStart___27134 = undefined; + s.f___27147 = undefined; + s.unnamed146___U2 = undefined; + s.unnamed147___U3 = undefined; + s.now___27152 = undefined; + s.runtime___27155 = undefined; + s.realTimeInSample___27174 = undefined; + s.fps___27183 = undefined; + s.delay___27252 = 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__C87916_VT)) failedCast(r0); - s.h___96600 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed708___U1 = (r0); - s.unnamed709___U2 = (0); + if (!checkSubtype(r0, control_EventContext__C18366_VT)) failedCast(r0); + r0 = pxsim.control.millis(); + s.loopStart___27134 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["prevTimeMillis"]; + s.tmp_2 = r0; + r0 = (s.loopStart___27134 - s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["deltaTimeMillis"] = (s.tmp_1); + r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___27134); + s.f___27147 = (undefined); + r0 = s.arg0.fields["frameCallbacks"]; + s.unnamed146___U2 = (r0); + s.unnamed147___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed709___U2; - r0 = pxsim_Array__length(s.unnamed708___U1); + s.tmp_0 = r0 = s.unnamed147___U3; + r0 = pxsim_Array__length(s.unnamed146___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed708___U1, s.unnamed709___U2); - s.h___96600 = (r0); - r0 = s.h___96600.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; } + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed146___U2, s.unnamed147___U3); + s.f___27147 = (r0); + s.tmp_2 = if_handler_1_mk(s); + s.tmp_2.arg0 = s.f___27147; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 1); + s.callLocIdx = 42; s.pc = 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 = 42; s.pc = 11; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 42; s.pc = 11; return s.tmp_2;; } + else { s.callLocIdx = 42; s.pc = 11; return s.tmp_2; } + } + case 11: + r0 = s.retval; + r0 = (s.unnamed147___U3 + 1); + s.unnamed147___U3 = (r0); + { step = 1; continue; } case 2: - r0 = s.h___96600.fields["value"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 == s.arg2); + s.unnamed146___U2 = (undefined); + r0 = pxsim.control.millis(); + s.now___27152 = (r0); + r0 = (s.now___27152 - s.loopStart___27134); + s.runtime___27155 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["timeInSample"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.runtime___27155); + 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___27152 - s.tmp_4); + s.realTimeInSample___27174 = (r0); + r0 = (s.arg0).fields["lastPerfDump"] = (s.now___27152); + 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___27183 = (r0); + r0 = pxsim.Math_.round(s.fps___27183); + 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___18368 = (r0); + r0 = (s.fps___27183 < 99); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + if ((globals.control_EventContext_lastStats___18368) && (globals.control_EventContext_lastStats___18368).vtable) { + setupResume(s, 13); + pxsim_String__stringConv(globals.control_EventContext_lastStats___18368); + checkResumeConsumed(); + return; + } else { s.retval = (globals.control_EventContext_lastStats___18368) + ""; } + case 13: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.fps___27183 * 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; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 4; continue; } - r0 = (s.h___96600).fields["flags"] = (s.arg4); - r0 = (s.h___96600).fields["handler"] = (s.arg3); - { step = 7; continue; } - case 4: + 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; + 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___18368 = (r0); case 5: - r0 = (s.unnamed709___U2 + 1); - s.unnamed709___U2 = (r0); - { step = 1; continue; } case 6: - s.unnamed708___U1 = (undefined); - r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C91951_VT); + r0 = pxsim.control.profilingEnabled(); s.tmp_0 = r0; - s.tmp_1 = control_EventHandler_constructor__P91954_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 = 51; s.pc = 8; return s.tmp_1; - case 8: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = pxsim_String_.mkEmpty(); + s.tmp_9 = r0; + r0 = (s.fps___27183 * 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.hn___96623 = (s.tmp_0); - r0 = s.arg0.fields["handlers"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.hn___96623); - s.tmp_0 = control_EventHandler_register__P91952_mk(s); - s.tmp_0.arg0 = s.hn___96623; - s.callLocIdx = 52; s.pc = 9; return s.tmp_0; - case 9: + 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 = pxsim_String__concat(s.tmp_4, "ms/"); + s.tmp_3 = r0; + if ((s.realTimeInSample___27174) && (s.realTimeInSample___27174).vtable) { + setupResume(s, 19); + pxsim_String__stringConv(s.realTimeInSample___27174); + checkResumeConsumed(); + return; + } else { s.retval = (s.realTimeInSample___27174) + ""; } + 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 = undefined; + case 8: + r0 = (s.arg0).fields["timeInSample"] = (0); + r0 = (s.arg0).fields["framesInSample"] = (0); + case 9: + case 10: + s.tmp_0 = Math_max__P18101_mk(s); + s.tmp_0.arg0 = 1; + r0 = (20 - s.runtime___27155); + s.tmp_0.arg1 = r0; + s.callLocIdx = 43; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + s.delay___27252 = (r0); + r0 = s.delay___27252; return leave(s, r0) default: oops() } } } -control_EventContext_registerHandler__P87926.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"]} +control_EventContext_runCallbacks__P22401.info = {"start":2220,"length":1395,"line":75,"column":8,"endLine":106,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]} -function control_EventContext_registerHandler__P87926_mk(s) { +function control_EventContext_runCallbacks__P22401_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerHandler__P87926, depth: s.depth + 1, + parent: s, fn: control_EventContext_runCallbacks__P22401, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8959,22 +8955,35 @@ function control_EventContext_registerHandler__P87926_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - h___96600: undefined, - unnamed708___U1: undefined, - unnamed709___U2: undefined, - hn___96623: 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___27134: undefined, + f___27147: undefined, + unnamed146___U2: undefined, + unnamed147___U3: undefined, + now___27152: undefined, + runtime___27155: undefined, + realTimeInSample___27174: undefined, + fps___27183: undefined, + delay___27252: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function control_EventHandler_constructor__P91954(s) { +function pauseUntil__P18338(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8987,40 +8996,74 @@ 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__C91951_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 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_2 = lambda_1_mk(s); + s.tmp_2.argL = s.arg0; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 29; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + { step = 7; continue; } + case 3: + case 4: + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_5 = r0; + r0 = pxsim_Boolean__bang(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 5; continue; } + s.arg1 = (0); + case 5: + case 6: + s.tmp_0 = control___queuePollEvent__P18337_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 30; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventHandler_constructor__P91954.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"]} +pauseUntil__P18338.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 control_EventHandler_constructor__P91954_mk(s) { +function pauseUntil__P18338_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_constructor__P91954, depth: s.depth + 1, + parent: s, fn: pauseUntil__P18338, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function control_EventHandler_register__P91952(s) { +function control___queuePollEvent__P18337(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9030,45 +9073,97 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.ev___27274 = 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_EventHandler__C91951_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, control_EventHandler_register_inline__P96644); + r0 = pxsim_pxtcore_mkClassInstance(control_PollEvent__C22375_VT); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = s.arg0.fields["src"]; + s.tmp_1 = control_PollEvent_constructor__P22376_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 = 27; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + s.ev___27274 = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___22378); s.tmp_1 = r0; - r0 = s.arg0.fields["value"]; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_Array__mk(); s.tmp_2 = r0; - r0 = 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 = pxsim_Array__push(s.tmp_2, s.ev___27274); + globals._pollEventQueue___22378 = (s.tmp_2); + r0 = pxsim.control.runInParallel(control_pollEvents__P22379); + { step = 2; continue; } + case 1: + r0 = pxsim_Array__push(globals._pollEventQueue___22378, s.ev___27274); + case 2: + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 3; continue; } + s.tmp_0 = control_onEvent__P18362_mk(s); + r0 = s.ev___27274.fields["eid"]; + s.tmp_0.arg0 = r0; + r0 = s.ev___27274.fields["vid"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = 16; + s.callLocIdx = 28; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + { step = 4; continue; } + case 3: + r0 = s.ev___27274.fields["eid"]; + s.tmp_0 = r0; + r0 = s.ev___27274.fields["vid"]; + s.tmp_1 = r0; + setupResume(s, 7); + pxsim.control.waitForEvent(s.tmp_0, s.tmp_1); + checkResumeConsumed(); + return; + case 7: + r0 = s.retval; + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventHandler_register__P91952.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} +control___queuePollEvent__P18337.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_EventHandler_register__P91952_mk(s) { +function control___queuePollEvent__P18337_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_register__P91952, depth: s.depth + 1, + parent: s, fn: control___queuePollEvent__P18337, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, + ev___27274: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function control_EventHandler_register_inline__P96644(s) { +function control_pollEvents__P22379(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9078,45 +9173,139 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["handler"]; + s.now___27317 = undefined; + s.i___27320 = undefined; + s.ev___27326 = undefined; + case 1: + r0 = pxsim_Array__length(globals._pollEventQueue___22378); + 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; } - s.tmp_1 = if_handler_1_mk(s); - s.tmp_1.arg0 = s.caps[0]; + if (!r0) { step = 12; continue; } + r0 = pxsim.control.millis(); + s.now___27317 = (r0); + s.i___27320 = (0); + case 2: + s.tmp_1 = r0 = s.i___27320; + r0 = pxsim_Array__length(globals._pollEventQueue___22378); + 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___22378, s.i___27320); + s.ev___27326 = (r0); + s.tmp_1 = if_condition_1_mk(s); + s.tmp_1.arg0 = s.ev___27326; if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "handler"), 1); - s.callLocIdx = 41; s.pc = 3; return s.tmp_1; + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "condition"), 1); + s.callLocIdx = 24; s.pc = 13; 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 = 41; s.pc = 3; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 41; s.pc = 3; return s.tmp_1;; } - else { s.callLocIdx = 41; s.pc = 3; return s.tmp_1; } + 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 = 24; s.pc = 13; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 24; s.pc = 13; return s.tmp_1;; } + else { s.callLocIdx = 24; 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___27326.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___27326.fields["start"]; + s.tmp_5 = r0; + r0 = (s.now___27317 - s.tmp_5); + s.tmp_4 = r0; + r0 = s.ev___27326.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___27326.fields["eid"]; + s.tmp_9 = r0; + r0 = s.ev___27326.fields["vid"]; + s.tmp_10 = r0; + r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10); + r0 = s.ev___27326.fields["once"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_1 = helpers_arraySplice__P18071_mk(s); + s.tmp_1.arg0 = globals._pollEventQueue___22378; + s.tmp_1.arg1 = s.i___27320; + s.tmp_1.arg2 = 1; + s.callLocIdx = 25; s.pc = 14; return s.tmp_1; + case 14: r0 = s.retval; - case 1: - case 2: + r0 = (s.i___27320 - 1); + s.i___27320 = (r0); + case 7: + case 8: + case 9: + case 10: + r0 = (s.i___27320 + 1); + s.i___27320 = (r0); + { step = 2; continue; } + case 11: + s.tmp_0 = pause__P18384_mk(s); + s.tmp_0.arg0 = 50; + s.callLocIdx = 26; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + { step = 1; continue; } + case 12: + globals._pollEventQueue___22378 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventHandler_register_inline__P96644.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +control_pollEvents__P22379.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]} -function control_EventHandler_register_inline__P96644_mk(s) { +function control_pollEvents__P22379_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_register_inline__P96644, depth: s.depth + 1, + parent: s, fn: control_pollEvents__P22379, depth: s.depth + 1, pc: 0, retval: undefined, 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___27317: undefined, + i___27320: undefined, + ev___27326: undefined, } } -function multiplayer_initServer__P90909(s) { +function helpers_arraySplice__P18071(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9126,47 +9315,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim.multiplayer.getOrigin(); - s.tmp_1 = r0; - r0 = (s.tmp_1 === "server"); + s.i___27374 = 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; } - s.tmp_2 = control_EventContext_registerFrameHandler__P87924_mk(s); - s.tmp_3 = game_eventContext__P90523_mk(s); - s.callLocIdx = 1289; 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__P96663; - s.callLocIdx = 1290; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; + { step = 5; continue; } case 1: case 2: + s.i___27374 = (0); + case 3: + r0 = (s.i___27374 < 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___27374 + 1); + s.i___27374 = (r0); + { step = 3; continue; } + case 4: + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -multiplayer_initServer__P90909.info = {"start":1011,"length":307,"line":29,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"initServer","argumentNames":[]} +helpers_arraySplice__P18071.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 multiplayer_initServer__P90909_mk(s) { +function helpers_arraySplice__P18071_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_initServer__P90909, depth: s.depth + 1, + parent: s, fn: helpers_arraySplice__P18071, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, + i___27374: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function multiplayer_initServer_inline__P96663(s) { +function control_PollEvent_constructor__P22376(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9176,35 +9373,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - 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___89553); - case 1: - case 2: + 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__C22375_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() } } } -multiplayer_initServer_inline__P96663.info = {"start":1175,"length":126,"line":31,"column":93,"endLine":35,"endColumn":13,"fileName":"pxt_modules/game/multiplayer.ts","functionName":"inline","argumentNames":[]} +control_PollEvent_constructor__P22376.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 multiplayer_initServer_inline__P96663_mk(s) { +function control_PollEvent_constructor__P22376_mk(s) { checkStack(s.depth); return { - parent: s, fn: multiplayer_initServer_inline__P96663, depth: s.depth + 1, + parent: s, fn: control_PollEvent_constructor__P22376, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, } } -function game_consoleOverlay_draw__P90648(s) { +function control_EventContext_deltaTime__P18371(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9214,216 +9425,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.height___96716 = undefined; - s.top___96721 = undefined; - s.i___96727 = undefined; - s.t___96740 = undefined; - s.tOff___96747 = undefined; - s.tab___96749 = undefined; - s.unnamed738___U6 = undefined; - s.unnamed739___U7 = undefined; - s.padding___96751 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___92758); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_numops_toBoolDecr(globals.instance___92712); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 3; continue; } - { step = 13; continue; } - case 3: - case 4: - s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = globals.consoleFont___92766; - 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 = 1143; s.pc = 14; return s.tmp_7; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; } - case 14: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 + 2); - s.height___96716 = (r0); - r0 = pxsim_numops_toBoolDecr(globals.stats___90489); - if (!r0) { step = 5; continue; } - r0 = s.height___96716; - { step = 6; continue; } - case 5: - r0 = 0; - case 6: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = (2 + s.tmp_0); - s.top___96721 = (r0); - s.i___96727 = (0); - case 7: - s.tmp_1 = r0 = s.i___96727; - r0 = pxsim_Array__length(globals.consoleStrings___92758); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C18366_VT)) failedCast(r0); + r0 = s.arg0.fields["deltaTimeMillis"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - r0 = pxsim_Array__getAt(globals.consoleStrings___92758, s.i___96727); - s.tmp_5 = r0; - r0 = pxsim_String_.indexOf(s.tmp_5, "\t", undefined); - s.tmp_4 = r0; - r0 = (s.tmp_4 >= 0); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 10; continue; } - s.tmp_6 = helpers_stringSplit__P87643_mk(s); - r0 = pxsim_Array__getAt(globals.consoleStrings___92758, s.i___96727); - s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = "\t"; - s.tmp_6.arg2 = undefined; - s.callLocIdx = 1144; s.pc = 15; return s.tmp_6; - case 15: - r0 = s.retval; - s.t___96740 = (r0); - s.tOff___96747 = (0); - s.tab___96749 = (undefined); - s.unnamed738___U6 = (s.t___96740); - s.unnamed739___U7 = (0); - case 8: - s.tmp_0 = r0 = s.unnamed739___U7; - r0 = pxsim_Array__length(s.unnamed738___U6); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 9; continue; } - r0 = pxsim_Array__getAt(s.unnamed738___U6, s.unnamed739___U7); - s.tab___96749 = (r0); - s.tmp_2 = r0 = globals.tabSize___92760; - s.tmp_5 = r0 = s.tOff___96747; - r0 = pxsim_String_.length(s.tab___96749); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_4 % globals.tabSize___92760); - s.tmp_3 = r0; - r0 = (s.tmp_2 - s.tmp_3); - s.padding___96751 = (r0); - s.tmp_0 = helpers_imagePrint__P89511_mk(s); - s.tmp_0.arg0 = globals.screen___89553; - s.tmp_0.arg1 = s.tab___96749; - s.tmp_2 = r0 = s.tOff___96747; - s.tmp_4 = if_charWidth_1_mk(s); - s.tmp_4.arg0 = globals.consoleFont___92766; - 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 = 1145; 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___96721; - r0 = (s.i___96727 * s.height___96716); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___92757; - s.tmp_0.arg5 = globals.consoleFont___92766; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1146; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - s.tmp_0 = r0 = s.tOff___96747; - r0 = pxsim_String_.length(s.tab___96749); - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.padding___96751); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.tOff___96747 = (r0); - r0 = (s.unnamed739___U7 + 1); - s.unnamed739___U7 = (r0); - { step = 8; continue; } - case 9: - s.unnamed738___U6 = (undefined); - { step = 11; continue; } - case 10: - s.tmp_0 = helpers_imagePrint__P89511_mk(s); - s.tmp_0.arg0 = globals.screen___89553; - r0 = pxsim_Array__getAt(globals.consoleStrings___92758, s.i___96727); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 4; - s.tmp_1 = r0 = s.top___96721; - r0 = (s.i___96727 * s.height___96716); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___92757; - s.tmp_0.arg5 = globals.consoleFont___92766; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1147; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; - case 11: - r0 = (s.i___96727 + 1); - s.i___96727 = (r0); - { step = 7; continue; } - case 12: - case 13: - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_0 / 1000); + return leaveAccessor(s, r0) default: oops() } } } -game_consoleOverlay_draw__P90648.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} +control_EventContext_deltaTime__P18371.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__P18371.isGetter = true; -function game_consoleOverlay_draw__P90648_mk(s) { +function control_EventContext_deltaTime__P18371_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_draw__P90648, depth: s.depth + 1, + parent: s, fn: control_EventContext_deltaTime__P18371, depth: s.depth + 1, pc: 0, retval: undefined, 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___96716: undefined, - top___96721: undefined, - i___96727: undefined, - t___96740: undefined, - tOff___96747: undefined, - tab___96749: undefined, - unnamed738___U6: undefined, - unnamed739___U7: undefined, - padding___96751: undefined, + arg0: undefined, } } -function scene_systemMenu_isVisible__P90629(s) { +function helpers_arrayForEach__P18080(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9433,33 +9463,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___92712); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.len___25077 = undefined; + s.i___25080 = 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___25077 = (r0); + s.i___25080 = (0); + case 1: + r0 = (s.i___25080 < s.len___25077); 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 = lambda_3_mk(s); + s.tmp_1.argL = s.arg1; + r0 = pxsim_Array__getAt(s.arg0, s.i___25080); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.i___25080; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 5; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + r0 = (s.i___25080 + 1); + s.i___25080 = (r0); + { step = 1; continue; } + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_isVisible__P90629.info = {"start":13170,"length":62,"line":395,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} +helpers_arrayForEach__P18080.info = {"start":7439,"length":250,"line":254,"column":4,"endLine":259,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayForEach","argumentNames":["arr","callbackfn"]} -function scene_systemMenu_isVisible__P90629_mk(s) { +function helpers_arrayForEach__P18080_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_isVisible__P90629, depth: s.depth + 1, + parent: s, fn: helpers_arrayForEach__P18080, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, + len___25077: undefined, + i___25080: undefined, + arg0: undefined, + arg1: undefined, } } -function helpers_stringSplit__P87643(s) { +function scene_Scene_constructor__P20837(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9469,176 +9524,108 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.A___96805 = undefined; - s.lim___96807 = undefined; - s.s___96823 = undefined; - s.p___96826 = undefined; - s.R___96827 = undefined; - s.z___96841 = undefined; - s.T___96854 = undefined; - s.q___96855 = undefined; - s.e___96861 = 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___96805 = (r0); - s.lim___96807 = (0); - r0 = (s.arg2 === undefined); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Scene__C20814_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__C20498_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (536870912 - 1); - s.lim___96807 = (r0); - { step = 4; continue; } + s.tmp_1 = ArcadePhysicsEngine_constructor__P20499_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 = 904; s.pc = 1; return s.tmp_1; case 1: - r0 = (s.arg2 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.lim___96807 = (0); - { step = 3; continue; } - case 2: - r0 = (s.arg2 | 0); - s.lim___96807 = (r0); - case 3: - case 4: - r0 = pxsim_String_.length(s.arg0); - s.s___96823 = (r0); - s.p___96826 = (0); - s.R___96827 = (s.arg1); - r0 = (s.lim___96807 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.A___96805; - { 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___96805, 0, s.arg0); - r0 = s.A___96805; - { step = 21; continue; } - case 7: - case 8: - r0 = (s.s___96823 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.tmp_1 = helpers_splitMatch__P91882_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = 0; - s.tmp_1.arg2 = s.R___96827; - s.callLocIdx = 10; s.pc = 22; return s.tmp_1; - case 22: r0 = s.retval; - s.z___96841 = (r0); - r0 = (s.z___96841 > -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = s.A___96805; - { step = 21; continue; } - case 9: - case 10: - r0 = pxsim_Array_.setAt(s.A___96805, 0, s.arg0); - r0 = s.A___96805; - { step = 21; continue; } - case 11: - case 12: - s.q___96855 = (s.p___96826); - case 13: - r0 = (s.q___96855 != s.s___96823); + r0 = (s.arg0).fields["physicsEngine"] = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_Camera__C20752_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - s.tmp_1 = helpers_splitMatch__P91882_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.q___96855; - s.tmp_1.arg2 = s.R___96827; - s.callLocIdx = 11; s.pc = 23; return s.tmp_1; - case 23: + s.tmp_1 = scene_Camera_constructor__P20756_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 905; s.pc = 2; return s.tmp_1; + case 2: r0 = s.retval; - s.e___96861 = (r0); - r0 = (s.e___96861 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = (s.q___96855 + 1); - s.q___96855 = (r0); - { step = 19; continue; } - case 14: - r0 = (s.e___96861 == s.p___96826); + r0 = (s.arg0).fields["camera"] = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_Background__C20640_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - r0 = (s.q___96855 + 1); - s.q___96855 = (r0); - { step = 18; continue; } - case 15: - s.tmp_0 = helpers_stringSlice__P87640_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___96826; - s.tmp_0.arg2 = s.q___96855; - s.callLocIdx = 12; s.pc = 24; return s.tmp_0; - case 24: + s.tmp_1 = scene_Background_constructor__P20644_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.arg0.fields["camera"]; + s.tmp_1.arg1 = r0; + s.callLocIdx = 906; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - s.T___96854 = (r0); - r0 = pxsim_Array__push(s.A___96805, s.T___96854); - r0 = pxsim_Array__length(s.A___96805); + 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_1 == s.lim___96807); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - r0 = s.A___96805; - { step = 21; continue; } - case 16: - case 17: - s.p___96826 = (s.e___96861); - s.q___96855 = (s.p___96826); - case 18: - case 19: - { step = 13; continue; } - case 20: - s.tmp_0 = helpers_stringSlice__P87640_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___96826; - s.tmp_0.arg2 = s.q___96855; - s.callLocIdx = 13; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.T___96854 = (r0); - r0 = pxsim_Array__push(s.A___96805, s.T___96854); - r0 = s.A___96805; - case 21: + 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() } } } -helpers_stringSplit__P87643.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"]} +scene_Scene_constructor__P20837.info = {"start":3586,"length":836,"line":106,"column":8,"endLine":125,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","eventContext","previousScene"]} -function helpers_stringSplit__P87643_mk(s) { +function scene_Scene_constructor__P20837_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSplit__P87643, depth: s.depth + 1, + parent: s, fn: scene_Scene_constructor__P20837, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - A___96805: undefined, - lim___96807: undefined, - s___96823: undefined, - p___96826: undefined, - R___96827: undefined, - z___96841: undefined, - T___96854: undefined, - q___96855: undefined, - e___96861: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -9648,7 +9635,7 @@ function helpers_stringSplit__P87643_mk(s) { -function helpers_splitMatch__P91882(s) { +function scene_Camera_constructor__P20756(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9658,85 +9645,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___96941 = undefined; - s.s___96944 = undefined; - s.i___96954 = 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___96941 = (r0); - r0 = pxsim_String_.length(s.arg0); - s.s___96944 = (r0); - r0 = (s.arg1 + s.r___96941); - s.tmp_1 = r0; - r0 = (s.tmp_1 > s.s___96944); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = -1; - { step = 7; continue; } - case 1: - case 2: - s.i___96954 = (0); - case 3: - r0 = (s.i___96954 < s.r___96941); - 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___96954); - 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___96954); - 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___96954 + 1); - s.i___96954 = (r0); - { step = 3; continue; } - case 6: - r0 = (s.arg1 + s.r___96941); - case 7: + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C20752_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() } } } -helpers_splitMatch__P91882.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"]} +scene_Camera_constructor__P20756.info = {"start":550,"length":156,"line":17,"column":8,"endLine":23,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"inline","argumentNames":["this"]} -function helpers_splitMatch__P91882_mk(s) { +function scene_Camera_constructor__P20756_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_splitMatch__P91882, depth: s.depth + 1, + parent: s, fn: scene_Camera_constructor__P20756, depth: s.depth + 1, pc: 0, retval: undefined, 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___96941: undefined, - s___96944: undefined, - i___96954: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function helpers_stringSlice__P87640(s) { +function scene_Background_constructor__P20644(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9746,81 +9683,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___96906 = 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___96906 = (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__P87651_mk(s); - r0 = (s.len___96906 + s.arg1); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 9; 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___96906); - { step = 6; continue; } - case 3: - r0 = (s.arg2 === null); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.arg2 = (0); - case 4: - case 5: - case 6: - r0 = (s.arg2 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = (s.len___96906 + s.arg2); - s.arg2 = (r0); - case 7: - case 8: + r0 = s.arg0; + if (!checkSubtype(r0, scene_Background__C20640_VT)) failedCast(r0); + r0 = (s.arg0).fields["color"] = (0); + r0 = (s.arg0).fields["camera"] = (s.arg1); s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - r0 = (s.arg2 - s.arg1); - s.tmp_2 = r0; - r0 = pxsim_String_.substr(s.tmp_0, s.tmp_1, s.tmp_2); + 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() } } } -helpers_stringSlice__P87640.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"]} +scene_Background_constructor__P20644.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 helpers_stringSlice__P87640_mk(s) { +function scene_Background_constructor__P20644_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSlice__P87640, depth: s.depth + 1, + parent: s, fn: scene_Background_constructor__P20644, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - len___96906: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function scene_Scene_render__P90393(s) { +function ArcadePhysicsEngine_constructor__P20499(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9830,147 +9727,70 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___97038 = undefined; - s.unnamed736___U1 = undefined; - s.unnamed737___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C90364_VT)) failedCast(r0); - r0 = s.arg0.fields["flags"]; + if (!checkSubtype(r0, ArcadePhysicsEngine__C20498_VT)) failedCast(r0); + r0 = undefined; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_1 & 4); + r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1); + r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteMap__C20417_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 11; continue; } + s.tmp_1 = sprites_SpriteMap_constructor__P20418_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 525; s.pc = 1; return s.tmp_1; 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__P90393_mk(s); - r0 = s.arg0.fields["previousScene"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 936; s.pc = 12; return s.tmp_3; - case 12: r0 = s.retval; - { step = 6; continue; } - case 5: - s.tmp_0 = scene_Background_draw__P90199_mk(s); - r0 = s.arg0.fields["background"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 937; s.pc = 13; return s.tmp_0; - case 13: + r0 = (s.arg0).fields["map"] = (s.tmp_0); + s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P20501_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 526; s.pc = 2; return s.tmp_0; + case 2: 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__P87626_mk(s); - r0 = s.arg0.fields["allSprites"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = scene_Scene_render_inline__P97015; - s.callLocIdx = 942; s.pc = 14; return s.tmp_2; - case 14: + s.tmp_0 = ArcadePhysicsEngine_maxStep__P20505_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg3; + s.callLocIdx = 527; s.pc = 3; return s.tmp_0; + case 3: 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___97038 = (undefined); - r0 = s.arg0.fields["allSprites"]; - s.unnamed736___U1 = (r0); - s.unnamed737___U2 = (0); - case 9: - s.tmp_0 = r0 = s.unnamed737___U2; - r0 = pxsim_Array__length(s.unnamed736___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 10; continue; } - r0 = pxsim_Array__getAt(s.unnamed736___U1, s.unnamed737___U2); - s.s___97038 = (r0); - s.tmp_2 = if___draw_2_mk(s); - s.tmp_2.arg0 = s.s___97038; - 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 = 943; 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 = 943; s.pc = 15; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 943; s.pc = 15; return s.tmp_2;; } - else { s.callLocIdx = 943; s.pc = 15; return s.tmp_2; } - } - case 15: + s.tmp_0 = ArcadePhysicsEngine_minStep__P20503_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 528; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - r0 = (s.unnamed737___U2 + 1); - s.unnamed737___U2 = (r0); - { step = 9; continue; } - case 10: - s.unnamed736___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_Scene_render__P90393.info = {"start":8203,"length":917,"line":228,"column":8,"endLine":252,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]} +ArcadePhysicsEngine_constructor__P20499.info = {"start":1601,"length":277,"line":58,"column":4,"endLine":65,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","maxVelocity","minSingleStep","maxSingleStep"]} -function scene_Scene_render__P90393_mk(s) { +function ArcadePhysicsEngine_constructor__P20499_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_render__P90393, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_constructor__P20499, depth: s.depth + 1, pc: 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___97038: undefined, - unnamed736___U1: undefined, - unnamed737___U2: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function scene_Scene_render_inline__P97015(s) { +function ArcadePhysicsEngine_maxStep__P20505(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9985,90 +9805,28 @@ switch (step) { 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 = 938; s.pc = 3; return s.tmp_2; } - } - case 3: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C20498_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; - 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 = 939; 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 = 940; 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 = 941; s.pc = 6; return s.tmp_8; } - } - case 6: - r0 = s.retval; - s.tmp_7 = r0; - r0 = (s.tmp_5 - s.tmp_7); - case 2: - // jmp value (already in r0) - s.tmp_9 = r0; - r0 = s.tmp_9; + r0 = (s.tmp_0).fields["maxSingleStep"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_render_inline__P97015.info = {"start":8781,"length":52,"line":242,"column":37,"endLine":242,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]} +ArcadePhysicsEngine_maxStep__P20505.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 scene_Scene_render_inline__P97015_mk(s) { +function ArcadePhysicsEngine_maxStep__P20505_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_render_inline__P97015, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxStep__P20505, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -10077,7 +9835,7 @@ function scene_Scene_render_inline__P97015_mk(s) { -function scene_Background_draw__P90199(s) { +function ArcadePhysicsEngine_maxStep__P20504(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10092,49 +9850,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C90190_VT)) failedCast(r0); - r0 = s.arg0.fields["color"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.fill(globals.screen___89553, 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___89553, s.tmp_1, 0, 0); - case 1: - case 2: - r0 = s.arg0.fields["_layers"]; + if (!checkSubtype(r0, ArcadePhysicsEngine__C20498_VT)) failedCast(r0); + r0 = s.arg0.fields["maxSingleStep"]; 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__P97186); + r0 = (s.tmp_0 + 128); s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P87630_mk(s); - r0 = s.arg0.fields["_layers"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 799; s.pc = 5; return s.tmp_2; - case 5: - r0 = s.retval; - case 3: - case 4: - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) default: oops() } } } -scene_Background_draw__P90199.info = {"start":1166,"length":545,"line":48,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this"]} +ArcadePhysicsEngine_maxStep__P20504.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__P20504.isGetter = true; -function scene_Background_draw__P90199_mk(s) { +function ArcadePhysicsEngine_maxStep__P20504_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_draw__P90199, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxStep__P20504, 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, } } @@ -10142,7 +9876,7 @@ function scene_Background_draw__P90199_mk(s) { -function scene_Background_draw_inline__P97186(s) { +function Fx_toInt__P18143(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10152,58 +9886,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___97188 = undefined; - s.oy___97199 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.caps[0].fields["camera"]; - r0 = r0.fields["drawOffsetX"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["distance"]; - s.tmp_3 = r0; - r0 = (1 + s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 / s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim.Math_.round(s.tmp_0); - s.ox___97188 = (r0); - r0 = s.caps[0].fields["camera"]; - r0 = r0.fields["drawOffsetY"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["distance"]; - s.tmp_3 = r0; - r0 = (1 + s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 / s.tmp_2); + r0 = (s.arg0 + 128); s.tmp_0 = r0; - r0 = pxsim.Math_.round(s.tmp_0); - s.oy___97199 = (r0); - s.tmp_0 = scene_BackgroundLayer_draw__P90208_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ox___97188; - s.tmp_0.arg2 = s.oy___97199; - s.callLocIdx = 798; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = (s.tmp_0 >> 8); return leave(s, r0) default: oops() } } } -scene_Background_draw_inline__P97186.info = {"start":1373,"length":312,"line":53,"column":37,"endLine":58,"endColumn":17,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["layer"]} +Fx_toInt__P18143.info = {"start":2379,"length":86,"line":74,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]} -function scene_Background_draw_inline__P97186_mk(s) { +function Fx_toInt__P18143_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_draw_inline__P97186, depth: s.depth + 1, + parent: s, fn: Fx_toInt__P18143, depth: s.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___97188: undefined, - oy___97199: undefined, arg0: undefined, } } @@ -10211,7 +9911,7 @@ function scene_Background_draw_inline__P97186_mk(s) { -function scene_BackgroundLayer_draw__P90208(s) { +function ArcadePhysicsEngine_minStep__P20503(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10221,251 +9921,83 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___97217 = undefined; - s.h___97220 = undefined; - s.pw___97223 = undefined; - s.ph___97227 = undefined; - s.rx___97236 = undefined; - s.ry___97239 = undefined; - s.y___97308 = undefined; - s.py___97309 = undefined; - s.dh___97318 = undefined; - s.x___97326 = undefined; - s.rxl___97327 = undefined; - s.px___97333 = undefined; - s.dw___97337 = 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__C90200_VT)) failedCast(r0); - r0 = pxsim_ImageMethods.width(globals.screen___89553); - s.w___97217 = (r0); - r0 = pxsim_ImageMethods.height(globals.screen___89553); - s.h___97220 = (r0); - r0 = s.arg0.fields["img"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_0); - s.pw___97223 = (r0); - r0 = s.arg0.fields["img"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_0); - s.ph___97227 = (r0); - r0 = pxsim_numops_toBoolDecr(s.pw___97223); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_numops_toBoolDecr(s.ph___97227); - 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___97236 = (r0); - r0 = (0 - s.arg2); - s.ry___97239 = (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___97236; - r0 = (s.w___97217 + s.pw___97223); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.rx___97236 = (r0); - { step = 7; continue; } - case 6: - s.tmp_0 = r0 = s.rx___97236; - r0 = (s.w___97217 + s.pw___97223); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.rx___97236 = (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___97239; - r0 = (s.h___97220 + s.ph___97227); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.ry___97239 = (r0); - { step = 10; continue; } - case 9: - s.tmp_0 = r0 = s.ry___97239; - r0 = (s.h___97220 + s.ph___97227); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20498_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.ry___97239 = (r0); - case 10: - r0 = (s.rx___97236 % s.w___97217); - s.rx___97236 = (r0); - r0 = (s.rx___97236 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - r0 = (s.rx___97236 + s.w___97217); - s.rx___97236 = (r0); - case 11: - case 12: - r0 = (s.ry___97239 % s.h___97220); - s.ry___97239 = (r0); - r0 = (s.ry___97239 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = (s.ry___97239 + s.h___97220); - s.ry___97239 = (r0); - case 13: - case 14: - r0 = pxsim.Math_.floor(s.rx___97236); - s.rx___97236 = (r0); - r0 = pxsim.Math_.floor(s.ry___97239); - s.ry___97239 = (r0); - s.y___97308 = (0); - s.py___97309 = (0); - case 15: - r0 = (s.y___97308 < s.h___97220); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - r0 = (s.y___97308 % s.ph___97227); - s.py___97309 = (r0); - s.tmp_0 = Math_min__P87652_mk(s); - r0 = (s.ph___97227 - s.py___97309); - s.tmp_0.arg0 = r0; - r0 = (s.h___97220 - s.ry___97239); - s.tmp_0.arg1 = r0; - s.callLocIdx = 801; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.dh___97318 = (r0); - s.x___97326 = (0); - s.rxl___97327 = (s.rx___97236); - case 16: - r0 = (s.x___97326 < s.w___97217); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 19; continue; } - r0 = (s.x___97326 % s.pw___97223); - s.px___97333 = (r0); - s.tmp_0 = Math_min__P87652_mk(s); - r0 = (s.pw___97223 - s.px___97333); - s.tmp_0.arg0 = r0; - r0 = (s.w___97217 - s.rxl___97327); - s.tmp_0.arg1 = r0; - s.callLocIdx = 802; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.dw___97337 = (r0); - r0 = s.arg0.fields["img"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.drawImage(globals.screen___89553, s.tmp_0, s.rxl___97327, s.ry___97239); - r0 = (s.rxl___97327 + s.dw___97337); - s.tmp_0 = r0; - r0 = (s.tmp_0 % s.w___97217); - s.rxl___97327 = (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___97337; - { step = 18; continue; } - case 17: - r0 = s.w___97217; - case 18: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.x___97326 + s.tmp_1); - s.x___97326 = (r0); - { step = 16; continue; } - case 19: - r0 = (s.ry___97239 + s.dh___97318); - s.tmp_0 = r0; - r0 = (s.tmp_0 % s.h___97220); - s.ry___97239 = (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___97318; - { step = 21; continue; } - case 20: - r0 = s.h___97220; - case 21: - // jmp value (already in r0) + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.y___97308 + s.tmp_1); - s.y___97308 = (r0); - { step = 15; continue; } - case 22: - case 23: + r0 = (s.tmp_0).fields["minSingleStep"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_BackgroundLayer_draw__P90208.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"]} +ArcadePhysicsEngine_minStep__P20503.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 scene_BackgroundLayer_draw__P90208_mk(s) { +function ArcadePhysicsEngine_minStep__P20503_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_BackgroundLayer_draw__P90208, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_minStep__P20503, depth: s.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___97217: undefined, - h___97220: undefined, - pw___97223: undefined, - ph___97227: undefined, - rx___97236: undefined, - ry___97239: undefined, - y___97308: undefined, - py___97309: undefined, - dh___97318: undefined, - x___97326: undefined, - rxl___97327: undefined, - px___97333: undefined, - dw___97337: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function helpers_arraySort__P87626(s) { +function ArcadePhysicsEngine_minStep__P20502(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C20498_VT)) failedCast(r0); + r0 = s.arg0.fields["minSingleStep"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 128); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) + default: oops() +} } } +ArcadePhysicsEngine_minStep__P20502.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__P20502.isGetter = true; + +function ArcadePhysicsEngine_minStep__P20502_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: ArcadePhysicsEngine_minStep__P20502, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function ArcadePhysicsEngine_maxSpeed__P20501(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10480,46 +10012,34 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg1); + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C20498_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_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_Array__length(s.arg0); + 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 = (s.tmp_2 > 1); - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - s.arg1 = (helpers_arraySort_inline__P97060); - case 3: - case 4: - s.tmp_0 = helpers_sortHelper__P91880_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 2; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; + 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() } } } -helpers_arraySort__P87626.info = {"start":5663,"length":859,"line":207,"column":4,"endLine":227,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySort","argumentNames":["arr","callbackfn"]} +ArcadePhysicsEngine_maxSpeed__P20501.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 helpers_arraySort__P87626_mk(s) { +function ArcadePhysicsEngine_maxSpeed__P20501_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySort__P87626, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P20501, depth: s.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, } } @@ -10528,7 +10048,7 @@ function helpers_arraySort__P87626_mk(s) { -function helpers_arraySort_inline__P97060(s) { +function Fx_neg__P18126(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10538,142 +10058,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.aIsUndef___97063 = undefined; - s.bIsUndef___97067 = undefined; - s.aIsNull___97078 = undefined; - s.bIsNull___97082 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 === undefined); - s.aIsUndef___97063 = (r0); - r0 = (s.arg1 === undefined); - s.bIsUndef___97067 = (r0); - s.tmp_0 = r0 = s.aIsUndef___97063; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.bIsUndef___97067; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = 0; - { step = 17; continue; } - { step = 8; continue; } - case 3: - r0 = pxsim_numops_toBoolDecr(s.aIsUndef___97063); - if (!r0) { step = 4; continue; } - r0 = 1; - { step = 17; continue; } - { step = 7; continue; } - case 4: - r0 = pxsim_numops_toBoolDecr(s.bIsUndef___97067); - if (!r0) { step = 5; continue; } - r0 = -1; - { step = 17; continue; } - case 5: - case 6: - case 7: - case 8: - r0 = (s.arg0 === null); - s.aIsNull___97078 = (r0); - r0 = (s.arg1 === null); - s.bIsNull___97082 = (r0); - s.tmp_0 = r0 = s.aIsNull___97078; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 9; continue; } - r0 = s.tmp_0; - { step = 10; continue; } - case 9: - r0 = s.bIsNull___97082; - case 10: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 11; continue; } - r0 = 0; - { step = 17; continue; } - { step = 16; continue; } - case 11: - r0 = pxsim_numops_toBoolDecr(s.aIsNull___97078); - if (!r0) { step = 12; continue; } - r0 = 1; - { step = 17; continue; } - { step = 15; continue; } - case 12: - r0 = pxsim_numops_toBoolDecr(s.bIsNull___97082); - if (!r0) { step = 13; continue; } - r0 = -1; - { step = 17; continue; } - case 13: - case 14: - case 15: - case 16: - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 18); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 18: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.tmp_2 = r0; - if ((s.arg1) && (s.arg1).vtable) { - setupResume(s, 19); - pxsim_String__stringConv(s.arg1); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg1) + ""; } - case 19: - r0 = s.retval; - s.tmp_6 = r0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_7 = r0; - r0 = pxsim_String__concat(s.tmp_6, s.tmp_7); - s.tmp_5 = r0; - r0 = pxsim_String_.compare(s.tmp_2, s.tmp_5); - case 17: + r0 = (0 - s.arg0); return leave(s, r0) default: oops() } } } -helpers_arraySort_inline__P97060.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"]} +Fx_neg__P18126.info = {"start":311,"length":88,"line":14,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"neg","argumentNames":["a"]} -function helpers_arraySort_inline__P97060_mk(s) { +function Fx_neg__P18126_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySort_inline__P97060, depth: s.depth + 1, + parent: s, fn: Fx_neg__P18126, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - aIsUndef___97063: undefined, - bIsUndef___97067: undefined, - aIsNull___97078: undefined, - bIsNull___97082: undefined, arg0: undefined, - arg1: undefined, } } -function helpers_sortHelper__P91880(s) { +function ArcadePhysicsEngine_maxSpeed__P20500(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10683,114 +10090,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___97117 = undefined; - s.i___97120 = undefined; - s.j___97126 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__length(s.arg0); - s.tmp_1 = r0; - r0 = (s.tmp_1 <= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } r0 = s.arg0; - { step = 11; continue; } - case 3: - case 4: - r0 = pxsim_Array__length(s.arg0); - s.len___97117 = (r0); - s.i___97120 = (0); - case 5: - s.tmp_1 = r0 = s.i___97120; - r0 = (s.len___97117 - 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___97120 + 1); - s.j___97126 = (r0); - case 6: - r0 = (s.j___97126 < s.len___97117); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20498_VT)) failedCast(r0); + r0 = s.arg0.fields["maxVelocity"]; 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___97120); - s.tmp_3.arg0 = r0; - r0 = pxsim_Array__getAt(s.arg0, s.j___97126); - s.tmp_3.arg1 = r0; - setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 0; s.pc = 12; return s.tmp_3; - case 12: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 > 0); + r0 = (s.tmp_0 + 128); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 7; continue; } - s.tmp_4 = helpers_swap__P91879_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = s.i___97120; - s.tmp_4.arg2 = s.j___97126; - s.callLocIdx = 1; s.pc = 13; return s.tmp_4; - case 13: - r0 = s.retval; - case 7: - case 8: - r0 = (s.j___97126 + 1); - s.j___97126 = (r0); - { step = 6; continue; } - case 9: - r0 = (s.i___97120 + 1); - s.i___97120 = (r0); - { step = 5; continue; } - case 10: - r0 = s.arg0; - case 11: - return leave(s, r0) + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) default: oops() } } } -helpers_sortHelper__P91880.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"]} +ArcadePhysicsEngine_maxSpeed__P20500.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__P20500.isGetter = true; -function helpers_sortHelper__P91880_mk(s) { +function ArcadePhysicsEngine_maxSpeed__P20500_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_sortHelper__P91880, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P20500, depth: s.depth + 1, pc: 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___97117: undefined, - i___97120: undefined, - j___97126: undefined, arg0: undefined, - arg1: undefined, } } -function helpers_swap__P91879(s) { +function PhysicsEngine_constructor__P20483(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10800,46 +10131,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.temp___97155 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_Array__getAt(s.arg0, s.arg1); - s.temp___97155 = (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___97155); + r0 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C20482_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_swap__P91879.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"]} +PhysicsEngine_constructor__P20483.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]} -function helpers_swap__P91879_mk(s) { +function PhysicsEngine_constructor__P20483_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_swap__P91879, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_constructor__P20483, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - temp___97155: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function scene_Camera_update__P90319(s) { +function sprites_SpriteMap_constructor__P20418(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10849,179 +10165,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.elapsed___97424 = undefined; - s.percentComplete___97438 = undefined; - s.damp___97445 = undefined; - s.f___97454 = undefined; - s.x___97460 = undefined; - s.y___97467 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C90302_VT)) failedCast(r0); - r0 = s.arg0.fields["sprite"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = r0 = s.arg0; - s.tmp_3 = Sprite_x__P89875_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 897; s.pc = 9; return s.tmp_3; - case 9: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["_lastUpdatedSpriteX"] = (s.tmp_2); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Sprite_y__P89877_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 898; s.pc = 10; return s.tmp_2; - case 10: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_lastUpdatedSpriteY"] = (s.tmp_1); - s.tmp_0 = scene_Camera_offsetX__P90308_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_x__P89875_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 899; s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___89553); - 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 = 900; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = scene_Camera_offsetY__P90310_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_y__P89877_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 901; s.pc = 14; return s.tmp_2; - case 14: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___89553); - 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 = 902; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - case 1: - case 2: - 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___97424 = (r0); - r0 = s.arg0.fields["shakeDuration"]; - s.tmp_1 = r0; - r0 = (s.elapsed___97424 >= 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___97424 / s.tmp_0); - s.percentComplete___97438 = (r0); - s.damp___97445 = (1); - r0 = (s.percentComplete___97438 >= 0.75); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_1 = Math_max__P87651_mk(s); - s.tmp_1.arg0 = 0; - r0 = (1 - s.percentComplete___97438); - s.tmp_1.arg1 = r0; - s.callLocIdx = 905; s.pc = 15; return s.tmp_1; - case 15: - r0 = s.retval; - s.damp___97445 = (r0); - case 4: - case 5: - r0 = s.arg0.fields["shakeAmplitude"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 * s.damp___97445); - s.f___97454 = (r0); - r0 = pxsim.Math_.random(); - s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___97454); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 0); - s.x___97460 = (r0); - r0 = pxsim.Math_.random(); - s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___97454); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 0); - s.y___97467 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["drawOffsetX"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.x___97460); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["drawOffsetX"] = (s.tmp_1); + if (!checkSubtype(r0, sprites_SpriteMap__C20417_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["drawOffsetY"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.y___97467); + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); - case 6: - case 7: - case 8: + r0 = (s.tmp_0).fields["buckets"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Camera_update__P90319.info = {"start":2563,"length":1418,"line":83,"column":8,"endLine":116,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]} +sprites_SpriteMap_constructor__P20418.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]} -function scene_Camera_update__P90319_mk(s) { +function sprites_SpriteMap_constructor__P20418_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_update__P90319, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_constructor__P20418, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - elapsed___97424: undefined, - percentComplete___97438: undefined, - damp___97445: undefined, - f___97454: undefined, - x___97460: undefined, - y___97467: undefined, arg0: undefined, } } @@ -11029,7 +10195,7 @@ function scene_Camera_update__P90319_mk(s) { -function scene_Camera_offsetY__P90310(s) { +function control_pushEventContext__P18380(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11039,93 +10205,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___97486 = 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__C90302_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 888; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.scene___97486 = (r0); - r0 = s.scene___97486.fields["tileMap"]; + s.ctx___27419 = undefined; + s.n___27425 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___22404); + 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.eventContexts___22404 = (r0); case 1: - r0 = s.scene___97486.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); + s.tmp_0 = control_eventContext__P18379_mk(s); + s.callLocIdx = 53; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.ctx___27419 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___27419); if (!r0) { step = 3; continue; } - s.tmp_7 = r0 = s.arg0; - s.tmp_10 = tiles_TileMap_offsetY__P90263_mk(s); - r0 = s.scene___97486.fields["tileMap"]; - s.tmp_10.arg0 = r0; - s.tmp_10.arg1 = s.arg1; - s.callLocIdx = 890; s.pc = 6; return s.tmp_10; + s.tmp_0 = control_EventContext_unregister__P18373_mk(s); + s.tmp_0.arg0 = s.ctx___27419; + s.callLocIdx = 54; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_9 = r0; - r0 = pxsim.Math_.floor(s.tmp_9); - s.tmp_8 = r0; - r0 = (s.tmp_7).fields["_offsetY"] = (s.tmp_8); - { step = 4; continue; } case 3: - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.Math_.floor(s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_offsetY"] = (s.tmp_1); case 4: - r0 = undefined; + r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C18366_VT); + s.tmp_0 = r0; + s.tmp_1 = control_EventContext_constructor__P18370_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 55; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + s.n___27425 = (s.tmp_0); + r0 = pxsim_Array__push(globals.eventContexts___22404, s.n___27425); + r0 = s.n___27425; return leave(s, r0) default: oops() } } } -scene_Camera_offsetY__P90310.info = {"start":1152,"length":291,"line":39,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this","v"]} +control_pushEventContext__P18380.info = {"start":7310,"length":340,"line":220,"column":4,"endLine":231,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]} -function scene_Camera_offsetY__P90310_mk(s) { +function control_pushEventContext__P18380_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetY__P90310, depth: s.depth + 1, + parent: s, fn: control_pushEventContext__P18380, depth: s.depth + 1, pc: 0, retval: undefined, 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, - scene___97486: undefined, - arg0: undefined, - arg1: undefined, + ctx___27419: undefined, + n___27425: undefined, } } -function tiles_TileMap_enabled__P90268(s) { +function control_EventContext_unregister__P18373(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11135,36 +10271,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.h___27454 = undefined; + s.unnamed150___U1 = undefined; + s.unnamed151___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C90256_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!checkSubtype(r0, control_EventContext__C18366_VT)) failedCast(r0); + s.h___27454 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed150___U1 = (r0); + s.unnamed151___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed151___U2; + r0 = pxsim_Array__length(s.unnamed150___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed150___U1, s.unnamed151___U2); + s.h___27454 = (r0); + s.tmp_2 = control_EventHandler_unregister__P22398_mk(s); + s.tmp_2.arg0 = s.h___27454; + s.callLocIdx = 49; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + r0 = (s.unnamed151___U2 + 1); + s.unnamed151___U2 = (r0); + { step = 1; continue; } + case 2: + s.unnamed150___U1 = (undefined); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["frameWorker"]; s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = (s.tmp_2 + 1); 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["frameWorker"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_TileMap_enabled__P90268.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__P90268.isGetter = true; +control_EventContext_unregister__P18373.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_enabled__P90268_mk(s) { +function control_EventContext_unregister__P18373_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_enabled__P90268, depth: s.depth + 1, + parent: s, fn: control_EventContext_unregister__P18373, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, + h___27454: undefined, + unnamed150___U1: undefined, + unnamed151___U2: undefined, arg0: undefined, } } @@ -11172,7 +10332,7 @@ function tiles_TileMap_enabled__P90268_mk(s) { -function tiles_TileMap_offsetY__P90263(s) { +function control_EventHandler_unregister__P22398(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11184,57 +10344,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, tiles_TileMap__C90256_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P87648_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P87651_mk(s); - s.tmp_3 = tiles_TileMap_areaHeight__P90265_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 827; s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; + if (!checkSubtype(r0, control_EventHandler__C22396_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_ImageMethods.height(globals.screen___89553); - s.tmp_4 = r0; - r0 = (s.tmp_2 - s.tmp_4); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 828; 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 = 829; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = pxsim.control.internalOnEvent(s.tmp_0, s.tmp_1, control_doNothing__P22400, s.tmp_2); + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_offsetY__P90263.info = {"start":9630,"length":123,"line":329,"column":8,"endLine":331,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetY","argumentNames":["this","value"]} +control_EventHandler_unregister__P22398.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_offsetY__P90263_mk(s) { +function control_EventHandler_unregister__P22398_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetY__P90263, depth: s.depth + 1, + parent: s, fn: control_EventHandler_unregister__P22398, depth: s.depth + 1, pc: 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__P90265(s) { +function control_doNothing__P22400(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11244,53 +10386,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C90256_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["_height"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 << s.tmp_3); - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_areaHeight__P90265.info = {"start":9864,"length":93,"line":337,"column":8,"endLine":339,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} +control_doNothing__P22400.info = {"start":1254,"length":24,"line":41,"column":4,"endLine":41,"endColumn":28,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"doNothing","argumentNames":[]} -function tiles_TileMap_areaHeight__P90265_mk(s) { +function control_doNothing__P22400_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_areaHeight__P90265, depth: s.depth + 1, + parent: s, fn: control_doNothing__P22400, depth: s.depth + 1, pc: 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 tiles_TileMap_scale__P90259(s) { +function control_EventContext_constructor__P18370(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11305,19 +10418,39 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C90256_VT)) failedCast(r0); - r0 = s.arg0.fields["_scale"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, control_EventContext__C18366_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___18368); + s.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___18368 = (r0); + case 1: + case 2: + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_TileMap_scale__P90259.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__P90259.isGetter = true; +control_EventContext_constructor__P18370.info = {"start":1778,"length":347,"line":59,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} -function tiles_TileMap_scale__P90259_mk(s) { +function control_EventContext_constructor__P18370_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_scale__P90259, depth: s.depth + 1, + parent: s, fn: control_EventContext_constructor__P18370, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -11325,7 +10458,7 @@ function tiles_TileMap_scale__P90259_mk(s) { -function tiles_TileMapData_height__P90241(s) { +function controller_pauseUntilAnyButtonIsPressed__P20176(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11335,32 +10468,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C90238_VT)) failedCast(r0); - r0 = s.arg0.fields["_height"]; - return leaveAccessor(s, r0) + setupResume(s, 1); + pxsim.control.waitForEvent(2049, 0); + checkResumeConsumed(); + return; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_TileMapData_height__P90241.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__P90241.isGetter = true; +controller_pauseUntilAnyButtonIsPressed__P20176.info = {"start":9968,"length":96,"line":287,"column":4,"endLine":289,"endColumn":5,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"pauseUntilAnyButtonIsPressed","argumentNames":[]} -function tiles_TileMapData_height__P90241_mk(s) { +function controller_pauseUntilAnyButtonIsPressed__P20176_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_height__P90241, depth: s.depth + 1, + parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P20176, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, } } -function scene_Camera_offsetY__P90309(s) { +function game_setWaitAnyButton__P20971(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11374,19 +10505,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C90302_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetY"]; - return leaveAccessor(s, r0) + globals.__waitAnyButton___22908 = (s.arg0); + r0 = undefined; + return leave(s, r0) default: oops() } } } -scene_Camera_offsetY__P90309.info = {"start":1084,"length":59,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this"]} -scene_Camera_offsetY__P90309.isGetter = true; +game_setWaitAnyButton__P20971.info = {"start":4236,"length":83,"line":127,"column":4,"endLine":129,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"setWaitAnyButton","argumentNames":["f"]} -function scene_Camera_offsetY__P90309_mk(s) { +function game_setWaitAnyButton__P20971_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetY__P90309, depth: s.depth + 1, + parent: s, fn: game_setWaitAnyButton__P20971, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -11395,7 +10524,7 @@ function scene_Camera_offsetY__P90309_mk(s) { -function scene_Camera_offsetX__P90308(s) { +function Math_FastRandom_constructor__P21032(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11405,84 +10534,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___97546 = 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__C90302_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 885; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.scene___97546 = (r0); - r0 = s.scene___97546.fields["tileMap"]; + if (!checkSubtype(r0, Math_FastRandom__C21030_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; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.Math_.randomRange(1, 65535); + s.arg1 = (r0); case 1: - r0 = s.scene___97546.fields["tileMap"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["_map"]; - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); case 2: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 3; continue; } - s.tmp_7 = r0 = s.arg0; - s.tmp_10 = tiles_TileMap_offsetX__P90262_mk(s); - r0 = s.scene___97546.fields["tileMap"]; - s.tmp_10.arg0 = r0; - s.tmp_10.arg1 = s.arg1; - s.callLocIdx = 887; s.pc = 6; return s.tmp_10; - case 6: - r0 = s.retval; - s.tmp_9 = r0; - r0 = pxsim.Math_.floor(s.tmp_9); - s.tmp_8 = r0; - r0 = (s.tmp_7).fields["_offsetX"] = (s.tmp_8); - { step = 4; continue; } - case 3: - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.Math_.floor(s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_offsetX"] = (s.tmp_1); - case 4: + r0 = (s.arg0).fields["seed"] = (s.arg1); + r0 = (s.arg0).fields["lfsr"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Camera_offsetX__P90308.info = {"start":784,"length":291,"line":28,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this","v"]} +Math_FastRandom_constructor__P21032.info = {"start":1425,"length":175,"line":44,"column":8,"endLine":48,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"inline","argumentNames":["this","seed"]} -function scene_Camera_offsetX__P90308_mk(s) { +function Math_FastRandom_constructor__P21032_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetX__P90308, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_constructor__P21032, depth: s.depth + 1, pc: 0, retval: undefined, 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, - scene___97546: undefined, arg0: undefined, arg1: undefined, } } @@ -11491,7 +10571,7 @@ function scene_Camera_offsetX__P90308_mk(s) { -function tiles_TileMap_offsetX__P90262(s) { +function game_consoleOverlay_listener__P23238(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11506,45 +10586,82 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C90256_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P87648_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P87651_mk(s); - s.tmp_3 = tiles_TileMap_areaWidth__P90264_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 824; s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___23203); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___89553); - s.tmp_4 = r0; - r0 = (s.tmp_2 - s.tmp_4); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 825; s.pc = 2; return s.tmp_1; + r0 = pxsim_Boolean__bang(s.tmp_2); case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + { step = 7; continue; } + case 3: + case 4: + s.tmp_4 = helpers_arrayForEach__P18080_mk(s); + s.tmp_5 = helpers_arrayFilter__P18081_mk(s); + s.tmp_6 = helpers_stringSplit__P18093_mk(s); + s.tmp_6.arg0 = s.arg1; + s.tmp_6.arg1 = "\n"; + s.tmp_6.arg2 = undefined; + s.callLocIdx = 1124; s.pc = 10; return s.tmp_6; + case 10: r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 826; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_5.arg0 = r0; + s.tmp_5.arg1 = forEach_inline__P27657; + s.callLocIdx = 1125; 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__P27662; + s.callLocIdx = 1127; s.pc = 8; return s.tmp_4; + case 8: + r0 = s.retval; + r0 = pxsim_Array__length(globals.consoleStrings___23203); + s.tmp_1 = r0; + r0 = (s.tmp_1 > globals.consoleLines___23216); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_2 = helpers_arraySplice__P18071_mk(s); + s.tmp_2.arg0 = globals.consoleStrings___23203; + s.tmp_2.arg1 = 0; + r0 = pxsim_Array__length(globals.consoleStrings___23203); + s.tmp_3 = r0; + r0 = (s.tmp_3 - globals.consoleLines___23216); + s.tmp_2.arg2 = r0; + s.callLocIdx = 1128; s.pc = 11; return s.tmp_2; + case 11: + r0 = s.retval; + case 5: + case 6: + case 7: + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_offsetX__P90262.info = {"start":9499,"length":121,"line":325,"column":8,"endLine":327,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetX","argumentNames":["this","value"]} +game_consoleOverlay_listener__P23238.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 tiles_TileMap_offsetX__P90262_mk(s) { +function game_consoleOverlay_listener__P23238_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetX__P90262, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_listener__P23238, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -11553,7 +10670,7 @@ function tiles_TileMap_offsetX__P90262_mk(s) { -function tiles_TileMap_areaWidth__P90264(s) { +function forEach_inline__P27657(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11567,41 +10684,26 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C90256_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["_map"]; + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_2 = r0; - r0 = s.tmp_2.fields["_width"]; + r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 << s.tmp_3); - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -tiles_TileMap_areaWidth__P90264.info = {"start":9763,"length":91,"line":333,"column":8,"endLine":335,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]} +forEach_inline__P27657.info = {"start":985,"length":14,"line":32,"column":20,"endLine":32,"endColumn":34,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} -function tiles_TileMap_areaWidth__P90264_mk(s) { +function forEach_inline__P27657_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_areaWidth__P90264, depth: s.depth + 1, + parent: s, fn: forEach_inline__P27657, depth: s.depth + 1, pc: 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, } } @@ -11609,7 +10711,7 @@ function tiles_TileMap_areaWidth__P90264_mk(s) { -function tiles_TileMapData_width__P90240(s) { +function game_consoleOverlay_listener_inline__P27662(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11619,24 +10721,53 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.j___27664 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C90238_VT)) failedCast(r0); - r0 = s.arg0.fields["_width"]; - return leaveAccessor(s, r0) + s.j___27664 = (0); + case 1: + s.tmp_1 = r0 = s.j___27664; + 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___23203; + s.tmp_5 = helpers_stringSlice__P18090_mk(s); + s.tmp_5.arg0 = s.arg0; + s.tmp_5.arg1 = s.j___27664; + r0 = (s.j___27664 + globals.consoleColumns___23226); + s.tmp_5.arg2 = r0; + s.callLocIdx = 1126; 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___27664 + globals.consoleColumns___23226); + s.j___27664 = (r0); + { step = 1; continue; } + case 2: + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_TileMapData_width__P90240.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__P90240.isGetter = true; +game_consoleOverlay_listener_inline__P27662.info = {"start":1022,"length":189,"line":33,"column":21,"endLine":37,"endColumn":13,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} -function tiles_TileMapData_width__P90240_mk(s) { +function game_consoleOverlay_listener_inline__P27662_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_width__P90240, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_listener_inline__P27662, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + j___27664: undefined, arg0: undefined, } } @@ -11644,7 +10775,7 @@ function tiles_TileMapData_width__P90240_mk(s) { -function scene_Camera_offsetX__P90307(s) { +function console_addListener__P18354(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11658,20 +10789,43 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C90302_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetX"]; - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_Array_.indexOf(globals.listeners___22382, s.arg0, undefined); + s.tmp_2 = r0; + r0 = (s.tmp_2 > -1); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + { step = 5; continue; } + case 3: + case 4: + r0 = pxsim_Array__push(globals.listeners___22382, s.arg0); + case 5: + r0 = undefined; + return leave(s, r0) default: oops() } } } -scene_Camera_offsetX__P90307.info = {"start":716,"length":59,"line":25,"column":8,"endLine":27,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this"]} -scene_Camera_offsetX__P90307.isGetter = true; +console_addListener__P18354.info = {"start":3558,"length":197,"line":121,"column":4,"endLine":124,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"addListener","argumentNames":["listener"]} -function scene_Camera_offsetX__P90307_mk(s) { +function console_addListener__P18354_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetX__P90307, depth: s.depth + 1, + parent: s, fn: console_addListener__P18354, depth: s.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, } } @@ -11679,7 +10833,7 @@ function scene_Camera_offsetX__P90307_mk(s) { -function PhysicsEngine_move__P90038(s) { +function listeners_inline__P22381(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11694,18 +10848,17 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C90032_VT)) failedCast(r0); + r0 = pxsim.control.__log(s.arg0, s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_move__P90038.info = {"start":351,"length":20,"line":18,"column":4,"endLine":18,"endColumn":24,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} +listeners_inline__P22381.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 PhysicsEngine_move__P90038_mk(s) { +function listeners_inline__P22381_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_move__P90038, depth: s.depth + 1, + parent: s, fn: listeners_inline__P22381, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -11715,7 +10868,7 @@ function PhysicsEngine_move__P90038_mk(s) { -function PhysicsEngine_draw__P90037(s) { +function scene_systemMenu_register__P21077(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11725,31 +10878,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.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C90032_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals.instance___23157); + if (!r0) { step = 1; continue; } + { step = 3; continue; } + case 1: + case 2: + s.tmp_0 = controller_Button_onEvent__P20167_mk(s); + s.tmp_0.arg0 = globals.menu___20090; + s.tmp_0.arg1 = 2049; + s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P21078; + s.callLocIdx = 1111; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_draw__P90037.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} +scene_systemMenu_register__P21077.info = {"start":12793,"length":193,"line":382,"column":4,"endLine":386,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"register","argumentNames":[]} -function PhysicsEngine_draw__P90037_mk(s) { +function scene_systemMenu_register__P21077_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_draw__P90037, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_register__P21077, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, } } -function controller___update__P89686(s) { +function scene_systemMenu_showSystemMenu__P21078(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11759,51 +10919,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dtms___97841 = 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___97841 = (r0); - r0 = pxsim_pxtcore_mkAction(1, controller___update_inline__P97848); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___97841); - s.tmp_1 = helpers_arrayForEach__P87630_mk(s); - s.tmp_2 = controller_players__P89650_mk(s); - s.callLocIdx = 194; s.pc = 2; return s.tmp_2; + r0 = pxsim_numops_toBoolDecr(globals.instance___23157); + if (!r0) { step = 1; continue; } + { step = 3; continue; } + case 1: case 2: + s.tmp_0 = game_pushScene__P20974_mk(s); + s.callLocIdx = 1112; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 196; s.pc = 1; return s.tmp_1; - case 1: + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C21066_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P21067_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P21074; + s.tmp_1.arg2 = undefined; + s.callLocIdx = 1113; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + globals.instance___23157 = (s.tmp_0); + s.tmp_0 = scene_systemMenu_PauseMenu_show__P21068_mk(s); + s.tmp_0.arg0 = globals.instance___23157; + s.callLocIdx = 1114; s.pc = 6; return s.tmp_0; + case 6: r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -controller___update__P89686.info = {"start":13733,"length":137,"line":414,"column":4,"endLine":417,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]} +scene_systemMenu_showSystemMenu__P21078.info = {"start":12992,"length":172,"line":388,"column":4,"endLine":393,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"showSystemMenu","argumentNames":[]} -function controller___update__P89686_mk(s) { +function scene_systemMenu_showSystemMenu__P21078_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller___update__P89686, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_showSystemMenu__P21078, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - dtms___97841: undefined, - arg0: undefined, } } -function controller___update_inline__P97848(s) { +function scene_systemMenu_buildOptionList__P21074(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11813,36 +10973,136 @@ 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__P89684_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - s.callLocIdx = 195; s.pc = 1; return s.tmp_0; + s.options___29699 = undefined; + r0 = pxsim_Array__mk(); + s.options___29699 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C21058_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P21059_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___21088; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P29707; + s.tmp_1.arg3 = scene_systemMenu_volumeDown__P23163; + s.callLocIdx = 1094; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + r0 = pxsim_Array__push(s.options___29699, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C21058_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P21059_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = globals.VOLUME_UP_ICON___21085; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P29721; + s.tmp_1.arg3 = scene_systemMenu_volumeUp__P23162; + s.callLocIdx = 1096; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; + r0 = pxsim_Array__push(s.options___29699, s.tmp_0); + r0 = 0; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C21058_VT); + s.tmp_1 = r0; + s.tmp_2 = scene_systemMenu_MenuOption_constructor__P21059_mk(s); + s.tmp_2.arg0 = s.tmp_1; + s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___21086; + s.tmp_2.arg2 = scene_systemMenu_buildOptionList_inline__P29736; + s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P23165; + s.callLocIdx = 1099; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + r0 = pxsim_Array__push(s.options___29699, s.tmp_1); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C21058_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P21059_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___21091; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P29751; + s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P23164; + s.callLocIdx = 1101; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; + r0 = pxsim_Array__push(s.options___29699, s.tmp_0); case 1: + case 2: + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C21058_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P21059_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = globals.STATS_ICON___21092; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P29766; + s.tmp_1.arg3 = scene_systemMenu_toggleStats__P23167; + s.callLocIdx = 1102; s.pc = 9; return s.tmp_1; + case 9: r0 = s.retval; - r0 = undefined; + r0 = pxsim_Array__push(s.options___29699, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C21058_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P21059_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = globals.CONSOLE_ICON___21090; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P29775; + s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P23168; + s.callLocIdx = 1104; s.pc = 10; return s.tmp_1; + case 10: + r0 = s.retval; + r0 = pxsim_Array__push(s.options___29699, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C21058_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P21059_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = globals.SLEEP_ICON___21089; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P29784; + s.tmp_1.arg3 = scene_systemMenu_sleep__P23169; + s.callLocIdx = 1105; s.pc = 11; return s.tmp_1; + case 11: + r0 = s.retval; + r0 = pxsim_Array__push(s.options___29699, s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___23158); + if (!r0) { step = 3; continue; } + s.tmp_0 = helpers_arrayConcat__P18084_mk(s); + s.tmp_0.arg0 = s.options___29699; + s.tmp_0.arg1 = globals.customMenuOptions___23158; + s.callLocIdx = 1106; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.options___29699 = (r0); + case 3: + case 4: + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C21058_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P21059_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___21087; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P29797; + s.tmp_1.arg3 = scene_systemMenu_closeMenu__P21073; + s.callLocIdx = 1107; s.pc = 13; return s.tmp_1; + case 13: + r0 = s.retval; + r0 = pxsim_Array__push(s.options___29699, s.tmp_0); + r0 = s.options___29699; return leave(s, r0) default: oops() } } } -controller___update_inline__P97848.info = {"start":13835,"length":27,"line":416,"column":26,"endLine":416,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +scene_systemMenu_buildOptionList__P21074.info = {"start":10499,"length":1149,"line":334,"column":4,"endLine":354,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildOptionList","argumentNames":[]} -function controller___update_inline__P97848_mk(s) { +function scene_systemMenu_buildOptionList__P21074_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller___update_inline__P97848, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList__P21074, 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, + options___29699: undefined, } } -function controller_Controller___update__P89684(s) { +function scene_systemMenu_buildOptionList_inline__P29707(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11852,57 +11112,44 @@ 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__C89655_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__P97861); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayForEach__P87630_mk(s); - r0 = s.arg0.fields["buttons"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 193; s.pc = 1; return s.tmp_1; + s.tmp_3 = music_volume__P19592_mk(s); + s.callLocIdx = 1093; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; - r0 = undefined; + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 2); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 2: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat("VOLUME DOWN (", s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, ")"); return leave(s, r0) default: oops() } } } -controller_Controller___update__P89684.info = {"start":13211,"length":124,"line":396,"column":8,"endLine":399,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} +scene_systemMenu_buildOptionList_inline__P29707.info = {"start":10644,"length":39,"line":337,"column":54,"endLine":337,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function controller_Controller___update__P89684_mk(s) { +function scene_systemMenu_buildOptionList_inline__P29707_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___update__P89684, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P29707, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - arg0: undefined, - arg1: undefined, } } -function controller_Controller___update_inline__P97861(s) { +function scene_systemMenu_buildOptionList_inline__P29721(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11912,37 +11159,44 @@ 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_Button___update__P89724_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_0.arg1 = r0; - s.callLocIdx = 192; s.pc = 1; return s.tmp_0; + s.tmp_3 = music_volume__P19592_mk(s); + s.callLocIdx = 1095; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; - r0 = undefined; + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 2); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 2: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat("VOLUME UP (", s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, ")"); return leave(s, r0) default: oops() } } } -controller_Controller___update_inline__P97861.info = {"start":13298,"length":25,"line":398,"column":33,"endLine":398,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} +scene_systemMenu_buildOptionList_inline__P29721.info = {"start":10751,"length":37,"line":338,"column":52,"endLine":338,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function controller_Controller___update_inline__P97861_mk(s) { +function scene_systemMenu_buildOptionList_inline__P29721_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___update_inline__P97861, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P29721, 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, } } -function controller_Button___update__P89724(s) { +function scene_systemMenu_buildOptionList_inline__P29736(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11952,124 +11206,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.delay___97877 = undefined; - s.interval___97886 = undefined; - s.count___97899 = 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__C89710_VT)) failedCast(r0); - r0 = s.arg0.fields["_pressed"]; + r0 = globals.brightness___19922; 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; } + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 1); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } case 1: - case 2: - s.tmp_3 = r0 = s.arg0; - r0 = s.tmp_3.fields["_pressedElasped"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 + s.arg1); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["_pressedElasped"] = (s.tmp_4); - r0 = s.arg0.fields["repeatDelay"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = globals.defaultRepeatDelay___92257; - { step = 4; continue; } - case 3: - r0 = s.arg0.fields["repeatDelay"]; - case 4: - // jmp value (already in r0) - s.tmp_2 = r0; - s.delay___97877 = (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___92259; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["repeatInterval"]; - case 6: - // jmp value (already in r0) - s.tmp_2 = r0; - s.interval___97886 = (s.tmp_2); - r0 = s.arg0.fields["_pressedElasped"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 < s.delay___97877); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - { step = 11; continue; } - case 7: - case 8: - r0 = s.arg0.fields["_pressedElasped"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 - s.delay___97877); - s.tmp_4 = r0; - r0 = (s.tmp_4 - s.interval___97886); - s.tmp_3 = r0; - r0 = (s.tmp_3 / s.interval___97886); - s.tmp_2 = r0; - r0 = pxsim.Math_.floor(s.tmp_2); - s.count___97899 = (r0); - r0 = s.arg0.fields["_repeatCount"]; + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.count___97899 != s.tmp_1); + r0 = pxsim_String__concat("BRIGHTNESS DOWN (", 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__P92246_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 208; s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; - r0 = (s.arg0).fields["_repeatCount"] = (s.count___97899); - case 9: - case 10: - case 11: - r0 = undefined; + r0 = pxsim_String__concat(s.tmp_0, ")"); return leave(s, r0) default: oops() } } } -controller_Button___update__P89724.info = {"start":7291,"length":704,"line":217,"column":8,"endLine":234,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"__update","argumentNames":["this","dtms"]} +scene_systemMenu_buildOptionList_inline__P29736.info = {"start":10910,"length":48,"line":340,"column":62,"endLine":340,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function controller_Button___update__P89724_mk(s) { +function scene_systemMenu_buildOptionList_inline__P29736_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button___update__P89724, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P29736, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - delay___97877: undefined, - interval___97886: undefined, - count___97899: undefined, - arg0: undefined, - arg1: undefined, } } -function controller_Button_raiseButtonRepeat__P92246(s) { +function scene_systemMenu_buildOptionList_inline__P29751(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12079,43 +11249,40 @@ 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__C89710_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___92255); - 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; } + r0 = globals.brightness___19922; + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 1); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } case 1: - r0 = s.arg0.fields["id"]; + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat("BRIGHTNESS UP (", s.tmp_1); s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2055, s.tmp_0); - case 2: - r0 = undefined; + r0 = pxsim_String__concat(s.tmp_0, ")"); return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonRepeat__P92246.info = {"start":3303,"length":211,"line":110,"column":8,"endLine":115,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]} +scene_systemMenu_buildOptionList_inline__P29751.info = {"start":11038,"length":46,"line":341,"column":60,"endLine":341,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function controller_Button_raiseButtonRepeat__P92246_mk(s) { +function scene_systemMenu_buildOptionList_inline__P29751_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonRepeat__P92246, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P29751, 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, } } -function controller_players__P89650(s) { +function scene_systemMenu_buildOptionList_inline__P29766(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12125,25 +11292,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller__player1__P89649_mk(s); - s.callLocIdx = 153; s.pc = 1; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(globals.stats___20939); + if (!r0) { step = 1; continue; } + r0 = "HIDE STATS"; + { step = 2; continue; } case 1: - r0 = s.retval; - s.tmp_0 = helpers_arrayFilter__P87631_mk(s); - s.tmp_0.arg0 = globals._players___92175; - s.tmp_0.arg1 = controller_players_inline__P97831; - s.callLocIdx = 154; s.pc = 2; return s.tmp_0; + r0 = "SHOW STATS"; case 2: - r0 = s.retval; + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -controller_players__P89650.info = {"start":1645,"length":144,"line":53,"column":4,"endLine":56,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P29766.info = {"start":11160,"length":46,"line":343,"column":48,"endLine":343,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function controller_players__P89650_mk(s) { +function scene_systemMenu_buildOptionList_inline__P29766_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_players__P89650, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P29766, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -12152,7 +11319,7 @@ function controller_players__P89650_mk(s) { -function controller_players_inline__P97831(s) { +function scene_systemMenu_buildOptionList_inline__P29775(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12162,38 +11329,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 = pxsim_numops_toBoolDecr(s.arg0); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___23203); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = "HIDE CONSOLE"; + { step = 2; continue; } + case 1: + r0 = "SHOW CONSOLE"; + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; return leave(s, r0) default: oops() } } } -controller_players_inline__P97831.info = {"start":1767,"length":14,"line":55,"column":31,"endLine":55,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +scene_systemMenu_buildOptionList_inline__P29775.info = {"start":11273,"length":71,"line":344,"column":50,"endLine":344,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function controller_players_inline__P97831_mk(s) { +function scene_systemMenu_buildOptionList_inline__P29775_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_players_inline__P97831, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P29775, 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, + tmp_4: undefined, } } -function helpers_arrayFilter__P87631(s) { +function scene_systemMenu_buildOptionList_inline__P29784(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12203,71 +11378,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___97750 = undefined; - s.len___97752 = undefined; - s.i___97755 = undefined; - s.v___97760 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = pxsim_Array__mk(); - s.res___97750 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___97752 = (r0); - s.i___97755 = (0); - case 1: - r0 = (s.i___97755 < s.len___97752); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.arg0, s.i___97755); - s.v___97760 = (r0); - s.tmp_1 = lambda_3_mk(s); - s.tmp_1.argL = s.arg1; - s.tmp_1.arg0 = s.v___97760; - s.tmp_1.arg1 = s.i___97755; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 6; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__push(s.res___97750, s.v___97760); - case 2: - case 3: - r0 = (s.i___97755 + 1); - s.i___97755 = (r0); - { step = 1; continue; } - case 4: - r0 = s.res___97750; + r0 = "SLEEP"; return leave(s, r0) default: oops() } } } -helpers_arrayFilter__P87631.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"]} +scene_systemMenu_buildOptionList_inline__P29784.info = {"start":11411,"length":13,"line":345,"column":48,"endLine":345,"endColumn":61,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function helpers_arrayFilter__P87631_mk(s) { +function scene_systemMenu_buildOptionList_inline__P29784_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayFilter__P87631, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P29784, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - res___97750: undefined, - len___97752: undefined, - i___97755: undefined, - v___97760: undefined, - arg0: undefined, - arg1: undefined, } } -function controller__moveSprites__P89654(s) { +function scene_systemMenu_buildOptionList_inline__P29797(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12277,36 +11405,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = helpers_arrayForEach__P87630_mk(s); - s.tmp_1 = controller_players__P89650_mk(s); - s.callLocIdx = 155; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = controller__moveSprites_inline__P97600; - s.callLocIdx = 157; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = "CLOSE"; return leave(s, r0) default: oops() } } } -controller__moveSprites__P89654.info = {"start":2005,"length":180,"line":67,"column":4,"endLine":71,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P29797.info = {"start":11590,"length":13,"line":351,"column":53,"endLine":351,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function controller__moveSprites__P89654_mk(s) { +function scene_systemMenu_buildOptionList_inline__P29797_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__moveSprites__P89654, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P29797, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, } } -function controller__moveSprites_inline__P97600(s) { +function scene_systemMenu_setScreenBrightnessSupported__P23170(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12316,35 +11432,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = controller_Controller___preUpdate__P89683_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 156; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = 0; + return leave(s, r0) + default: oops() +} } } +scene_systemMenu_setScreenBrightnessSupported__P23170.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__P23170_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P23170, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, +} } + + + + + +function scene_systemMenu_sleep__P23169(s) { +let r0 = s.r0, 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() } } } -controller__moveSprites_inline__P97600.info = {"start":2151,"length":26,"line":70,"column":26,"endLine":70,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +scene_systemMenu_sleep__P23169.info = {"start":10072,"length":51,"line":316,"column":4,"endLine":318,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"sleep","argumentNames":[]} -function controller__moveSprites_inline__P97600_mk(s) { +function scene_systemMenu_sleep__P23169_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__moveSprites_inline__P97600, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_sleep__P23169, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, } } -function controller_Controller___preUpdate__P89683(s) { +function scene_systemMenu_toggleConsole__P23168(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12354,24 +11487,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.deadSprites___97607 = undefined; - s.svx___97608 = undefined; - s.svy___97609 = undefined; - s.svxInCricle___97644 = undefined; - s.svyInCircle___97646 = undefined; - s.sq___97648 = undefined; - s.scale___97663 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C89655_VT)) failedCast(r0); - s.tmp_3 = controller_Controller__controlledSprites__P89660_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 167; s.pc = 18; return s.tmp_3; - case 18: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___23203); + 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; @@ -12379,309 +11497,49 @@ switch (step) { 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___97607 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.deadSprites___97607, false); - r0 = pxsim_pxtrt.mklocRef(); - s.svx___97608 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svx___97608, 0); - r0 = pxsim_pxtrt.mklocRef(); - s.svy___97609 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svy___97609, 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___97608; - s.tmp_5 = controller_Button_pressureLevel__P89722_mk(s); - s.tmp_6 = controller_Controller_right__P89665_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 168; s.pc = 20; return s.tmp_6; - case 20: - r0 = s.retval; - s.tmp_5.arg0 = r0; - s.callLocIdx = 169; s.pc = 19; return s.tmp_5; - case 19: - r0 = s.retval; - s.tmp_4 = r0; - s.tmp_8 = controller_Button_pressureLevel__P89722_mk(s); - s.tmp_9 = controller_Controller_left__P89664_mk(s); - s.tmp_9.arg0 = s.arg0; - s.callLocIdx = 170; s.pc = 22; return s.tmp_9; - case 22: - r0 = s.retval; - s.tmp_8.arg0 = r0; - s.callLocIdx = 171; 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___97609; - s.tmp_4 = controller_Button_pressureLevel__P89722_mk(s); - s.tmp_5 = controller_Controller_down__P89667_mk(s); - s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 172; s.pc = 24; return s.tmp_5; - case 24: - r0 = s.retval; - s.tmp_4.arg0 = r0; - s.callLocIdx = 173; s.pc = 23; return s.tmp_4; - case 23: - r0 = s.retval; - s.tmp_3 = r0; - s.tmp_7 = controller_Button_pressureLevel__P89722_mk(s); - s.tmp_8 = controller_Controller_up__P89666_mk(s); - s.tmp_8.arg0 = s.arg0; - s.callLocIdx = 174; s.pc = 26; return s.tmp_8; - case 26: - r0 = s.retval; - s.tmp_7.arg0 = r0; - s.callLocIdx = 175; 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; } + s.tmp_4 = game_consoleOverlay_setVisible__P21097_mk(s); + s.tmp_4.arg0 = false; + s.tmp_4.arg1 = undefined; + s.callLocIdx = 1087; s.pc = 3; return s.tmp_4; case 3: - s.tmp_1 = controller_Button__C89710_v0_1_mk(s); - s.tmp_2 = controller_Controller_right__P89665_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 176; 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__C89710_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; } + { step = 2; continue; } + case 1: + s.tmp_0 = game_consoleOverlay_setVisible__P21097_mk(s); + s.tmp_0.arg0 = true; + s.tmp_0.arg1 = undefined; + s.callLocIdx = 1088; s.pc = 4; return s.tmp_0; case 4: - r0 = 0; - case 5: - // jmp value (already in r0) - s.tmp_3 = r0; - s.tmp_5 = controller_Button__C89710_v0_1_mk(s); - s.tmp_6 = controller_Controller_left__P89664_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 177; 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__C89710_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___97608; - 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__C89710_v0_1_mk(s); - s.tmp_2 = controller_Controller_down__P89667_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 178; 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__C89710_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__C89710_v0_1_mk(s); - s.tmp_6 = controller_Controller_up__P89666_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 179; 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__C89710_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___97609; - 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___97644 = (r0); - s.tmp_0 = r0 = s.svxInCricle___97644; - r0 = pxsim_pxtrt_ldlocRef(s.svx___97608); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt.mklocRef(); - s.svyInCircle___97646 = (r0); - s.tmp_0 = r0 = s.svyInCircle___97646; - r0 = pxsim_pxtrt_ldlocRef(s.svy___97609); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_ldlocRef(s.svx___97608); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svx___97608); - s.tmp_2 = r0; - r0 = (s.tmp_1 * s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___97609); - s.tmp_4 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___97609); - s.tmp_5 = r0; - r0 = (s.tmp_4 * s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_0 + s.tmp_3); - s.sq___97648 = (r0); - r0 = (s.sq___97648 > 65536); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = (65536 / s.sq___97648); - s.tmp_1 = r0; - r0 = pxsim.Math_.sqrt(s.tmp_1); - s.scale___97663 = (r0); - s.tmp_0 = r0 = s.svxInCricle___97644; - s.tmp_3 = r0 = s.scale___97663; - r0 = pxsim_pxtrt_ldlocRef(s.svx___97608); - 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___97646; - s.tmp_3 = r0 = s.scale___97663; - r0 = pxsim_pxtrt_ldlocRef(s.svy___97609); - 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__P97681); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___97607); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___97608); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___97609); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___97644); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___97646); - s.tmp_1 = helpers_arrayForEach__P87630_mk(s); - s.tmp_2 = controller_Controller__controlledSprites__P89660_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 180; 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 = 188; s.pc = 35; return s.tmp_1; - case 35: - r0 = s.retval; - r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___97607); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - s.tmp_1 = controller_Controller__controlledSprites__P89661_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_2 = helpers_arrayFilter__P87631_mk(s); - s.tmp_3 = controller_Controller__controlledSprites__P89660_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 189; 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__P97738; - s.callLocIdx = 190; s.pc = 38; return s.tmp_2; - case 38: r0 = s.retval; - s.tmp_1.arg1 = r0; - s.callLocIdx = 191; s.pc = 37; return s.tmp_1; - case 37: + s.tmp_0 = console_log__P18351_mk(s); + s.tmp_0.arg0 = "console"; + s.callLocIdx = 1089; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; - case 15: - case 16: - case 17: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller___preUpdate__P89683.info = {"start":10666,"length":2535,"line":330,"column":8,"endLine":394,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]} +scene_systemMenu_toggleConsole__P23168.info = {"start":9827,"length":239,"line":307,"column":4,"endLine":314,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleConsole","argumentNames":[]} -function controller_Controller___preUpdate__P89683_mk(s) { +function scene_systemMenu_toggleConsole__P23168_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___preUpdate__P89683, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_toggleConsole__P23168, depth: s.depth + 1, pc: 0, retval: undefined, 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, - deadSprites___97607: undefined, - svx___97608: undefined, - svy___97609: undefined, - svxInCricle___97644: undefined, - svyInCircle___97646: undefined, - sq___97648: undefined, - scale___97663: undefined, - arg0: undefined, } } -function controller_Controller___preUpdate_inline__P97681(s) { +function game_consoleOverlay_setVisible__P21097(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12691,275 +11549,53 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___97684 = undefined; - s.vx___97685 = undefined; - s.vy___97686 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); 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 = 181; s.pc = 22; return s.tmp_0; } - } - case 22: - r0 = s.retval; - s.s___97684 = (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 = 182; s.pc = 23; return s.tmp_2; } - } - case 23: - r0 = s.retval; - s.vx___97685 = (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 = 183; s.pc = 24; return s.tmp_3; } - } - case 24: - r0 = s.retval; - s.vy___97686 = (r0); - r0 = s.s___97684.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___97685); - if (!r0) { step = 3; continue; } - r0 = (s.s___97684).fields["_vx"] = (0); - case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(s.vy___97686); - if (!r0) { step = 5; continue; } - r0 = (s.s___97684).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___97685; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 11; continue; } - r0 = s.tmp_2; - { step = 12; continue; } - case 11: - r0 = s.vy___97686; - 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___97684; - r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); - s.tmp_6 = r0; - r0 = pxsim.Math_.imul(s.tmp_6, s.vx___97685); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___23203); s.tmp_5 = r0; - r0 = (s.tmp_4).fields["_vx"] = (s.tmp_5); - s.tmp_0 = r0 = s.s___97684; - r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___97686); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); - { step = 18; continue; } - case 13: - r0 = pxsim_numops_toBoolDecr(s.vx___97685); - if (!r0) { step = 14; continue; } - s.tmp_0 = r0 = s.s___97684; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vx___97685); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); - { step = 17; continue; } - case 14: - r0 = pxsim_numops_toBoolDecr(s.vy___97686); - if (!r0) { step = 15; continue; } - s.tmp_0 = r0 = s.s___97684; - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___97686); - 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() -} } } -controller_Controller___preUpdate_inline__P97681.info = {"start":11849,"length":1171,"line":361,"column":44,"endLine":389,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} - -function controller_Controller___preUpdate_inline__P97681_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Controller___preUpdate_inline__P97681, depth: s.depth + 1, - pc: 0, retval: undefined, 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___97684: undefined, - vx___97685: undefined, - vy___97686: undefined, - arg0: undefined, -} } - - - - - -function controller_Controller___preUpdate_inline__P97738(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0.fields["s"]; - r0 = r0.fields["flags"]; + 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_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() -} } } -controller_Controller___preUpdate_inline__P97738.info = {"start":13147,"length":42,"line":393,"column":28,"endLine":393,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]} - -function controller_Controller___preUpdate_inline__P97738_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Controller___preUpdate_inline__P97738, 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__P89722(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C89710_VT)) failedCast(r0); - r0 = pxsim.control.deviceDalVersion(); - s.tmp_1 = r0; - r0 = (s.tmp_1 == "sim"); + r0 = (s.tmp_1 != s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_3 = controller_Button__C89710_v0_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C89710_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; - s.pc = 6; return s.tmp_3; - case 6: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.arg0); if (!r0) { step = 1; continue; } - r0 = 512; + r0 = pxsim_Array__mk(); { step = 2; continue; } case 1: - r0 = 0; + r0 = undefined; case 2: // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; - { step = 5; continue; } - { step = 4; continue; } + s.tmp_6 = r0; + globals.consoleStrings___23203 = (s.tmp_6); 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; + r0 = (s.arg1 !== undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + globals.consoleColor___23202 = (s.arg1); case 5: + case 6: + r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_pressureLevel__P89722.info = {"start":6453,"length":311,"line":192,"column":8,"endLine":199,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"pressureLevel","argumentNames":["this"]} +game_consoleOverlay_setVisible__P21097.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 controller_Button_pressureLevel__P89722_mk(s) { +function game_consoleOverlay_setVisible__P21097_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_pressureLevel__P89722, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_setVisible__P21097, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -12967,1219 +11603,55 @@ function controller_Button_pressureLevel__P89722_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, arg0: undefined, + arg1: undefined, } } - -function controller_Button_isPressed__P89721(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C89710_VT)) failedCast(r0); - r0 = s.arg0.fields["_pressed"]; - return leave(s, r0) - default: oops() -} } } -controller_Button_isPressed__P89721.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__P89721_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Button_isPressed__P89721, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function controller_Controller_down__P89667(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C89655_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() -} } } -controller_Controller_down__P89667.info = {"start":4131,"length":77,"line":145,"column":8,"endLine":147,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"down","argumentNames":["this"]} -controller_Controller_down__P89667.isGetter = true; - -function controller_Controller_down__P89667_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Controller_down__P89667, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function controller_Controller_button__P92240(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C89655_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() -} } } -controller_Controller_button__P92240.info = {"start":6666,"length":105,"line":220,"column":8,"endLine":222,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"button","argumentNames":["this","button"]} - -function controller_Controller_button__P92240_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Controller_button__P92240, 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__P89666(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C89655_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; - s.tmp_0 = r0; - r0 = (2 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) - default: oops() -} } } -controller_Controller_up__P89666.info = {"start":3979,"length":73,"line":137,"column":8,"endLine":139,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"up","argumentNames":["this"]} -controller_Controller_up__P89666.isGetter = true; - -function controller_Controller_up__P89666_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Controller_up__P89666, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function controller_Controller_right__P89665(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C89655_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; - s.tmp_0 = r0; - r0 = (3 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) - default: oops() -} } } -controller_Controller_right__P89665.info = {"start":3823,"length":79,"line":129,"column":8,"endLine":131,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"right","argumentNames":["this"]} -controller_Controller_right__P89665.isGetter = true; - -function controller_Controller_right__P89665_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Controller_right__P89665, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function controller_Controller_left__P89664(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C89655_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; - s.tmp_0 = r0; - r0 = (1 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) - default: oops() -} } } -controller_Controller_left__P89664.info = {"start":3666,"length":77,"line":121,"column":8,"endLine":123,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"left","argumentNames":["this"]} -controller_Controller_left__P89664.isGetter = true; - -function controller_Controller_left__P89664_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Controller_left__P89664, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function controller_Controller__controlledSprites__P89661(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C89655_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P90520_mk(s); - s.callLocIdx = 161; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = r0.fields["controlledSprites"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["playerIndex"]; - s.tmp_2 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_2, s.arg1); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -controller_Controller__controlledSprites__P89661.info = {"start":3300,"length":134,"line":105,"column":8,"endLine":107,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this","cps"]} - -function controller_Controller__controlledSprites__P89661_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Controller__controlledSprites__P89661, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function controller_Controller__controlledSprites__P89660(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C89655_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P90520_mk(s); - s.callLocIdx = 160; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = r0.fields["controlledSprites"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["playerIndex"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2); - return leaveAccessor(s, r0) - default: oops() -} } } -controller_Controller__controlledSprites__P89660.info = {"start":3158,"length":132,"line":101,"column":8,"endLine":103,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this"]} -controller_Controller__controlledSprites__P89660.isGetter = true; - -function controller_Controller__controlledSprites__P89660_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Controller__controlledSprites__P89660, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, -} } - - - - - -function Fx_imul__P87682(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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.Math_.imul(s.arg0, s.arg1); - return leave(s, r0) - default: oops() -} } } -Fx_imul__P87682.info = {"start":1010,"length":130,"line":32,"column":4,"endLine":34,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"imul","argumentNames":["a","b"]} - -function Fx_imul__P87682_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Fx_imul__P87682, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, -} } - - - - - -function power_checkDeepSleep__P89451(s) { -let r0 = s.r0, 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___96671 = undefined; - s.to___96674 = undefined; - s.tmp_0 = power_init__P92084_mk(s); - s.callLocIdx = 75; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = r0 = globals._poked___92082; - 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.p___96671 = (s.tmp_1); - s.tmp_0 = r0 = globals._timeout___92083; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = 0; - case 4: - // jmp value (already in r0) - s.tmp_1 = r0; - s.to___96674 = (s.tmp_1); - r0 = (s.to___96674 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 5: - r0 = pxsim.control.millis(); - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.p___96671); - s.tmp_1 = r0; - r0 = (s.tmp_1 > s.to___96674); - case 6: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (r0) { step = 7; continue; } - r0 = s.tmp_3; - { step = 8; continue; } - case 7: - r0 = pxsim.control.isUSBInitialized(); - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - case 8: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore.deepSleep(); - case 9: - case 10: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -power_checkDeepSleep__P89451.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]} - -function power_checkDeepSleep__P89451_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: power_checkDeepSleep__P89451, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - p___96671: undefined, - to___96674: undefined, -} } - - - - - -function power_init__P92084(s) { -let r0 = s.r0, 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._timeout___92083 !== undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 7; continue; } - case 1: - case 2: - r0 = pxsim_pxtcore.getConfig(212, -1); - s.tmp_1 = r0; - r0 = (s.tmp_1 * 1000); - globals._timeout___92083 = (r0); - r0 = (globals._timeout___92083 > 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___92083 < 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___92083 = (300000); - case 5: - case 6: - case 7: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -power_init__P92084.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]} - -function power_init__P92084_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: power_init__P92084, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, -} } - - - - - -function power_poke__P89450(s) { -let r0 = s.r0, 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 = power_init__P92084_mk(s); - s.callLocIdx = 74; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = pxsim.control.millis(); - globals._poked___92082 = (r0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -power_poke__P89450.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]} - -function power_poke__P89450_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: power_poke__P89450, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, -} } - - - - - -function control_EventContext_registerFrameHandler__P87924(s) { -let r0 = s.r0, 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.fn___97943 = undefined; - s.i___97952 = 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__C87916_VT)) failedCast(r0); - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_3 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["frameCallbacks"] = (s.tmp_4); - s.tmp_0 = control_EventContext_registerFrameCallbacks__P91957_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 50; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - case 1: - case 2: - r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C87913_VT); - s.fn___97943 = (r0); - r0 = (s.fn___97943).fields["order"] = (s.arg1); - r0 = (s.fn___97943).fields["handler"] = (s.arg2); - s.i___97952 = (0); - case 3: - s.tmp_1 = r0 = s.i___97952; - 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___97952); - 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___97952, s.fn___97943); - r0 = s.fn___97943; - { step = 7; continue; } - case 4: - case 5: - r0 = (s.i___97952 + 1); - s.i___97952 = (r0); - { step = 3; continue; } - case 6: - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.fn___97943); - r0 = s.fn___97943; - case 7: - return leave(s, r0) - default: oops() -} } } -control_EventContext_registerFrameHandler__P87924.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 control_EventContext_registerFrameHandler__P87924_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: control_EventContext_registerFrameHandler__P87924, depth: s.depth + 1, - pc: 0, retval: undefined, 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___97943: undefined, - i___97952: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function control_EventContext_registerFrameCallbacks__P91957(s) { -let r0 = s.r0, 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.worker___97986 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C87916_VT)) failedCast(r0); - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: - case 2: - r0 = s.arg0.fields["frameWorker"]; - s.worker___97986 = (r0); - r0 = pxsim_pxtcore_mkAction(2, control_EventContext_registerFrameCallbacks_inline__P97992); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___97986); - r0 = pxsim.control.runInParallel(s.tmp_0); - case 3: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -control_EventContext_registerFrameCallbacks__P91957.info = {"start":3668,"length":895,"line":109,"column":8,"endLine":133,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} - -function control_EventContext_registerFrameCallbacks__P91957_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: control_EventContext_registerFrameCallbacks__P91957, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - worker___97986: undefined, - arg0: undefined, -} } - - - - - -function control_EventContext_registerFrameCallbacks_inline__P97992(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.delay___98022 = 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__P97998); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.caps[0]); - s.tmp_2 = pauseUntil__P87888_mk(s); - s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = undefined; - s.callLocIdx = 44; 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__P91956_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.callLocIdx = 45; s.pc = 6; return s.tmp_2; - case 6: - r0 = s.retval; - s.delay___98022 = (r0); - s.tmp_0 = pause__P87934_mk(s); - s.tmp_0.arg0 = s.delay___98022; - s.callLocIdx = 46; 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() -} } } -control_EventContext_registerFrameCallbacks_inline__P97992.info = {"start":3829,"length":723,"line":113,"column":34,"endLine":132,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} - -function control_EventContext_registerFrameCallbacks_inline__P97992_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P97992, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - delay___98022: undefined, -} } - - - - - -function control_EventContext_registerFrameCallbacks_inline__P97998(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = s.caps[0].fields["runningCallbacks"]; - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leave(s, r0) - default: oops() -} } } -control_EventContext_registerFrameCallbacks_inline__P97998.info = {"start":4060,"length":28,"line":117,"column":31,"endLine":117,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} - -function control_EventContext_registerFrameCallbacks_inline__P97998_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P97998, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, -} } - - - - - -function control_EventContext_runCallbacks__P91956(s) { -let r0 = s.r0, 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.loopStart___98031 = undefined; - s.f___98044 = undefined; - s.unnamed702___U2 = undefined; - s.unnamed703___U3 = undefined; - s.now___98049 = undefined; - s.runtime___98052 = undefined; - s.realTimeInSample___98071 = undefined; - s.fps___98080 = undefined; - s.delay___98149 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C87916_VT)) failedCast(r0); - r0 = pxsim.control.millis(); - s.loopStart___98031 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["prevTimeMillis"]; - s.tmp_2 = r0; - r0 = (s.loopStart___98031 - s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["deltaTimeMillis"] = (s.tmp_1); - r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___98031); - s.f___98044 = (undefined); - r0 = s.arg0.fields["frameCallbacks"]; - s.unnamed702___U2 = (r0); - s.unnamed703___U3 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed703___U3; - r0 = pxsim_Array__length(s.unnamed702___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed702___U2, s.unnamed703___U3); - s.f___98044 = (r0); - s.tmp_2 = if_handler_1_mk(s); - s.tmp_2.arg0 = s.f___98044; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 1); - s.callLocIdx = 42; s.pc = 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 = 42; s.pc = 11; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 42; s.pc = 11; return s.tmp_2;; } - else { s.callLocIdx = 42; s.pc = 11; return s.tmp_2; } - } - case 11: - r0 = s.retval; - r0 = (s.unnamed703___U3 + 1); - s.unnamed703___U3 = (r0); - { step = 1; continue; } - case 2: - s.unnamed702___U2 = (undefined); - r0 = pxsim.control.millis(); - s.now___98049 = (r0); - r0 = (s.now___98049 - s.loopStart___98031); - s.runtime___98052 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["timeInSample"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.runtime___98052); - 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___98049 - s.tmp_4); - s.realTimeInSample___98071 = (r0); - r0 = (s.arg0).fields["lastPerfDump"] = (s.now___98049); - 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___98080 = (r0); - r0 = pxsim.Math_.round(s.fps___98080); - 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___87918 = (r0); - r0 = (s.fps___98080 < 99); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - if ((globals.control_EventContext_lastStats___87918) && (globals.control_EventContext_lastStats___87918).vtable) { - setupResume(s, 13); - pxsim_String__stringConv(globals.control_EventContext_lastStats___87918); - checkResumeConsumed(); - return; - } else { s.retval = (globals.control_EventContext_lastStats___87918) + ""; } - case 13: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.fps___98080 * 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; - 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___87918 = (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___98080 * 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 = pxsim_String__concat(s.tmp_4, "ms/"); - s.tmp_3 = r0; - if ((s.realTimeInSample___98071) && (s.realTimeInSample___98071).vtable) { - setupResume(s, 19); - pxsim_String__stringConv(s.realTimeInSample___98071); - checkResumeConsumed(); - return; - } else { s.retval = (s.realTimeInSample___98071) + ""; } - 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: - case 8: - r0 = (s.arg0).fields["timeInSample"] = (0); - r0 = (s.arg0).fields["framesInSample"] = (0); - case 9: - case 10: - s.tmp_0 = Math_max__P87651_mk(s); - s.tmp_0.arg0 = 1; - r0 = (20 - s.runtime___98052); - s.tmp_0.arg1 = r0; - s.callLocIdx = 43; s.pc = 20; return s.tmp_0; - case 20: - r0 = s.retval; - s.delay___98149 = (r0); - r0 = s.delay___98149; - return leave(s, r0) - default: oops() -} } } -control_EventContext_runCallbacks__P91956.info = {"start":2220,"length":1395,"line":75,"column":8,"endLine":106,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]} - -function control_EventContext_runCallbacks__P91956_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: control_EventContext_runCallbacks__P91956, depth: s.depth + 1, - pc: 0, retval: undefined, 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, - loopStart___98031: undefined, - f___98044: undefined, - unnamed702___U2: undefined, - unnamed703___U3: undefined, - now___98049: undefined, - runtime___98052: undefined, - realTimeInSample___98071: undefined, - fps___98080: undefined, - delay___98149: undefined, - arg0: undefined, -} } - - - - - -function pauseUntil__P87888(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - s.tmp_2 = lambda_1_mk(s); - s.tmp_2.argL = s.arg0; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 29; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - { step = 7; continue; } - case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_5 = r0; - r0 = pxsim_Boolean__bang(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 5; continue; } - s.arg1 = (0); - case 5: - case 6: - s.tmp_0 = control___queuePollEvent__P87887_mk(s); - s.tmp_0.arg0 = s.arg1; + +function console_log__P18351(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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 = console_add__P18347_mk(s); + s.tmp_0.arg0 = 1; s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 30; s.pc = 9; return s.tmp_0; - case 9: + s.callLocIdx = 33; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -pauseUntil__P87888.info = {"start":2224,"length":227,"line":73,"column":0,"endLine":77,"endColumn":1,"fileName":"pxt_modules/base/poll.ts","functionName":"pauseUntil","argumentNames":["condition","timeOut"]} +console_log__P18351.info = {"start":1450,"length":86,"line":58,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"log","argumentNames":["value"]} -function pauseUntil__P87888_mk(s) { +function console_log__P18351_mk(s) { checkStack(s.depth); return { - parent: s, fn: pauseUntil__P87888, depth: s.depth + 1, + parent: s, fn: console_log__P18351, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, arg0: undefined, - arg1: undefined, } } -function control___queuePollEvent__P87887(s) { +function console_add__P18347(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14189,97 +11661,87 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ev___98171 = undefined; + s.text___29836 = undefined; + s.i___29845 = 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__C91930_VT); - s.tmp_0 = r0; - s.tmp_1 = control_PollEvent_constructor__P91931_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 = 27; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.ev___98171 = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___91933); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.arg0 < globals.minPriority___18346); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_2, s.ev___98171); - globals._pollEventQueue___91933 = (s.tmp_2); - r0 = pxsim.control.runInParallel(control_pollEvents__P91934); - { step = 2; continue; } + { step = 5; continue; } case 1: - r0 = pxsim_Array__push(globals._pollEventQueue___91933, s.ev___98171); case 2: - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 3; continue; } - s.tmp_0 = control_onEvent__P87912_mk(s); - r0 = s.ev___98171.fields["eid"]; - s.tmp_0.arg0 = r0; - r0 = s.ev___98171.fields["vid"]; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = 16; - s.callLocIdx = 28; s.pc = 6; return s.tmp_0; + s.tmp_1 = console_inspect__P18353_mk(s); + s.tmp_1.arg0 = s.arg1; + s.tmp_1.arg1 = 20; + s.callLocIdx = 31; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - { step = 4; continue; } - case 3: - r0 = s.ev___98171.fields["eid"]; - s.tmp_0 = r0; - r0 = s.ev___98171.fields["vid"]; - s.tmp_1 = r0; + s.text___29836 = (r0); + if ((s.text___29836) && (s.text___29836).vtable) { setupResume(s, 7); - pxsim.control.waitForEvent(s.tmp_0, s.tmp_1); + pxsim_String__stringConv(s.text___29836); checkResumeConsumed(); return; + } else { s.retval = (s.text___29836) + ""; } case 7: r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, "\n"); + s.text___29836 = (r0); + s.i___29845 = (0); + case 3: + s.tmp_1 = r0 = s.i___29845; + r0 = pxsim_Array__length(globals.listeners___22382); + 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___22382, s.i___29845); + s.tmp_3.argL = r0; + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.text___29836; + setupLambda(s.tmp_3, s.tmp_3.argL); + s.callLocIdx = 32; s.pc = 8; return s.tmp_3; + case 8: + r0 = s.retval; + r0 = (s.i___29845 + 1); + s.i___29845 = (r0); + { step = 3; continue; } case 4: + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -control___queuePollEvent__P87887.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"]} +console_add__P18347.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 control___queuePollEvent__P87887_mk(s) { +function console_add__P18347_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___queuePollEvent__P87887, depth: s.depth + 1, + parent: s, fn: console_add__P18347, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - ev___98171: undefined, + tmp_3: undefined, + text___29836: undefined, + i___29845: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function control_pollEvents__P91934(s) { +function console_inspect__P18353(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14289,117 +11751,214 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.now___98214 = undefined; - s.i___98217 = undefined; - s.ev___98223 = undefined; - case 1: - r0 = pxsim_Array__length(globals._pollEventQueue___91933); + s.asArr___29876 = undefined; + s.asString___29894 = undefined; + s.keys___29906 = undefined; + s.snipped___29910 = 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 > 0); + r0 = (s.tmp_1 == "string"); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - r0 = pxsim.control.millis(); - s.now___98214 = (r0); - s.i___98217 = (0); - case 2: - s.tmp_1 = r0 = s.i___98217; - r0 = pxsim_Array__length(globals._pollEventQueue___91933); + 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 = (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___91933, s.i___98217); - s.ev___98223 = (r0); - s.tmp_1 = if_condition_1_mk(s); - s.tmp_1.arg0 = s.ev___98223; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "condition"), 1); - s.callLocIdx = 24; s.pc = 13; return s.tmp_1; - } 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 = 24; s.pc = 13; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 24; s.pc = 13; return s.tmp_1;; } - else { s.callLocIdx = 24; s.pc = 13; return s.tmp_1; } - } - case 13: + 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___29876 = (s.arg0); + r0 = pxsim_Array__length(s.asArr___29876); + s.tmp_1 = r0; + r0 = (s.tmp_1 <= s.arg1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 6; continue; } + s.tmp_2 = helpers_arrayJoin__P18074_mk(s); + s.tmp_2.arg0 = s.asArr___29876; + s.tmp_2.arg1 = ","; + s.callLocIdx = 34; s.pc = 19; return s.tmp_2; + case 19: + r0 = s.retval; + { step = 17; continue; } + { step = 4; continue; } case 3: - r0 = s.ev___98223.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___98223.fields["start"]; - s.tmp_5 = r0; - r0 = (s.now___98214 - s.tmp_5); + r0 = pxsim_String_.mkEmpty(); s.tmp_4 = r0; - r0 = s.ev___98223.fields["timeOut"]; + s.tmp_7 = helpers_arrayJoin__P18074_mk(s); + s.tmp_8 = helpers_arraySlice__P18086_mk(s); + s.tmp_8.arg0 = s.asArr___29876; + s.tmp_8.arg1 = 0; + s.tmp_8.arg2 = s.arg1; + s.callLocIdx = 35; s.pc = 21; return s.tmp_8; + case 21: + r0 = s.retval; + s.tmp_7.arg0 = r0; + s.tmp_7.arg1 = ","; + s.callLocIdx = 36; s.pc = 20; return s.tmp_7; + case 20: + r0 = s.retval; s.tmp_6 = r0; - r0 = (s.tmp_4 > s.tmp_6); + 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: - // 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___98223.fields["eid"]; + 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 = s.ev___98223.fields["vid"]; + r0 = pxsim_String_.mkEmpty(); s.tmp_10 = r0; - r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10); - r0 = s.ev___98223.fields["once"]; + r0 = pxsim_String__concat(s.tmp_9, s.tmp_10); + s.asString___29894 = (r0); + r0 = (s.asString___29894 != "[object Object]"); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_1 = helpers_arraySplice__P87621_mk(s); - s.tmp_1.arg0 = globals._pollEventQueue___91933; - s.tmp_1.arg1 = s.i___98217; - s.tmp_1.arg2 = 1; - s.callLocIdx = 25; s.pc = 14; return s.tmp_1; - case 14: - r0 = s.retval; - r0 = (s.i___98217 - 1); - s.i___98217 = (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___29894 != "[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___29894; + { step = 17; continue; } case 8: case 9: + r0 = pxsim_pxtrt.keysOf(s.arg0); + s.keys___29906 = (r0); + r0 = pxsim_Array__length(s.keys___29906); + s.tmp_0 = r0; + r0 = (s.tmp_0 > s.arg1); + s.snipped___29910 = (r0); + r0 = pxsim_numops_toBoolDecr(s.snipped___29910); + if (!r0) { step = 10; continue; } + s.tmp_0 = helpers_arraySlice__P18086_mk(s); + s.tmp_0.arg0 = s.keys___29906; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 37; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.keys___29906 = (r0); case 10: - r0 = (s.i___98217 + 1); - s.i___98217 = (r0); - { step = 2; continue; } case 11: - s.tmp_0 = pause__P87934_mk(s); - s.tmp_0.arg0 = 50; - s.callLocIdx = 26; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - { step = 1; continue; } + r0 = pxsim_pxtcore_mkAction(1, console_inspect_inline__P29927); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_numops_toBoolDecr(s.snipped___29910); + if (!r0) { step = 12; continue; } + r0 = "\n ..."; + { step = 13; continue; } case 12: - globals._pollEventQueue___91933 = (undefined); + r0 = pxsim_String_.mkEmpty(); + case 13: + // jmp value (already in r0) + s.tmp_1 = r0; + s.tmp_7 = helpers_arrayReduce__P18083_mk(s); + s.tmp_7.arg0 = s.keys___29906; + s.tmp_7.arg1 = s.tmp_0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_7.arg2 = r0; + s.callLocIdx = 38; 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() } } } -control_pollEvents__P91934.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]} +console_inspect__P18353.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 control_pollEvents__P91934_mk(s) { +function console_inspect__P18353_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_pollEvents__P91934, depth: s.depth + 1, + parent: s, fn: console_inspect__P18353, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14412,68 +11971,19 @@ function control_pollEvents__P91934_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - now___98214: undefined, - i___98217: undefined, - ev___98223: undefined, -} } - - - - - -function control_PollEvent_constructor__P91931(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.arg6 = (s.lambdaArgs[6]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, control_PollEvent__C91930_VT)) failedCast(r0); - r0 = (s.arg0).fields["eid"] = (s.arg1); - r0 = (s.arg0).fields["vid"] = (s.arg2); - r0 = (s.arg0).fields["start"] = (s.arg3); - r0 = (s.arg0).fields["timeOut"] = (s.arg4); - r0 = (s.arg0).fields["condition"] = (s.arg5); - r0 = (s.arg0).fields["once"] = (s.arg6); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -control_PollEvent_constructor__P91931.info = {"start":239,"length":316,"line":8,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/base/poll.ts","functionName":"inline","argumentNames":["this","eid","vid","start","timeOut","condition","once"]} - -function control_PollEvent_constructor__P91931_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: control_PollEvent_constructor__P91931, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + asArr___29876: undefined, + asString___29894: undefined, + keys___29906: undefined, + snipped___29910: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, } } -function control_EventContext_deltaTime__P87921(s) { +function console_inspect_inline__P29927(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14485,33 +11995,81 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C87916_VT)) failedCast(r0); - r0 = s.arg0.fields["deltaTimeMillis"]; + 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; - r0 = (s.tmp_0 / 1000); - return leaveAccessor(s, 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() } } } -control_EventContext_deltaTime__P87921.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__P87921.isGetter = true; +console_inspect_inline__P29927.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 control_EventContext_deltaTime__P87921_mk(s) { +function console_inspect_inline__P29927_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_deltaTime__P87921, depth: s.depth + 1, + parent: s, fn: console_inspect_inline__P29927, depth: s.depth + 1, pc: 0, retval: undefined, 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 scene_Scene_constructor__P90387(s) { +function helpers_arraySlice__P18086(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14521,108 +12079,104 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.res___28431 = undefined; + s.len___28433 = undefined; + s.i___28467 = 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__C90364_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__C90048_VT); + r0 = pxsim_Array__mk(); + s.res___28431 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___28433 = (r0); + r0 = (s.arg1 === undefined); s.tmp_0 = r0; - s.tmp_1 = ArcadePhysicsEngine_constructor__P90049_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 = 910; s.pc = 1; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.arg1 = (0); + { step = 4; continue; } case 1: - r0 = s.retval; - r0 = (s.arg0).fields["physicsEngine"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_Camera__C90302_VT); + r0 = (s.arg1 < 0); s.tmp_0 = r0; - s.tmp_1 = scene_Camera_constructor__P90306_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 911; s.pc = 2; return s.tmp_1; - case 2: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = Math_max__P18101_mk(s); + r0 = (s.len___28433 + s.arg1); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 8; s.pc = 16; return s.tmp_1; + case 16: r0 = s.retval; - r0 = (s.arg0).fields["camera"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_Background__C90190_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_Background_constructor__P90194_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = s.arg0.fields["camera"]; - s.tmp_1.arg1 = r0; - s.callLocIdx = 912; s.pc = 3; return s.tmp_1; + s.arg1 = (r0); + case 2: 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(); + case 4: + r0 = (s.arg1 > s.len___28433); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.res___28431; + { step = 15; continue; } + case 5: + case 6: + r0 = (s.arg2 === undefined); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_data"] = (s.tmp_1); - r0 = (s.arg0).fields["_millis"] = (0); - r0 = undefined; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 7; continue; } + s.arg2 = (s.len___28433); + { 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___28433 + s.arg2); + s.arg2 = (r0); + case 8: + case 9: + case 10: + r0 = (s.arg2 > s.len___28433); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + s.arg2 = (s.len___28433); + case 11: + case 12: + s.i___28467 = (s.arg1); + case 13: + r0 = (s.i___28467 < s.arg2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + s.tmp_1 = r0 = s.res___28431; + r0 = pxsim_Array__getAt(s.arg0, s.i___28467); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___28467 + 1); + s.i___28467 = (r0); + { step = 13; continue; } + case 14: + r0 = s.res___28431; + case 15: return leave(s, r0) default: oops() } } } -scene_Scene_constructor__P90387.info = {"start":3586,"length":836,"line":106,"column":8,"endLine":125,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","eventContext","previousScene"]} +helpers_arraySlice__P18086.info = {"start":9027,"length":690,"line":303,"column":4,"endLine":328,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySlice","argumentNames":["arr","start","end"]} -function scene_Scene_constructor__P90387_mk(s) { +function helpers_arraySlice__P18086_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_constructor__P90387, depth: s.depth + 1, + parent: s, fn: helpers_arraySlice__P18086, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + res___28431: undefined, + len___28433: undefined, + i___28467: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -14632,7 +12186,7 @@ function scene_Scene_constructor__P90387_mk(s) { -function scene_Camera_constructor__P90306(s) { +function helpers_arrayReduce__P18083(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14642,35 +12196,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.len___29954 = undefined; + s.i___29957 = 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_Camera__C90302_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; + r0 = pxsim_Array__length(s.arg0); + s.len___29954 = (r0); + s.i___29957 = (0); + case 1: + r0 = (s.i___29957 < s.len___29954); + 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___29957); + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = s.i___29957; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 7; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.arg2 = (r0); + r0 = (s.i___29957 + 1); + s.i___29957 = (r0); + { step = 1; continue; } + case 2: + r0 = s.arg2; return leave(s, r0) default: oops() } } } -scene_Camera_constructor__P90306.info = {"start":550,"length":156,"line":17,"column":8,"endLine":23,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"inline","argumentNames":["this"]} +helpers_arrayReduce__P18083.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 scene_Camera_constructor__P90306_mk(s) { +function helpers_arrayReduce__P18083_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_constructor__P90306, depth: s.depth + 1, + parent: s, fn: helpers_arrayReduce__P18083, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + len___29954: undefined, + i___29957: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function scene_Background_constructor__P90194(s) { +function helpers_arrayJoin__P18074(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14680,32 +12261,144 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.r___29982 = undefined; + s.len___29983 = undefined; + s.i___29986 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C90190_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(); + 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 = (s.tmp_0).fields["_layers"] = (s.tmp_1); - r0 = undefined; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + s.arg1 = (","); + case 3: + case 4: + r0 = pxsim_String_.mkEmpty(); + s.r___29982 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___29983 = (r0); + s.i___29986 = (0); + case 5: + r0 = (s.i___29986 < s.len___29983); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = (s.i___29986 > 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___29982) && (s.r___29982).vtable) { + setupResume(s, 15); + pxsim_String__stringConv(s.r___29982); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___29982) + ""; } + 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___29982 = (r0); + case 8: + case 9: + r0 = pxsim_Array__getAt(s.arg0, s.i___29986); + 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___29986); + 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___29986); + case 13: + // jmp value (already in r0) + s.tmp_4 = r0; + if ((s.r___29982) && (s.r___29982).vtable) { + setupResume(s, 17); + pxsim_String__stringConv(s.r___29982); + checkResumeConsumed(); + return; + } else { s.retval = (s.r___29982) + ""; } + 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___29982 = (r0); + r0 = (s.i___29986 + 1); + s.i___29986 = (r0); + { step = 5; continue; } + case 14: + r0 = s.r___29982; return leave(s, r0) default: oops() } } } -scene_Background_constructor__P90194.info = {"start":367,"length":132,"line":20,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["this","camera"]} +helpers_arrayJoin__P18074.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 scene_Background_constructor__P90194_mk(s) { +function helpers_arrayJoin__P18074_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_constructor__P90194, depth: s.depth + 1, + parent: s, fn: helpers_arrayJoin__P18074, depth: s.depth + 1, pc: 0, retval: undefined, 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___29982: undefined, + len___29983: undefined, + i___29986: undefined, arg0: undefined, arg1: undefined, } } @@ -14714,7 +12407,7 @@ function scene_Background_constructor__P90194_mk(s) { -function ArcadePhysicsEngine_constructor__P90049(s) { +function scene_systemMenu_toggleStats__P23167(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14724,70 +12417,94 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C90048_VT)) failedCast(r0); - r0 = undefined; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + r0 = pxsim_numops_toBoolDecr(globals.stats___20939); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + globals.stats___20939 = (r0); + r0 = pxsim_numops_toBoolDecr(globals.stats___20939); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1); - r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteMap__C89967_VT); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - s.tmp_1 = sprites_SpriteMap_constructor__P89968_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 531; s.pc = 1; return s.tmp_1; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - r0 = s.retval; - r0 = (s.arg0).fields["map"] = (s.tmp_0); - s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P90051_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 532; s.pc = 2; return s.tmp_0; + r0 = globals.control_EventContext_onStats___18369; case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + s.tmp_3 = lambda_2_mk(s); + s.tmp_3.argL = globals.control_EventContext_onStats___18369; + r0 = pxsim_String_.mkEmpty(); + s.tmp_3.arg0 = r0; + setupLambda(s.tmp_3, s.tmp_3.argL); + s.callLocIdx = 1085; s.pc = 5; return s.tmp_3; + case 5: r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_maxStep__P90055_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg3; - s.callLocIdx = 533; s.pc = 3; return s.tmp_0; case 3: - r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_minStep__P90053_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 534; s.pc = 4; return s.tmp_0; case 4: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_systemMenu_toggleStats__P23167.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__P23167_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_systemMenu_toggleStats__P23167, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, +} } + + + + + +function scene_systemMenu_brightnessDown__P23165(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.tmp_0 = scene_systemMenu_setScreenBrightness__P23166_mk(s); + r0 = globals.brightness___19922; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 5); + s.tmp_0.arg0 = r0; + s.callLocIdx = 1081; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_constructor__P90049.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_systemMenu_brightnessDown__P23165.info = {"start":9198,"length":87,"line":289,"column":4,"endLine":291,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessDown","argumentNames":[]} -function ArcadePhysicsEngine_constructor__P90049_mk(s) { +function scene_systemMenu_brightnessDown__P23165_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_constructor__P90049, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_brightnessDown__P23165, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function ArcadePhysicsEngine_maxStep__P90055(s) { +function scene_systemMenu_setScreenBrightness__P23166(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14799,40 +12516,41 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C90048_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxSingleStep"] = (s.tmp_1); + s.tmp_0 = helpers_setScreenBrightness__P19936_mk(s); + s.tmp_0.arg0 = globals.screen___20003; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 1082; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P20034_mk(s); + s.tmp_0.arg0 = "#brightness"; + r0 = globals.brightness___19922; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1084; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxStep__P90055.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_systemMenu_setScreenBrightness__P23166.info = {"start":9291,"length":345,"line":293,"column":4,"endLine":298,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightness","argumentNames":["b"]} -function ArcadePhysicsEngine_maxStep__P90055_mk(s) { +function scene_systemMenu_setScreenBrightness__P23166_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P90055, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setScreenBrightness__P23166, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, - arg1: undefined, } } -function ArcadePhysicsEngine_maxStep__P90054(s) { +function settings_writeNumber__P20034(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14844,36 +12562,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, ArcadePhysicsEngine__C90048_VT)) failedCast(r0); - r0 = s.arg0.fields["maxSingleStep"]; + r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - return leaveAccessor(s, r0) + r0 = pxsim_Array__push(s.tmp_0, s.arg1); + s.tmp_1 = settings_writeBuffer__P20031_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_2 = msgpack_packNumberArray__P18155_mk(s); + s.tmp_2.arg0 = s.tmp_0; + s.callLocIdx = 124; s.pc = 2; return s.tmp_2; + case 2: + r0 = s.retval; + s.tmp_1.arg1 = r0; + s.callLocIdx = 125; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxStep__P90054.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__P90054.isGetter = true; +settings_writeNumber__P20034.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 ArcadePhysicsEngine_maxStep__P90054_mk(s) { +function settings_writeNumber__P20034_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P90054, depth: s.depth + 1, + parent: s, fn: settings_writeNumber__P20034, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, arg0: undefined, + arg1: undefined, } } -function Fx_toInt__P87693(s) { +function settings_writeBuffer__P20031(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14885,30 +12613,38 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 + 128); + r0 = pxsim.settings._set(s.arg0, s.arg1); s.tmp_0 = r0; - r0 = (s.tmp_0 >> 8); + 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() } } } -Fx_toInt__P87693.info = {"start":2379,"length":86,"line":74,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]} +settings_writeBuffer__P20031.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 Fx_toInt__P87693_mk(s) { +function settings_writeBuffer__P20031_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toInt__P87693, depth: s.depth + 1, + parent: s, fn: settings_writeBuffer__P20031, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function ArcadePhysicsEngine_minStep__P90053(s) { +function msgpack_packNumberArray__P18155(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14918,42 +12654,108 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.off___30072 = undefined; + s.n___30074 = undefined; + s.unnamed142___U2 = undefined; + s.unnamed143___U3 = undefined; + s.buf___30084 = undefined; + s.n___30090 = undefined; + s.unnamed144___U6 = undefined; + s.unnamed145___U7 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C90048_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + s.off___30072 = (0); + s.n___30074 = (undefined); + s.unnamed142___U2 = (s.arg0); + s.unnamed143___U3 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed143___U3; + r0 = pxsim_Array__length(s.unnamed142___U2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["minSingleStep"] = (s.tmp_1); - r0 = undefined; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed142___U2, s.unnamed143___U3); + s.n___30074 = (r0); + s.tmp_2 = r0 = s.off___30072; + s.tmp_4 = msgpack_packNumberCore__P22341_mk(s); + s.tmp_4.arg0 = null; + s.tmp_4.arg1 = s.off___30072; + s.tmp_4.arg2 = s.n___30074; + s.callLocIdx = 21; s.pc = 5; return s.tmp_4; + case 5: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.off___30072 = (r0); + r0 = (s.unnamed143___U3 + 1); + s.unnamed143___U3 = (r0); + { step = 1; continue; } + case 2: + s.unnamed142___U2 = (undefined); + r0 = pxsim.control.createBuffer(s.off___30072); + s.buf___30084 = (r0); + s.off___30072 = (0); + s.n___30090 = (undefined); + s.unnamed144___U6 = (s.arg0); + s.unnamed145___U7 = (0); + case 3: + s.tmp_0 = r0 = s.unnamed145___U7; + r0 = pxsim_Array__length(s.unnamed144___U6); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.unnamed144___U6, s.unnamed145___U7); + s.n___30090 = (r0); + s.tmp_2 = r0 = s.off___30072; + s.tmp_4 = msgpack_packNumberCore__P22341_mk(s); + s.tmp_4.arg0 = s.buf___30084; + s.tmp_4.arg1 = s.off___30072; + s.tmp_4.arg2 = s.n___30090; + s.callLocIdx = 22; s.pc = 6; return s.tmp_4; + case 6: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.off___30072 = (r0); + r0 = (s.unnamed145___U7 + 1); + s.unnamed145___U7 = (r0); + { step = 3; continue; } + case 4: + s.unnamed144___U6 = (undefined); + r0 = s.buf___30084; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_minStep__P90053.info = {"start":2176,"length":67,"line":80,"column":4,"endLine":82,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this","v"]} +msgpack_packNumberArray__P18155.info = {"start":3427,"length":330,"line":117,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"packNumberArray","argumentNames":["nums"]} -function ArcadePhysicsEngine_minStep__P90053_mk(s) { +function msgpack_packNumberArray__P18155_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P90053, depth: s.depth + 1, + parent: s, fn: msgpack_packNumberArray__P18155, depth: s.depth + 1, pc: 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___30072: undefined, + n___30074: undefined, + unnamed142___U2: undefined, + unnamed143___U3: undefined, + buf___30084: undefined, + n___30090: undefined, + unnamed144___U6: undefined, + unnamed145___U7: undefined, arg0: undefined, - arg1: undefined, } } -function ArcadePhysicsEngine_minStep__P90052(s) { +function msgpack_packNumberCore__P22341(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14963,38 +12765,154 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.tag___30104 = undefined; + s.fmt___30147 = 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__C90048_VT)) failedCast(r0); - r0 = s.arg0.fields["minSingleStep"]; + s.tag___30104 = (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 = (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: + 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_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + r0 = (s.arg2 <= 255); s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 8; continue; } + s.tag___30104 = (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___30104 = (205); + { step = 10; continue; } + case 9: + s.tag___30104 = (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___30104 = (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___30104 = (209); + { step = 15; continue; } + case 14: + s.tag___30104 = (210); + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + s.tmp_0 = msgpack_tagFormat__P22340_mk(s); + s.tmp_0.arg0 = s.tag___30104; + s.callLocIdx = 17; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.fmt___30147 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg0); + if (!r0) { step = 21; continue; } + r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___30104); + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.fmt___30147; + 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__P18146_mk(s); + s.tmp_1.arg0 = s.fmt___30147; + s.callLocIdx = 18; 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() } } } -ArcadePhysicsEngine_minStep__P90052.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__P90052.isGetter = true; +msgpack_packNumberCore__P22341.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 ArcadePhysicsEngine_minStep__P90052_mk(s) { +function msgpack_packNumberCore__P22341_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P90052, depth: s.depth + 1, + parent: s, fn: msgpack_packNumberCore__P22341, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tag___30104: undefined, + fmt___30147: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function ArcadePhysicsEngine_maxSpeed__P90051(s) { +function msgpack_tagFormat__P22340(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15006,46 +12924,70 @@ 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__C90048_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 = 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() } } } -ArcadePhysicsEngine_maxSpeed__P90051.info = {"start":1963,"length":127,"line":71,"column":4,"endLine":74,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this","v"]} +msgpack_tagFormat__P22340.info = {"start":1145,"length":481,"line":42,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"tagFormat","argumentNames":["tag"]} -function ArcadePhysicsEngine_maxSpeed__P90051_mk(s) { +function msgpack_tagFormat__P22340_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P90051, depth: s.depth + 1, + parent: s, fn: msgpack_tagFormat__P22340, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, - arg1: undefined, } } -function Fx_neg__P87676(s) { +function pins_sizeOf__P18146(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15059,17 +13001,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (0 - s.arg0); + s.tmp_0 = Buffer_sizeOfNumberFormat__P18186_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 16; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -Fx_neg__P87676.info = {"start":311,"length":88,"line":14,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"neg","argumentNames":["a"]} +pins_sizeOf__P18146.info = {"start":42,"length":101,"line":2,"column":4,"endLine":4,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOf","argumentNames":["format"]} -function Fx_neg__P87676_mk(s) { +function pins_sizeOf__P18146_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_neg__P87676, depth: s.depth + 1, + parent: s, fn: pins_sizeOf__P18146, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -15077,7 +13024,7 @@ function Fx_neg__P87676_mk(s) { -function ArcadePhysicsEngine_maxSpeed__P90050(s) { +function Buffer_sizeOfNumberFormat__P18186(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15091,26 +13038,79 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C90048_VT)) failedCast(r0); - r0 = s.arg0.fields["maxVelocity"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - return leaveAccessor(s, r0) + 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() } } } -ArcadePhysicsEngine_maxSpeed__P90050.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__P90050.isGetter = true; +Buffer_sizeOfNumberFormat__P18186.info = {"start":14912,"length":856,"line":508,"column":4,"endLine":532,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOfNumberFormat","argumentNames":["format"]} -function ArcadePhysicsEngine_maxSpeed__P90050_mk(s) { +function Buffer_sizeOfNumberFormat__P18186_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P90050, depth: s.depth + 1, + parent: s, fn: Buffer_sizeOfNumberFormat__P18186, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -15118,7 +13118,7 @@ function ArcadePhysicsEngine_maxSpeed__P90050_mk(s) { -function PhysicsEngine_constructor__P90033(s) { +function helpers_setScreenBrightness__P19936(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15130,29 +13130,41 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C90032_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P18098_mk(s); + s.tmp_0.arg0 = 10; + s.tmp_0.arg1 = 100; + r0 = (s.arg1 | 0); + s.tmp_0.arg2 = r0; + s.callLocIdx = 87; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.arg1 = (r0); + globals.brightness___19922 = (s.arg1); + r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___19922); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_constructor__P90033.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]} +helpers_setScreenBrightness__P19936.info = {"start":8945,"length":210,"line":282,"column":4,"endLine":286,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]} -function PhysicsEngine_constructor__P90033_mk(s) { +function helpers_setScreenBrightness__P19936_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_constructor__P90033, depth: s.depth + 1, + parent: s, fn: helpers_setScreenBrightness__P19936, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function sprites_SpriteMap_constructor__P89968(s) { +function scene_systemMenu_brightnessUp__P23164(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15162,37 +13174,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, sprites_SpriteMap__C89967_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + s.tmp_0 = scene_systemMenu_setScreenBrightness__P23166_mk(s); + r0 = globals.brightness___19922; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["buckets"] = (s.tmp_1); + r0 = (s.tmp_1 + 5); + s.tmp_0.arg0 = r0; + s.callLocIdx = 1079; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_constructor__P89968.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]} +scene_systemMenu_brightnessUp__P23164.info = {"start":9107,"length":85,"line":285,"column":4,"endLine":287,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessUp","argumentNames":[]} -function sprites_SpriteMap_constructor__P89968_mk(s) { +function scene_systemMenu_brightnessUp__P23164_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_constructor__P89968, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_brightnessUp__P23164, 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__P87930(s) { +function scene_systemMenu_volumeDown__P23163(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15202,63 +13211,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___98299 = undefined; - s.n___98305 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___91959); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + s.v___30420 = undefined; + s.remainder___30423 = undefined; + s.newVolume___30426 = undefined; + s.tmp_0 = music_volume__P19592_mk(s); + s.callLocIdx = 1076; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.v___30420 = (r0); + r0 = (s.v___30420 % 32); + s.remainder___30423 = (r0); + r0 = pxsim_numops_toBoolDecr(s.remainder___30423); if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - globals.eventContexts___91959 = (r0); + r0 = s.remainder___30423; + { step = 2; continue; } case 1: + r0 = 32; case 2: - s.tmp_0 = control_eventContext__P87929_mk(s); - s.callLocIdx = 53; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.ctx___98299 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___98299); - if (!r0) { step = 3; continue; } - s.tmp_0 = control_EventContext_unregister__P87923_mk(s); - s.tmp_0.arg0 = s.ctx___98299; - s.callLocIdx = 54; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - case 3: - case 4: - r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C87916_VT); + // jmp value (already in r0) s.tmp_0 = r0; - s.tmp_1 = control_EventContext_constructor__P87920_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 55; s.pc = 7; return s.tmp_1; - case 7: + r0 = (s.v___30420 - s.tmp_0); + s.newVolume___30426 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P23161_mk(s); + s.tmp_0.arg0 = s.newVolume___30426; + s.callLocIdx = 1077; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - s.n___98305 = (s.tmp_0); - r0 = pxsim_Array__push(globals.eventContexts___91959, s.n___98305); - r0 = s.n___98305; + r0 = undefined; return leave(s, r0) default: oops() } } } -control_pushEventContext__P87930.info = {"start":7310,"length":340,"line":220,"column":4,"endLine":231,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]} +scene_systemMenu_volumeDown__P23163.info = {"start":8914,"length":187,"line":278,"column":4,"endLine":283,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"volumeDown","argumentNames":[]} -function control_pushEventContext__P87930_mk(s) { +function scene_systemMenu_volumeDown__P23163_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_pushEventContext__P87930, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_volumeDown__P23163, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - ctx___98299: undefined, - n___98305: undefined, + v___30420: undefined, + remainder___30423: undefined, + newVolume___30426: undefined, } } -function control_EventContext_unregister__P87923(s) { +function scene_systemMenu_setVolume__P23161(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15268,60 +13268,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___98334 = undefined; - s.unnamed706___U1 = undefined; - s.unnamed707___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C87916_VT)) failedCast(r0); - s.h___98334 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed706___U1 = (r0); - s.unnamed707___U2 = (0); + s.tmp_0 = music_setVolume__P19591_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1071; s.pc = 1; return s.tmp_0; case 1: - s.tmp_0 = r0 = s.unnamed707___U2; - r0 = pxsim_Array__length(s.unnamed706___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed706___U1, s.unnamed707___U2); - s.h___98334 = (r0); - s.tmp_2 = control_EventHandler_unregister__P91953_mk(s); - s.tmp_2.arg0 = s.h___98334; - s.callLocIdx = 49; s.pc = 3; return s.tmp_2; - case 3: r0 = s.retval; - r0 = (s.unnamed707___U2 + 1); - s.unnamed707___U2 = (r0); - { step = 1; continue; } + s.tmp_0 = music_playTone__P19593_mk(s); + s.tmp_0.arg0 = 440; + s.tmp_0.arg1 = 500; + s.callLocIdx = 1072; s.pc = 2; return s.tmp_0; case 2: - s.unnamed706___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 = s.retval; + s.tmp_0 = settings_writeNumber__P20034_mk(s); + s.tmp_0.arg0 = "#volume"; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 1073; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_unregister__P87923.info = {"start":4721,"length":131,"line":141,"column":8,"endLine":145,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +scene_systemMenu_setVolume__P23161.info = {"start":8565,"length":166,"line":265,"column":4,"endLine":269,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setVolume","argumentNames":["newVolume"]} -function control_EventContext_unregister__P87923_mk(s) { +function scene_systemMenu_setVolume__P23161_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_unregister__P87923, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setVolume__P23161, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - h___98334: undefined, - unnamed706___U1: undefined, - unnamed707___U2: undefined, arg0: undefined, } } @@ -15329,7 +13308,7 @@ function control_EventContext_unregister__P87923_mk(s) { -function control_EventHandler_unregister__P91953(s) { +function music_playTone__P19593(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15339,41 +13318,82 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.id___30261 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C91951_VT)) failedCast(r0); - r0 = s.arg0.fields["src"]; + r0 = pxsim_pxtrt.mklocRef(); s.tmp_0 = r0; - r0 = s.arg0.fields["value"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["flags"]; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1); + s.arg1 = (s.tmp_0); + r0 = pxsim_pxtrt_ldlocRef(s.arg1); s.tmp_2 = r0; - r0 = pxsim.control.internalOnEvent(s.tmp_0, s.tmp_1, control_doNothing__P91955, s.tmp_2); + r0 = (s.tmp_2 == 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 1; continue; } + r0 = pxsim_pxtrt_stlocRef(s.arg1, 86400000); + case 1: + case 2: + r0 = pxsim_pxtrt_ldlocRef(s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_1 <= 2000); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_2 = music_playNoteCore__P22440_mk(s); + s.tmp_2.arg0 = 0; + s.tmp_2.arg1 = s.arg0; + r0 = pxsim_pxtrt_ldlocRef(s.arg1); + s.tmp_2.arg2 = r0; + s.callLocIdx = 64; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; + s.tmp_0 = pause__P18384_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.arg1); + s.tmp_0.arg0 = r0; + s.callLocIdx = 65; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + { step = 4; continue; } + case 3: + r0 = (globals.playToneID___22442 + 1); + s.tmp_0 = r0; + globals.playToneID___22442 = (r0); + s.id___30261 = (s.tmp_0); + r0 = pxsim_pxtcore_mkAction(3, music_playTone_inline__P30267); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___30261); + 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); + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventHandler_unregister__P91953.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +music_playTone__P19593.info = {"start":2612,"length":831,"line":84,"column":4,"endLine":109,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playTone","argumentNames":["frequency","ms"]} -function control_EventHandler_unregister__P91953_mk(s) { +function music_playTone__P19593_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_unregister__P91953, depth: s.depth + 1, + parent: s, fn: music_playTone__P19593, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + id___30261: undefined, arg0: undefined, + arg1: undefined, } } -function control_doNothing__P91955(s) { +function music_playTone_inline__P30267(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15383,24 +13403,106 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.pos___30268 = undefined; + s.now___30278 = undefined; + s.d___30281 = undefined; + s.t___30285 = undefined; + r0 = pxsim.control.millis(); + s.pos___30268 = (r0); + case 1: + r0 = (s.caps[0] == globals.playToneID___22442); + 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_pxtrt_ldlocRef(s.caps[1]); + s.tmp_1 = r0; + r0 = (s.tmp_1 > 0); + case 3: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 6; continue; } + r0 = pxsim.control.millis(); + s.now___30278 = (r0); + r0 = (s.pos___30268 - s.now___30278); + s.d___30281 = (r0); + s.tmp_0 = Math_min__P18102_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 500; + s.callLocIdx = 66; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.t___30285 = (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___30285); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = (s.pos___30268 + s.t___30285); + s.pos___30268 = (r0); + s.tmp_0 = music_playNoteCore__P22440_mk(s); + r0 = (s.d___30281 - 1); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.caps[2]; + s.tmp_0.arg2 = s.t___30285; + s.callLocIdx = 67; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_1 = r0; + r0 = (s.tmp_1 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_2 = pause__P18384_mk(s); + r0 = (s.d___30281 + s.t___30285); + s.tmp_2.arg0 = r0; + s.callLocIdx = 68; s.pc = 9; return s.tmp_2; + case 9: + r0 = s.retval; + { step = 5; continue; } + case 4: + s.tmp_0 = pause__P18384_mk(s); + r0 = (s.d___30281 + s.t___30285); + s.tmp_1 = r0; + r0 = (s.tmp_1 - 100); + s.tmp_0.arg0 = r0; + s.callLocIdx = 69; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + case 5: + { step = 1; continue; } + case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -control_doNothing__P91955.info = {"start":1254,"length":24,"line":41,"column":4,"endLine":41,"endColumn":28,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"doNothing","argumentNames":[]} +music_playTone_inline__P30267.info = {"start":2911,"length":515,"line":93,"column":34,"endLine":107,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} -function control_doNothing__P91955_mk(s) { +function music_playTone_inline__P30267_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_doNothing__P91955, depth: s.depth + 1, + parent: s, fn: music_playTone_inline__P30267, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + pos___30268: undefined, + now___30278: undefined, + d___30281: undefined, + t___30285: undefined, } } -function control_EventContext_constructor__P87920(s) { +function music_playNoteCore__P22440(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15410,52 +13512,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.buf___30315 = 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__C87916_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___87918); - s.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___87918 = (r0); - case 1: + r0 = pxsim.control.createBuffer(12); + s.buf___30315 = (r0); + s.tmp_0 = music_addNote__P19607_mk(s); + s.tmp_0.arg0 = s.buf___30315; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = 255; + s.tmp_0.arg4 = 255; + s.tmp_0.arg5 = 3; + s.tmp_0.arg6 = s.arg1; + s.tmp_1 = music_volume__P19592_mk(s); + s.callLocIdx = 62; s.pc = 2; return s.tmp_1; case 2: + r0 = s.retval; + s.tmp_0.arg7 = r0; + s.tmp_0.arg8 = s.arg1; + s.callLocIdx = 63; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___30315); r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_constructor__P87920.info = {"start":1778,"length":347,"line":59,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} +music_playNoteCore__P22440.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 control_EventContext_constructor__P87920_mk(s) { +function music_playNoteCore__P22440_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_constructor__P87920, depth: s.depth + 1, + parent: s, fn: music_playNoteCore__P22440, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + buf___30315: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function controller_pauseUntilAnyButtonIsPressed__P89726(s) { +function music_addNote__P19607(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15465,30 +13572,91 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - setupResume(s, 1); - pxsim.control.waitForEvent(2049, 0); - checkResumeConsumed(); - return; + 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.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: - r0 = s.retval; - r0 = undefined; + case 2: + r0 = pxsim.BufferMethods.setNumber(s.arg0, 2, s.arg1, 0); + r0 = s.arg1; return leave(s, r0) default: oops() } } } -controller_pauseUntilAnyButtonIsPressed__P89726.info = {"start":9968,"length":96,"line":287,"column":4,"endLine":289,"endColumn":5,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"pauseUntilAnyButtonIsPressed","argumentNames":[]} +music_addNote__P19607.info = {"start":10288,"length":911,"line":323,"column":4,"endLine":336,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"addNote","argumentNames":["sndInstr","sndInstrPtr","ms","beg","end","soundWave","hz","volume","endHz"]} -function controller_pauseUntilAnyButtonIsPressed__P89726_mk(s) { +function music_addNote__P19607_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P89726, depth: s.depth + 1, + parent: s, fn: music_addNote__P19607, depth: s.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 game_setWaitAnyButton__P90521(s) { +function music_setVolume__P19591(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15502,18 +13670,40 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.__waitAnyButton___92463 = (s.arg0); + s.tmp_0 = Math_clamp__P18098_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_0.arg1 = 255; + r0 = (s.arg0 | 0); + s.tmp_0.arg2 = r0; + s.callLocIdx = 59; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + globals.globalVolume___22435 = (r0); + r0 = (globals.globalVolume___22435 > 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; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = undefined; r0 = undefined; return leave(s, r0) default: oops() } } } -game_setWaitAnyButton__P90521.info = {"start":4236,"length":83,"line":127,"column":4,"endLine":129,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"setWaitAnyButton","argumentNames":["f"]} +music_setVolume__P19591.info = {"start":1533,"length":153,"line":51,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"setVolume","argumentNames":["volume"]} -function game_setWaitAnyButton__P90521_mk(s) { +function music_setVolume__P19591_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_setWaitAnyButton__P90521, depth: s.depth + 1, + parent: s, fn: music_setVolume__P19591, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -15521,7 +13711,7 @@ function game_setWaitAnyButton__P90521_mk(s) { -function Math_FastRandom_constructor__P90582(s) { +function music_enableAmp__P22438(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15533,42 +13723,27 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C90580_VT)) failedCast(r0); - r0 = (s.arg1 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.Math_.randomRange(1, 65535); - s.arg1 = (r0); - case 1: - case 2: - r0 = (s.arg0).fields["seed"] = (s.arg1); - r0 = (s.arg0).fields["lfsr"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -Math_FastRandom_constructor__P90582.info = {"start":1425,"length":175,"line":44,"column":8,"endLine":48,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"inline","argumentNames":["this","seed"]} +music_enableAmp__P22438.info = {"start":944,"length":64,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"enableAmp","argumentNames":["en"]} -function Math_FastRandom_constructor__P90582_mk(s) { +function music_enableAmp__P22438_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_constructor__P90582, depth: s.depth + 1, + parent: s, fn: music_enableAmp__P22438, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function game_consoleOverlay_listener__P92793(s) { +function scene_systemMenu_volumeUp__P23162(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15578,96 +13753,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___92758); - 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.v___30229 = undefined; + s.remainder___30232 = undefined; + s.newVolume___30235 = undefined; + s.tmp_0 = music_volume__P19592_mk(s); + s.callLocIdx = 1074; s.pc = 1; return s.tmp_0; case 1: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - { step = 7; continue; } - case 3: - case 4: - s.tmp_4 = helpers_arrayForEach__P87630_mk(s); - s.tmp_5 = helpers_arrayFilter__P87631_mk(s); - s.tmp_6 = helpers_stringSplit__P87643_mk(s); - s.tmp_6.arg0 = s.arg1; - s.tmp_6.arg1 = "\n"; - s.tmp_6.arg2 = undefined; - s.callLocIdx = 1137; s.pc = 10; return s.tmp_6; - case 10: - r0 = s.retval; - s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = forEach_inline__P98537; - s.callLocIdx = 1138; 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__P98542; - s.callLocIdx = 1140; s.pc = 8; return s.tmp_4; - case 8: r0 = s.retval; - r0 = pxsim_Array__length(globals.consoleStrings___92758); - s.tmp_1 = r0; - r0 = (s.tmp_1 > globals.consoleLines___92771); + s.v___30229 = (r0); + r0 = (s.v___30229 % 32); + s.remainder___30232 = (r0); + r0 = (s.v___30229 + 32); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_2 = helpers_arraySplice__P87621_mk(s); - s.tmp_2.arg0 = globals.consoleStrings___92758; - s.tmp_2.arg1 = 0; - r0 = pxsim_Array__length(globals.consoleStrings___92758); - s.tmp_3 = r0; - r0 = (s.tmp_3 - globals.consoleLines___92771); - s.tmp_2.arg2 = r0; - s.callLocIdx = 1141; s.pc = 11; return s.tmp_2; - case 11: + r0 = (s.tmp_0 - s.remainder___30232); + s.newVolume___30235 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P23161_mk(s); + s.tmp_0.arg0 = s.newVolume___30235; + s.callLocIdx = 1075; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; - case 5: - case 6: - case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -game_consoleOverlay_listener__P92793.info = {"start":787,"length":571,"line":26,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"listener","argumentNames":["priority","text"]} +scene_systemMenu_volumeUp__P23162.info = {"start":8737,"length":171,"line":271,"column":4,"endLine":276,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"volumeUp","argumentNames":[]} -function game_consoleOverlay_listener__P92793_mk(s) { +function scene_systemMenu_volumeUp__P23162_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_listener__P92793, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_volumeUp__P23162, depth: s.depth + 1, pc: 0, retval: undefined, 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, + v___30229: undefined, + remainder___30232: undefined, + newVolume___30235: undefined, } } -function forEach_inline__P98537(s) { +function game_consoleOverlay_isVisible__P21095(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15677,11 +13803,7 @@ 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); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___23203); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; @@ -15691,24 +13813,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -forEach_inline__P98537.info = {"start":985,"length":14,"line":32,"column":20,"endLine":32,"endColumn":34,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} +game_consoleOverlay_isVisible__P21095.info = {"start":422,"length":68,"line":11,"column":4,"endLine":13,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"isVisible","argumentNames":[]} -function forEach_inline__P98537_mk(s) { +function game_consoleOverlay_isVisible__P21095_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P98537, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_isVisible__P21095, 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 game_consoleOverlay_listener_inline__P98542(s) { +function scene_systemMenu_closeMenu__P21073(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15718,61 +13839,44 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.j___98544 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.j___98544 = (0); - case 1: - s.tmp_1 = r0 = s.j___98544; - 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___92758; - s.tmp_5 = helpers_stringSlice__P87640_mk(s); - s.tmp_5.arg0 = s.arg0; - s.tmp_5.arg1 = s.j___98544; - r0 = (s.j___98544 + globals.consoleColumns___92781); - s.tmp_5.arg2 = r0; - s.callLocIdx = 1139; s.pc = 3; return s.tmp_5; + r0 = pxsim_numops_toBoolDecr(globals.instance___23157); + if (!r0) { step = 1; continue; } + s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P21072_mk(s); + s.tmp_0.arg0 = globals.instance___23157; + s.callLocIdx = 1090; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_Array__push(s.tmp_3, s.tmp_4); - r0 = (s.j___98544 + globals.consoleColumns___92781); - s.j___98544 = (r0); - { step = 1; continue; } + globals.instance___23157 = (undefined); + s.tmp_0 = controller__setUserEventsEnabled__P20177_mk(s); + s.tmp_0.arg0 = true; + s.callLocIdx = 1091; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = game_popScene__P20975_mk(s); + s.callLocIdx = 1092; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + case 1: case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -game_consoleOverlay_listener_inline__P98542.info = {"start":1022,"length":189,"line":33,"column":21,"endLine":37,"endColumn":13,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} +scene_systemMenu_closeMenu__P21073.info = {"start":10129,"length":216,"line":320,"column":4,"endLine":327,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"closeMenu","argumentNames":[]} -function game_consoleOverlay_listener_inline__P98542_mk(s) { +function scene_systemMenu_closeMenu__P21073_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_listener_inline__P98542, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_closeMenu__P21073, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - j___98544: undefined, - arg0: undefined, } } -function console_addListener__P87904(s) { +function scene_systemMenu_PauseMenu_dispose__P21072(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15786,43 +13890,35 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C21066_VT)) failedCast(r0); + r0 = s.arg0.fields["options"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_1 = helpers_arrayForEach__P18080_mk(s); + r0 = s.arg0.fields["options"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = scene_systemMenu_PauseMenu_dispose_inline__P28550; + s.callLocIdx = 1067; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + r0 = (s.arg0).fields["options"] = (undefined); case 1: - r0 = pxsim_Array_.indexOf(globals.listeners___91937, s.arg0, undefined); - s.tmp_2 = r0; - r0 = (s.tmp_2 > -1); case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - { step = 5; continue; } - case 3: - case 4: - r0 = pxsim_Array__push(globals.listeners___91937, s.arg0); - case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -console_addListener__P87904.info = {"start":3558,"length":197,"line":121,"column":4,"endLine":124,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"addListener","argumentNames":["listener"]} +scene_systemMenu_PauseMenu_dispose__P21072.info = {"start":7732,"length":165,"line":243,"column":8,"endLine":248,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"dispose","argumentNames":["this"]} -function console_addListener__P87904_mk(s) { +function scene_systemMenu_PauseMenu_dispose__P21072_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_addListener__P87904, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_dispose__P21072, depth: s.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, } } @@ -15830,7 +13926,7 @@ function console_addListener__P87904_mk(s) { -function listeners_inline__P91936(s) { +function scene_systemMenu_PauseMenu_dispose_inline__P28550(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15842,71 +13938,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim.control.__log(s.arg0, s.arg1); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -listeners_inline__P91936.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__P91936_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: listeners_inline__P91936, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, -} } - - - - - -function scene_systemMenu_register__P90627(s) { -let r0 = s.r0, 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___92712); - if (!r0) { step = 1; continue; } - { step = 3; continue; } + s.tmp_0 = scene_systemMenu_MenuOption_dispose__P21065_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1066; s.pc = 1; return s.tmp_0; case 1: - case 2: - s.tmp_0 = controller_Button_onEvent__P89717_mk(s); - s.tmp_0.arg0 = globals.menu___89640; - s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P90628; - s.callLocIdx = 1124; s.pc = 4; return s.tmp_0; - case 4: r0 = s.retval; - case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_register__P90627.info = {"start":12793,"length":193,"line":382,"column":4,"endLine":386,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"register","argumentNames":[]} +scene_systemMenu_PauseMenu_dispose_inline__P28550.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_register__P90627_mk(s) { +function scene_systemMenu_PauseMenu_dispose_inline__P28550_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_register__P90627, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_dispose_inline__P28550, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + arg0: undefined, } } -function scene_systemMenu_showSystemMenu__P90628(s) { +function scene_systemMenu_MenuOption_dispose__P21065(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15916,51 +13974,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___92712); - if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: - case 2: - s.tmp_0 = game_pushScene__P90524_mk(s); - s.callLocIdx = 1125; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C90616_VT); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C21058_VT)) failedCast(r0); + r0 = s.arg0.fields["card"]; s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P90617_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P90624; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = Sprite_destroy__P20399_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = undefined; s.tmp_1.arg2 = undefined; - s.callLocIdx = 1126; s.pc = 5; return s.tmp_1; - case 5: + s.callLocIdx = 986; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - globals.instance___92712 = (s.tmp_0); - s.tmp_0 = scene_systemMenu_PauseMenu_show__P90618_mk(s); - s.tmp_0.arg0 = globals.instance___92712; - s.callLocIdx = 1127; s.pc = 6; return s.tmp_0; - case 6: + s.tmp_0 = Sprite_destroy__P20399_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = undefined; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 987; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - case 3: + r0 = (s.arg0).fields["card"] = (undefined); + r0 = (s.arg0).fields["icon"] = (undefined); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_showSystemMenu__P90628.info = {"start":12992,"length":172,"line":388,"column":4,"endLine":393,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"showSystemMenu","argumentNames":[]} +scene_systemMenu_MenuOption_dispose__P21065.info = {"start":1812,"length":216,"line":77,"column":8,"endLine":84,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"dispose","argumentNames":["this"]} -function scene_systemMenu_showSystemMenu__P90628_mk(s) { +function scene_systemMenu_MenuOption_dispose__P21065_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_showSystemMenu__P90628, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_dispose__P21065, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + arg0: undefined, } } -function scene_systemMenu_buildOptionList__P90624(s) { +function Sprite_destroy__P20399(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15970,136 +14034,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.options___99877 = undefined; - r0 = pxsim_Array__mk(); - s.options___99877 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C90608_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P90609_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___90638; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P99885; - s.tmp_1.arg3 = scene_systemMenu_volumeDown__P92718; - s.callLocIdx = 1107; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - r0 = pxsim_Array__push(s.options___99877, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C90608_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P90609_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.VOLUME_UP_ICON___90635; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P99899; - s.tmp_1.arg3 = scene_systemMenu_volumeUp__P92717; - s.callLocIdx = 1109; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - r0 = pxsim_Array__push(s.options___99877, s.tmp_0); - r0 = 0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20312_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; } - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C90608_VT); - s.tmp_1 = r0; - s.tmp_2 = scene_systemMenu_MenuOption_constructor__P90609_mk(s); - s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___90636; - s.tmp_2.arg2 = scene_systemMenu_buildOptionList_inline__P99914; - s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P92720; - s.callLocIdx = 1112; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - r0 = pxsim_Array__push(s.options___99877, s.tmp_1); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C90608_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P90609_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___90641; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P99929; - s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P92719; - s.callLocIdx = 1114; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - r0 = pxsim_Array__push(s.options___99877, s.tmp_0); + { step = 5; continue; } case 1: case 2: - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C90608_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P90609_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.STATS_ICON___90642; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P99944; - s.tmp_1.arg3 = scene_systemMenu_toggleStats__P92722; - s.callLocIdx = 1115; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - r0 = pxsim_Array__push(s.options___99877, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C90608_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P90609_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.CONSOLE_ICON___90640; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P99953; - s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P92723; - s.callLocIdx = 1117; s.pc = 10; return s.tmp_1; - case 10: - r0 = s.retval; - r0 = pxsim_Array__push(s.options___99877, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C90608_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P90609_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.SLEEP_ICON___90639; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P99962; - s.tmp_1.arg3 = scene_systemMenu_sleep__P92724; - s.callLocIdx = 1118; s.pc = 11; return s.tmp_1; - case 11: - r0 = s.retval; - r0 = pxsim_Array__push(s.options___99877, s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___92713); + 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 = helpers_arrayConcat__P87634_mk(s); - s.tmp_0.arg0 = s.options___99877; - s.tmp_0.arg1 = globals.customMenuOptions___92713; - s.callLocIdx = 1119; s.pc = 12; return s.tmp_0; - case 12: + s.tmp_0 = effects_ParticleEffect_destroy__P21236_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 = 431; s.pc = 6; return s.tmp_0; + case 6: r0 = s.retval; - s.options___99877 = (r0); + { step = 4; continue; } case 3: - case 4: - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C90608_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P90609_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___90637; - s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P99975; - s.tmp_1.arg3 = scene_systemMenu_closeMenu__P90623; - s.callLocIdx = 1120; s.pc = 13; return s.tmp_1; - case 13: + s.tmp_0 = Sprite__destroyCore__P20400_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 432; s.pc = 7; return s.tmp_0; + case 7: r0 = s.retval; - r0 = pxsim_Array__push(s.options___99877, s.tmp_0); - r0 = s.options___99877; + case 4: + case 5: + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList__P90624.info = {"start":10499,"length":1149,"line":334,"column":4,"endLine":354,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildOptionList","argumentNames":[]} +Sprite_destroy__P20399.info = {"start":26493,"length":293,"line":859,"column":4,"endLine":868,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]} -function scene_systemMenu_buildOptionList__P90624_mk(s) { +function Sprite_destroy__P20399_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList__P90624, depth: s.depth + 1, + parent: s, fn: Sprite_destroy__P20399, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - options___99877: undefined, + tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function scene_systemMenu_buildOptionList_inline__P99885(s) { +function effects_ParticleEffect_destroy__P21236(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16109,44 +14111,88 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = music_volume__P89142_mk(s); - s.callLocIdx = 1106; s.pc = 1; return s.tmp_3; - case 1: + 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__C21233_VT)) failedCast(r0); + s.tmp_0 = Sprite_setFlag__P20390_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 7168; + s.tmp_0.arg2 = true; + s.callLocIdx = 1251; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; + s.tmp_0 = effects_ParticleEffect_start__P21235_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; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 2); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 2: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_String__concat("VOLUME DOWN (", s.tmp_1); + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0.arg4 = r0; + s.callLocIdx = 1252; 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 = pxsim_String__concat(s.tmp_0, ")"); + 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__P21263_mk(s); + s.tmp_0.arg0 = globals.dissolve___21266; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1253; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P99885.info = {"start":10644,"length":39,"line":337,"column":54,"endLine":337,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +effects_ParticleEffect_destroy__P21236.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 scene_systemMenu_buildOptionList_inline__P99885_mk(s) { +function effects_ParticleEffect_destroy__P21236_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P99885, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_destroy__P21236, depth: s.depth + 1, pc: 0, retval: undefined, 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 scene_systemMenu_buildOptionList_inline__P99899(s) { +function dissolve_inline__P28695(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16156,44 +14202,105 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = music_volume__P89142_mk(s); - s.callLocIdx = 1108; s.pc = 1; return s.tmp_3; + s.i___28698 = undefined; + s.x___28709 = undefined; + s.y___28715 = undefined; + s.w___28721 = undefined; + s.h___28725 = 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___28698 = (r0); case 1: + r0 = (s.i___28698 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = Math_FastRandom_randomRange__P21034_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 = 52; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 2); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 2: + s.x___28709 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P21034_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 = 53; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat("VOLUME UP (", s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, ")"); + s.y___28715 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P21034_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 1; + s.tmp_0.arg2 = 3; + s.callLocIdx = 54; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.w___28721 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P21034_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 1; + s.tmp_0.arg2 = 3; + s.callLocIdx = 55; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.h___28725 = (r0); + s.tmp_0 = helpers_imageDrawRect__P19930_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.x___28709; + s.tmp_0.arg2 = s.y___28715; + s.tmp_0.arg3 = s.w___28721; + s.tmp_0.arg4 = s.h___28725; + s.tmp_0.arg5 = 0; + s.callLocIdx = 56; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + r0 = (s.i___28698 - 1); + s.i___28698 = (r0); + { step = 1; continue; } + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P99899.info = {"start":10751,"length":37,"line":338,"column":52,"endLine":338,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +dissolve_inline__P28695.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 scene_systemMenu_buildOptionList_inline__P99899_mk(s) { +function dissolve_inline__P28695_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P99899, depth: s.depth + 1, + parent: s, fn: dissolve_inline__P28695, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, + i___28698: undefined, + x___28709: undefined, + y___28715: undefined, + w___28721: undefined, + h___28725: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_buildOptionList_inline__P99914(s) { +function helpers_imageDrawRect__P19930(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16203,40 +14310,110 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.brightness___89472; - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 1); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } + 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.retval; + r0 = (s.arg4 == 0); + case 2: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim_String__concat("BRIGHTNESS DOWN (", s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, ")"); + 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__P19929_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + r0 = (s.arg1 + s.arg3); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = s.arg2; + s.tmp_0.arg5 = s.arg5; + s.callLocIdx = 83; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = helpers_imageDrawLine__P19929_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 = 84; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.tmp_0 = helpers_imageDrawLine__P19929_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = (s.arg1 + s.arg3); + s.tmp_0.arg1 = r0; + r0 = (s.arg2 + s.arg4); + s.tmp_0.arg2 = r0; + r0 = (s.arg1 + s.arg3); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = s.arg2; + s.tmp_0.arg5 = s.arg5; + s.callLocIdx = 85; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.tmp_0 = helpers_imageDrawLine__P19929_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = (s.arg1 + s.arg3); + s.tmp_0.arg1 = r0; + r0 = (s.arg2 + s.arg4); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.arg1; + r0 = (s.arg2 + s.arg4); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.arg5; + s.callLocIdx = 86; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + case 5: + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P99914.info = {"start":10910,"length":48,"line":340,"column":62,"endLine":340,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +helpers_imageDrawRect__P19930.info = {"start":5945,"length":370,"line":185,"column":4,"endLine":193,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]} -function scene_systemMenu_buildOptionList_inline__P99914_mk(s) { +function helpers_imageDrawRect__P19930_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P99914, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawRect__P19930, 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 scene_systemMenu_buildOptionList_inline__P99929(s) { +function helpers_imageDrawLine__P19929(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16246,40 +14423,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.brightness___89472; - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 1); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } + 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__P22541_mk(s); + s.tmp_2.arg0 = s.arg1; + s.tmp_2.arg1 = s.arg2; + s.callLocIdx = 81; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_String__concat("BRIGHTNESS UP (", s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, ")"); + s.tmp_4 = helpers_pack__P22541_mk(s); + s.tmp_4.arg0 = s.arg3; + s.tmp_4.arg1 = s.arg4; + s.callLocIdx = 82; s.pc = 2; return s.tmp_4; + case 2: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods._drawLine(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5); + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P99929.info = {"start":11038,"length":46,"line":341,"column":60,"endLine":341,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +helpers_imageDrawLine__P19929.info = {"start":5781,"length":159,"line":182,"column":4,"endLine":184,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]} -function scene_systemMenu_buildOptionList_inline__P99929_mk(s) { +function helpers_imageDrawLine__P19929_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P99929, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawLine__P19929, depth: s.depth + 1, pc: 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 scene_systemMenu_buildOptionList_inline__P99944(s) { +function Math_FastRandom_randomRange__P21034(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16289,34 +14486,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.stats___90489); + 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__C21030_VT)) failedCast(r0); + r0 = (s.arg2 > s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = "HIDE STATS"; + s.tmp_2 = Math_FastRandom_next__P21033_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 968; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.arg2 - s.arg1); + s.tmp_4 = r0; + r0 = (s.tmp_4 + 1); + s.tmp_3 = r0; + r0 = (s.tmp_1 % s.tmp_3); { step = 2; continue; } case 1: - r0 = "SHOW STATS"; + r0 = 0; case 2: // jmp value (already in r0) - s.tmp_0 = r0; - r0 = s.tmp_0; + s.tmp_5 = r0; + r0 = (s.arg1 + s.tmp_5); return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P99944.info = {"start":11160,"length":46,"line":343,"column":48,"endLine":343,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +Math_FastRandom_randomRange__P21034.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 scene_systemMenu_buildOptionList_inline__P99944_mk(s) { +function Math_FastRandom_randomRange__P21034_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P99944, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_randomRange__P21034, depth: s.depth + 1, pc: 0, retval: undefined, 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 scene_systemMenu_buildOptionList_inline__P99953(s) { +function Math_FastRandom_next__P21033(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16326,73 +14551,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___92758); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Math_FastRandom__C21030_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["lfsr"]; 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 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = "HIDE CONSOLE"; - { step = 2; continue; } - case 1: - r0 = "SHOW CONSOLE"; - case 2: - // jmp value (already in r0) + 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_4; + r0 = (s.tmp_2 ^ s.tmp_4); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["lfsr"] = (s.tmp_1); + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList_inline__P99953.info = {"start":11273,"length":71,"line":344,"column":50,"endLine":344,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +Math_FastRandom_next__P21033.info = {"start":1713,"length":107,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"next","argumentNames":["this"]} -function scene_systemMenu_buildOptionList_inline__P99953_mk(s) { +function Math_FastRandom_next__P21033_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P99953, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_next__P21033, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + arg0: undefined, } } -function scene_systemMenu_buildOptionList_inline__P99962(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = "SLEEP"; - return leave(s, r0) - default: oops() -} } } -scene_systemMenu_buildOptionList_inline__P99962.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__P99962_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P99962, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, -} } - - - - - -function scene_systemMenu_buildOptionList_inline__P99975(s) { +function effects_ImageEffect_constructor__P21262(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16402,24 +14609,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = "CLOSE"; + 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__C21261_VT)) failedCast(r0); + r0 = (s.arg0).fields["effect"] = (s.arg2); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C21030_VT); + s.tmp_0 = r0; + s.tmp_1 = Math_FastRandom_constructor__P21032_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1261; 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() } } } -scene_systemMenu_buildOptionList_inline__P99975.info = {"start":11590,"length":13,"line":351,"column":53,"endLine":351,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +effects_ImageEffect_constructor__P21262.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 scene_systemMenu_buildOptionList_inline__P99975_mk(s) { +function effects_ImageEffect_constructor__P21262_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList_inline__P99975, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_constructor__P21262, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function scene_systemMenu_setScreenBrightnessSupported__P92725(s) { +function effects_ImageEffect_applyTo__P21263(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16429,24 +14661,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = 0; + s.clonedImage___28874 = 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__C21261_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_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.arg1.fields["_image"]; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + { step = 5; continue; } + case 3: + case 4: + r0 = s.arg1.fields["_image"]; + s.tmp_5 = r0; + r0 = pxsim_ImageMethods.clone(s.tmp_5); + s.clonedImage___28874 = (r0); + s.tmp_0 = effects_ImageEffect_change__P21264_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.clonedImage___28874; + s.callLocIdx = 1264; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = Sprite_setImage__P20362_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.clonedImage___28874; + s.callLocIdx = 1265; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + case 5: + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_setScreenBrightnessSupported__P92725.info = {"start":10398,"length":95,"line":330,"column":4,"endLine":332,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightnessSupported","argumentNames":[]} +effects_ImageEffect_applyTo__P21263.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 scene_systemMenu_setScreenBrightnessSupported__P92725_mk(s) { +function effects_ImageEffect_applyTo__P21263_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P92725, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_applyTo__P21263, depth: s.depth + 1, pc: 0, retval: undefined, 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___28874: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_sleep__P92724(s) { +function effects_ImageEffect_change__P21264(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16456,25 +14744,50 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_pxtcore.deepSleep(); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, effects_ImageEffect__C21261_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 = 1266; 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 = 1266; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1266; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 1266; s.pc = 1; return s.tmp_0; } + } + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_sleep__P92724.info = {"start":10072,"length":51,"line":316,"column":4,"endLine":318,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"sleep","argumentNames":[]} +effects_ImageEffect_change__P21264.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 scene_systemMenu_sleep__P92724_mk(s) { +function effects_ImageEffect_change__P21264_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_sleep__P92724, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_change__P21264, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_toggleConsole__P92723(s) { +function Sprite_setImage__P20362(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16484,59 +14797,66 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___92758); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_4 = game_consoleOverlay_setVisible__P90647_mk(s); - s.tmp_4.arg0 = false; - s.tmp_4.arg1 = undefined; - s.callLocIdx = 1100; s.pc = 3; return s.tmp_4; - case 3: - r0 = s.retval; + r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_0 = game_consoleOverlay_setVisible__P90647_mk(s); - s.tmp_0.arg0 = true; - s.tmp_0.arg1 = undefined; - s.callLocIdx = 1101; s.pc = 4; return s.tmp_0; + 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__C20312_v5_1_mk(s); + s.tmp_0.arg0 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, Sprite__C20312_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; - s.tmp_0 = console_log__P87901_mk(s); - s.tmp_0.arg0 = "console"; - s.callLocIdx = 1102; 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__P92723.info = {"start":9827,"length":239,"line":307,"column":4,"endLine":314,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleConsole","argumentNames":[]} +Sprite_setImage__P20362.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 scene_systemMenu_toggleConsole__P92723_mk(s) { +function Sprite_setImage__P20362_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_toggleConsole__P92723, depth: s.depth + 1, + parent: s, fn: Sprite_setImage__P20362, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, + arg0: undefined, + arg1: undefined, } } -function game_consoleOverlay_setVisible__P90647(s) { +function Sprite_recalcSize__P22712(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16548,51 +14868,61 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_1 = r0 = s.arg0; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___92758); - s.tmp_5 = r0; - r0 = pxsim_Boolean__bang(s.tmp_5); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["_image"]; s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); + r0 = pxsim_ImageMethods.width(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; } + s.tmp_6 = Sprite_sx__P20341_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 343; s.pc = 1; return s.tmp_6; case 1: - r0 = undefined; + 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__P20343_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 345; s.pc = 2; return s.tmp_6; case 2: - // jmp value (already in r0) - s.tmp_6 = r0; - globals.consoleStrings___92758 = (s.tmp_6); + 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__P20364_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 347; s.pc = 3; return s.tmp_0; 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___92757 = (s.arg1); - case 5: - case 6: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -game_consoleOverlay_setVisible__P90647.info = {"start":562,"length":219,"line":19,"column":4,"endLine":24,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"setVisible","argumentNames":["value","col"]} +Sprite_recalcSize__P22712.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_consoleOverlay_setVisible__P90647_mk(s) { +function Sprite_recalcSize__P22712_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_setVisible__P90647, depth: s.depth + 1, + parent: s, fn: Sprite_recalcSize__P22712, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16601,15 +14931,15 @@ function game_consoleOverlay_setVisible__P90647_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, + tmp_7: undefined, arg0: undefined, - arg1: undefined, } } -function console_log__P87901(s) { +function Sprite_resetHitbox__P20364(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16623,22 +14953,26 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = console_add__P87897_mk(s); - s.tmp_0.arg0 = 1; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 33; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + r0 = (s.arg0).fields["_hitbox"] = (null); + s.tmp_0 = Sprite__C20312_v4_1_mk(s); + s.tmp_0.arg0 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, Sprite__C20312_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() } } } -console_log__P87901.info = {"start":1450,"length":86,"line":58,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"log","argumentNames":["value"]} +Sprite_resetHitbox__P20364.info = {"start":9580,"length":76,"line":342,"column":4,"endLine":345,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"resetHitbox","argumentNames":["this"]} -function console_log__P87901_mk(s) { +function Sprite_resetHitbox__P20364_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_log__P87901, depth: s.depth + 1, + parent: s, fn: Sprite_resetHitbox__P20364, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -16648,7 +14982,7 @@ function console_log__P87901_mk(s) { -function console_add__P87897(s) { +function Sprite_setHitbox__P20365(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16658,87 +14992,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.text___100014 = undefined; - s.i___100023 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 < globals.minPriority___87896); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + r0 = s.arg0.fields["_hitbox"]; 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__P87903_mk(s); - s.tmp_1.arg0 = s.arg1; - s.tmp_1.arg1 = 20; - s.callLocIdx = 31; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - s.text___100014 = (r0); - if ((s.text___100014) && (s.text___100014).vtable) { - setupResume(s, 7); - pxsim_String__stringConv(s.text___100014); - checkResumeConsumed(); - return; - } else { s.retval = (s.text___100014) + ""; } - case 7: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, "\n"); - s.text___100014 = (r0); - s.i___100023 = (0); + s.tmp_1 = game_Hitbox_updateIfInvalid__P20193_mk(s); + r0 = s.arg0.fields["_hitbox"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 341; s.pc = 3; return s.tmp_1; case 3: - s.tmp_1 = r0 = s.i___100023; - r0 = pxsim_Array__length(globals.listeners___91937); - 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___91937, s.i___100023); - s.tmp_3.argL = r0; - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.text___100014; - setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 32; s.pc = 8; return s.tmp_3; - case 8: r0 = s.retval; - r0 = (s.i___100023 + 1); - s.i___100023 = (r0); - { step = 3; continue; } + { step = 2; continue; } + case 1: + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = game_calculateHitBox__P20195_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 342; s.pc = 4; return s.tmp_2; case 4: - case 5: + 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() } } } -console_add__P87897.info = {"start":632,"length":317,"line":28,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"add","argumentNames":["priority","message"]} +Sprite_setHitbox__P20365.info = {"start":9662,"length":173,"line":347,"column":4,"endLine":353,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]} -function console_add__P87897_mk(s) { +function Sprite_setHitbox__P20365_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_add__P87897, depth: s.depth + 1, + parent: s, fn: Sprite_setHitbox__P20365, depth: s.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___100014: undefined, - i___100023: undefined, arg0: undefined, - arg1: undefined, } } -function console_inspect__P87903(s) { +function game_calculateHitBox__P20195(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16748,239 +15050,215 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.asArr___100054 = undefined; - s.asString___100072 = undefined; - s.keys___100084 = undefined; - s.snipped___100088 = undefined; + s.i___28939 = undefined; + s.minX___28942 = undefined; + s.minY___28946 = undefined; + s.maxX___28950 = undefined; + s.maxY___28952 = undefined; + s.c___28954 = undefined; + s.fxc___28955 = undefined; + s.r___28962 = undefined; + s.fxr___28963 = undefined; + s.width___29027 = undefined; + s.height___29035 = 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"); + r0 = s.arg0.fields["_hitbox"]; 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; } + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; 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: + s.tmp_1 = game_Hitbox_isValid__P20191_mk(s); + r0 = s.arg0.fields["_hitbox"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 275; s.pc = 12; return s.tmp_1; + case 12: 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___100054 = (s.arg0); - r0 = pxsim_Array__length(s.asArr___100054); + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = s.arg0.fields["_hitbox"]; + { step = 11; continue; } + case 3: + case 4: + r0 = s.arg0.fields["_image"]; + s.i___28939 = (r0); + r0 = pxsim_ImageMethods.width(s.i___28939); + s.tmp_0 = r0; + r0 = (s.tmp_0 * 256); s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.arg1); + r0 = (s.tmp_1 | 0); + s.minX___28942 = (r0); + r0 = pxsim_ImageMethods.height(s.i___28939); + s.tmp_0 = r0; + r0 = (s.tmp_0 * 256); + s.tmp_1 = r0; + r0 = (s.tmp_1 | 0); + s.minY___28946 = (r0); + s.maxX___28950 = (0); + s.maxY___28952 = (0); + s.c___28954 = (0); + s.fxc___28955 = (0); + case 5: + s.tmp_1 = r0 = s.c___28954; + r0 = pxsim_ImageMethods.width(s.i___28939); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_2 = helpers_arrayJoin__P87624_mk(s); - s.tmp_2.arg0 = s.asArr___100054; - s.tmp_2.arg1 = ","; - s.callLocIdx = 34; 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__P87624_mk(s); - s.tmp_8 = helpers_arraySlice__P87636_mk(s); - s.tmp_8.arg0 = s.asArr___100054; - s.tmp_8.arg1 = 0; - s.tmp_8.arg2 = s.arg1; - s.callLocIdx = 35; s.pc = 21; return s.tmp_8; - case 21: + if (!r0) { step = 10; continue; } + s.r___28962 = (0); + s.fxr___28963 = (0); + case 6: + s.tmp_1 = r0 = s.r___28962; + r0 = pxsim_ImageMethods.height(s.i___28939); + 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___28939, s.c___28954, s.r___28962); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 7; continue; } + s.tmp_4 = Fx_min__P18137_mk(s); + s.tmp_4.arg0 = s.minX___28942; + s.tmp_4.arg1 = s.fxc___28955; + s.callLocIdx = 279; s.pc = 13; return s.tmp_4; + case 13: r0 = s.retval; - s.tmp_7.arg0 = r0; - s.tmp_7.arg1 = ","; - s.callLocIdx = 36; s.pc = 20; return s.tmp_7; - case 20: + s.minX___28942 = (r0); + s.tmp_0 = Fx_min__P18137_mk(s); + s.tmp_0.arg0 = s.minY___28946; + s.tmp_0.arg1 = s.fxr___28963; + s.callLocIdx = 280; s.pc = 14; return s.tmp_0; + case 14: 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: + s.minY___28946 = (r0); + s.tmp_0 = Fx_max__P18138_mk(s); + s.tmp_0.arg0 = s.maxX___28950; + s.tmp_0.arg1 = s.fxc___28955; + s.callLocIdx = 281; s.pc = 15; return s.tmp_0; + case 15: 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: + s.maxX___28950 = (r0); + s.tmp_0 = Fx_max__P18138_mk(s); + s.tmp_0.arg0 = s.maxY___28952; + s.tmp_0.arg1 = s.fxr___28963; + s.callLocIdx = 282; s.pc = 16; return s.tmp_0; + case 16: 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___100072 = (r0); - r0 = (s.asString___100072 != "[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___100072 != "[Object]"); + s.maxY___28952 = (r0); 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___100072; - { step = 17; continue; } case 8: + r0 = (s.r___28962 + 1); + s.r___28962 = (r0); + r0 = (s.fxr___28963 + 256); + s.tmp_0 = r0; + s.fxr___28963 = (r0); + r0 = s.tmp_0; + { step = 6; continue; } case 9: - r0 = pxsim_pxtrt.keysOf(s.arg0); - s.keys___100084 = (r0); - r0 = pxsim_Array__length(s.keys___100084); + r0 = (s.c___28954 + 1); + s.c___28954 = (r0); + r0 = (s.fxc___28955 + 256); s.tmp_0 = r0; - r0 = (s.tmp_0 > s.arg1); - s.snipped___100088 = (r0); - r0 = pxsim_numops_toBoolDecr(s.snipped___100088); - if (!r0) { step = 10; continue; } - s.tmp_0 = helpers_arraySlice__P87636_mk(s); - s.tmp_0.arg0 = s.keys___100084; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 37; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.keys___100084 = (r0); + s.fxc___28955 = (r0); + r0 = s.tmp_0; + { step = 5; continue; } case 10: - case 11: - r0 = pxsim_pxtcore_mkAction(1, console_inspect_inline__P100105); + r0 = s.arg0.fields["_sx"]; s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_numops_toBoolDecr(s.snipped___100088); - if (!r0) { step = 12; continue; } - r0 = "\n ..."; - { step = 13; continue; } - case 12: - r0 = pxsim_String_.mkEmpty(); - case 13: - // jmp value (already in r0) + r0 = pxsim.Math_.imul(s.minX___28942, s.tmp_0); s.tmp_1 = r0; - s.tmp_7 = helpers_arrayReduce__P87633_mk(s); - s.tmp_7.arg0 = s.keys___100084; - s.tmp_7.arg1 = s.tmp_0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_7.arg2 = r0; - s.callLocIdx = 38; 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; + r0 = (s.tmp_1 >> 8); + s.minX___28942 = (r0); + r0 = s.arg0.fields["_sy"]; + s.tmp_0 = r0; + r0 = pxsim.Math_.imul(s.minY___28946, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + s.minY___28946 = (r0); + r0 = s.arg0.fields["_sx"]; + s.tmp_0 = r0; + r0 = pxsim.Math_.imul(s.maxX___28950, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + s.maxX___28950 = (r0); + r0 = s.arg0.fields["_sy"]; + s.tmp_0 = r0; + r0 = pxsim.Math_.imul(s.maxY___28952, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + s.maxY___28952 = (r0); + r0 = (s.maxX___28950 - s.minX___28942); + s.tmp_0 = r0; + r0 = s.arg0.fields["_sx"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.width___29027 = (r0); + r0 = (s.maxY___28952 - s.minY___28946); + s.tmp_0 = r0; + r0 = s.arg0.fields["_sy"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.height___29035 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C20179_VT); + s.tmp_0 = r0; + s.tmp_1 = game_Hitbox_constructor__P20186_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.width___29027; + s.tmp_1.arg3 = s.height___29035; + r0 = (s.minX___28942 & -256); + s.tmp_1.arg4 = r0; + r0 = (s.minY___28946 & -256); + s.tmp_1.arg5 = r0; + s.callLocIdx = 295; s.pc = 17; return s.tmp_1; case 17: + r0 = s.retval; + r0 = s.tmp_0; + case 11: return leave(s, r0) default: oops() } } } -console_inspect__P87903.info = {"start":2271,"length":1190,"line":81,"column":4,"endLine":114,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"inspect","argumentNames":["obj","maxElements"]} +game_calculateHitBox__P20195.info = {"start":3223,"length":1086,"line":103,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/game/hitbox.ts","functionName":"calculateHitBox","argumentNames":["s"]} -function console_inspect__P87903_mk(s) { +function game_calculateHitBox__P20195_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_inspect__P87903, depth: s.depth + 1, + parent: s, fn: game_calculateHitBox__P20195, depth: s.depth + 1, pc: 0, retval: undefined, 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___100054: undefined, - asString___100072: undefined, - keys___100084: undefined, - snipped___100088: undefined, + i___28939: undefined, + minX___28942: undefined, + minY___28946: undefined, + maxX___28950: undefined, + maxY___28952: undefined, + c___28954: undefined, + fxc___28955: undefined, + r___28962: undefined, + fxr___28963: undefined, + width___29027: undefined, + height___29035: undefined, arg0: undefined, - arg1: undefined, } } -function console_inspect_inline__P100105(s) { +function game_Hitbox_isValid__P20191(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16992,81 +15270,41 @@ switch (step) { 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; + r0 = s.arg0; + if (!checkSubtype(r0, game_Hitbox__C20179_VT)) failedCast(r0); + r0 = s.arg0.fields["hash"]; 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: + s.tmp_2 = Sprite_calcDimensionalHash__P20363_mk(s); + r0 = s.arg0.fields["parent"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 228; s.pc = 1; return s.tmp_2; + case 1: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + r0 = (s.tmp_0 === s.tmp_1); return leave(s, r0) default: oops() } } } -console_inspect_inline__P100105.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_Hitbox_isValid__P20191.info = {"start":935,"length":89,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"isValid","argumentNames":["this"]} -function console_inspect_inline__P100105_mk(s) { +function game_Hitbox_isValid__P20191_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_inspect_inline__P100105, depth: s.depth + 1, + parent: s, fn: game_Hitbox_isValid__P20191, depth: s.depth + 1, pc: 0, retval: undefined, 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_arraySlice__P87636(s) { +function Sprite_calcDimensionalHash__P20363(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17076,114 +15314,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___99235 = undefined; - s.len___99237 = undefined; - s.i___99271 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.res___99235 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___99237 = (r0); - r0 = (s.arg1 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.arg1 = (0); - { step = 4; continue; } - case 1: - r0 = (s.arg1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = Math_max__P87651_mk(s); - r0 = (s.len___99237 + s.arg1); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 8; s.pc = 16; return s.tmp_1; - case 16: - r0 = s.retval; - s.arg1 = (r0); - case 2: - case 3: - case 4: - r0 = (s.arg1 > s.len___99237); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.res___99235; - { step = 15; continue; } - case 5: - case 6: - r0 = (s.arg2 === undefined); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + r0 = s.arg0.fields["_image"]; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.revision(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 7; continue; } - s.arg2 = (s.len___99237); - { 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___99237 + s.arg2); - s.arg2 = (r0); - case 8: - case 9: - case 10: - r0 = (s.arg2 > s.len___99237); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.arg2 = (s.len___99237); - case 11: - case 12: - s.i___99271 = (s.arg1); - case 13: - r0 = (s.i___99271 < s.arg2); + 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 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - s.tmp_1 = r0 = s.res___99235; - r0 = pxsim_Array__getAt(s.arg0, s.i___99271); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___99271 + 1); - s.i___99271 = (r0); - { step = 13; continue; } - case 14: - r0 = s.res___99235; - case 15: + 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() } } } -helpers_arraySlice__P87636.info = {"start":9027,"length":690,"line":303,"column":4,"endLine":328,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySlice","argumentNames":["arr","start","end"]} +Sprite_calcDimensionalHash__P20363.info = {"start":9436,"length":138,"line":338,"column":4,"endLine":340,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"calcDimensionalHash","argumentNames":["this"]} -function helpers_arraySlice__P87636_mk(s) { +function Sprite_calcDimensionalHash__P20363_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySlice__P87636, depth: s.depth + 1, + parent: s, fn: Sprite_calcDimensionalHash__P20363, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - res___99235: undefined, - len___99237: undefined, - i___99271: 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 helpers_arrayJoin__P87624(s) { +function Fx_toIntShifted__P18127(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17193,144 +15375,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___100139 = undefined; - s.len___100140 = undefined; - s.i___100143 = 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___100139 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___100140 = (r0); - s.i___100143 = (0); - case 5: - r0 = (s.i___100143 < s.len___100140); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = (s.i___100143 > 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___100139) && (s.r___100139).vtable) { - setupResume(s, 15); - pxsim_String__stringConv(s.r___100139); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___100139) + ""; } - 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___100139 = (r0); - case 8: - case 9: - r0 = pxsim_Array__getAt(s.arg0, s.i___100143); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 + 8); 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___100143); - 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___100143); - case 13: - // jmp value (already in r0) - s.tmp_4 = r0; - if ((s.r___100139) && (s.r___100139).vtable) { - setupResume(s, 17); - pxsim_String__stringConv(s.r___100139); - checkResumeConsumed(); - return; - } else { s.retval = (s.r___100139) + ""; } - 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___100139 = (r0); - r0 = (s.i___100143 + 1); - s.i___100143 = (r0); - { step = 5; continue; } - case 14: - r0 = s.r___100139; + r0 = (s.tmp_0 >> s.tmp_1); return leave(s, r0) default: oops() } } } -helpers_arrayJoin__P87624.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"]} +Fx_toIntShifted__P18127.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 helpers_arrayJoin__P87624_mk(s) { +function Fx_toIntShifted__P18127_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayJoin__P87624, depth: s.depth + 1, + parent: s, fn: Fx_toIntShifted__P18127, depth: s.depth + 1, pc: 0, retval: undefined, 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___100139: undefined, - len___100140: undefined, - i___100143: undefined, arg0: undefined, arg1: undefined, } } @@ -17339,7 +15404,7 @@ function helpers_arrayJoin__P87624_mk(s) { -function scene_systemMenu_toggleStats__P92722(s) { +function game_Hitbox_constructor__P20186(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17349,57 +15414,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.stats___90489); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - globals.stats___90489 = (r0); - r0 = pxsim_numops_toBoolDecr(globals.stats___90489); - 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; } + 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__C20179_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Sprite_calcDimensionalHash__P20363_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 219; s.pc = 1; return s.tmp_2; case 1: - r0 = globals.control_EventContext_onStats___87919; - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - s.tmp_3 = lambda_2_mk(s); - s.tmp_3.argL = globals.control_EventContext_onStats___87919; - r0 = pxsim_String_.mkEmpty(); - s.tmp_3.arg0 = r0; - setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 1098; s.pc = 5; return s.tmp_3; - case 5: r0 = s.retval; - case 3: - case 4: + 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() } } } -scene_systemMenu_toggleStats__P92722.info = {"start":9642,"length":179,"line":300,"column":4,"endLine":305,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleStats","argumentNames":[]} +game_Hitbox_constructor__P20186.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 scene_systemMenu_toggleStats__P92722_mk(s) { +function game_Hitbox_constructor__P20186_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_toggleStats__P92722, depth: s.depth + 1, + parent: s, fn: game_Hitbox_constructor__P20186, depth: s.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, } } -function scene_systemMenu_brightnessDown__P92720(s) { +function Fx_floor__P18139(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17409,34 +15474,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_setScreenBrightness__P92721_mk(s); - r0 = globals.brightness___89472; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 5); - s.tmp_0.arg0 = r0; - s.callLocIdx = 1094; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = (s.arg0 & -256); return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessDown__P92720.info = {"start":9198,"length":87,"line":289,"column":4,"endLine":291,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessDown","argumentNames":[]} +Fx_floor__P18139.info = {"start":1919,"length":103,"line":62,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"floor","argumentNames":["v"]} -function scene_systemMenu_brightnessDown__P92720_mk(s) { +function Fx_floor__P18139_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessDown__P92720, depth: s.depth + 1, + parent: s, fn: Fx_floor__P18139, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, + arg0: undefined, } } -function scene_systemMenu_setScreenBrightness__P92721(s) { +function Fx_max__P18138(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17448,41 +15508,42 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = helpers_setScreenBrightness__P89486_mk(s); - s.tmp_0.arg0 = globals.screen___89553; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1095; s.pc = 1; return s.tmp_0; + r0 = (s.arg0 > s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0; + { step = 3; continue; } + { step = 2; continue; } case 1: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P89584_mk(s); - s.tmp_0.arg0 = "#brightness"; - r0 = globals.brightness___89472; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1097; 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() } } } -scene_systemMenu_setScreenBrightness__P92721.info = {"start":9291,"length":345,"line":293,"column":4,"endLine":298,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightness","argumentNames":["b"]} +Fx_max__P18138.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 scene_systemMenu_setScreenBrightness__P92721_mk(s) { +function Fx_max__P18138_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setScreenBrightness__P92721, depth: s.depth + 1, + parent: s, fn: Fx_max__P18138, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function settings_writeNumber__P89584(s) { +function Fx_min__P18137(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17497,34 +15558,30 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); + r0 = (s.arg0 < s.arg1); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg1); - s.tmp_1 = settings_writeBuffer__P89581_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_2 = msgpack_packNumberArray__P87705_mk(s); - s.tmp_2.arg0 = s.tmp_0; - s.callLocIdx = 124; s.pc = 2; return s.tmp_2; - case 2: - r0 = s.retval; - s.tmp_1.arg1 = r0; - s.callLocIdx = 125; s.pc = 1; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0; + { step = 3; continue; } + { step = 2; continue; } case 1: - r0 = s.retval; + r0 = s.arg1; + { step = 3; continue; } + case 2: r0 = undefined; + case 3: return leave(s, r0) default: oops() } } } -settings_writeNumber__P89584.info = {"start":2265,"length":122,"line":89,"column":4,"endLine":91,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeNumber","argumentNames":["key","value"]} +Fx_min__P18137.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 settings_writeNumber__P89584_mk(s) { +function Fx_min__P18137_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeNumber__P89584, depth: s.depth + 1, + parent: s, fn: Fx_min__P18137, 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, } } @@ -17533,7 +15590,7 @@ function settings_writeNumber__P89584_mk(s) { -function settings_writeBuffer__P89581(s) { +function Fx_mul__P18131(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17548,24 +15605,18 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim.settings._set(s.arg0, s.arg1); + r0 = pxsim.Math_.imul(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; + r0 = (s.tmp_0 >> 8); return leave(s, r0) default: oops() } } } -settings_writeBuffer__P89581.info = {"start":1538,"length":290,"line":63,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeBuffer","argumentNames":["key","value"]} +Fx_mul__P18131.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 settings_writeBuffer__P89581_mk(s) { +function Fx_mul__P18131_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeBuffer__P89581, depth: s.depth + 1, + parent: s, fn: Fx_mul__P18131, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -17576,7 +15627,7 @@ function settings_writeBuffer__P89581_mk(s) { -function msgpack_packNumberArray__P87705(s) { +function Fx_sub__P18130(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17586,108 +15637,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.off___100229 = undefined; - s.n___100231 = undefined; - s.unnamed698___U2 = undefined; - s.unnamed699___U3 = undefined; - s.buf___100241 = undefined; - s.n___100247 = undefined; - s.unnamed700___U6 = undefined; - s.unnamed701___U7 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.off___100229 = (0); - s.n___100231 = (undefined); - s.unnamed698___U2 = (s.arg0); - s.unnamed699___U3 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed699___U3; - r0 = pxsim_Array__length(s.unnamed698___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed698___U2, s.unnamed699___U3); - s.n___100231 = (r0); - s.tmp_2 = r0 = s.off___100229; - s.tmp_4 = msgpack_packNumberCore__P91896_mk(s); - s.tmp_4.arg0 = null; - s.tmp_4.arg1 = s.off___100229; - s.tmp_4.arg2 = s.n___100231; - s.callLocIdx = 21; s.pc = 5; return s.tmp_4; - case 5: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.off___100229 = (r0); - r0 = (s.unnamed699___U3 + 1); - s.unnamed699___U3 = (r0); - { step = 1; continue; } - case 2: - s.unnamed698___U2 = (undefined); - r0 = pxsim.control.createBuffer(s.off___100229); - s.buf___100241 = (r0); - s.off___100229 = (0); - s.n___100247 = (undefined); - s.unnamed700___U6 = (s.arg0); - s.unnamed701___U7 = (0); - case 3: - s.tmp_0 = r0 = s.unnamed701___U7; - r0 = pxsim_Array__length(s.unnamed700___U6); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed700___U6, s.unnamed701___U7); - s.n___100247 = (r0); - s.tmp_2 = r0 = s.off___100229; - s.tmp_4 = msgpack_packNumberCore__P91896_mk(s); - s.tmp_4.arg0 = s.buf___100241; - s.tmp_4.arg1 = s.off___100229; - s.tmp_4.arg2 = s.n___100247; - s.callLocIdx = 22; s.pc = 6; return s.tmp_4; - case 6: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.off___100229 = (r0); - r0 = (s.unnamed701___U7 + 1); - s.unnamed701___U7 = (r0); - { step = 3; continue; } - case 4: - s.unnamed700___U6 = (undefined); - r0 = s.buf___100241; + r0 = (s.arg0 - s.arg1); return leave(s, r0) default: oops() } } } -msgpack_packNumberArray__P87705.info = {"start":3427,"length":330,"line":117,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"packNumberArray","argumentNames":["nums"]} +Fx_sub__P18130.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 msgpack_packNumberArray__P87705_mk(s) { +function Fx_sub__P18130_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberArray__P87705, depth: s.depth + 1, + parent: s, fn: Fx_sub__P18130, depth: s.depth + 1, pc: 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___100229: undefined, - n___100231: undefined, - unnamed698___U2: undefined, - unnamed699___U3: undefined, - buf___100241: undefined, - n___100247: undefined, - unnamed700___U6: undefined, - unnamed701___U7: undefined, arg0: undefined, + arg1: undefined, } } -function msgpack_packNumberCore__P91896(s) { +function game_Hitbox_updateIfInvalid__P20193(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17697,154 +15671,155 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tag___100261 = undefined; - s.fmt___100304 = undefined; + s.newHitBox___29136 = undefined; + s.oMinX___29141 = undefined; + s.oMinY___29144 = undefined; + s.oMaxX___29147 = undefined; + s.oMaxY___29153 = undefined; + s.nMinX___29159 = undefined; + s.nMinY___29162 = undefined; + s.nMaxX___29165 = undefined; + s.nMaxY___29171 = undefined; + s.xDiff___29177 = undefined; + s.yDiff___29188 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tag___100261 = (203); - s.tmp_1 = r0 = s.arg2; - r0 = (s.arg2 << 0); - s.tmp_2 = r0; - r0 = (s.tmp_1 == s.tmp_2); + r0 = s.arg0; + if (!checkSubtype(r0, game_Hitbox__C20179_VT)) failedCast(r0); + s.tmp_1 = game_Hitbox_isValid__P20191_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 233; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + { step = 7; 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_2 = game_calculateHitBox__P20195_mk(s); + r0 = s.arg0.fields["parent"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 234; s.pc = 9; return s.tmp_2; + case 9: + r0 = s.retval; + s.newHitBox___29136 = (r0); + r0 = s.arg0.fields["ox"]; + s.oMinX___29141 = (r0); + r0 = s.arg0.fields["oy"]; + s.oMinY___29144 = (r0); + r0 = s.arg0.fields["width"]; 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___100261 = (204); - { step = 11; continue; } - case 8: - r0 = (s.arg2 <= 65535); + r0 = (s.oMinX___29141 + s.tmp_0); + s.oMaxX___29147 = (r0); + r0 = s.arg0.fields["height"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - s.tag___100261 = (205); - { step = 10; continue; } - case 9: - s.tag___100261 = (206); + r0 = (s.oMinY___29144 + s.tmp_0); + s.oMaxY___29153 = (r0); + r0 = s.newHitBox___29136.fields["ox"]; + s.nMinX___29159 = (r0); + r0 = s.newHitBox___29136.fields["oy"]; + s.nMinY___29162 = (r0); + r0 = s.newHitBox___29136.fields["width"]; + s.tmp_0 = r0; + r0 = (s.nMinX___29159 + s.tmp_0); + s.nMaxX___29165 = (r0); + r0 = s.newHitBox___29136.fields["height"]; + s.tmp_0 = r0; + r0 = (s.nMinY___29162 + s.tmp_0); + s.nMaxY___29171 = (r0); + s.tmp_1 = Fx_abs__P18136_mk(s); + r0 = (s.oMinX___29141 - s.nMinX___29159); + s.tmp_1.arg0 = r0; + s.callLocIdx = 240; s.pc = 10; return s.tmp_1; case 10: + r0 = s.retval; + s.tmp_0 = r0; + s.tmp_3 = Fx_abs__P18136_mk(s); + r0 = (s.oMaxX___29147 - s.nMaxX___29165); + s.tmp_3.arg0 = r0; + s.callLocIdx = 242; s.pc = 11; return s.tmp_3; case 11: - { step = 17; continue; } + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_0 + s.tmp_2); + s.xDiff___29177 = (r0); + s.tmp_1 = Fx_abs__P18136_mk(s); + r0 = (s.oMinY___29144 - s.nMinY___29162); + s.tmp_1.arg0 = r0; + s.callLocIdx = 245; s.pc = 12; return s.tmp_1; case 12: - r0 = (-127 <= s.arg2); + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - s.tag___100261 = (208); - { step = 16; continue; } + s.tmp_3 = Fx_abs__P18136_mk(s); + r0 = (s.oMaxY___29153 - s.nMaxY___29171); + s.tmp_3.arg0 = r0; + s.callLocIdx = 247; s.pc = 13; return s.tmp_3; case 13: - r0 = (-32767 <= s.arg2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - s.tag___100261 = (209); - { step = 15; continue; } - case 14: - s.tag___100261 = (210); - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - s.tmp_0 = msgpack_tagFormat__P91895_mk(s); - s.tmp_0.arg0 = s.tag___100261; - s.callLocIdx = 17; s.pc = 24; return s.tmp_0; - case 24: r0 = s.retval; - s.fmt___100304 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg0); - if (!r0) { step = 21; continue; } - r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___100261); - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.fmt___100304; - 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__P87696_mk(s); - s.tmp_1.arg0 = s.fmt___100304; - s.callLocIdx = 18; s.pc = 25; return s.tmp_1; - case 25: - r0 = s.retval; + r0 = (s.tmp_0 + s.tmp_2); + s.yDiff___29188 = (r0); + r0 = (s.xDiff___29177 > 512); s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - case 23: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = (s.arg0).fields["ox"] = (s.nMinX___29159); + r0 = s.newHitBox___29136.fields["width"]; + s.tmp_0 = r0; + r0 = (s.arg0).fields["width"] = (s.tmp_0); + case 3: + case 4: + r0 = (s.yDiff___29188 > 512); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = (s.arg0).fields["oy"] = (s.nMinY___29162); + r0 = s.newHitBox___29136.fields["height"]; + s.tmp_0 = r0; + r0 = (s.arg0).fields["height"] = (s.tmp_0); + case 5: + case 6: + r0 = s.newHitBox___29136.fields["hash"]; + s.tmp_0 = r0; + r0 = (s.arg0).fields["hash"] = (s.tmp_0); + case 7: + r0 = undefined; return leave(s, r0) default: oops() } } } -msgpack_packNumberCore__P91896.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_Hitbox_updateIfInvalid__P20193.info = {"start":1188,"length":1317,"line":48,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"updateIfInvalid","argumentNames":["this"]} -function msgpack_packNumberCore__P91896_mk(s) { +function game_Hitbox_updateIfInvalid__P20193_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberCore__P91896, depth: s.depth + 1, + parent: s, fn: game_Hitbox_updateIfInvalid__P20193, depth: s.depth + 1, pc: 0, retval: undefined, 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___100261: undefined, - fmt___100304: undefined, + newHitBox___29136: undefined, + oMinX___29141: undefined, + oMinY___29144: undefined, + oMaxX___29147: undefined, + oMaxY___29153: undefined, + nMinX___29159: undefined, + nMinY___29162: undefined, + nMaxX___29165: undefined, + nMaxY___29171: undefined, + xDiff___29177: undefined, + yDiff___29188: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function msgpack_tagFormat__P91895(s) { +function Fx_abs__P18136(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17858,58 +15833,28 @@ switch (step) { 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; } + r0 = (s.arg0 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = (0 - s.arg0); + { step = 3; continue; } + { step = 2; continue; } case 1: - r0 = 16; - { step = 9; continue; } + r0 = s.arg0; + { step = 3; 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: + case 3: return leave(s, r0) default: oops() } } } -msgpack_tagFormat__P91895.info = {"start":1145,"length":481,"line":42,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"tagFormat","argumentNames":["tag"]} +Fx_abs__P18136.info = {"start":1506,"length":164,"line":44,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"abs","argumentNames":["a"]} -function msgpack_tagFormat__P91895_mk(s) { +function Fx_abs__P18136_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_tagFormat__P91895, depth: s.depth + 1, + parent: s, fn: Fx_abs__P18136, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -17919,7 +15864,7 @@ function msgpack_tagFormat__P91895_mk(s) { -function pins_sizeOf__P87696(s) { +function Sprite_sy__P20343(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17933,20 +15878,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Buffer_sizeOfNumberFormat__P87736_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 16; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + r0 = s.arg0.fields["_sy"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -pins_sizeOf__P87696.info = {"start":42,"length":101,"line":2,"column":4,"endLine":4,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOf","argumentNames":["format"]} +Sprite_sy__P20343.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__P20343.isGetter = true; -function pins_sizeOf__P87696_mk(s) { +function Sprite_sy__P20343_mk(s) { checkStack(s.depth); return { - parent: s, fn: pins_sizeOf__P87696, depth: s.depth + 1, + parent: s, fn: Sprite_sy__P20343, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -17956,91 +15902,35 @@ function pins_sizeOf__P87696_mk(s) { -function Buffer_sizeOfNumberFormat__P87736(s) { +function Sprite_sx__P20341(s) { let r0 = s.r0, step = s.pc; s.pc = -1; while (true) { if (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) +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + r0 = s.arg0.fields["_sx"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -Buffer_sizeOfNumberFormat__P87736.info = {"start":14912,"length":856,"line":508,"column":4,"endLine":532,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOfNumberFormat","argumentNames":["format"]} +Sprite_sx__P20341.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__P20341.isGetter = true; -function Buffer_sizeOfNumberFormat__P87736_mk(s) { +function Sprite_sx__P20341_mk(s) { checkStack(s.depth); return { - parent: s, fn: Buffer_sizeOfNumberFormat__P87736, depth: s.depth + 1, + parent: s, fn: Sprite_sx__P20341, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -18050,7 +15940,7 @@ function Buffer_sizeOfNumberFormat__P87736_mk(s) { -function helpers_setScreenBrightness__P89486(s) { +function Sprite_image__P20361(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18062,41 +15952,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = Math_clamp__P87648_mk(s); - s.tmp_0.arg0 = 10; - s.tmp_0.arg1 = 100; - r0 = (s.arg1 | 0); - s.tmp_0.arg2 = r0; - s.callLocIdx = 87; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.arg1 = (r0); - globals.brightness___89472 = (s.arg1); - r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___89472); - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + r0 = s.arg0.fields["_image"]; + return leaveAccessor(s, r0) default: oops() } } } -helpers_setScreenBrightness__P89486.info = {"start":8945,"length":210,"line":282,"column":4,"endLine":286,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]} +Sprite_image__P20361.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__P20361.isGetter = true; -function helpers_setScreenBrightness__P89486_mk(s) { +function Sprite_image__P20361_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_setScreenBrightness__P89486, depth: s.depth + 1, + parent: s, fn: Sprite_image__P20361, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function scene_systemMenu_brightnessUp__P92719(s) { +function effects_ParticleEffect_start__P21235(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18106,34 +15985,112 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_setScreenBrightness__P92721_mk(s); - r0 = globals.brightness___89472; + s.src___29257 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, effects_ParticleEffect__C21233_VT)) failedCast(r0); + r0 = s.arg0.fields["sourceFactory"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 + 5); - s.tmp_0.arg0 = r0; - s.callLocIdx = 1092; s.pc = 1; return s.tmp_0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 9; continue; } case 1: + case 2: + r0 = pxsim_numops_toBoolDecr(s.arg3); + if (!r0) { step = 3; continue; } + r0 = s.arg3; + { step = 4; 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 = 1249; 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 = 1249; s.pc = 10; return s.tmp_4; } + else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1249; s.pc = 10; return s.tmp_4;; } + else { s.callLocIdx = 1249; s.pc = 10; return s.tmp_4; } + } + case 10: + r0 = s.retval; + s.src___29257 = (r0); + s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P21133_mk(s); + s.tmp_0.arg0 = s.src___29257; + 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 = 1250; 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"]; + case 6: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.src___29257).fields["lifespan"] = (s.tmp_1); + case 7: + case 8: + case 9: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessUp__P92719.info = {"start":9107,"length":85,"line":285,"column":4,"endLine":287,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessUp","argumentNames":[]} +effects_ParticleEffect_start__P21235.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 scene_systemMenu_brightnessUp__P92719_mk(s) { +function effects_ParticleEffect_start__P21235_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessUp__P92719, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_start__P21235, depth: s.depth + 1, pc: 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___29257: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function scene_systemMenu_volumeDown__P92718(s) { +function particles_ParticleSource_setRelativeToCamera__P21133(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18143,54 +16100,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___100577 = undefined; - s.remainder___100580 = undefined; - s.newVolume___100583 = undefined; - s.tmp_0 = music_volume__P89142_mk(s); - s.callLocIdx = 1089; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.v___100577 = (r0); - r0 = (s.v___100577 % 32); - s.remainder___100580 = (r0); - r0 = pxsim_numops_toBoolDecr(s.remainder___100580); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C21122_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } - r0 = s.remainder___100580; + 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: - r0 = 32; + 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: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = (s.v___100577 - s.tmp_0); - s.newVolume___100583 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P92716_mk(s); - s.tmp_0.arg0 = s.newVolume___100583; - s.callLocIdx = 1090; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeDown__P92718.info = {"start":8914,"length":187,"line":278,"column":4,"endLine":283,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"volumeDown","argumentNames":[]} +particles_ParticleSource_setRelativeToCamera__P21133.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 scene_systemMenu_volumeDown__P92718_mk(s) { +function particles_ParticleSource_setRelativeToCamera__P21133_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeDown__P92718, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRelativeToCamera__P21133, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - v___100577: undefined, - remainder___100580: undefined, - newVolume___100583: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_setVolume__P92716(s) { +function Sprite_setFlag__P20390(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18202,45 +16164,59 @@ 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 = music_setVolume__P89141_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1084; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20312_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: - r0 = s.retval; - s.tmp_0 = music_playTone__P89143_mk(s); - s.tmp_0.arg0 = 440; - s.tmp_0.arg1 = 500; - s.callLocIdx = 1085; s.pc = 2; return s.tmp_0; + 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; - s.tmp_0 = settings_writeNumber__P89584_mk(s); - s.tmp_0.arg0 = "#volume"; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1086; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_setVolume__P92716.info = {"start":8565,"length":166,"line":265,"column":4,"endLine":269,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setVolume","argumentNames":["newVolume"]} +Sprite_setFlag__P20390.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 scene_systemMenu_setVolume__P92716_mk(s) { +function Sprite_setFlag__P20390_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setVolume__P92716, depth: s.depth + 1, + parent: s, fn: Sprite_setFlag__P20390, depth: s.depth + 1, pc: 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 music_playTone__P89143(s) { +function Sprite__destroyCore__P20400(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18250,82 +16226,134 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.id___100418 = undefined; + s.scene___28600 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtrt.mklocRef(); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1); - s.arg1 = (s.tmp_0); - r0 = pxsim_pxtrt_ldlocRef(s.arg1); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["flags"]; s.tmp_2 = r0; - r0 = (s.tmp_2 == 0); + r0 = (s.tmp_2 | 2); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 1; continue; } - r0 = pxsim_pxtrt_stlocRef(s.arg1, 86400000); - case 1: - case 2: - r0 = pxsim_pxtrt_ldlocRef(s.arg1); + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 433; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.scene___28600 = (r0); + r0 = s.scene___28600.fields["allSprites"]; + s.tmp_0 = r0; + r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); + r0 = s.arg0.fields["_kind"]; s.tmp_1 = r0; - r0 = (s.tmp_1 <= 2000); + r0 = (s.tmp_1 >= 0); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.scene___28600.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_2 = music_playNoteCore__P91995_mk(s); - s.tmp_2.arg0 = 0; - s.tmp_2.arg1 = s.arg0; - r0 = pxsim_pxtrt_ldlocRef(s.arg1); - s.tmp_2.arg2 = r0; - s.callLocIdx = 64; s.pc = 5; return s.tmp_2; - case 5: + s.tmp_5 = sprites_SpriteSet_remove__P20441_mk(s); + r0 = s.scene___28600.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 = 437; s.pc = 8; return s.tmp_5; + case 8: r0 = s.retval; - s.tmp_0 = pause__P87934_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.arg1); + case 3: + case 4: + s.tmp_0 = PhysicsEngine__C20482_v1_2_mk(s); + r0 = s.scene___28600.fields["physicsEngine"]; s.tmp_0.arg0 = r0; - s.callLocIdx = 65; s.pc = 6; return s.tmp_0; - case 6: + s.tmp_0.arg1 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C20482_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; - { step = 4; continue; } - case 3: - r0 = (globals.playToneID___91997 + 1); + r0 = s.arg0.fields["destroyHandler"]; s.tmp_0 = r0; - globals.playToneID___91997 = (r0); - s.id___100418 = (s.tmp_0); - r0 = pxsim_pxtcore_mkAction(3, music_playTone_inline__P100424); + 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 = 438; 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 = 438; s.pc = 10; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 438; s.pc = 10; return s.tmp_1;; } + else { s.callLocIdx = 438; s.pc = 10; return s.tmp_1; } + } + case 10: + r0 = s.retval; + case 5: + case 6: + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P28629); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___100418); - 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); - case 4: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtcore_mkAction(1, Sprite__destroyCore_inline__P28636); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); + s.tmp_2 = helpers_arrayForEach__P18080_mk(s); + s.tmp_3 = helpers_arrayFilter__P18081_mk(s); + r0 = s.scene___28600.fields["destroyedHandlers"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.tmp_0; + s.callLocIdx = 440; 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 = 442; s.pc = 11; return s.tmp_2; + case 11: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -music_playTone__P89143.info = {"start":2612,"length":831,"line":84,"column":4,"endLine":109,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"playTone","argumentNames":["frequency","ms"]} +Sprite__destroyCore__P20400.info = {"start":26792,"length":522,"line":870,"column":4,"endLine":882,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]} -function music_playTone__P89143_mk(s) { +function Sprite__destroyCore__P20400_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playTone__P89143, depth: s.depth + 1, + parent: s, fn: Sprite__destroyCore__P20400, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - id___100418: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + scene___28600: undefined, arg0: undefined, - arg1: undefined, } } -function music_playTone_inline__P100424(s) { +function forEach_inline__P28629(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18335,106 +16363,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pos___100425 = undefined; - s.now___100435 = undefined; - s.d___100438 = undefined; - s.t___100442 = undefined; - r0 = pxsim.control.millis(); - s.pos___100425 = (r0); - case 1: - r0 = (s.caps[0] == globals.playToneID___91997); - 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_pxtrt_ldlocRef(s.caps[1]); - s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); - case 3: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 6; continue; } - r0 = pxsim.control.millis(); - s.now___100435 = (r0); - r0 = (s.pos___100425 - s.now___100435); - s.d___100438 = (r0); - s.tmp_0 = Math_min__P87652_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 500; - s.callLocIdx = 66; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.t___100442 = (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___100442); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = (s.pos___100425 + s.t___100442); - s.pos___100425 = (r0); - s.tmp_0 = music_playNoteCore__P91995_mk(s); - r0 = (s.d___100438 - 1); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.caps[2]; - s.tmp_0.arg2 = s.t___100442; - s.callLocIdx = 67; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_1 = r0; - r0 = (s.tmp_1 == 0); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0.fields["kind"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_2 = pause__P87934_mk(s); - r0 = (s.d___100438 + s.t___100442); - s.tmp_2.arg0 = r0; - s.callLocIdx = 68; s.pc = 9; return s.tmp_2; - case 9: - r0 = s.retval; - { step = 5; continue; } - case 4: - s.tmp_0 = pause__P87934_mk(s); - r0 = (s.d___100438 + s.t___100442); + r0 = s.caps[0].fields["_kind"]; s.tmp_1 = r0; - r0 = (s.tmp_1 - 100); - s.tmp_0.arg0 = r0; - s.callLocIdx = 69; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - case 5: - { step = 1; continue; } - case 6: - r0 = undefined; + r0 = (s.tmp_0 == s.tmp_1); return leave(s, r0) default: oops() } } } -music_playTone_inline__P100424.info = {"start":2911,"length":515,"line":93,"column":34,"endLine":107,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} +forEach_inline__P28629.info = {"start":27237,"length":26,"line":880,"column":20,"endLine":880,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function music_playTone_inline__P100424_mk(s) { +function forEach_inline__P28629_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playTone_inline__P100424, depth: s.depth + 1, + parent: s, fn: forEach_inline__P28629, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - pos___100425: undefined, - now___100435: undefined, - d___100438: undefined, - t___100442: undefined, + arg0: undefined, } } -function music_playNoteCore__P91995(s) { +function Sprite__destroyCore_inline__P28636(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18444,57 +16401,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___100472 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim.control.createBuffer(12); - s.buf___100472 = (r0); - s.tmp_0 = music_addNote__P89157_mk(s); - s.tmp_0.arg0 = s.buf___100472; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = 255; - s.tmp_0.arg4 = 255; - s.tmp_0.arg5 = 3; - s.tmp_0.arg6 = s.arg1; - s.tmp_1 = music_volume__P89142_mk(s); - s.callLocIdx = 62; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg7 = r0; - s.tmp_0.arg8 = s.arg1; - s.callLocIdx = 63; s.pc = 1; return s.tmp_0; + 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 = 441; 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 = 441; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 441; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 441; s.pc = 1; return s.tmp_0; } + } case 1: r0 = s.retval; - r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___100472); r0 = undefined; return leave(s, r0) default: oops() } } } -music_playNoteCore__P91995.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"]} +Sprite__destroyCore_inline__P28636.info = {"start":27286,"length":20,"line":881,"column":21,"endLine":881,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function music_playNoteCore__P91995_mk(s) { +function Sprite__destroyCore_inline__P28636_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playNoteCore__P91995, depth: s.depth + 1, + parent: s, fn: Sprite__destroyCore_inline__P28636, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - buf___100472: undefined, + arg0: undefined, +} } + + + + + +function PhysicsEngine_removeSprite__P20485(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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, PhysicsEngine__C20482_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +PhysicsEngine_removeSprite__P20485.info = {"start":159,"length":32,"line":10,"column":4,"endLine":10,"endColumn":36,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} + +function PhysicsEngine_removeSprite__P20485_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: PhysicsEngine_removeSprite__P20485, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function music_addNote__P89157(s) { +function sprites_SpriteSet_remove__P20441(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18504,91 +16484,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.i___28645 = 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.lambdaArgs = null; } - r0 = (s.arg2 > 0); + r0 = s.arg0; + if (!checkSubtype(r0, sprites_SpriteSet__C20434_VT)) failedCast(r0); + r0 = s.arg0.fields["_sprites"]; + s.tmp_0 = r0; + r0 = pxsim_Array_.indexOf(s.tmp_0, s.arg1, undefined); + s.i___28645 = (r0); + r0 = (s.i___28645 > -1); 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); + s.tmp_1 = helpers_arraySplice__P18071_mk(s); + r0 = s.arg0.fields["_sprites"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.i___28645; + s.tmp_1.arg2 = 1; + s.callLocIdx = 516; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + r0 = true; + { step = 3; continue; } case 1: case 2: - r0 = pxsim.BufferMethods.setNumber(s.arg0, 2, s.arg1, 0); - r0 = s.arg1; + r0 = false; + case 3: return leave(s, r0) default: oops() } } } -music_addNote__P89157.info = {"start":10288,"length":911,"line":323,"column":4,"endLine":336,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"addNote","argumentNames":["sndInstr","sndInstrPtr","ms","beg","end","soundWave","hz","volume","endHz"]} +sprites_SpriteSet_remove__P20441.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 music_addNote__P89157_mk(s) { +function sprites_SpriteSet_remove__P20441_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_addNote__P89157, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_remove__P20441, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, + i___28645: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, - arg7: undefined, - arg8: undefined, } } -function music_setVolume__P89141(s) { +function Sprite_kind__P20378(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18602,48 +16549,114 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Math_clamp__P87648_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_0.arg1 = 255; - r0 = (s.arg0 | 0); - s.tmp_0.arg2 = r0; - s.callLocIdx = 59; s.pc = 3; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + r0 = s.arg0.fields["_kind"]; + return leave(s, r0) + default: oops() +} } } +Sprite_kind__P20378.info = {"start":12573,"length":41,"line":453,"column":4,"endLine":455,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"kind","argumentNames":["this"]} + +function Sprite_kind__P20378_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_kind__P20378, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function game_popScene__P20975(s) { +let r0 = s.r0, 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___28311 = undefined; + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 953; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.oldScene___28311 = (r0); + s.tmp_0 = r0 = globals._sceneStack___22905; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_Array__length(globals._sceneStack___22905); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + r0 = pxsim_Array_.pop(globals._sceneStack___22905); + globals._scene___22904 = (r0); + s.tmp_0 = control_popEventContext__P18381_mk(s); + s.callLocIdx = 954; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + { step = 6; continue; } case 3: + r0 = pxsim_numops_toBoolDecr(globals._scene___22904); + if (!r0) { step = 4; continue; } + s.tmp_0 = control_popEventContext__P18381_mk(s); + s.callLocIdx = 955; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + globals._scene___22904 = (undefined); + case 4: + case 5: + case 6: + r0 = pxsim_numops_toBoolDecr(globals._scene___22904); + if (!r0) { step = 7; continue; } + s.tmp_0 = particles_enableAll__P21154_mk(s); + s.callLocIdx = 956; s.pc = 14; return s.tmp_0; + case 14: r0 = s.retval; - globals.globalVolume___91990 = (r0); - r0 = (globals.globalVolume___91990 > 0); + case 7: + case 8: + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___22907); + if (!r0) { step = 9; continue; } + r0 = pxsim_pxtcore_mkAction(1, game_popScene_inline__P28332); 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; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = undefined; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___28311); + s.tmp_1 = helpers_arrayForEach__P18080_mk(s); + s.tmp_1.arg0 = globals._scenePopHandlers___22907; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 958; s.pc = 15; return s.tmp_1; + case 15: + r0 = s.retval; + case 9: + case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -music_setVolume__P89141.info = {"start":1533,"length":153,"line":51,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"setVolume","argumentNames":["volume"]} +game_popScene__P20975.info = {"start":5133,"length":548,"line":161,"column":4,"endLine":179,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]} -function music_setVolume__P89141_mk(s) { +function game_popScene__P20975_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_setVolume__P89141, depth: s.depth + 1, + parent: s, fn: game_popScene__P20975, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, + oldScene___28311: undefined, } } -function music_enableAmp__P91993(s) { +function game_popScene_inline__P28332(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18657,17 +16670,25 @@ 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 = 957; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -music_enableAmp__P91993.info = {"start":944,"length":64,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"enableAmp","argumentNames":["en"]} +game_popScene_inline__P28332.info = {"start":5645,"length":18,"line":177,"column":38,"endLine":177,"endColumn":56,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} -function music_enableAmp__P91993_mk(s) { +function game_popScene_inline__P28332_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_enableAmp__P91993, depth: s.depth + 1, + parent: s, fn: game_popScene_inline__P28332, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -18675,7 +16696,7 @@ function music_enableAmp__P91993_mk(s) { -function scene_systemMenu_volumeUp__P92717(s) { +function particles_enableAll__P21154(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18685,47 +16706,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___100386 = undefined; - s.remainder___100389 = undefined; - s.newVolume___100392 = undefined; - s.tmp_0 = music_volume__P89142_mk(s); - s.callLocIdx = 1087; s.pc = 1; return s.tmp_0; - case 1: + s.sources___28336 = undefined; + s.tmp_0 = particles_particleSources__P23254_mk(s); + s.callLocIdx = 1195; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.v___100386 = (r0); - r0 = (s.v___100386 % 32); - s.remainder___100389 = (r0); - r0 = (s.v___100386 + 32); - s.tmp_0 = r0; - r0 = (s.tmp_0 - s.remainder___100389); - s.newVolume___100392 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P92716_mk(s); - s.tmp_0.arg0 = s.newVolume___100392; - s.callLocIdx = 1088; s.pc = 2; return s.tmp_0; - case 2: + s.sources___28336 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___28336); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayForEach__P18080_mk(s); + s.tmp_0.arg0 = s.sources___28336; + s.tmp_0.arg1 = particles_enableAll_inline__P28342; + s.callLocIdx = 1197; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = particles_pruneParticles__P23250_mk(s); + s.callLocIdx = 1198; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeUp__P92717.info = {"start":8737,"length":171,"line":271,"column":4,"endLine":276,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"volumeUp","argumentNames":[]} +particles_enableAll__P21154.info = {"start":12649,"length":193,"line":413,"column":4,"endLine":419,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]} -function scene_systemMenu_volumeUp__P92717_mk(s) { +function particles_enableAll__P21154_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeUp__P92717, depth: s.depth + 1, + parent: s, fn: particles_enableAll__P21154, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - v___100386: undefined, - remainder___100389: undefined, - newVolume___100392: undefined, + sources___28336: undefined, } } -function game_consoleOverlay_isVisible__P90645(s) { +function particles_enableAll_inline__P28342(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18735,33 +16755,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___92758); - 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); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = particles_ParticleSource_enabled__P21135_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = true; + s.callLocIdx = 1196; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = true; return leave(s, r0) default: oops() } } } -game_consoleOverlay_isVisible__P90645.info = {"start":422,"length":68,"line":11,"column":4,"endLine":13,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"isVisible","argumentNames":[]} +particles_enableAll_inline__P28342.info = {"start":12773,"length":21,"line":416,"column":28,"endLine":416,"endColumn":49,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function game_consoleOverlay_isVisible__P90645_mk(s) { +function particles_enableAll_inline__P28342_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_isVisible__P90645, depth: s.depth + 1, + parent: s, fn: particles_enableAll_inline__P28342, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, + arg0: undefined, } } -function scene_systemMenu_closeMenu__P90623(s) { +function particles_particleSources__P23254(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18771,44 +16794,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___92712); - if (!r0) { step = 1; continue; } - s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P90622_mk(s); - s.tmp_0.arg0 = globals.instance___92712; - s.callLocIdx = 1103; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - globals.instance___92712 = (undefined); - s.tmp_0 = controller__setUserEventsEnabled__P89727_mk(s); - s.tmp_0.arg0 = true; - s.callLocIdx = 1104; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = game_popScene__P90525_mk(s); - s.callLocIdx = 1105; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; + s.sources___28510 = undefined; + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 1199; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = undefined; + r0 = s.retval; + r0 = r0.fields["particleSources"]; + s.sources___28510 = (r0); + r0 = s.sources___28510; return leave(s, r0) default: oops() } } } -scene_systemMenu_closeMenu__P90623.info = {"start":10129,"length":216,"line":320,"column":4,"endLine":327,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"closeMenu","argumentNames":[]} +particles_particleSources__P23254.info = {"start":12848,"length":119,"line":421,"column":4,"endLine":424,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]} -function scene_systemMenu_closeMenu__P90623_mk(s) { +function particles_particleSources__P23254_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_closeMenu__P90623, depth: s.depth + 1, + parent: s, fn: particles_particleSources__P23254, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + sources___28510: undefined, } } -function scene_systemMenu_PauseMenu_dispose__P90622(s) { +function particles_pruneParticles__P23250(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18818,47 +16830,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; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C90616_VT)) failedCast(r0); - r0 = s.arg0.fields["options"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_arrayForEach__P87630_mk(s); - r0 = s.arg0.fields["options"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = scene_systemMenu_PauseMenu_dispose_inline__P99354; - s.callLocIdx = 1080; s.pc = 3; return s.tmp_1; + s.sources___28347 = undefined; + s.tmp_0 = particles_particleSources__P23254_mk(s); + s.callLocIdx = 1182; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - r0 = (s.arg0).fields["options"] = (undefined); + s.sources___28347 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___28347); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayForEach__P18080_mk(s); + s.tmp_1 = helpers_arraySlice__P18086_mk(s); + s.tmp_1.arg0 = s.sources___28347; + s.tmp_1.arg1 = 0; + r0 = pxsim_Array__length(s.sources___28347); + s.tmp_1.arg2 = r0; + s.callLocIdx = 1183; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = particles_pruneParticles_inline__P28356; + s.callLocIdx = 1185; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; case 1: case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_dispose__P90622.info = {"start":7732,"length":165,"line":243,"column":8,"endLine":248,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"dispose","argumentNames":["this"]} +particles_pruneParticles__P23250.info = {"start":9864,"length":156,"line":327,"column":4,"endLine":330,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]} -function scene_systemMenu_PauseMenu_dispose__P90622_mk(s) { +function particles_pruneParticles__P23250_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_dispose__P90622, depth: s.depth + 1, + parent: s, fn: particles_pruneParticles__P23250, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, + sources___28347: undefined, } } -function scene_systemMenu_PauseMenu_dispose_inline__P99354(s) { +function particles_pruneParticles_inline__P28356(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18872,21 +16888,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = scene_systemMenu_MenuOption_dispose__P90615_mk(s); + s.tmp_0 = particles_ParticleSource__prune__P21130_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1079; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1184; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_dispose_inline__P99354.info = {"start":7813,"length":16,"line":245,"column":37,"endLine":245,"endColumn":53,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["o"]} +particles_pruneParticles_inline__P28356.info = {"start":9997,"length":15,"line":329,"column":62,"endLine":329,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function scene_systemMenu_PauseMenu_dispose_inline__P99354_mk(s) { +function particles_pruneParticles_inline__P28356_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_dispose_inline__P99354, depth: s.depth + 1, + parent: s, fn: particles_pruneParticles_inline__P28356, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -18896,7 +16912,7 @@ function scene_systemMenu_PauseMenu_dispose_inline__P99354_mk(s) { -function scene_systemMenu_MenuOption_dispose__P90615(s) { +function particles_ParticleSource__prune__P21130(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18906,134 +16922,155 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___28386 = undefined; + s.sources___28394 = undefined; + s.current___28408 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C90608_VT)) failedCast(r0); - r0 = s.arg0.fields["card"]; + if (!checkSubtype(r0, particles_ParticleSource__C21122_VT)) failedCast(r0); + case 1: + r0 = s.arg0.fields["head"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = Sprite_destroy__P89949_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = undefined; - s.tmp_1.arg2 = undefined; - s.callLocIdx = 999; s.pc = 3; return s.tmp_1; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 2; continue; } + r0 = s.tmp_0; + { step = 3; continue; } + case 2: + r0 = s.arg0.fields["head"]; + r0 = r0.fields["lifespan"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 <= 0); case 3: - r0 = s.retval; - s.tmp_0 = Sprite_destroy__P89949_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = undefined; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 1000; s.pc = 4; return s.tmp_0; + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 4; continue; } + r0 = s.arg0.fields["head"]; + r0 = r0.fields["next"]; + s.tmp_3 = r0; + r0 = (s.arg0).fields["head"] = (s.tmp_3); + { step = 1; continue; } case 4: - r0 = s.retval; - r0 = (s.arg0).fields["card"] = (undefined); - r0 = (s.arg0).fields["icon"] = (undefined); - case 1: - case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_systemMenu_MenuOption_dispose__P90615.info = {"start":1812,"length":216,"line":77,"column":8,"endLine":84,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"dispose","argumentNames":["this"]} - -function scene_systemMenu_MenuOption_dispose__P90615_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_MenuOption_dispose__P90615, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function Sprite_destroy__P89949(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - r0 = s.arg0.fields["flags"]; + r0 = s.arg0.fields["pFlags"]; 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); + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 5: + r0 = s.arg0.fields["head"]; s.tmp_3 = r0; - r0 = (s.tmp_2).fields["flags"] = (s.tmp_3); - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 3; continue; } - s.tmp_0 = effects_ParticleEffect_destroy__P90786_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 = 437; s.pc = 6; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); case 6: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 13; continue; } + s.tmp_5 = game_currentScene__P20970_mk(s); + s.callLocIdx = 1157; s.pc = 21; return s.tmp_5; + case 21: r0 = s.retval; - { step = 4; continue; } - case 3: - s.tmp_0 = Sprite__destroyCore__P89950_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 438; s.pc = 7; return s.tmp_0; + s.scene___28386 = (r0); + r0 = pxsim_numops_toBoolDecr(s.scene___28386); + if (!r0) { step = 7; continue; } + r0 = s.scene___28386.fields["allSprites"]; + s.tmp_0 = r0; + r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); case 7: + case 8: + s.tmp_0 = particles_particleSources__P23254_mk(s); + s.callLocIdx = 1158; s.pc = 22; return s.tmp_0; + case 22: r0 = s.retval; - case 4: - case 5: + s.sources___28394 = (r0); + s.tmp_0 = r0 = s.sources___28394; + 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___28394); + 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___28394, s.arg0); + case 11: + case 12: + r0 = s.arg0.fields["anchor"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 == undefined); + case 13: + case 14: + r0 = s.arg0.fields["head"]; + s.current___28408 = (r0); + case 15: + s.tmp_0 = r0 = s.current___28408; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 16; continue; } + r0 = s.tmp_0; + { step = 17; continue; } + case 16: + r0 = s.current___28408.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___28408.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___28408.fields["next"]; + r0 = r0.fields["next"]; + s.tmp_4 = r0; + r0 = (s.current___28408).fields["next"] = (s.tmp_4); + { step = 19; continue; } + case 18: + r0 = s.current___28408.fields["next"]; + s.current___28408 = (r0); + case 19: + { step = 15; continue; } + case 20: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_destroy__P89949.info = {"start":26493,"length":293,"line":859,"column":4,"endLine":868,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]} +particles_ParticleSource__prune__P21130.info = {"start":5104,"length":830,"line":166,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_prune","argumentNames":["this"]} -function Sprite_destroy__P89949_mk(s) { +function particles_ParticleSource__prune__P21130_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_destroy__P89949, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource__prune__P21130, depth: s.depth + 1, pc: 0, retval: undefined, 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___28386: undefined, + sources___28394: undefined, + current___28408: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function effects_ParticleEffect_destroy__P90786(s) { +function particles_ParticleSource_enabled__P21135(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19046,67 +17083,48 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C90783_VT)) failedCast(r0); - s.tmp_0 = Sprite_setFlag__P89940_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 7168; - s.tmp_0.arg2 = true; - s.callLocIdx = 1264; s.pc = 3; return s.tmp_0; - case 3: + if (!checkSubtype(r0, particles_ParticleSource__C21122_VT)) failedCast(r0); + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = particles_ParticleSource_enabled__P21134_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1161; s.pc = 5; return s.tmp_3; + case 5: r0 = s.retval; - s.tmp_0 = effects_ParticleEffect_start__P90785_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 = 1265; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg2); + r0 = (s.tmp_1 !== s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } - r0 = s.arg2; + r0 = s.arg0.fields["pFlags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 | 1); { step = 2; continue; } case 1: - r0 = s.arg0.fields["defaultLifespan"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 2); + r0 = s.arg0.fields["pFlags"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 ^ 1); 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__P90813_mk(s); - s.tmp_0.arg0 = globals.dissolve___90816; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1266; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; + 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() } } } -effects_ParticleEffect_destroy__P90786.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"]} +particles_ParticleSource_enabled__P21135.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 effects_ParticleEffect_destroy__P90786_mk(s) { +function particles_ParticleSource_enabled__P21135_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_destroy__P90786, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_enabled__P21135, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19114,17 +17132,16 @@ function effects_ParticleEffect_destroy__P90786_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function dissolve_inline__P99480(s) { +function particles_ParticleSource_enabled__P21134(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19134,105 +17151,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___99483 = undefined; - s.x___99494 = undefined; - s.y___99500 = undefined; - s.w___99506 = undefined; - s.h___99510 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.width(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C21122_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 = (s.tmp_1 * s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 5); - s.i___99483 = (r0); - case 1: - r0 = (s.i___99483 > 0); + 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 = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P90584_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 = 52; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.x___99494 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P90584_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 = 53; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.y___99500 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P90584_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = 3; - s.callLocIdx = 54; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.w___99506 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P90584_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = 3; - s.callLocIdx = 55; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.h___99510 = (r0); - s.tmp_0 = helpers_imageDrawRect__P89480_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.x___99494; - s.tmp_0.arg2 = s.y___99500; - s.tmp_0.arg3 = s.w___99506; - s.tmp_0.arg4 = s.h___99510; - s.tmp_0.arg5 = 0; - s.callLocIdx = 56; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - r0 = (s.i___99483 - 1); - s.i___99483 = (r0); - { step = 1; continue; } - case 2: - r0 = undefined; - return leave(s, r0) + r0 = pxsim_Boolean__bang(s.tmp_0); + return leaveAccessor(s, r0) default: oops() } } } -dissolve_inline__P99480.info = {"start":2199,"length":360,"line":60,"column":49,"endLine":69,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} +particles_ParticleSource_enabled__P21134.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__P21134.isGetter = true; -function dissolve_inline__P99480_mk(s) { +function particles_ParticleSource_enabled__P21134_mk(s) { checkStack(s.depth); return { - parent: s, fn: dissolve_inline__P99480, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_enabled__P21134, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - i___99483: undefined, - x___99494: undefined, - y___99500: undefined, - w___99506: undefined, - h___99510: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function helpers_imageDrawRect__P89480(s) { +function control_popEventContext__P18381(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19242,110 +17201,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.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.ctx___28517 = undefined; + s.context___28525 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___22404); + 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 = 7; continue; } case 1: - r0 = (s.arg4 == 0); case 2: - // jmp value (already in r0) + r0 = pxsim_Array_.pop(globals.eventContexts___22404); + s.ctx___28517 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___28517); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - { step = 5; continue; } + { step = 7; continue; } case 3: case 4: - r0 = (s.arg3 - 1); - s.arg3 = (r0); - r0 = (s.arg4 - 1); - s.arg4 = (r0); - s.tmp_0 = helpers_imageDrawLine__P89479_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - r0 = (s.arg1 + s.arg3); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = s.arg2; - s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 83; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P89479_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 = 84; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P89479_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = (s.arg1 + s.arg3); - s.tmp_0.arg1 = r0; - r0 = (s.arg2 + s.arg4); - s.tmp_0.arg2 = r0; - r0 = (s.arg1 + s.arg3); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = s.arg2; - s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 85; s.pc = 8; return s.tmp_0; + s.tmp_2 = control_EventContext_unregister__P18373_mk(s); + s.tmp_2.arg0 = s.ctx___28517; + s.callLocIdx = 56; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P89479_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = (s.arg1 + s.arg3); - s.tmp_0.arg1 = r0; - r0 = (s.arg2 + s.arg4); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.arg1; - r0 = (s.arg2 + s.arg4); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 86; s.pc = 9; return s.tmp_0; + s.tmp_0 = r0 = globals.eventContexts___22404; + r0 = pxsim_Array__length(globals.eventContexts___22404); + 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___28525 = (r0); + r0 = pxsim_numops_toBoolDecr(s.context___28525); + if (!r0) { step = 5; continue; } + s.tmp_0 = control_EventContext_register__P18372_mk(s); + s.tmp_0.arg0 = s.context___28525; + s.callLocIdx = 57; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; + { step = 6; continue; } case 5: + globals.eventContexts___22404 = (undefined); + case 6: + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_imageDrawRect__P89480.info = {"start":5945,"length":370,"line":185,"column":4,"endLine":193,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]} +control_popEventContext__P18381.info = {"start":7755,"length":413,"line":236,"column":4,"endLine":250,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]} -function helpers_imageDrawRect__P89480_mk(s) { +function control_popEventContext__P18381_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawRect__P89480, depth: s.depth + 1, + parent: s, fn: control_popEventContext__P18381, 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, + tmp_2: undefined, + ctx___28517: undefined, + context___28525: undefined, } } -function helpers_imageDrawLine__P89479(s) { +function control_EventContext_register__P18372(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19355,60 +17279,67 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.h___28538 = undefined; + s.unnamed148___U1 = undefined; + s.unnamed149___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_pack__P92096_mk(s); - s.tmp_2.arg0 = s.arg1; - s.tmp_2.arg1 = s.arg2; - s.callLocIdx = 81; s.pc = 1; return s.tmp_2; + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C18366_VT)) failedCast(r0); + s.h___28538 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed148___U1 = (r0); + s.unnamed149___U2 = (0); case 1: - r0 = s.retval; + s.tmp_0 = r0 = s.unnamed149___U2; + r0 = pxsim_Array__length(s.unnamed148___U1); s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P92096_mk(s); - s.tmp_4.arg0 = s.arg3; - s.tmp_4.arg1 = s.arg4; - s.callLocIdx = 82; s.pc = 2; return s.tmp_4; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed148___U1, s.unnamed149___U2); + s.h___28538 = (r0); + s.tmp_2 = control_EventHandler_register__P22397_mk(s); + s.tmp_2.arg0 = s.h___28538; + s.callLocIdx = 47; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + r0 = (s.unnamed149___U2 + 1); + s.unnamed149___U2 = (r0); + { step = 1; continue; } case 2: + s.unnamed148___U1 = (undefined); + s.tmp_0 = control_EventContext_registerFrameCallbacks__P22402_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 48; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods._drawLine(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5); r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_imageDrawLine__P89479.info = {"start":5781,"length":159,"line":182,"column":4,"endLine":184,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]} +control_EventContext_register__P18372.info = {"start":4573,"length":138,"line":135,"column":8,"endLine":139,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} -function helpers_imageDrawLine__P89479_mk(s) { +function control_EventContext_register__P18372_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawLine__P89479, depth: s.depth + 1, + parent: s, fn: control_EventContext_register__P18372, depth: s.depth + 1, pc: 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___28538: undefined, + unnamed148___U1: undefined, + unnamed149___U2: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function Math_FastRandom_randomRange__P90584(s) { +function controller__setUserEventsEnabled__P20177(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19420,60 +17351,28 @@ 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, Math_FastRandom__C90580_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__P90583_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 981; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.arg2 - s.arg1); - s.tmp_4 = r0; - r0 = (s.tmp_4 + 1); - s.tmp_3 = r0; - r0 = (s.tmp_1 % s.tmp_3); - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = (s.arg1 + s.tmp_5); + globals._userEventsEnabled___22700 = (s.arg0); + r0 = undefined; return leave(s, r0) default: oops() } } } -Math_FastRandom_randomRange__P90584.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__P90584_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Math_FastRandom_randomRange__P90584, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, +controller__setUserEventsEnabled__P20177.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__P20177_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller__setUserEventsEnabled__P20177, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function Math_FastRandom_next__P90583(s) { +function scene_systemMenu_MenuOption_constructor__P21059(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19485,53 +17384,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, Math_FastRandom__C90580_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["lfsr"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = s.arg0.fields["lfsr"]; - s.tmp_7 = r0; - r0 = (s.tmp_7 & 1); - s.tmp_6 = r0; - r0 = (0 - s.tmp_6); - s.tmp_5 = r0; - r0 = (s.tmp_5 & 46080); - s.tmp_4 = r0; - r0 = (s.tmp_2 ^ s.tmp_4); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lfsr"] = (s.tmp_1); - r0 = s.tmp_1; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C21058_VT)) failedCast(r0); + r0 = (s.arg0).fields["iconImage"] = (s.arg1); + r0 = (s.arg0).fields["getText"] = (s.arg2); + r0 = (s.arg0).fields["action"] = (s.arg3); + r0 = undefined; return leave(s, r0) default: oops() } } } -Math_FastRandom_next__P90583.info = {"start":1713,"length":107,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"next","argumentNames":["this"]} +scene_systemMenu_MenuOption_constructor__P21059.info = {"start":786,"length":108,"line":38,"column":8,"endLine":39,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["this","iconImage","getText","action"]} -function Math_FastRandom_next__P90583_mk(s) { +function scene_systemMenu_MenuOption_constructor__P21059_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_next__P90583, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_constructor__P21059, depth: s.depth + 1, pc: 0, retval: undefined, 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, + arg3: undefined, } } -function effects_ImageEffect_constructor__P90812(s) { +function helpers_screenBrightness__P19937(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19543,47 +17427,27 @@ 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__C90811_VT)) failedCast(r0); - r0 = (s.arg0).fields["effect"] = (s.arg2); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C90580_VT); - s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P90582_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = undefined; - s.callLocIdx = 1274; 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; + r0 = globals.brightness___19922; return leave(s, r0) default: oops() } } } -effects_ImageEffect_constructor__P90812.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"]} +helpers_screenBrightness__P19937.info = {"start":9161,"length":98,"line":288,"column":4,"endLine":290,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]} -function effects_ImageEffect_constructor__P90812_mk(s) { +function helpers_screenBrightness__P19937_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_constructor__P90812, depth: s.depth + 1, + parent: s, fn: helpers_screenBrightness__P19937, 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 effects_ImageEffect_applyTo__P90813(s) { +function music_volume__P19592(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19593,80 +17457,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.clonedImage___99659 = 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__C90811_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_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_0 = music_initVolume__P22439_mk(s); + s.callLocIdx = 61; s.pc = 1; return s.tmp_0; case 1: - r0 = s.arg1.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 3; continue; } - { step = 5; continue; } - case 3: - case 4: - r0 = s.arg1.fields["_image"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.clone(s.tmp_5); - s.clonedImage___99659 = (r0); - s.tmp_0 = effects_ImageEffect_change__P90814_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.clonedImage___99659; - s.callLocIdx = 1277; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = Sprite_setImage__P89912_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.clonedImage___99659; - s.callLocIdx = 1278; s.pc = 7; return s.tmp_0; - case 7: r0 = s.retval; - case 5: - r0 = undefined; + r0 = globals.globalVolume___22435; return leave(s, r0) default: oops() } } } -effects_ImageEffect_applyTo__P90813.info = {"start":823,"length":218,"line":21,"column":8,"endLine":26,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"applyTo","argumentNames":["this","sprite"]} +music_volume__P19592.info = {"start":1781,"length":90,"line":61,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"volume","argumentNames":[]} -function effects_ImageEffect_applyTo__P90813_mk(s) { +function music_volume__P19592_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_applyTo__P90813, depth: s.depth + 1, + parent: s, fn: music_volume__P19592, depth: s.depth + 1, pc: 0, retval: undefined, 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___99659: undefined, - arg0: undefined, - arg1: undefined, } } -function effects_ImageEffect_change__P90814(s) { +function music_initVolume__P22439(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19676,50 +17489,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.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C90811_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 = 1279; 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 = 1279; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1279; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 1279; s.pc = 1; return s.tmp_0; } - } - case 1: + r0 = (globals.globalVolume___22435 === null); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + globals.globalVolume___22435 = (0); + s.tmp_0 = music_setVolume__P19591_mk(s); + r0 = pxsim_pxtcore.getConfig(59, 128); + s.tmp_0.arg0 = r0; + s.callLocIdx = 58; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ImageEffect_change__P90814.info = {"start":1151,"length":81,"line":32,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"change","argumentNames":["this","input"]} +music_initVolume__P22439.info = {"start":1014,"length":180,"line":33,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"initVolume","argumentNames":[]} -function effects_ImageEffect_change__P90814_mk(s) { +function music_initVolume__P22439_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_change__P90814, depth: s.depth + 1, + parent: s, fn: music_initVolume__P22439, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, - arg1: undefined, } } -function effects_ParticleEffect_start__P90785(s) { +function helpers_arrayConcat__P18084(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19729,112 +17530,83 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.src___99684 = undefined; + s.out___29802 = undefined; + s.value___29805 = undefined; + s.unnamed138___U2 = undefined; + s.unnamed139___U3 = undefined; + s.value___29812 = undefined; + s.unnamed140___U5 = undefined; + s.unnamed141___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.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C90783_VT)) failedCast(r0); - r0 = s.arg0.fields["sourceFactory"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 9; continue; } + r0 = pxsim_Array__mk(); + s.out___29802 = (r0); + s.value___29805 = (undefined); + s.unnamed138___U2 = (s.arg0); + s.unnamed139___U3 = (0); case 1: + s.tmp_0 = r0 = s.unnamed139___U3; + r0 = pxsim_Array__length(s.unnamed138___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed138___U2, s.unnamed139___U3); + s.value___29805 = (r0); + r0 = pxsim_Array__push(s.out___29802, s.value___29805); + r0 = (s.unnamed139___U3 + 1); + s.unnamed139___U3 = (r0); + { step = 1; continue; } case 2: - r0 = pxsim_numops_toBoolDecr(s.arg3); - if (!r0) { step = 3; continue; } - r0 = s.arg3; - { step = 4; continue; } + s.unnamed138___U2 = (undefined); + s.value___29812 = (undefined); + s.unnamed140___U5 = (s.arg1); + s.unnamed141___U6 = (0); case 3: - r0 = s.arg0.fields["defaultRate"]; - case 4: - // jmp value (already in r0) - s.tmp_3 = r0; - s.tmp_4 = if_sourceFactory_3_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = s.arg1; - s.tmp_4.arg2 = s.tmp_3; - if (!s.tmp_4.arg0.vtable.iface) { - setupLambda(s.tmp_4, pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "sourceFactory"), 3); - s.callLocIdx = 1262; 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 = 1262; s.pc = 10; return s.tmp_4; } - else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1262; s.pc = 10; return s.tmp_4;; } - else { s.callLocIdx = 1262; s.pc = 10; return s.tmp_4; } - } - case 10: - r0 = s.retval; - s.src___99684 = (r0); - s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P90683_mk(s); - s.tmp_0.arg0 = s.src___99684; - 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 = 1263; 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"]; - case 6: - // jmp value (already in r0) + s.tmp_0 = r0 = s.unnamed141___U6; + r0 = pxsim_Array__length(s.unnamed140___U5); s.tmp_1 = r0; - r0 = (s.src___99684).fields["lifespan"] = (s.tmp_1); - case 7: - case 8: - case 9: - r0 = undefined; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.unnamed140___U5, s.unnamed141___U6); + s.value___29812 = (r0); + r0 = pxsim_Array__push(s.out___29802, s.value___29812); + r0 = (s.unnamed141___U6 + 1); + s.unnamed141___U6 = (r0); + { step = 3; continue; } + case 4: + s.unnamed140___U5 = (undefined); + r0 = s.out___29802; return leave(s, r0) default: oops() } } } -effects_ParticleEffect_start__P90785.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_arrayConcat__P18084.info = {"start":8639,"length":264,"line":288,"column":4,"endLine":297,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayConcat","argumentNames":["arr","otherArr"]} -function effects_ParticleEffect_start__P90785_mk(s) { +function helpers_arrayConcat__P18084_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_start__P90785, depth: s.depth + 1, + parent: s, fn: helpers_arrayConcat__P18084, depth: s.depth + 1, pc: 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___99684: undefined, + out___29802: undefined, + value___29805: undefined, + unnamed138___U2: undefined, + unnamed139___U3: undefined, + value___29812: undefined, + unnamed140___U5: undefined, + unnamed141___U6: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function particles_ParticleSource_setRelativeToCamera__P90683(s) { +function scene_systemMenu_PauseMenu_show__P21068(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19844,59 +17616,336 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.current___27742 = undefined; + s.i___27743 = 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__C90672_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 1; continue; } + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C21066_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["pFlags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | 4); + s.tmp_2 = if_generator_1_mk(s); + s.tmp_2.arg0 = s.arg0; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "generator"), 1); + s.callLocIdx = 999; 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 = 999; s.pc = 3; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 999; s.pc = 3; return s.tmp_2;; } + else { s.callLocIdx = 999; s.pc = 3; return s.tmp_2; } + } + case 3: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); - { step = 2; continue; } + r0 = (s.tmp_0).fields["options"] = (s.tmp_1); + r0 = (s.arg0).fields["selection"] = (0); + s.i___27743 = (0); case 1: - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["pFlags"]; - s.tmp_4 = r0; - r0 = (~ s.tmp_4); + s.tmp_1 = r0 = s.i___27743; + r0 = s.arg0.fields["options"]; s.tmp_3 = r0; - r0 = (s.tmp_3 | 4); + r0 = pxsim_Array__length(s.tmp_3); s.tmp_2 = r0; - r0 = (~ s.tmp_2); + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + r0 = s.arg0.fields["options"]; + s.tmp_4 = r0; + r0 = pxsim_Array__getAt(s.tmp_4, s.i___27743); + s.current___27742 = (r0); + s.tmp_0 = scene_systemMenu_MenuOption_show__P21060_mk(s); + s.tmp_0.arg0 = s.current___27742; + s.callLocIdx = 1000; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P21063_mk(s); + s.tmp_0.arg0 = s.current___27742; + r0 = s.arg0.fields["theme"]; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1001; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = scene_systemMenu_MenuOption_position__P21061_mk(s); + s.tmp_0.arg0 = s.current___27742; + s.tmp_2 = if_padding_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_2.arg0 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "padding"); + } else { + 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 = 1002; s.pc = 7; return s.tmp_2; } + } + case 7: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); + s.tmp_5 = r0 = s.i___27743; + s.tmp_7 = if_cardsPerRow_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_7.arg0 = r0; + if (!s.tmp_7.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "cardsPerRow"); + } else { + 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 = 1003; s.pc = 8; return s.tmp_7; } + } + case 8: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_5 % s.tmp_6); + s.tmp_4 = r0; + s.tmp_10 = if_cardWidth_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_10.arg0 = r0; + if (!s.tmp_10.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_10.arg0, "cardWidth"); + } else { + 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 = 1004; s.pc = 9; return s.tmp_10; } + } + case 9: + r0 = s.retval; + s.tmp_9 = r0; + s.tmp_12 = if_cardSpacing_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_12.arg0 = r0; + if (!s.tmp_12.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_12.arg0, "cardSpacing"); + } else { + 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 = 1005; s.pc = 10; return s.tmp_12; } + } + case 10: + r0 = s.retval; + s.tmp_11 = r0; + r0 = (s.tmp_9 + s.tmp_11); + s.tmp_8 = r0; + r0 = (s.tmp_4 * s.tmp_8); + s.tmp_3 = r0; + r0 = (s.tmp_1 + s.tmp_3); + s.tmp_0.arg1 = r0; + s.tmp_14 = if_cardsTop_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_14.arg0 = r0; + if (!s.tmp_14.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_14.arg0, "cardsTop"); + } else { + 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 = 1006; s.pc = 11; return s.tmp_14; } + } + case 11: + r0 = s.retval; + s.tmp_13 = r0; + s.tmp_17 = r0 = s.i___27743; + s.tmp_19 = if_cardsPerRow_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_19.arg0 = r0; + if (!s.tmp_19.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_19.arg0, "cardsPerRow"); + } else { + 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 = 1007; s.pc = 12; return s.tmp_19; } + } + case 12: + r0 = s.retval; + s.tmp_18 = r0; + r0 = pxsim.Math_.idiv(s.tmp_17, s.tmp_18); + s.tmp_16 = r0; + s.tmp_22 = if_cardWidth_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_22.arg0 = r0; + if (!s.tmp_22.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_22.arg0, "cardWidth"); + } else { + 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 = 1008; s.pc = 13; return s.tmp_22; } + } + case 13: + r0 = s.retval; + s.tmp_21 = r0; + s.tmp_24 = if_cardSpacing_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_24.arg0 = r0; + if (!s.tmp_24.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_24.arg0, "cardSpacing"); + } else { + 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 = 1009; s.pc = 14; return s.tmp_24; } + } + case 14: + r0 = s.retval; + s.tmp_23 = r0; + r0 = (s.tmp_21 + s.tmp_23); + s.tmp_20 = r0; + r0 = (s.tmp_16 * s.tmp_20); + s.tmp_15 = r0; + r0 = (s.tmp_13 + s.tmp_15); + s.tmp_0.arg2 = r0; + s.callLocIdx = 1010; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + r0 = (s.i___27743 + 1); + s.i___27743 = (r0); + { step = 1; continue; } case 2: + s.tmp_0 = controller__setUserEventsEnabled__P20177_mk(s); + s.tmp_0.arg0 = false; + s.callLocIdx = 1011; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P27806); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P20167_mk(s); + s.tmp_1.arg0 = globals.A___20084; + s.tmp_1.arg1 = 2053; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1013; s.pc = 16; return s.tmp_1; + case 16: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P27826); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P20167_mk(s); + s.tmp_1.arg0 = globals.A___20084; + s.tmp_1.arg1 = 2052; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1015; s.pc = 17; return s.tmp_1; + case 17: + r0 = s.retval; + s.tmp_0 = controller_Button_onEvent__P20167_mk(s); + s.tmp_0.arg0 = globals.B___20085; + s.tmp_0.arg1 = 2053; + s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P27855; + s.callLocIdx = 1017; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + s.tmp_0 = controller_Button_onEvent__P20167_mk(s); + s.tmp_0.arg0 = globals.menu___20090; + s.tmp_0.arg1 = 2053; + s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P27860; + s.callLocIdx = 1019; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P27865); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P20167_mk(s); + s.tmp_1.arg0 = globals.up___20087; + s.tmp_1.arg1 = 2053; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1023; s.pc = 20; return s.tmp_1; + case 20: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P27877); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P20167_mk(s); + s.tmp_1.arg0 = globals.left___20086; + s.tmp_1.arg1 = 2053; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1026; s.pc = 21; return s.tmp_1; + case 21: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P27886); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P20167_mk(s); + s.tmp_1.arg0 = globals.down___20089; + s.tmp_1.arg1 = 2053; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1030; s.pc = 22; return s.tmp_1; + case 22: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P27902); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P20167_mk(s); + s.tmp_1.arg0 = globals.right___20088; + s.tmp_1.arg1 = 2053; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1033; s.pc = 23; return s.tmp_1; + case 23: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P27914); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = game_onShade__P20988_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 1036; s.pc = 24; return s.tmp_1; + case 24: + r0 = s.retval; + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P21070_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1037; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRelativeToCamera__P90683.info = {"start":6439,"length":173,"line":211,"column":8,"endLine":214,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRelativeToCamera","argumentNames":["this","on"]} +scene_systemMenu_PauseMenu_show__P21068.info = {"start":3296,"length":2241,"line":123,"column":8,"endLine":181,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"show","argumentNames":["this"]} -function particles_ParticleSource_setRelativeToCamera__P90683_mk(s) { +function scene_systemMenu_PauseMenu_show__P21068_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRelativeToCamera__P90683, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show__P21068, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, + tmp_16: undefined, + tmp_17: undefined, + tmp_18: undefined, + tmp_19: undefined, + tmp_20: undefined, + tmp_21: undefined, + tmp_22: undefined, + tmp_23: undefined, + tmp_24: undefined, + current___27742: undefined, + i___27743: undefined, arg0: undefined, - arg1: undefined, } } -function Sprite__destroyCore__P89950(s) { +function scene_systemMenu_PauseMenu_show_inline__P27806(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19906,116 +17955,56 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___99404 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; + r0 = s.caps[0].fields["options"]; 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__P90520_mk(s); - s.callLocIdx = 439; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.scene___99404 = (r0); - r0 = s.scene___99404.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; } + if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___99404.fields["spritesByKind"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["_kind"]; + r0 = s.caps[0].fields["options"]; + s.tmp_5 = r0; + r0 = s.caps[0].fields["selection"]; + s.tmp_6 = r0; + r0 = pxsim_Array__getAt(s.tmp_5, s.tmp_6); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_2, s.tmp_3); + r0 = pxsim_Boolean__bang(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__P89991_mk(s); - r0 = s.scene___99404.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 = 443; s.pc = 8; return s.tmp_5; - case 8: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 3; continue; } + { step = 5; continue; } case 3: case 4: - s.tmp_0 = PhysicsEngine__C90032_v1_2_mk(s); - r0 = s.scene___99404.fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C90032_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 = 444; 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 = 444; s.pc = 10; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 444; s.pc = 10; return s.tmp_1;; } - else { s.callLocIdx = 444; s.pc = 10; return s.tmp_1; } - } - case 10: - r0 = s.retval; - case 5: + s.tmp_8 = scene_systemMenu_MenuOption_setState__P21064_mk(s); + r0 = s.caps[0].fields["options"]; + s.tmp_9 = r0; + r0 = s.caps[0].fields["selection"]; + s.tmp_10 = r0; + r0 = pxsim_Array__getAt(s.tmp_9, s.tmp_10); + s.tmp_8.arg0 = r0; + s.tmp_8.arg1 = 1; + s.callLocIdx = 1012; s.pc = 6; return s.tmp_8; case 6: - r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P99433); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, Sprite__destroyCore_inline__P99440); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P87630_mk(s); - s.tmp_3 = helpers_arrayFilter__P87631_mk(s); - r0 = s.scene___99404.fields["destroyedHandlers"]; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 446; 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 = 448; s.pc = 11; return s.tmp_2; - case 11: r0 = s.retval; + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite__destroyCore__P89950.info = {"start":26792,"length":522,"line":870,"column":4,"endLine":882,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]} +scene_systemMenu_PauseMenu_show_inline__P27806.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function Sprite__destroyCore__P89950_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P27806_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite__destroyCore__P89950, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P27806, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20025,15 +18014,16 @@ function Sprite__destroyCore__P89950_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - scene___99404: undefined, - arg0: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, } } -function forEach_inline__P99433(s) { +function scene_systemMenu_PauseMenu_show_inline__P27826(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20043,35 +18033,83 @@ 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["kind"]; + r0 = s.caps[0].fields["options"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = s.caps[0].fields["_kind"]; + 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["options"]; + s.tmp_5 = r0; + r0 = s.caps[0].fields["selection"]; + s.tmp_6 = r0; + r0 = pxsim_Array__getAt(s.tmp_5, s.tmp_6); + 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_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 3; continue; } + { step = 5; continue; } + case 3: + case 4: + s.tmp_8 = scene_systemMenu_MenuOption_setState__P21064_mk(s); + r0 = s.caps[0].fields["options"]; + s.tmp_9 = r0; + r0 = s.caps[0].fields["selection"]; + s.tmp_10 = r0; + r0 = pxsim_Array__getAt(s.tmp_9, s.tmp_10); + s.tmp_8.arg0 = r0; + s.tmp_8.arg1 = 0; + s.callLocIdx = 1014; s.pc = 6; return s.tmp_8; + case 6: + r0 = s.retval; + r0 = s.caps[0].fields["options"]; s.tmp_1 = r0; - r0 = (s.tmp_0 == s.tmp_1); + r0 = s.caps[0].fields["selection"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); + r0 = r0.fields["action"]; + s.tmp_0 = r0; + r0 = pxsim.control.runInParallel(s.tmp_0); + case 5: + r0 = undefined; return leave(s, r0) default: oops() } } } -forEach_inline__P99433.info = {"start":27237,"length":26,"line":880,"column":20,"endLine":880,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +scene_systemMenu_PauseMenu_show_inline__P27826.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function forEach_inline__P99433_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P27826_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P99433, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P27826, 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, + tmp_9: undefined, + tmp_10: undefined, } } -function Sprite__destroyCore_inline__P99440(s) { +function scene_systemMenu_PauseMenu_show_inline__P27855(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20081,44 +18119,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 = 447; s.pc = 1; return s.tmp_0; - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.callLocIdx = 447; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 447; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 447; s.pc = 1; return s.tmp_0; } - } + s.tmp_0 = scene_systemMenu_closeMenu__P21073_mk(s); + s.callLocIdx = 1016; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite__destroyCore_inline__P99440.info = {"start":27286,"length":20,"line":881,"column":21,"endLine":881,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +scene_systemMenu_PauseMenu_show_inline__P27855.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function Sprite__destroyCore_inline__P99440_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P27855_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite__destroyCore_inline__P99440, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P27855, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, } } -function PhysicsEngine_removeSprite__P90035(s) { +function scene_systemMenu_PauseMenu_show_inline__P27860(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20128,33 +18151,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C90032_VT)) failedCast(r0); + s.tmp_0 = scene_systemMenu_closeMenu__P21073_mk(s); + s.callLocIdx = 1018; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_removeSprite__P90035.info = {"start":159,"length":32,"line":10,"column":4,"endLine":10,"endColumn":36,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} +scene_systemMenu_PauseMenu_show_inline__P27860.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function PhysicsEngine_removeSprite__P90035_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P27860_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_removeSprite__P90035, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P27860, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, + tmp_0: undefined, } } -function Sprite_kind__P89928(s) { +function scene_systemMenu_PauseMenu_show_inline__P27865(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20164,118 +18183,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P21070_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_1 = Math_max__P18101_mk(s); + s.tmp_1.arg0 = 0; + r0 = s.caps[0].fields["selection"]; + s.tmp_2 = r0; + s.tmp_4 = if_cardsPerRow_1_mk(s); + r0 = s.caps[0].fields["theme"]; + s.tmp_4.arg0 = r0; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "cardsPerRow"); + } else { + 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 = 1020; s.pc = 3; return s.tmp_4; } } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - r0 = s.arg0.fields["_kind"]; - return leave(s, r0) - default: oops() -} } } -Sprite_kind__P89928.info = {"start":12573,"length":41,"line":453,"column":4,"endLine":455,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"kind","argumentNames":["this"]} - -function Sprite_kind__P89928_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_kind__P89928, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function game_popScene__P90525(s) { -let r0 = s.r0, 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___99115 = undefined; - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 960; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.oldScene___99115 = (r0); - s.tmp_0 = r0 = globals._sceneStack___92460; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_Array__length(globals._sceneStack___92460); - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = pxsim_Array_.pop(globals._sceneStack___92460); - globals._scene___92459 = (r0); - s.tmp_0 = control_popEventContext__P87931_mk(s); - s.callLocIdx = 961; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - { step = 6; continue; } case 3: - r0 = pxsim_numops_toBoolDecr(globals._scene___92459); - if (!r0) { step = 4; continue; } - s.tmp_0 = control_popEventContext__P87931_mk(s); - s.callLocIdx = 962; s.pc = 13; return s.tmp_0; - case 13: r0 = s.retval; - globals._scene___92459 = (undefined); - case 4: - case 5: - case 6: - r0 = pxsim_numops_toBoolDecr(globals._scene___92459); - if (!r0) { step = 7; continue; } - s.tmp_0 = particles_enableAll__P90704_mk(s); - s.callLocIdx = 963; s.pc = 14; return s.tmp_0; - case 14: + s.tmp_3 = r0; + r0 = (s.tmp_2 - s.tmp_3); + s.tmp_1.arg1 = r0; + s.callLocIdx = 1021; s.pc = 2; return s.tmp_1; + case 2: r0 = s.retval; - case 7: - case 8: - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___92462); - if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore_mkAction(1, game_popScene_inline__P99136); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___99115); - s.tmp_1 = helpers_arrayForEach__P87630_mk(s); - s.tmp_1.arg0 = globals._scenePopHandlers___92462; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 965; s.pc = 15; return s.tmp_1; - case 15: + s.tmp_0.arg1 = r0; + s.callLocIdx = 1022; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - case 9: - case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -game_popScene__P90525.info = {"start":5133,"length":548,"line":161,"column":4,"endLine":179,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P27865.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function game_popScene__P90525_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P27865_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_popScene__P90525, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P27865, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - oldScene___99115: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, } } -function game_popScene_inline__P99136(s) { +function scene_systemMenu_PauseMenu_show_inline__P27877(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20285,37 +18244,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; - } - s.tmp_0 = lambda_2_mk(s); - s.tmp_0.argL = s.arg0; + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P21070_mk(s); s.tmp_0.arg0 = s.caps[0]; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 964; s.pc = 1; return s.tmp_0; + s.tmp_1 = Math_max__P18101_mk(s); + s.tmp_1.arg0 = 0; + r0 = s.caps[0].fields["selection"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1.arg1 = r0; + s.callLocIdx = 1024; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1025; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -game_popScene_inline__P99136.info = {"start":5645,"length":18,"line":177,"column":38,"endLine":177,"endColumn":56,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} +scene_systemMenu_PauseMenu_show_inline__P27877.info = {"start":4927,"length":89,"line":163,"column":53,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function game_popScene_inline__P99136_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P27877_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_popScene_inline__P99136, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P27877, 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, } } -function particles_enableAll__P90704(s) { +function scene_systemMenu_PauseMenu_show_inline__P27886(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20325,46 +18289,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___99140 = undefined; - s.tmp_0 = particles_particleSources__P92809_mk(s); - s.callLocIdx = 1208; s.pc = 3; return s.tmp_0; + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P21070_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_1 = Math_min__P18102_mk(s); + r0 = s.caps[0].fields["options"]; + s.tmp_3 = r0; + r0 = pxsim_Array__length(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1.arg0 = r0; + r0 = s.caps[0].fields["selection"]; + s.tmp_4 = r0; + s.tmp_6 = if_cardsPerRow_1_mk(s); + r0 = s.caps[0].fields["theme"]; + s.tmp_6.arg0 = r0; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "cardsPerRow"); + } else { + 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 = 1027; s.pc = 3; return s.tmp_6; } + } case 3: r0 = s.retval; - s.sources___99140 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___99140); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P87630_mk(s); - s.tmp_0.arg0 = s.sources___99140; - s.tmp_0.arg1 = particles_enableAll_inline__P99146; - s.callLocIdx = 1210; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P92805_mk(s); - s.callLocIdx = 1211; s.pc = 5; return s.tmp_0; - case 5: + s.tmp_5 = r0; + r0 = (s.tmp_4 + s.tmp_5); + s.tmp_1.arg1 = r0; + s.callLocIdx = 1028; s.pc = 2; return s.tmp_1; + case 2: r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1029; s.pc = 1; return s.tmp_0; case 1: - case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_enableAll__P90704.info = {"start":12649,"length":193,"line":413,"column":4,"endLine":419,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P27886.info = {"start":5073,"length":132,"line":167,"column":53,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function particles_enableAll__P90704_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P27886_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_enableAll__P90704, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P27886, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___99140: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, } } -function particles_enableAll_inline__P99146(s) { +function scene_systemMenu_PauseMenu_show_inline__P27902(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20374,36 +18357,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = particles_ParticleSource_enabled__P90685_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = true; - s.callLocIdx = 1209; s.pc = 1; return s.tmp_0; + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P21070_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_1 = Math_min__P18102_mk(s); + r0 = s.caps[0].fields["options"]; + s.tmp_3 = r0; + r0 = pxsim_Array__length(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1.arg0 = r0; + r0 = s.caps[0].fields["selection"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 + 1); + s.tmp_1.arg1 = r0; + s.callLocIdx = 1031; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1032; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = true; + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_enableAll_inline__P99146.info = {"start":12773,"length":21,"line":416,"column":28,"endLine":416,"endColumn":49,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +scene_systemMenu_PauseMenu_show_inline__P27902.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function particles_enableAll_inline__P99146_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P27902_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_enableAll_inline__P99146, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P27902, 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 particles_particleSources__P92809(s) { +function scene_systemMenu_PauseMenu_show_inline__P27914(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20413,33 +18409,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___99314 = undefined; - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 1212; s.pc = 1; return s.tmp_0; + s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P21069_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 1034; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = r0.fields["particleSources"]; - s.sources___99314 = (r0); - r0 = s.sources___99314; + s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P21071_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 1035; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_particleSources__P92809.info = {"start":12848,"length":119,"line":421,"column":4,"endLine":424,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P27914.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function particles_particleSources__P92809_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P27914_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_particleSources__P92809, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P27914, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___99314: undefined, } } -function particles_pruneParticles__P92805(s) { +function scene_systemMenu_PauseMenu_drawText__P21071(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20449,51 +18447,296 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___99151 = undefined; - s.tmp_0 = particles_particleSources__P92809_mk(s); - s.callLocIdx = 1195; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.sources___99151 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___99151); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C21066_VT)) failedCast(r0); + r0 = s.arg0.fields["options"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P87630_mk(s); - s.tmp_1 = helpers_arraySlice__P87636_mk(s); - s.tmp_1.arg0 = s.sources___99151; - s.tmp_1.arg1 = 0; - r0 = pxsim_Array__length(s.sources___99151); - s.tmp_1.arg2 = r0; - s.callLocIdx = 1196; s.pc = 5; return s.tmp_1; + { step = 3; continue; } + case 1: + case 2: + s.tmp_3 = helpers_imageFillRect__P19927_mk(s); + s.tmp_3.arg0 = globals.screen___20003; + s.tmp_3.arg1 = 0; + s.tmp_3.arg2 = 0; + r0 = pxsim_ImageMethods.width(globals.screen___20003); + s.tmp_3.arg3 = r0; + s.tmp_5 = if_cardsTop_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_5.arg0 = r0; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "cardsTop"); + } else { + 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 = 1048; s.pc = 5; return s.tmp_5; } + } case 5: r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = particles_pruneParticles_inline__P99160; - s.callLocIdx = 1198; s.pc = 4; return s.tmp_0; + s.tmp_4 = r0; + r0 = (s.tmp_4 - 2); + s.tmp_3.arg4 = r0; + s.tmp_3.arg5 = 15; + s.callLocIdx = 1049; s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; - case 1: - case 2: + s.tmp_0 = helpers_imagePrintCenter__P19960_mk(s); + s.tmp_0.arg0 = globals.screen___20003; + s.tmp_1 = if_headerText_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_1.arg0 = r0; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "headerText"); + } else { + 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 = 1050; s.pc = 7; return s.tmp_1; } + } + case 7: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 2; + s.tmp_0.arg3 = 1; + s.tmp_2 = if_headerFont_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_2.arg0 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "headerFont"); + } else { + 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 = 1051; s.pc = 8; return s.tmp_2; } + } + case 8: + r0 = s.retval; + s.tmp_0.arg4 = r0; + s.callLocIdx = 1052; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = helpers_imageFillRect__P19927_mk(s); + s.tmp_0.arg0 = globals.screen___20003; + s.tmp_0.arg1 = 0; + s.tmp_2 = if_infoTop_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_2.arg0 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "infoTop"); + } else { + 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 = 1053; s.pc = 10; return s.tmp_2; } + } + case 10: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 3); + s.tmp_0.arg2 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___20003); + s.tmp_0.arg3 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___20003); + s.tmp_4 = r0; + s.tmp_6 = if_infoTop_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_6.arg0 = r0; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "infoTop"); + } else { + 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 = 1054; s.pc = 11; return s.tmp_6; } + } + case 11: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_4 - s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 6); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = 15; + s.callLocIdx = 1055; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = helpers_imageFillRect__P19927_mk(s); + s.tmp_0.arg0 = globals.screen___20003; + s.tmp_1 = if_padding_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_1.arg0 = r0; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "padding"); + } else { + 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 = 1056; s.pc = 13; return s.tmp_1; } + } + case 13: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_2 = if_infoTop_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_2.arg0 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "infoTop"); + } else { + 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 = 1057; s.pc = 14; return s.tmp_2; } + } + case 14: + r0 = s.retval; + s.tmp_0.arg2 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___20003); + s.tmp_3 = r0; + s.tmp_6 = if_padding_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_6.arg0 = r0; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "padding"); + } else { + 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 = 1058; s.pc = 15; return s.tmp_6; } + } + case 15: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_5 << 1); + s.tmp_4 = r0; + r0 = (s.tmp_3 - s.tmp_4); + s.tmp_0.arg3 = r0; + s.tmp_8 = if_charHeight_1_mk(s); + s.tmp_9 = if_infoFont_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_9.arg0 = r0; + if (!s.tmp_9.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "infoFont"); + } else { + 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 = 1059; s.pc = 17; return s.tmp_9; } + } + case 17: + r0 = s.retval; + s.tmp_8.arg0 = r0; + 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 = 1060; s.pc = 16; return s.tmp_8; } + } + case 16: + r0 = s.retval; + s.tmp_7 = r0; + r0 = (s.tmp_7 + 1); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = 1; + s.callLocIdx = 1061; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.tmp_0 = helpers_imagePrintCenter__P19960_mk(s); + s.tmp_0.arg0 = globals.screen___20003; + s.tmp_1 = if_getText_1_mk(s); + r0 = s.arg0.fields["options"]; + s.tmp_2 = r0; + r0 = s.arg0.fields["selection"]; + s.tmp_3 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); + 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 = 1062; 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 = 1062; s.pc = 19; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 1062; s.pc = 19; return s.tmp_1;; } + else { s.callLocIdx = 1062; s.pc = 19; return s.tmp_1; } + } + case 19: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_5 = if_infoTop_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_5.arg0 = r0; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "infoTop"); + } else { + 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 = 1063; s.pc = 20; return s.tmp_5; } + } + case 20: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_4 + 1); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 15; + s.tmp_6 = if_infoFont_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_6.arg0 = r0; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "infoFont"); + } else { + 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 = 1064; s.pc = 21; return s.tmp_6; } + } + case 21: + r0 = s.retval; + s.tmp_0.arg4 = r0; + s.callLocIdx = 1065; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_pruneParticles__P92805.info = {"start":9864,"length":156,"line":327,"column":4,"endLine":330,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]} +scene_systemMenu_PauseMenu_drawText__P21071.info = {"start":6927,"length":795,"line":224,"column":8,"endLine":241,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"drawText","argumentNames":["this"]} -function particles_pruneParticles__P92805_mk(s) { +function scene_systemMenu_PauseMenu_drawText__P21071_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_pruneParticles__P92805, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_drawText__P21071, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - sources___99151: 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 particles_pruneParticles_inline__P99160(s) { +function helpers_imagePrintCenter__P19960(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20503,35 +18746,92 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.w___28001 = undefined; + s.x___28007 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource__prune__P90680_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1197; s.pc = 1; return s.tmp_0; + 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__P19948_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 94; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + s.arg4 = (r0); case 1: + case 2: + r0 = pxsim_String_.length(s.arg1); + s.tmp_0 = r0; + s.tmp_2 = if_charWidth_1_mk(s); + s.tmp_2.arg0 = s.arg4; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charWidth"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charWidth"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 95; s.pc = 4; return s.tmp_2; } + } + case 4: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0 * s.tmp_1); + s.w___28001 = (r0); + r0 = pxsim_ImageMethods.width(s.arg0); + s.tmp_1 = r0; + r0 = (s.tmp_1 - s.w___28001); + s.tmp_0 = r0; + r0 = (s.tmp_0 / 2); + s.x___28007 = (r0); + s.tmp_0 = helpers_imagePrint__P19961_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.x___28007; + s.tmp_0.arg3 = s.arg2; + s.tmp_0.arg4 = s.arg3; + s.tmp_0.arg5 = s.arg4; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 96; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_pruneParticles_inline__P99160.info = {"start":9997,"length":15,"line":329,"column":62,"endLine":329,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +helpers_imagePrintCenter__P19960.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 particles_pruneParticles_inline__P99160_mk(s) { +function helpers_imagePrintCenter__P19960_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_pruneParticles_inline__P99160, depth: s.depth + 1, + parent: s, fn: helpers_imagePrintCenter__P19960, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + w___28001: undefined, + x___28007: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function particles_ParticleSource__prune__P90680(s) { +function scene_systemMenu_PauseMenu_setSelection__P21070(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20541,137 +18841,100 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___99190 = undefined; - s.sources___99198 = undefined; - s.current___99212 = 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__C90672_VT)) failedCast(r0); - case 1: - r0 = s.arg0.fields["head"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 2; continue; } - r0 = s.tmp_0; - { step = 3; continue; } - case 2: - r0 = s.arg0.fields["head"]; - r0 = r0.fields["lifespan"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 <= 0); - case 3: - // jmp value (already in r0) + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C21066_VT)) failedCast(r0); + r0 = s.arg0.fields["options"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 4; continue; } - r0 = s.arg0.fields["head"]; - r0 = r0.fields["next"]; + s.tmp_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: + r0 = s.arg0.fields["options"]; + s.tmp_4 = r0; + r0 = s.arg0.fields["selection"]; + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(s.tmp_4, s.tmp_5); s.tmp_3 = r0; - r0 = (s.arg0).fields["head"] = (s.tmp_3); - { step = 1; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + s.tmp_6 = scene_systemMenu_MenuOption_setState__P21064_mk(s); + r0 = s.arg0.fields["options"]; + s.tmp_7 = r0; + r0 = s.arg0.fields["selection"]; + s.tmp_8 = r0; + r0 = pxsim_Array__getAt(s.tmp_7, s.tmp_8); + s.tmp_6.arg0 = r0; + s.tmp_6.arg1 = 2; + s.callLocIdx = 1045; s.pc = 10; return s.tmp_6; + case 10: + r0 = s.retval; + case 3: case 4: - r0 = s.arg0.fields["pFlags"]; + r0 = (s.arg0).fields["selection"] = (s.arg1); + r0 = s.arg0.fields["options"]; s.tmp_1 = r0; - r0 = (s.tmp_1 & 2); + r0 = s.arg0.fields["selection"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["head"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_4 = controller_Button__C20160_v0_1_mk(s); + s.tmp_4.arg0 = globals.A___20084; + if (!checkSubtype(s.tmp_4.arg0, controller_Button__C20160_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.isPressed; + s.pc = 11; return s.tmp_4; + case 11: + 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); + if (!r0) { step = 5; continue; } + r0 = 1; + { step = 6; continue; } + case 5: + r0 = 0; case 6: // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 13; continue; } - s.tmp_5 = game_currentScene__P90520_mk(s); - s.callLocIdx = 1170; s.pc = 21; return s.tmp_5; - case 21: + s.tmp_5 = r0; + s.tmp_6 = scene_systemMenu_MenuOption_setState__P21064_mk(s); + r0 = s.arg0.fields["options"]; + s.tmp_7 = r0; + r0 = s.arg0.fields["selection"]; + s.tmp_8 = r0; + r0 = pxsim_Array__getAt(s.tmp_7, s.tmp_8); + s.tmp_6.arg0 = r0; + s.tmp_6.arg1 = s.tmp_5; + s.callLocIdx = 1046; s.pc = 12; return s.tmp_6; + case 12: r0 = s.retval; - s.scene___99190 = (r0); - r0 = pxsim_numops_toBoolDecr(s.scene___99190); - if (!r0) { step = 7; continue; } - r0 = s.scene___99190.fields["allSprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); case 7: case 8: - s.tmp_0 = particles_particleSources__P92809_mk(s); - s.callLocIdx = 1171; s.pc = 22; return s.tmp_0; - case 22: + s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P23160_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1047; s.pc = 13; return s.tmp_0; + case 13: r0 = s.retval; - s.sources___99198 = (r0); - s.tmp_0 = r0 = s.sources___99198; - 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___99198); - 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___99198, s.arg0); - case 11: - case 12: - r0 = s.arg0.fields["anchor"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 == undefined); - case 13: - case 14: - r0 = s.arg0.fields["head"]; - s.current___99212 = (r0); - case 15: - s.tmp_0 = r0 = s.current___99212; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 16; continue; } - r0 = s.tmp_0; - { step = 17; continue; } - case 16: - r0 = s.current___99212.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___99212.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___99212.fields["next"]; - r0 = r0.fields["next"]; - s.tmp_4 = r0; - r0 = (s.current___99212).fields["next"] = (s.tmp_4); - { step = 19; continue; } - case 18: - r0 = s.current___99212.fields["next"]; - s.current___99212 = (r0); - case 19: - { step = 15; continue; } - case 20: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource__prune__P90680.info = {"start":5104,"length":830,"line":166,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_prune","argumentNames":["this"]} +scene_systemMenu_PauseMenu_setSelection__P21070.info = {"start":6436,"length":481,"line":208,"column":8,"endLine":222,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setSelection","argumentNames":["this","selection"]} -function particles_ParticleSource__prune__P90680_mk(s) { +function scene_systemMenu_PauseMenu_setSelection__P21070_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource__prune__P90680, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P21070, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20679,17 +18942,18 @@ function particles_ParticleSource__prune__P90680_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - scene___99190: undefined, - sources___99198: undefined, - current___99212: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, arg0: undefined, + arg1: undefined, } } -function particles_ParticleSource_enabled__P90685(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P23160(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20699,51 +18963,121 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.row___28263 = 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__C90672_VT)) failedCast(r0); - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = particles_ParticleSource_enabled__P90684_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1174; s.pc = 5; return s.tmp_3; - case 5: + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C21066_VT)) failedCast(r0); + r0 = s.arg0.fields["selection"]; + s.tmp_0 = r0; + s.tmp_2 = if_cardsPerRow_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_2.arg0 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "cardsPerRow"); + } else { + 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 = 1068; s.pc = 8; return s.tmp_2; } + } + case 8: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 !== s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_1); + s.row___28263 = (r0); + r0 = s.arg0.fields["scrollRow"]; + s.tmp_1 = r0; + r0 = (s.row___28263 === s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(s.arg1); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["pFlags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 | 1); + r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.arg0.fields["pFlags"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 ^ 1); + r0 = (s.row___28263 - 1); + s.tmp_2 = r0; + r0 = s.arg0.fields["scrollRow"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 === s.tmp_3); case 2: // jmp value (already in r0) - s.tmp_6 = r0; - r0 = (s.arg0).fields["pFlags"] = (s.tmp_6); - r0 = (s.arg0).fields["timer"] = (0); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + { step = 7; continue; } case 3: case 4: + r0 = s.arg0.fields["scrollRow"]; + s.tmp_6 = r0; + r0 = (s.row___28263 > s.tmp_6); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 5; continue; } + s.tmp_7 = r0 = s.arg0; + r0 = s.tmp_7.fields["scrollRow"]; + s.tmp_9 = r0; + r0 = (s.tmp_9 + 1); + s.tmp_8 = r0; + r0 = (s.tmp_7).fields["scrollRow"] = (s.tmp_8); + { step = 6; continue; } + case 5: + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["scrollRow"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["scrollRow"] = (s.tmp_1); + case 6: + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["scrollRow"]; + s.tmp_2 = r0; + s.tmp_5 = if_cardSpacing_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_5.arg0 = r0; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "cardSpacing"); + } else { + 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 = 1069; s.pc = 9; return s.tmp_5; } + } + case 9: + r0 = s.retval; + s.tmp_4 = r0; + s.tmp_7 = if_cardWidth_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_7.arg0 = r0; + if (!s.tmp_7.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "cardWidth"); + } else { + 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 = 1070; s.pc = 10; return s.tmp_7; } + } + case 10: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_4 + s.tmp_6); + s.tmp_3 = r0; + r0 = (s.tmp_2 * s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["scrollTarget"] = (s.tmp_1); + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_enabled__P90685.info = {"start":6816,"length":214,"line":223,"column":8,"endLine":228,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this","v"]} +scene_systemMenu_PauseMenu_updateScrollTarget__P23160.info = {"start":7907,"length":458,"line":250,"column":8,"endLine":260,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"updateScrollTarget","argumentNames":["this"]} -function particles_ParticleSource_enabled__P90685_mk(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P23160_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_enabled__P90685, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P23160, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20752,15 +19086,18 @@ function particles_ParticleSource_enabled__P90685_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + row___28263: undefined, arg0: undefined, - arg1: undefined, } } -function particles_ParticleSource_enabled__P90684(s) { +function scene_systemMenu_PauseMenu_onUpdate__P21069(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20770,39 +19107,178 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.t___28023 = undefined; + s.i___28027 = undefined; + s.dt___28056 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C90672_VT)) failedCast(r0); - r0 = s.arg0.fields["pFlags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 & 1); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C21066_VT)) failedCast(r0); + r0 = pxsim.control.millis(); + s.tmp_0 = r0; + r0 = (s.tmp_0 / 250); + s.t___28023 = (r0); + s.i___28027 = (0); + case 1: + s.tmp_1 = r0 = s.i___28027; + r0 = s.arg0.fields["options"]; s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = pxsim_Array__length(s.tmp_3); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_4 = scene_systemMenu_MenuOption_setOffset__P21062_mk(s); + r0 = s.arg0.fields["options"]; + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(s.tmp_5, s.i___28027); + s.tmp_4.arg0 = r0; + s.tmp_8 = r0 = s.t___28023; + s.tmp_11 = r0 = s.i___28027; + s.tmp_13 = if_cardsPerRow_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_13.arg0 = r0; + if (!s.tmp_13.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_13.arg0, "cardsPerRow"); + } else { + 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 = 1038; s.pc = 11; return s.tmp_13; } + } + case 11: + r0 = s.retval; + s.tmp_12 = r0; + r0 = (s.tmp_11 % s.tmp_12); + s.tmp_10 = r0; + r0 = (s.tmp_10 * 1.5707963267948966); + s.tmp_9 = r0; + r0 = (s.tmp_8 - s.tmp_9); + s.tmp_7 = r0; + r0 = pxsim.Math_.sin(s.tmp_7); + s.tmp_6 = r0; + r0 = (2 * s.tmp_6); + s.tmp_4.arg1 = r0; + s.callLocIdx = 1039; s.pc = 10; return s.tmp_4; + case 10: + r0 = s.retval; + r0 = (s.i___28027 + 1); + s.i___28027 = (r0); + { step = 1; continue; } + case 2: + s.tmp_1 = game_currentScene__P20970_mk(s); + s.callLocIdx = 1040; s.pc = 12; return s.tmp_1; + case 12: + r0 = s.retval; + r0 = r0.fields["eventContext"]; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["deltaTimeMillis"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 / 1000); + s.dt___28056 = (r0); + r0 = s.arg0.fields["scrollOffset"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = s.arg0.fields["scrollTarget"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_3 = r0 = s.arg0; + r0 = s.tmp_3.fields["scrollOffset"]; + s.tmp_5 = r0; + r0 = (s.dt___28056 * 100); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["scrollOffset"] = (s.tmp_4); + { step = 6; continue; } + case 3: + r0 = s.arg0.fields["scrollOffset"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["scrollTarget"]; + 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 = r0 = s.arg0; + r0 = s.tmp_3.fields["scrollOffset"]; + s.tmp_5 = r0; + r0 = (s.dt___28056 * 100); + s.tmp_6 = r0; + r0 = (s.tmp_5 - s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["scrollOffset"] = (s.tmp_4); + { step = 5; continue; } + case 4: + { step = 9; continue; } + case 5: + case 6: + s.tmp_2 = Math_abs__P18099_mk(s); + r0 = s.arg0.fields["scrollOffset"]; + s.tmp_3 = r0; + r0 = s.arg0.fields["scrollTarget"]; + s.tmp_4 = r0; + r0 = (s.tmp_3 - s.tmp_4); + s.tmp_2.arg0 = r0; + s.callLocIdx = 1042; s.pc = 13; return s.tmp_2; + case 13: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 < 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = s.arg0.fields["scrollTarget"]; + s.tmp_5 = r0; + r0 = (s.arg0).fields["scrollOffset"] = (s.tmp_5); + case 7: + case 8: + s.tmp_0 = scene_Camera_offsetY__P20760_mk(s); + s.tmp_1 = game_currentScene__P20970_mk(s); + s.callLocIdx = 1043; 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 = 1044; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + case 9: + r0 = undefined; + return leave(s, r0) default: oops() } } } -particles_ParticleSource_enabled__P90684.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__P90684.isGetter = true; +scene_systemMenu_PauseMenu_onUpdate__P21069.info = {"start":5547,"length":879,"line":183,"column":8,"endLine":206,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"onUpdate","argumentNames":["this"]} -function particles_ParticleSource_enabled__P90684_mk(s) { +function scene_systemMenu_PauseMenu_onUpdate__P21069_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_enabled__P90684, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P21069, depth: s.depth + 1, pc: 0, retval: undefined, 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, + t___28023: undefined, + i___28027: undefined, + dt___28056: undefined, arg0: undefined, } } @@ -20810,7 +19286,7 @@ function particles_ParticleSource_enabled__P90684_mk(s) { -function control_popEventContext__P87931(s) { +function scene_systemMenu_MenuOption_setOffset__P21062(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20820,75 +19296,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___99321 = undefined; - s.context___99329 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___91959); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C21058_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P20375_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["top"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 7; continue; } + r0 = (s.tmp_1 + s.arg1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 981; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = pxsim_Array_.pop(globals.eventContexts___91959); - s.ctx___99321 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___99321); - s.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; } + r0 = s.retval; + s.tmp_0 = Sprite_y__P20328_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = Sprite_y__P20327_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 982; s.pc = 3; return s.tmp_1; case 3: - case 4: - s.tmp_2 = control_EventContext_unregister__P87923_mk(s); - s.tmp_2.arg0 = s.ctx___99321; - s.callLocIdx = 56; s.pc = 8; return s.tmp_2; - case 8: r0 = s.retval; - s.tmp_0 = r0 = globals.eventContexts___91959; - r0 = pxsim_Array__length(globals.eventContexts___91959); - 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___99329 = (r0); - r0 = pxsim_numops_toBoolDecr(s.context___99329); - if (!r0) { step = 5; continue; } - s.tmp_0 = control_EventContext_register__P87922_mk(s); - s.tmp_0.arg0 = s.context___99329; - s.callLocIdx = 57; s.pc = 9; return s.tmp_0; - case 9: + s.tmp_0.arg1 = r0; + s.callLocIdx = 983; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; - { step = 6; continue; } - case 5: - globals.eventContexts___91959 = (undefined); - case 6: - case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -control_popEventContext__P87931.info = {"start":7755,"length":413,"line":236,"column":4,"endLine":250,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]} +scene_systemMenu_MenuOption_setOffset__P21062.info = {"start":1411,"length":123,"line":61,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setOffset","argumentNames":["this","offset"]} -function control_popEventContext__P87931_mk(s) { +function scene_systemMenu_MenuOption_setOffset__P21062_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_popEventContext__P87931, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setOffset__P21062, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - ctx___99321: undefined, - context___99329: undefined, + arg0: undefined, + arg1: undefined, } } -function control_EventContext_register__P87922(s) { +function Sprite_top__P20375(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20898,67 +19357,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___99342 = undefined; - s.unnamed704___U1 = undefined; - s.unnamed705___U2 = undefined; + s.physics___28140 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C87916_VT)) failedCast(r0); - s.h___99342 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed704___U1 = (r0); - s.unnamed705___U2 = (0); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 359; s.pc = 1; return s.tmp_0; case 1: - s.tmp_0 = r0 = s.unnamed705___U2; - r0 = pxsim_Array__length(s.unnamed704___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed704___U1, s.unnamed705___U2); - s.h___99342 = (r0); - s.tmp_2 = control_EventHandler_register__P91952_mk(s); - s.tmp_2.arg0 = s.h___99342; - s.callLocIdx = 47; s.pc = 3; return s.tmp_2; - case 3: r0 = s.retval; - r0 = (s.unnamed705___U2 + 1); - s.unnamed705___U2 = (r0); - { step = 1; continue; } + r0 = r0.fields["physicsEngine"]; + s.physics___28140 = (r0); + s.tmp_0 = PhysicsEngine__C20482_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___28140; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = 0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + 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__C20482_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.unnamed704___U1 = (undefined); - s.tmp_0 = control_EventContext_registerFrameCallbacks__P91957_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 48; s.pc = 4; return s.tmp_0; - case 4: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_register__P87922.info = {"start":4573,"length":138,"line":135,"column":8,"endLine":139,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} +Sprite_top__P20375.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 control_EventContext_register__P87922_mk(s) { +function Sprite_top__P20375_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_register__P87922, depth: s.depth + 1, + parent: s, fn: Sprite_top__P20375, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - h___99342: undefined, - unnamed704___U1: undefined, - unnamed705___U2: undefined, + tmp_3: undefined, + physics___28140: undefined, arg0: undefined, + arg1: undefined, } } -function controller__setUserEventsEnabled__P89727(s) { +function PhysicsEngine_moveSprite__P20486(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20970,28 +19424,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; } - globals._userEventsEnabled___92255 = (s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C20482_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -controller__setUserEventsEnabled__P89727.info = {"start":10070,"length":101,"line":291,"column":4,"endLine":293,"endColumn":5,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"_setUserEventsEnabled","argumentNames":["enabled"]} +PhysicsEngine_moveSprite__P20486.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 controller__setUserEventsEnabled__P89727_mk(s) { +function PhysicsEngine_moveSprite__P20486_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__setUserEventsEnabled__P89727, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_moveSprite__P20486, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function scene_systemMenu_MenuOption_constructor__P90609(s) { +function Sprite_top__P20374(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21003,38 +19464,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, scene_systemMenu_MenuOption__C90608_VT)) failedCast(r0); - r0 = (s.arg0).fields["iconImage"] = (s.arg1); - r0 = (s.arg0).fields["getText"] = (s.arg2); - r0 = (s.arg0).fields["action"] = (s.arg3); - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + r0 = s.arg0.fields["_y"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_constructor__P90609.info = {"start":786,"length":108,"line":38,"column":8,"endLine":39,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["this","iconImage","getText","action"]} +Sprite_top__P20374.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__P20374.isGetter = true; -function scene_systemMenu_MenuOption_constructor__P90609_mk(s) { +function Sprite_top__P20374_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_constructor__P90609, depth: s.depth + 1, + parent: s, fn: Sprite_top__P20374, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, + tmp_0: undefined, + arg0: undefined, } } -function helpers_screenBrightness__P89487(s) { +function Sprite_y__P20328(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21046,27 +19502,52 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = globals.brightness___89472; + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P20375_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + s.tmp_4 = Sprite_height__P20369_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 310; 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 = 311; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_screenBrightness__P89487.info = {"start":9161,"length":98,"line":288,"column":4,"endLine":290,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]} +Sprite_y__P20328.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 helpers_screenBrightness__P89487_mk(s) { +function Sprite_y__P20328_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_screenBrightness__P89487, depth: s.depth + 1, + parent: s, fn: Sprite_y__P20328, depth: s.depth + 1, pc: 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 music_volume__P89142(s) { +function Sprite_height__P20369(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21076,29 +19557,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = music_initVolume__P91994_mk(s); - s.callLocIdx = 61; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = globals.globalVolume___91990; - return leave(s, r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + r0 = s.arg0.fields["_height"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -music_volume__P89142.info = {"start":1781,"length":90,"line":61,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"volume","argumentNames":[]} +Sprite_height__P20369.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__P20369.isGetter = true; -function music_volume__P89142_mk(s) { +function Sprite_height__P20369_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_volume__P89142, depth: s.depth + 1, + parent: s, fn: Sprite_height__P20369, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + arg0: undefined, } } -function music_initVolume__P91994(s) { +function Math_abs__P18099(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21108,38 +19595,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.globalVolume___91990 === null); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = (s.arg0 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.globalVolume___91990 = (0); - s.tmp_0 = music_setVolume__P89141_mk(s); - r0 = pxsim_pxtcore.getConfig(59, 128); - s.tmp_0.arg0 = r0; - s.callLocIdx = 58; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; + r0 = (0 - s.arg0); + { step = 2; continue; } case 1: + r0 = s.arg0; case 2: - r0 = undefined; + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -music_initVolume__P91994.info = {"start":1014,"length":180,"line":33,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"initVolume","argumentNames":[]} +Math_abs__P18099.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 music_initVolume__P91994_mk(s) { +function Math_abs__P18099_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_initVolume__P91994, depth: s.depth + 1, + parent: s, fn: Math_abs__P18099, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, } } -function helpers_arrayConcat__P87634(s) { +function scene_systemMenu_MenuOption_setState__P21064(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21149,74 +19640,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.out___99980 = undefined; - s.value___99983 = undefined; - s.unnamed694___U2 = undefined; - s.unnamed695___U3 = undefined; - s.value___99990 = undefined; - s.unnamed696___U5 = undefined; - s.unnamed697___U6 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.out___99980 = (r0); - s.value___99983 = (undefined); - s.unnamed694___U2 = (s.arg0); - s.unnamed695___U3 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed695___U3; - r0 = pxsim_Array__length(s.unnamed694___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed694___U2, s.unnamed695___U3); - s.value___99983 = (r0); - r0 = pxsim_Array__push(s.out___99980, s.value___99983); - r0 = (s.unnamed695___U3 + 1); - s.unnamed695___U3 = (r0); - { step = 1; continue; } - case 2: - s.unnamed694___U2 = (undefined); - s.value___99990 = (undefined); - s.unnamed696___U5 = (s.arg1); - s.unnamed697___U6 = (0); - case 3: - s.tmp_0 = r0 = s.unnamed697___U6; - r0 = pxsim_Array__length(s.unnamed696___U5); + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C21058_VT)) failedCast(r0); + r0 = s.arg0.fields["state"]; s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed696___U5, s.unnamed697___U6); - s.value___99990 = (r0); - r0 = pxsim_Array__push(s.out___99980, s.value___99990); - r0 = (s.unnamed697___U6 + 1); - s.unnamed697___U6 = (r0); + r0 = (s.tmp_1 === s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } { step = 3; continue; } + case 1: + case 2: + r0 = (s.arg0).fields["state"] = (s.arg1); + s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P23159_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 985; s.pc = 4; return s.tmp_0; case 4: - s.unnamed696___U5 = (undefined); - r0 = s.out___99980; + r0 = s.retval; + case 3: + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arrayConcat__P87634.info = {"start":8639,"length":264,"line":288,"column":4,"endLine":297,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayConcat","argumentNames":["arr","otherArr"]} +scene_systemMenu_MenuOption_setState__P21064.info = {"start":1655,"length":147,"line":71,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setState","argumentNames":["this","state"]} -function helpers_arrayConcat__P87634_mk(s) { +function scene_systemMenu_MenuOption_setState__P21064_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayConcat__P87634, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setState__P21064, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - out___99980: undefined, - value___99983: undefined, - unnamed694___U2: undefined, - unnamed695___U3: undefined, - value___99990: undefined, - unnamed696___U5: undefined, - unnamed697___U6: undefined, arg0: undefined, arg1: undefined, } } @@ -21225,7 +19684,7 @@ function helpers_arrayConcat__P87634_mk(s) { -function scene_systemMenu_PauseMenu_show__P90618(s) { +function scene_systemMenu_MenuOption_updateCard__P23159(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21235,300 +19694,136 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___98622 = undefined; - s.i___98623 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C90616_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = if_generator_1_mk(s); - s.tmp_2.arg0 = s.arg0; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "generator"), 1); - s.callLocIdx = 1012; 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 = 1012; s.pc = 3; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1012; s.pc = 3; return s.tmp_2;; } - else { s.callLocIdx = 1012; 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___98623 = (0); - case 1: - s.tmp_1 = r0 = s.i___98623; - r0 = s.arg0.fields["options"]; - s.tmp_3 = r0; - r0 = pxsim_Array__length(s.tmp_3); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C21058_VT)) failedCast(r0); + r0 = s.arg0.fields["theme"]; s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - r0 = s.arg0.fields["options"]; - s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_4, s.i___98623); - s.current___98622 = (r0); - s.tmp_0 = scene_systemMenu_MenuOption_show__P90610_mk(s); - s.tmp_0.arg0 = s.current___98622; - s.callLocIdx = 1013; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P90613_mk(s); - s.tmp_0.arg0 = s.current___98622; - r0 = s.arg0.fields["theme"]; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1014; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = scene_systemMenu_MenuOption_position__P90611_mk(s); - s.tmp_0.arg0 = s.current___98622; - s.tmp_2 = if_padding_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_2.arg0 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "padding"); - } else { - 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 = 1015; s.pc = 7; return s.tmp_2; } - } - case 7: - r0 = s.retval; - s.tmp_1 = r0; - s.tmp_5 = r0 = s.i___98623; - s.tmp_7 = if_cardsPerRow_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_7.arg0 = r0; - if (!s.tmp_7.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "cardsPerRow"); - } else { - 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 = 1016; s.pc = 8; return s.tmp_7; } - } - case 8: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_5 % s.tmp_6); - s.tmp_4 = r0; - s.tmp_10 = if_cardWidth_1_mk(s); + if (!r0) { step = 1; continue; } + { step = 7; continue; } + case 1: + case 2: + r0 = s.arg0.fields["state"]; + s.tmp_3 = r0; + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_3); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(0, s.tmp_3); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_3); + if (r0) { step = 5; continue; } + r0 = s.tmp_3; + { step = 6; continue; } + case 3: + s.tmp_4 = Sprite_setImage__P20362_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_4.arg0 = r0; + s.tmp_5 = if_basicCard_1_mk(s); r0 = s.arg0.fields["theme"]; - s.tmp_10.arg0 = r0; - if (!s.tmp_10.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_10.arg0, "cardWidth"); + s.tmp_5.arg0 = r0; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "basicCard"); } else { - s.tmp_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 = 1017; s.pc = 9; return s.tmp_10; } + 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 = 988; s.pc = 9; return s.tmp_5; } } case 9: r0 = s.retval; - s.tmp_9 = r0; - s.tmp_12 = if_cardSpacing_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_12.arg0 = r0; - if (!s.tmp_12.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_12.arg0, "cardSpacing"); - } else { - 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 = 1018; s.pc = 10; return s.tmp_12; } - } - case 10: + s.tmp_4.arg1 = r0; + s.callLocIdx = 989; s.pc = 8; return s.tmp_4; + case 8: r0 = s.retval; - s.tmp_11 = r0; - r0 = (s.tmp_9 + s.tmp_11); - s.tmp_8 = r0; - r0 = (s.tmp_4 * s.tmp_8); - s.tmp_3 = r0; - r0 = (s.tmp_1 + s.tmp_3); - s.tmp_0.arg1 = r0; - s.tmp_14 = if_cardsTop_1_mk(s); + { step = 6; continue; } + case 4: + s.tmp_0 = Sprite_setImage__P20362_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = if_selectedCard_1_mk(s); r0 = s.arg0.fields["theme"]; - s.tmp_14.arg0 = r0; - if (!s.tmp_14.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_14.arg0, "cardsTop"); + s.tmp_1.arg0 = r0; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "selectedCard"); } else { - s.tmp_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 = 1019; s.pc = 11; return s.tmp_14; } + 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 = 990; s.pc = 11; return s.tmp_1; } } case 11: r0 = s.retval; - s.tmp_13 = r0; - s.tmp_17 = r0 = s.i___98623; - s.tmp_19 = if_cardsPerRow_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_19.arg0 = r0; - if (!s.tmp_19.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_19.arg0, "cardsPerRow"); - } else { - 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 = 1020; s.pc = 12; return s.tmp_19; } - } - case 12: + s.tmp_0.arg1 = r0; + s.callLocIdx = 991; s.pc = 10; return s.tmp_0; + case 10: r0 = s.retval; - s.tmp_18 = r0; - r0 = pxsim.Math_.idiv(s.tmp_17, s.tmp_18); - s.tmp_16 = r0; - s.tmp_22 = if_cardWidth_1_mk(s); + { step = 6; continue; } + case 5: + s.tmp_0 = Sprite_setImage__P20362_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = if_activeCard_1_mk(s); r0 = s.arg0.fields["theme"]; - s.tmp_22.arg0 = r0; - if (!s.tmp_22.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_22.arg0, "cardWidth"); + s.tmp_1.arg0 = r0; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "activeCard"); } else { - s.tmp_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 = 1021; s.pc = 13; return s.tmp_22; } + 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 = 992; s.pc = 13; return s.tmp_1; } } case 13: r0 = s.retval; - s.tmp_21 = r0; - s.tmp_24 = if_cardSpacing_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_24.arg0 = r0; - if (!s.tmp_24.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_24.arg0, "cardSpacing"); - } else { - 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 = 1022; s.pc = 14; return s.tmp_24; } - } - case 14: + s.tmp_0.arg1 = r0; + s.callLocIdx = 993; s.pc = 12; return s.tmp_0; + case 12: r0 = s.retval; - s.tmp_23 = r0; - r0 = (s.tmp_21 + s.tmp_23); - s.tmp_20 = r0; - r0 = (s.tmp_16 * s.tmp_20); - s.tmp_15 = r0; - r0 = (s.tmp_13 + s.tmp_15); - s.tmp_0.arg2 = r0; - s.callLocIdx = 1023; s.pc = 6; return s.tmp_0; case 6: - r0 = s.retval; - r0 = (s.i___98623 + 1); - s.i___98623 = (r0); - { step = 1; continue; } - case 2: - s.tmp_0 = controller__setUserEventsEnabled__P89727_mk(s); - s.tmp_0.arg0 = false; - s.callLocIdx = 1024; s.pc = 15; return s.tmp_0; + s.tmp_0 = Sprite_x__P20326_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = Sprite_x__P20325_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 994; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P98686); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P89717_mk(s); - s.tmp_1.arg0 = globals.A___89634; - s.tmp_1.arg1 = 2053; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1026; s.pc = 16; return s.tmp_1; - case 16: + s.tmp_0.arg1 = r0; + s.callLocIdx = 995; s.pc = 14; return s.tmp_0; + case 14: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P98706); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P89717_mk(s); - s.tmp_1.arg0 = globals.A___89634; - s.tmp_1.arg1 = 2052; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1028; s.pc = 17; return s.tmp_1; + s.tmp_0 = Sprite_y__P20328_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = Sprite_y__P20327_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 996; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P89717_mk(s); - s.tmp_0.arg0 = globals.B___89635; - s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P98735; - s.callLocIdx = 1030; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P89717_mk(s); - s.tmp_0.arg0 = globals.menu___89640; - s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P98740; - s.callLocIdx = 1032; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P98745); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P89717_mk(s); - s.tmp_1.arg0 = globals.up___89637; - s.tmp_1.arg1 = 2053; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1036; s.pc = 20; return s.tmp_1; - case 20: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P98757); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P89717_mk(s); - s.tmp_1.arg0 = globals.left___89636; - s.tmp_1.arg1 = 2053; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1039; s.pc = 21; return s.tmp_1; - case 21: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P98766); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P89717_mk(s); - s.tmp_1.arg0 = globals.down___89639; - s.tmp_1.arg1 = 2053; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1043; s.pc = 22; return s.tmp_1; - case 22: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P98782); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P89717_mk(s); - s.tmp_1.arg0 = globals.right___89638; - s.tmp_1.arg1 = 2053; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1046; s.pc = 23; return s.tmp_1; - case 23: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P98794); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = game_onShade__P90538_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 1049; s.pc = 24; return s.tmp_1; - case 24: - r0 = s.retval; - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P90620_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1050; s.pc = 25; return s.tmp_0; - case 25: + s.tmp_0.arg1 = r0; + s.callLocIdx = 997; s.pc = 16; return s.tmp_0; + case 16: r0 = s.retval; + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show__P90618.info = {"start":3296,"length":2241,"line":123,"column":8,"endLine":181,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"show","argumentNames":["this"]} +scene_systemMenu_MenuOption_updateCard__P23159.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_PauseMenu_show__P90618_mk(s) { +function scene_systemMenu_MenuOption_updateCard__P23159_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show__P90618, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_updateCard__P23159, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21536,27 +19831,6 @@ function scene_systemMenu_PauseMenu_show__P90618_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, - tmp_18: undefined, - tmp_19: undefined, - tmp_20: undefined, - tmp_21: undefined, - tmp_22: undefined, - tmp_23: undefined, - tmp_24: undefined, - current___98622: undefined, - i___98623: undefined, arg0: undefined, } } @@ -21564,7 +19838,7 @@ function scene_systemMenu_PauseMenu_show__P90618_mk(s) { -function scene_systemMenu_PauseMenu_show_inline__P98686(s) { +function Sprite_x__P20326(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21574,75 +19848,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["options"]; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P20371_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + s.tmp_4 = Sprite_width__P20368_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 305; 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 = 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 = (s.tmp_1 - s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 306; s.pc = 1; return s.tmp_0; case 1: - r0 = s.caps[0].fields["options"]; - s.tmp_5 = r0; - r0 = s.caps[0].fields["selection"]; - s.tmp_6 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.tmp_6); - 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_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 3; continue; } - { step = 5; continue; } - case 3: - case 4: - s.tmp_8 = scene_systemMenu_MenuOption_setState__P90614_mk(s); - r0 = s.caps[0].fields["options"]; - s.tmp_9 = r0; - r0 = s.caps[0].fields["selection"]; - s.tmp_10 = r0; - r0 = pxsim_Array__getAt(s.tmp_9, s.tmp_10); - s.tmp_8.arg0 = r0; - s.tmp_8.arg1 = 1; - s.callLocIdx = 1025; s.pc = 6; return s.tmp_8; - case 6: r0 = s.retval; - case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P98686.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +Sprite_x__P20326.info = {"start":2724,"length":65,"line":115,"column":4,"endLine":117,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this","v"]} -function scene_systemMenu_PauseMenu_show_inline__P98686_mk(s) { +function Sprite_x__P20326_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P98686, depth: s.depth + 1, + parent: s, fn: Sprite_x__P20326, depth: s.depth + 1, pc: 0, retval: undefined, 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, + arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_PauseMenu_show_inline__P98706(s) { +function Sprite_left__P20371(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21652,83 +19905,138 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["options"]; + s.physics___29380 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 351; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = r0.fields["physicsEngine"]; + s.physics___29380 = (r0); + s.tmp_0 = PhysicsEngine__C20482_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___29380; + s.tmp_0.arg1 = s.arg0; + r0 = (s.arg1 * 256); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.caps[0].fields["options"]; - s.tmp_5 = r0; - r0 = s.caps[0].fields["selection"]; - s.tmp_6 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.tmp_6); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); + r0 = s.arg0.fields["_x"]; s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C20482_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: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 3; continue; } - { step = 5; continue; } - case 3: - case 4: - s.tmp_8 = scene_systemMenu_MenuOption_setState__P90614_mk(s); - r0 = s.caps[0].fields["options"]; - s.tmp_9 = r0; - r0 = s.caps[0].fields["selection"]; - s.tmp_10 = r0; - r0 = pxsim_Array__getAt(s.tmp_9, s.tmp_10); - s.tmp_8.arg0 = r0; - s.tmp_8.arg1 = 0; - s.callLocIdx = 1027; s.pc = 6; return s.tmp_8; - case 6: r0 = s.retval; - r0 = s.caps[0].fields["options"]; - s.tmp_1 = r0; - r0 = s.caps[0].fields["selection"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); - r0 = r0.fields["action"]; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +Sprite_left__P20371.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 Sprite_left__P20371_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_left__P20371, depth: s.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___29380: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Sprite_left__P20370(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C20312_VT)) failedCast(r0); + r0 = s.arg0.fields["_x"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_left__P20370.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__P20370.isGetter = true; + +function Sprite_left__P20370_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_left__P20370, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_width__P20368(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C20312_VT)) failedCast(r0); + r0 = s.arg0.fields["_width"]; s.tmp_0 = r0; - r0 = pxsim.control.runInParallel(s.tmp_0); - case 5: - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P98706.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +Sprite_width__P20368.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__P20368.isGetter = true; -function scene_systemMenu_PauseMenu_show_inline__P98706_mk(s) { +function Sprite_width__P20368_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P98706, depth: s.depth + 1, + parent: s, fn: Sprite_width__P20368, depth: s.depth + 1, pc: 0, retval: undefined, 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, + arg0: undefined, } } -function scene_systemMenu_PauseMenu_show_inline__P98735(s) { +function scene_systemMenu_MenuOption_setTheme__P21063(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21738,29 +20046,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_closeMenu__P90623_mk(s); - s.callLocIdx = 1029; s.pc = 1; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C21058_VT)) failedCast(r0); + r0 = (s.arg0).fields["theme"] = (s.arg1); + s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P23159_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 984; 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__P98735.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_MenuOption_setTheme__P21063.info = {"start":1544,"length":101,"line":66,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setTheme","argumentNames":["this","theme"]} -function scene_systemMenu_PauseMenu_show_inline__P98735_mk(s) { +function scene_systemMenu_MenuOption_setTheme__P21063_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P98735, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setTheme__P21063, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_PauseMenu_show_inline__P98740(s) { +function scene_systemMenu_MenuOption_position__P21061(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21770,29 +20089,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_closeMenu__P90623_mk(s); - s.callLocIdx = 1031; 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, scene_systemMenu_MenuOption__C21058_VT)) failedCast(r0); + r0 = (s.arg0).fields["top"] = (s.arg2); + s.tmp_0 = Sprite_left__P20371_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 975; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + s.tmp_0 = Sprite_top__P20375_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 976; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.tmp_0 = Sprite_x__P20326_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = Sprite_x__P20325_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 977; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 978; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = Sprite_y__P20328_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = Sprite_y__P20327_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 979; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 980; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P98740.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_MenuOption_position__P21061.info = {"start":1178,"length":223,"line":51,"column":8,"endLine":59,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"position","argumentNames":["this","left","top"]} -function scene_systemMenu_PauseMenu_show_inline__P98740_mk(s) { +function scene_systemMenu_MenuOption_position__P21061_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P98740, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_position__P21061, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function scene_systemMenu_PauseMenu_show_inline__P98745(s) { +function scene_systemMenu_MenuOption_show__P21060(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21802,58 +20170,108 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P90620_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_max__P87651_mk(s); - s.tmp_1.arg0 = 0; - r0 = s.caps[0].fields["selection"]; - s.tmp_2 = r0; - s.tmp_4 = if_cardsPerRow_1_mk(s); - r0 = s.caps[0].fields["theme"]; - s.tmp_4.arg0 = r0; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "cardsPerRow"); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C21058_VT)) failedCast(r0); + r0 = s.arg0.fields["theme"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = if_basicCard_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_1.arg0 = r0; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "basicCard"); } else { - s.tmp_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 = 1033; s.pc = 3; return s.tmp_4; } + 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 = 970; s.pc = 3; return s.tmp_1; } } case 3: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_2 - s.tmp_3); - s.tmp_1.arg1 = r0; - s.callLocIdx = 1034; s.pc = 2; return s.tmp_1; + { step = 2; continue; } + case 1: + r0 = globals.CARD_NORMAL___21082; case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + s.tmp_3 = r0 = s.arg0; + s.tmp_5 = sprites_create__P20246_mk(s); + s.tmp_5.arg0 = s.tmp_2; + s.tmp_5.arg1 = undefined; + s.callLocIdx = 971; s.pc = 4; return s.tmp_5; + case 4: r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1035; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["card"] = (s.tmp_4); + s.tmp_0 = if_z_2_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 1; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "z", s.tmp_0.arg1); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; + if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } + else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } + else { s.callLocIdx = 972; s.pc = 5; return s.tmp_0; } + } + case 5: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = sprites_create__P20246_mk(s); + r0 = s.arg0.fields["iconImage"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = undefined; + s.callLocIdx = 973; s.pc = 6; return s.tmp_2; + case 6: r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["icon"] = (s.tmp_1); + s.tmp_0 = if_z_2_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 2; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "z", s.tmp_0.arg1); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; + if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } + else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } + else { s.callLocIdx = 974; s.pc = 7; return s.tmp_0; } + } + case 7: + r0 = s.retval; + r0 = (s.arg0).fields["state"] = (2); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P98745.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_MenuOption_show__P21060.info = {"start":904,"length":264,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"show","argumentNames":["this"]} -function scene_systemMenu_PauseMenu_show_inline__P98745_mk(s) { +function scene_systemMenu_MenuOption_show__P21060_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P98745, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_show__P21060, depth: s.depth + 1, pc: 0, retval: undefined, 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 scene_systemMenu_PauseMenu_show_inline__P98757(s) { +function sprites_create__P20246(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21863,42 +20281,87 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P90620_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_max__P87651_mk(s); - s.tmp_1.arg0 = 0; - r0 = s.caps[0].fields["selection"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1.arg1 = r0; - s.callLocIdx = 1037; s.pc = 2; return s.tmp_1; + s.scene___29460 = undefined; + s.sprite___29463 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 296; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.scene___29460 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(Sprite__C20312_VT); + s.tmp_0 = r0; + s.tmp_1 = Sprite_constructor__P20359_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.callLocIdx = 297; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1038; s.pc = 1; return s.tmp_0; - case 1: + s.sprite___29463 = (s.tmp_0); + s.tmp_0 = Sprite_setKind__P20379_mk(s); + s.tmp_0.arg0 = s.sprite___29463; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 298; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - r0 = undefined; + s.tmp_0 = PhysicsEngine__C20482_v0_2_mk(s); + r0 = s.scene___29460.fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.sprite___29463; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C20482_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.addSprite; + s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P29478); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + r0 = pxsim_pxtcore_mkAction(1, sprites_create_inline__P29484); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___29463); + s.tmp_2 = helpers_arrayForEach__P18080_mk(s); + s.tmp_3 = helpers_arrayFilter__P18081_mk(s); + r0 = s.scene___29460.fields["createdHandlers"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.tmp_0; + s.callLocIdx = 299; 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 = 301; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; + r0 = s.sprite___29463; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P98757.info = {"start":4927,"length":89,"line":163,"column":53,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +sprites_create__P20246.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 scene_systemMenu_PauseMenu_show_inline__P98757_mk(s) { +function sprites_create__P20246_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P98757, depth: s.depth + 1, + parent: s, fn: sprites_create__P20246, depth: s.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___29460: undefined, + sprite___29463: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_PauseMenu_show_inline__P98766(s) { +function forEach_inline__P29478(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21908,65 +20371,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P90620_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_min__P87652_mk(s); - r0 = s.caps[0].fields["options"]; - s.tmp_3 = r0; - r0 = pxsim_Array__length(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1.arg0 = r0; - r0 = s.caps[0].fields["selection"]; - s.tmp_4 = r0; - s.tmp_6 = if_cardsPerRow_1_mk(s); - r0 = s.caps[0].fields["theme"]; - s.tmp_6.arg0 = r0; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "cardsPerRow"); - } else { - 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 = 1040; s.pc = 3; return s.tmp_6; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; } - case 3: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_4 + s.tmp_5); - s.tmp_1.arg1 = r0; - s.callLocIdx = 1041; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1042; 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.tmp_0 == s.caps[0]); return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P98766.info = {"start":5073,"length":132,"line":167,"column":53,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +forEach_inline__P29478.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} -function scene_systemMenu_PauseMenu_show_inline__P98766_mk(s) { +function forEach_inline__P29478_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P98766, depth: s.depth + 1, + parent: s, fn: forEach_inline__P29478, depth: s.depth + 1, pc: 0, retval: undefined, 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 scene_systemMenu_PauseMenu_show_inline__P98782(s) { +function sprites_create_inline__P29484(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21976,49 +20406,44 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P90620_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_min__P87652_mk(s); - r0 = s.caps[0].fields["options"]; - s.tmp_3 = r0; - r0 = pxsim_Array__length(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1.arg0 = r0; - r0 = s.caps[0].fields["selection"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 + 1); - s.tmp_1.arg1 = r0; - s.callLocIdx = 1044; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1045; s.pc = 1; return s.tmp_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 = 300; 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 = 300; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 300; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 300; 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__P98782.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +sprites_create_inline__P29484.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} -function scene_systemMenu_PauseMenu_show_inline__P98782_mk(s) { +function sprites_create_inline__P29484_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P98782, depth: s.depth + 1, + parent: s, fn: sprites_create_inline__P29484, depth: s.depth + 1, pc: 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_systemMenu_PauseMenu_show_inline__P98794(s) { +function PhysicsEngine_addSprite__P20484(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22028,35 +20453,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P90619_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 1047; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P90621_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 1048; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C20482_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show_inline__P98794.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +PhysicsEngine_addSprite__P20484.info = {"start":124,"length":29,"line":8,"column":4,"endLine":8,"endColumn":33,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} -function scene_systemMenu_PauseMenu_show_inline__P98794_mk(s) { +function PhysicsEngine_addSprite__P20484_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P98794, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_addSprite__P20484, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_PauseMenu_drawText__P90621(s) { +function Sprite_setKind__P20379(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22066,277 +20489,135 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.spritesByKind___29502 = undefined; + s.overlapMap___29531 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C90616_VT)) failedCast(r0); - r0 = s.arg0.fields["options"]; - 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, Sprite__C20312_VT)) failedCast(r0); + r0 = (s.arg1 == undefined); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 3; 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: - s.tmp_3 = helpers_imageFillRect__P89477_mk(s); - s.tmp_3.arg0 = globals.screen___89553; - s.tmp_3.arg1 = 0; - s.tmp_3.arg2 = 0; - r0 = pxsim_ImageMethods.width(globals.screen___89553); - s.tmp_3.arg3 = r0; - s.tmp_5 = if_cardsTop_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_5.arg0 = r0; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "cardsTop"); - } else { - 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 = 1061; s.pc = 5; return s.tmp_5; } - } - case 5: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 - 2); - s.tmp_3.arg4 = r0; - s.tmp_3.arg5 = 15; - s.callLocIdx = 1062; s.pc = 4; return s.tmp_3; + // 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: - r0 = s.retval; - s.tmp_0 = helpers_imagePrintCenter__P89510_mk(s); - s.tmp_0.arg0 = globals.screen___89553; - s.tmp_1 = if_headerText_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_1.arg0 = r0; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "headerText"); - } else { - 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 = 1063; s.pc = 7; return s.tmp_1; } - } - case 7: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 2; - s.tmp_0.arg3 = 1; - s.tmp_2 = if_headerFont_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_2.arg0 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "headerFont"); - } else { - 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 = 1064; s.pc = 8; return s.tmp_2; } - } - case 8: - r0 = s.retval; - s.tmp_0.arg4 = r0; - s.callLocIdx = 1065; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P89477_mk(s); - s.tmp_0.arg0 = globals.screen___89553; - s.tmp_0.arg1 = 0; - s.tmp_2 = if_infoTop_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_2.arg0 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "infoTop"); - } else { - 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 = 1066; s.pc = 10; return s.tmp_2; } - } - case 10: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 3); - s.tmp_0.arg2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___89553); - s.tmp_0.arg3 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___89553); - s.tmp_4 = r0; - s.tmp_6 = if_infoTop_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_6.arg0 = r0; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "infoTop"); - } else { - 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 = 1067; s.pc = 11; return s.tmp_6; } - } - case 11: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_4 - s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_3 + 6); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = 15; - s.callLocIdx = 1068; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P89477_mk(s); - s.tmp_0.arg0 = globals.screen___89553; - s.tmp_1 = if_padding_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_1.arg0 = r0; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "padding"); - } else { - 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 = 1069; s.pc = 13; return s.tmp_1; } - } - case 13: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_2 = if_infoTop_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_2.arg0 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "infoTop"); - } else { - 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 = 1070; s.pc = 14; return s.tmp_2; } - } - case 14: - r0 = s.retval; - s.tmp_0.arg2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___89553); - s.tmp_3 = r0; - s.tmp_6 = if_padding_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_6.arg0 = r0; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "padding"); - } else { - 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 = 1071; s.pc = 15; return s.tmp_6; } - } - case 15: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_5 << 1); - s.tmp_4 = r0; - r0 = (s.tmp_3 - s.tmp_4); - s.tmp_0.arg3 = r0; - s.tmp_8 = if_charHeight_1_mk(s); - s.tmp_9 = if_infoFont_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_9.arg0 = r0; - if (!s.tmp_9.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "infoFont"); - } else { - 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 = 1072; s.pc = 17; return s.tmp_9; } - } - case 17: - r0 = s.retval; - s.tmp_8.arg0 = r0; - 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 = 1073; s.pc = 16; return s.tmp_8; } - } + s.tmp_3 = game_currentScene__P20970_mk(s); + s.callLocIdx = 366; s.pc = 16; return s.tmp_3; case 16: r0 = s.retval; - s.tmp_7 = r0; - r0 = (s.tmp_7 + 1); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = 1; - s.callLocIdx = 1074; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.tmp_0 = helpers_imagePrintCenter__P89510_mk(s); - s.tmp_0.arg0 = globals.screen___89553; - s.tmp_1 = if_getText_1_mk(s); - r0 = s.arg0.fields["options"]; + r0 = r0.fields["spritesByKind"]; + s.spritesByKind___29502 = (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 = s.arg0.fields["selection"]; + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___29502, s.tmp_2); + case 6: + // jmp value (already in r0) s.tmp_3 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); - 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 = 1075; 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 = 1075; s.pc = 19; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 1075; s.pc = 19; return s.tmp_1;; } - else { s.callLocIdx = 1075; s.pc = 19; return s.tmp_1; } - } - case 19: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_5 = if_infoTop_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_5.arg0 = r0; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "infoTop"); - } else { - 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 = 1076; s.pc = 20; return s.tmp_5; } - } - case 20: + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 7; continue; } + s.tmp_4 = sprites_SpriteSet_remove__P20441_mk(s); + r0 = s.arg0.fields["_kind"]; + s.tmp_5 = r0; + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___29502, s.tmp_5); + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = s.arg0; + s.callLocIdx = 367; 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___29502, 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__C20434_VT); s.tmp_4 = r0; - r0 = (s.tmp_4 + 1); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = 15; - s.tmp_6 = if_infoFont_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_6.arg0 = r0; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "infoFont"); - } else { - 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 = 1077; s.pc = 21; return s.tmp_6; } - } - case 21: - r0 = s.retval; - s.tmp_0.arg4 = r0; - s.callLocIdx = 1078; s.pc = 18; return s.tmp_0; + s.tmp_5 = sprites_SpriteSet_constructor__P20436_mk(s); + s.tmp_5.arg0 = s.tmp_4; + s.callLocIdx = 368; s.pc = 18; return s.tmp_5; case 18: r0 = s.retval; - case 3: + r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___29502, s.arg1, s.tmp_4); + case 9: + case 10: + s.tmp_0 = sprites_SpriteSet_add__P20439_mk(s); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___29502, s.arg1); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 369; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + case 11: + case 12: + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 370; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + r0 = r0.fields["overlapMap"]; + s.overlapMap___29531 = (r0); + r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___29531, 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___29531; + 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___29531, s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_kindsOverlappedWith"] = (s.tmp_1); + r0 = (s.arg0).fields["_kind"] = (s.arg1); + case 15: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_drawText__P90621.info = {"start":6927,"length":795,"line":224,"column":8,"endLine":241,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"drawText","argumentNames":["this"]} +Sprite_setKind__P20379.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 scene_systemMenu_PauseMenu_drawText__P90621_mk(s) { +function Sprite_setKind__P20379_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_drawText__P90621, depth: s.depth + 1, + parent: s, fn: Sprite_setKind__P20379, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22344,18 +20625,17 @@ function scene_systemMenu_PauseMenu_drawText__P90621_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, + spritesByKind___29502: undefined, + overlapMap___29531: undefined, arg0: undefined, + arg1: undefined, } } -function helpers_imagePrintCenter__P89510(s) { +function sprites_SpriteSet_add__P20439(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22365,92 +20645,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___98881 = undefined; - s.x___98887 = 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); + r0 = s.arg0; + if (!checkSubtype(r0, sprites_SpriteSet__C20434_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; } - s.tmp_2 = image_getFontForText__P89498_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 94; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - s.arg4 = (r0); + r0 = false; + { step = 5; continue; } case 1: case 2: - r0 = pxsim_String_.length(s.arg1); - s.tmp_0 = r0; - s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.arg4; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charWidth"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charWidth"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 95; s.pc = 4; return s.tmp_2; } - } + 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.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0 * s.tmp_1); - s.w___98881 = (r0); - r0 = pxsim_ImageMethods.width(s.arg0); - s.tmp_1 = r0; - r0 = (s.tmp_1 - s.w___98881); - s.tmp_0 = r0; - r0 = (s.tmp_0 / 2); - s.x___98887 = (r0); - s.tmp_0 = helpers_imagePrint__P89511_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.x___98887; - s.tmp_0.arg3 = s.arg2; - s.tmp_0.arg4 = s.arg3; - s.tmp_0.arg5 = s.arg4; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 96; s.pc = 5; return s.tmp_0; + r0 = s.arg0.fields["_sprites"]; + s.tmp_5 = r0; + r0 = pxsim_Array__push(s.tmp_5, s.arg1); + r0 = true; case 5: - r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_imagePrintCenter__P89510.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"]} +sprites_SpriteSet_add__P20439.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 helpers_imagePrintCenter__P89510_mk(s) { +function sprites_SpriteSet_add__P20439_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrintCenter__P89510, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_add__P20439, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - w___98881: undefined, - x___98887: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function scene_systemMenu_PauseMenu_setSelection__P90620(s) { +function sprites_SpriteSet_contains__P20442(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22466,94 +20719,200 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C90616_VT)) failedCast(r0); - r0 = s.arg0.fields["options"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!checkSubtype(r0, sprites_SpriteSet__C20434_VT)) failedCast(r0); + r0 = s.arg0.fields["_sprites"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = pxsim_Array_.indexOf(s.tmp_1, s.arg1, undefined); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 9; continue; } + r0 = (s.tmp_0 > -1); + return leave(s, r0) + default: oops() +} } } +sprites_SpriteSet_contains__P20442.info = {"start":2172,"length":100,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"contains","argumentNames":["this","sprite"]} + +function sprites_SpriteSet_contains__P20442_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_SpriteSet_contains__P20442, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function sprites_SpriteSet_constructor__P20436(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C20434_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_sprites"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +sprites_SpriteSet_constructor__P20436.info = {"start":485,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]} + +function sprites_SpriteSet_constructor__P20436_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_SpriteSet_constructor__P20436, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function Sprite_constructor__P20359(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C20312_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_constructor__P20067_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 328; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = s.arg0.fields["options"]; + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___20003); s.tmp_4 = r0; - r0 = s.arg0.fields["selection"]; + r0 = pxsim_ImageMethods.width(s.arg1); s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_4, s.tmp_5); + r0 = (s.tmp_4 - s.tmp_5); s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - s.tmp_6 = scene_systemMenu_MenuOption_setState__P90614_mk(s); - r0 = s.arg0.fields["options"]; - s.tmp_7 = r0; - r0 = s.arg0.fields["selection"]; - s.tmp_8 = r0; - r0 = pxsim_Array__getAt(s.tmp_7, s.tmp_8); - s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = 2; - s.callLocIdx = 1058; s.pc = 10; return s.tmp_6; - case 10: - r0 = s.retval; - case 3: - case 4: - r0 = (s.arg0).fields["selection"] = (s.arg1); - r0 = s.arg0.fields["options"]; + 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.arg0.fields["selection"]; + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.height(globals.screen___20003); + 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 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); + r0 = (s.tmp_2 * 256); + s.tmp_6 = r0; + r0 = (s.tmp_6 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + r0 = s.arg0.fields["_x"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_4 = controller_Button__C89710_v0_1_mk(s); - s.tmp_4.arg0 = globals.A___89634; - if (!checkSubtype(s.tmp_4.arg0, controller_Button__C89710_VT)) failedCast(s.tmp_4.arg0); - s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.isPressed; - s.pc = 11; return s.tmp_4; - case 11: + 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__P20330_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 331; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 5; continue; } - r0 = 1; - { step = 6; continue; } + s.tmp_0 = Sprite_vy__P20332_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 332; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = Sprite_ax__P20334_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 333; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = Sprite_ay__P20336_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 334; s.pc = 5; return s.tmp_0; case 5: - r0 = 0; + r0 = s.retval; + s.tmp_0 = Sprite_fx__P20338_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 335; s.pc = 6; return s.tmp_0; case 6: - // jmp value (already in r0) - s.tmp_5 = r0; - s.tmp_6 = scene_systemMenu_MenuOption_setState__P90614_mk(s); - r0 = s.arg0.fields["options"]; - s.tmp_7 = r0; - r0 = s.arg0.fields["selection"]; - s.tmp_8 = r0; - r0 = pxsim_Array__getAt(s.tmp_7, s.tmp_8); - s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = s.tmp_5; - s.callLocIdx = 1059; s.pc = 12; return s.tmp_6; - case 12: r0 = s.retval; + s.tmp_0 = Sprite_fy__P20340_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 336; s.pc = 7; return s.tmp_0; case 7: - case 8: - s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P92715_mk(s); + 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__P20362_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1060; s.pc = 13; return s.tmp_0; - case 13: + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 337; s.pc = 8; return s.tmp_0; + case 8: r0 = s.retval; + s.tmp_0 = Sprite_setKind__P20379_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = -1; + s.callLocIdx = 338; s.pc = 9; return s.tmp_0; case 9: + r0 = s.retval; + r0 = (s.arg0).fields["layer"] = (1); + r0 = (s.arg0).fields["lifespan"] = (undefined); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_overlappers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_obstacles"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_setSelection__P90620.info = {"start":6436,"length":481,"line":208,"column":8,"endLine":222,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setSelection","argumentNames":["this","selection"]} +Sprite_constructor__P20359.info = {"start":7406,"length":678,"line":278,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]} -function scene_systemMenu_PauseMenu_setSelection__P90620_mk(s) { +function Sprite_constructor__P20359_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P90620, depth: s.depth + 1, + parent: s, fn: Sprite_constructor__P20359, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22562,8 +20921,6 @@ function scene_systemMenu_PauseMenu_setSelection__P90620_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, arg0: undefined, arg1: undefined, } } @@ -22572,7 +20929,7 @@ function scene_systemMenu_PauseMenu_setSelection__P90620_mk(s) { -function scene_systemMenu_PauseMenu_updateScrollTarget__P92715(s) { +function Sprite_fy__P20340(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22582,141 +20939,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.row___99067 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C90616_VT)) failedCast(r0); - r0 = s.arg0.fields["selection"]; - s.tmp_0 = r0; - s.tmp_2 = if_cardsPerRow_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_2.arg0 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "cardsPerRow"); - } else { - 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 = 1081; 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___99067 = (r0); - r0 = s.arg0.fields["scrollRow"]; - s.tmp_1 = r0; - r0 = (s.row___99067 === 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___99067 - 1); - s.tmp_2 = r0; - r0 = s.arg0.fields["scrollRow"]; - s.tmp_3 = r0; - r0 = (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; } - { step = 7; continue; } - case 3: - case 4: - r0 = s.arg0.fields["scrollRow"]; - s.tmp_6 = r0; - r0 = (s.row___99067 > s.tmp_6); - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 5; continue; } - s.tmp_7 = r0 = s.arg0; - r0 = s.tmp_7.fields["scrollRow"]; - s.tmp_9 = r0; - r0 = (s.tmp_9 + 1); - s.tmp_8 = r0; - r0 = (s.tmp_7).fields["scrollRow"] = (s.tmp_8); - { step = 6; continue; } - case 5: + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["scrollRow"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["scrollRow"] = (s.tmp_1); - case 6: - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["scrollRow"]; - s.tmp_2 = r0; - s.tmp_5 = if_cardSpacing_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_5.arg0 = r0; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "cardSpacing"); - } else { - 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 = 1082; s.pc = 9; return s.tmp_5; } - } - case 9: + s.tmp_3 = Math_max__P18101_mk(s); + s.tmp_3.arg0 = 0; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 324; s.pc = 1; return s.tmp_3; + case 1: r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); s.tmp_4 = r0; - s.tmp_7 = if_cardWidth_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_7.arg0 = r0; - if (!s.tmp_7.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "cardWidth"); - } else { - 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 = 1083; s.pc = 10; return s.tmp_7; } - } - case 10: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_4 + s.tmp_6); - s.tmp_3 = r0; - r0 = (s.tmp_2 * s.tmp_3); + r0 = (s.tmp_4 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["scrollTarget"] = (s.tmp_1); - case 7: + r0 = (s.tmp_0).fields["_fy"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_updateScrollTarget__P92715.info = {"start":7907,"length":458,"line":250,"column":8,"endLine":260,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"updateScrollTarget","argumentNames":["this"]} +Sprite_fy__P20340.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_systemMenu_PauseMenu_updateScrollTarget__P92715_mk(s) { +function Sprite_fy__P20340_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P92715, depth: s.depth + 1, + parent: s, fn: Sprite_fy__P20340, depth: s.depth + 1, pc: 0, retval: undefined, 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, - row___99067: undefined, arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_PauseMenu_onUpdate__P90619(s) { +function Sprite_fy__P20339(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22726,178 +20993,119 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.t___98903 = undefined; - s.i___98907 = undefined; - s.dt___98936 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C90616_VT)) failedCast(r0); - r0 = pxsim.control.millis(); - s.tmp_0 = r0; - r0 = (s.tmp_0 / 250); - s.t___98903 = (r0); - s.i___98907 = (0); - case 1: - s.tmp_1 = r0 = s.i___98907; - r0 = s.arg0.fields["options"]; - 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 = 2; continue; } - s.tmp_4 = scene_systemMenu_MenuOption_setOffset__P90612_mk(s); - r0 = s.arg0.fields["options"]; - s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.i___98907); - s.tmp_4.arg0 = r0; - s.tmp_8 = r0 = s.t___98903; - s.tmp_11 = r0 = s.i___98907; - s.tmp_13 = if_cardsPerRow_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_13.arg0 = r0; - if (!s.tmp_13.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_13.arg0, "cardsPerRow"); - } else { - 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 = 1051; s.pc = 11; return s.tmp_13; } - } - case 11: - r0 = s.retval; - s.tmp_12 = r0; - r0 = (s.tmp_11 % s.tmp_12); - s.tmp_10 = r0; - r0 = (s.tmp_10 * 1.5707963267948966); - s.tmp_9 = r0; - r0 = (s.tmp_8 - s.tmp_9); - s.tmp_7 = r0; - r0 = pxsim.Math_.sin(s.tmp_7); - s.tmp_6 = r0; - r0 = (2 * s.tmp_6); - s.tmp_4.arg1 = r0; - s.callLocIdx = 1052; s.pc = 10; return s.tmp_4; - case 10: - r0 = s.retval; - r0 = (s.i___98907 + 1); - s.i___98907 = (r0); - { step = 1; continue; } - case 2: - s.tmp_1 = game_currentScene__P90520_mk(s); - s.callLocIdx = 1053; s.pc = 12; return s.tmp_1; - case 12: - r0 = s.retval; - r0 = r0.fields["eventContext"]; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["deltaTimeMillis"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 / 1000); - s.dt___98936 = (r0); - r0 = s.arg0.fields["scrollOffset"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["scrollTarget"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + r0 = s.arg0.fields["_fy"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_3 = r0 = s.arg0; - r0 = s.tmp_3.fields["scrollOffset"]; - s.tmp_5 = r0; - r0 = (s.dt___98936 * 100); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["scrollOffset"] = (s.tmp_4); - { step = 6; continue; } - case 3: - r0 = s.arg0.fields["scrollOffset"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["scrollTarget"]; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_fy__P20339.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__P20339.isGetter = true; + +function Sprite_fy__P20339_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_fy__P20339, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_fx__P20338(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C20312_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = Math_max__P18101_mk(s); + s.tmp_3.arg0 = 0; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 321; s.pc = 1; return s.tmp_3; + case 1: + r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_1 > s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_3 = r0 = s.arg0; - r0 = s.tmp_3.fields["scrollOffset"]; - s.tmp_5 = r0; - r0 = (s.dt___98936 * 100); - s.tmp_6 = r0; - r0 = (s.tmp_5 - s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["scrollOffset"] = (s.tmp_4); - { step = 5; continue; } - case 4: - { step = 9; continue; } - case 5: - case 6: - s.tmp_2 = Math_abs__P87649_mk(s); - r0 = s.arg0.fields["scrollOffset"]; - s.tmp_3 = r0; - r0 = s.arg0.fields["scrollTarget"]; + r0 = (s.tmp_2 * 256); s.tmp_4 = r0; - r0 = (s.tmp_3 - s.tmp_4); - s.tmp_2.arg0 = r0; - s.callLocIdx = 1055; s.pc = 13; return s.tmp_2; - case 13: - r0 = s.retval; + r0 = (s.tmp_4 | 0); s.tmp_1 = r0; - r0 = (s.tmp_1 < 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = s.arg0.fields["scrollTarget"]; - s.tmp_5 = r0; - r0 = (s.arg0).fields["scrollOffset"] = (s.tmp_5); - case 7: - case 8: - s.tmp_0 = scene_Camera_offsetY__P90310_mk(s); - s.tmp_1 = game_currentScene__P90520_mk(s); - s.callLocIdx = 1056; 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 = 1057; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - case 9: + r0 = (s.tmp_0).fields["_fx"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_onUpdate__P90619.info = {"start":5547,"length":879,"line":183,"column":8,"endLine":206,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"onUpdate","argumentNames":["this"]} +Sprite_fx__P20338.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_systemMenu_PauseMenu_onUpdate__P90619_mk(s) { +function Sprite_fx__P20338_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P90619, depth: s.depth + 1, + parent: s, fn: Sprite_fx__P20338, depth: s.depth + 1, pc: 0, retval: undefined, 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, - t___98903: undefined, - i___98907: undefined, - dt___98936: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Sprite_fx__P20337(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C20312_VT)) failedCast(r0); + r0 = s.arg0.fields["_fx"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_fx__P20337.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__P20337.isGetter = true; + +function Sprite_fx__P20337_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_fx__P20337, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -22905,7 +21113,7 @@ function scene_systemMenu_PauseMenu_onUpdate__P90619_mk(s) { -function scene_systemMenu_MenuOption_setOffset__P90612(s) { +function Sprite_ay__P20336(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22921,43 +21129,27 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C90608_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P89925_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["top"]; + if (!checkSubtype(r0, Sprite__C20312_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 + s.arg1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 994; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = Sprite_y__P89878_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P89877_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 995; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 996; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; + r0 = (s.tmp_0).fields["_ay"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setOffset__P90612.info = {"start":1411,"length":123,"line":61,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setOffset","argumentNames":["this","offset"]} +Sprite_ay__P20336.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 scene_systemMenu_MenuOption_setOffset__P90612_mk(s) { +function Sprite_ay__P20336_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setOffset__P90612, depth: s.depth + 1, + parent: s, fn: Sprite_ay__P20336, 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, } } @@ -22966,7 +21158,7 @@ function scene_systemMenu_MenuOption_setOffset__P90612_mk(s) { -function Math_abs__P87649(s) { +function Sprite_ay__P20335(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22980,30 +21172,23 @@ 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; - return leave(s, r0) + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + r0 = s.arg0.fields["_ay"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -Math_abs__P87649.info = {"start":16120,"length":77,"line":539,"column":4,"endLine":541,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"abs","argumentNames":["x"]} +Sprite_ay__P20335.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__P20335.isGetter = true; -function Math_abs__P87649_mk(s) { +function Sprite_ay__P20335_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_abs__P87649, depth: s.depth + 1, + parent: s, fn: Sprite_ay__P20335, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -23011,7 +21196,7 @@ function Math_abs__P87649_mk(s) { -function scene_systemMenu_MenuOption_setState__P90614(s) { +function Sprite_ax__P20334(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23027,36 +21212,27 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C90608_VT)) failedCast(r0); - r0 = s.arg0.fields["state"]; + if (!checkSubtype(r0, Sprite__C20312_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 === s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: - case 2: - r0 = (s.arg0).fields["state"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P92714_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 998; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - case 3: + r0 = (s.tmp_0).fields["_ax"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setState__P90614.info = {"start":1655,"length":147,"line":71,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setState","argumentNames":["this","state"]} +Sprite_ax__P20334.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 scene_systemMenu_MenuOption_setState__P90614_mk(s) { +function Sprite_ax__P20334_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setState__P90614, depth: s.depth + 1, + parent: s, fn: Sprite_ax__P20334, 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, } } @@ -23065,7 +21241,7 @@ function scene_systemMenu_MenuOption_setState__P90614_mk(s) { -function scene_systemMenu_MenuOption_updateCard__P92714(s) { +function Sprite_ax__P20333(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23080,138 +21256,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C90608_VT)) failedCast(r0); - r0 = s.arg0.fields["theme"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + r0 = s.arg0.fields["_ax"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 7; continue; } - case 1: - case 2: - r0 = s.arg0.fields["state"]; - s.tmp_3 = r0; - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_3); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(0, s.tmp_3); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_3); - if (r0) { step = 5; continue; } - r0 = s.tmp_3; - { step = 6; continue; } - case 3: - s.tmp_4 = Sprite_setImage__P89912_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_4.arg0 = r0; - s.tmp_5 = if_basicCard_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_5.arg0 = r0; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "basicCard"); - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["basicCard"]; - if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["basicCard"]; } - else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1001; s.pc = 9; return s.tmp_5; } - } - case 9: - r0 = s.retval; - s.tmp_4.arg1 = r0; - s.callLocIdx = 1002; s.pc = 8; return s.tmp_4; - case 8: - r0 = s.retval; - { step = 6; continue; } - case 4: - s.tmp_0 = Sprite_setImage__P89912_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = if_selectedCard_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_1.arg0 = r0; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "selectedCard"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["selectedCard"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["selectedCard"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1003; s.pc = 11; return s.tmp_1; } - } - case 11: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1004; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - { step = 6; continue; } - case 5: - s.tmp_0 = Sprite_setImage__P89912_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = if_activeCard_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_1.arg0 = r0; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "activeCard"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["activeCard"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["activeCard"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1005; s.pc = 13; return s.tmp_1; } - } - case 13: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1006; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - case 6: - s.tmp_0 = Sprite_x__P89876_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P89875_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 1007; s.pc = 15; return s.tmp_1; - case 15: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1008; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - s.tmp_0 = Sprite_y__P89878_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P89877_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 1009; s.pc = 17; return s.tmp_1; - case 17: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1010; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - case 7: - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_updateCard__P92714.info = {"start":2038,"length":497,"line":86,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"updateCard","argumentNames":["this"]} +Sprite_ax__P20333.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__P20333.isGetter = true; -function scene_systemMenu_MenuOption_updateCard__P92714_mk(s) { +function Sprite_ax__P20333_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_updateCard__P92714, depth: s.depth + 1, + parent: s, fn: Sprite_ax__P20333, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -23219,7 +21279,7 @@ function scene_systemMenu_MenuOption_updateCard__P92714_mk(s) { -function Sprite_x__P89876(s) { +function Sprite_vy__P20332(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23235,39 +21295,27 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P89921_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - s.tmp_4 = Sprite_width__P89918_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 306; s.pc = 2; return s.tmp_4; - case 2: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 / 2); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 307; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_x__P89876.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_vy__P20332.info = {"start":3757,"length":51,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this","v"]} -function Sprite_x__P89876_mk(s) { +function Sprite_vy__P20332_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_x__P89876, depth: s.depth + 1, + parent: s, fn: Sprite_vy__P20332, depth: s.depth + 1, pc: 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, } } @@ -23276,7 +21324,7 @@ function Sprite_x__P89876_mk(s) { -function scene_systemMenu_MenuOption_setTheme__P90613(s) { +function Sprite_vy__P20331(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23288,38 +21336,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_systemMenu_MenuOption__C90608_VT)) failedCast(r0); - r0 = (s.arg0).fields["theme"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P92714_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 997; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + r0 = s.arg0.fields["_vy"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setTheme__P90613.info = {"start":1544,"length":101,"line":66,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setTheme","argumentNames":["this","theme"]} +Sprite_vy__P20331.info = {"start":3595,"length":60,"line":143,"column":4,"endLine":145,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this"]} +Sprite_vy__P20331.isGetter = true; -function scene_systemMenu_MenuOption_setTheme__P90613_mk(s) { +function Sprite_vy__P20331_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setTheme__P90613, depth: s.depth + 1, + parent: s, fn: Sprite_vy__P20331, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function scene_systemMenu_MenuOption_position__P90611(s) { +function Sprite_vx__P20330(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23332,75 +21375,39 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C90608_VT)) failedCast(r0); - r0 = (s.arg0).fields["top"] = (s.arg2); - s.tmp_0 = Sprite_left__P89921_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 988; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = Sprite_top__P89925_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 989; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = Sprite_x__P89876_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P89875_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 990; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 991; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = Sprite_y__P89878_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P89877_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 992; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 993; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; + if (!checkSubtype(r0, Sprite__C20312_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); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_position__P90611.info = {"start":1178,"length":223,"line":51,"column":8,"endLine":59,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"position","argumentNames":["this","left","top"]} +Sprite_vx__P20330.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 scene_systemMenu_MenuOption_position__P90611_mk(s) { +function Sprite_vx__P20330_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_position__P90611, depth: s.depth + 1, + parent: s, fn: Sprite_vx__P20330, 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 scene_systemMenu_MenuOption_show__P90610(s) { +function Sprite_vx__P20329(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23415,103 +21422,84 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C90608_VT)) failedCast(r0); - r0 = s.arg0.fields["theme"]; + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + r0 = s.arg0.fields["_vx"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = if_basicCard_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_1.arg0 = r0; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "basicCard"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["basicCard"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["basicCard"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 983; s.pc = 3; return s.tmp_1; } + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_vx__P20329.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__P20329.isGetter = true; + +function Sprite_vx__P20329_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_vx__P20329, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function sprites_BaseSprite_constructor__P20067(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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; } - case 3: - r0 = s.retval; - { step = 2; continue; } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_BaseSprite__C20065_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_z__P20070_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 129; s.pc = 1; return s.tmp_0; case 1: - r0 = globals.CARD_NORMAL___90632; - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - s.tmp_3 = r0 = s.arg0; - s.tmp_5 = sprites_create__P89796_mk(s); - s.tmp_5.arg0 = s.tmp_2; - s.tmp_5.arg1 = undefined; - s.callLocIdx = 984; s.pc = 4; return s.tmp_5; - case 4: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["card"] = (s.tmp_4); - s.tmp_0 = if_z_2_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 1; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "z", s.tmp_0.arg1); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; - if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } - else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } - else { s.callLocIdx = 985; s.pc = 5; return s.tmp_0; } - } - case 5: r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P89796_mk(s); - r0 = s.arg0.fields["iconImage"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = undefined; - s.callLocIdx = 986; s.pc = 6; return s.tmp_2; - case 6: + s.tmp_0 = scene_Scene_addSprite__P20841_mk(s); + s.tmp_1 = game_currentScene__P20970_mk(s); + s.callLocIdx = 130; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["icon"] = (s.tmp_1); - s.tmp_0 = if_z_2_mk(s); - r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 2; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "z", s.tmp_0.arg1); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; - if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } - else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } - else { s.callLocIdx = 987; s.pc = 7; return s.tmp_0; } - } - case 7: + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 131; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; - r0 = (s.arg0).fields["state"] = (2); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_show__P90610.info = {"start":904,"length":264,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"show","argumentNames":["this"]} +sprites_BaseSprite_constructor__P20067.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 scene_systemMenu_MenuOption_show__P90610_mk(s) { +function sprites_BaseSprite_constructor__P20067_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_show__P90610, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_constructor__P20067, depth: s.depth + 1, pc: 0, retval: undefined, 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 sprites_create__P89796(s) { +function scene_Scene_addSprite__P20841(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23521,78 +21509,50 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___99847 = undefined; - s.sprite___99850 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 297; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.scene___99847 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(Sprite__C89862_VT); - s.tmp_0 = r0; - s.tmp_1 = Sprite_constructor__P89909_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.callLocIdx = 298; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.sprite___99850 = (s.tmp_0); - s.tmp_0 = Sprite_setKind__P89929_mk(s); - s.tmp_0.arg0 = s.sprite___99850; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 299; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = PhysicsEngine__C90032_v0_2_mk(s); - r0 = s.scene___99847.fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.sprite___99850; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C90032_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.addSprite; - s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P99865); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Scene__C20814_VT)) failedCast(r0); + r0 = s.arg0.fields["allSprites"]; s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtcore_mkAction(1, sprites_create_inline__P99871); + r0 = pxsim_Array__push(s.tmp_0, s.arg1); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["spriteNextId"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___99850); - s.tmp_2 = helpers_arrayForEach__P87630_mk(s); - s.tmp_3 = helpers_arrayFilter__P87631_mk(s); - r0 = s.scene___99847.fields["createdHandlers"]; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 300; 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 = 302; s.pc = 5; return s.tmp_2; - case 5: + 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 = 929; s.pc = 1; return s.tmp_3; } + } + case 1: r0 = s.retval; - r0 = s.sprite___99850; + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_create__P89796.info = {"start":890,"length":400,"line":35,"column":4,"endLine":47,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"create","argumentNames":["img","kind"]} +scene_Scene_addSprite__P20841.info = {"start":7218,"length":128,"line":200,"column":8,"endLine":203,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"addSprite","argumentNames":["this","sprite"]} -function sprites_create__P89796_mk(s) { +function scene_Scene_addSprite__P20841_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_create__P89796, depth: s.depth + 1, + parent: s, fn: scene_Scene_addSprite__P20841, depth: s.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___99847: undefined, - sprite___99850: undefined, arg0: undefined, arg1: undefined, } } @@ -23601,7 +21561,7 @@ function sprites_create__P89796_mk(s) { -function forEach_inline__P99865(s) { +function sprites_BaseSprite_z__P20070(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23613,30 +21573,54 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0.fields["kind"]; + r0 = s.arg0; + if (!checkSubtype(r0, sprites_BaseSprite__C20065_VT)) failedCast(r0); + r0 = s.arg0.fields["_z"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== s.arg1); s.tmp_0 = r0; - r0 = (s.tmp_0 == s.caps[0]); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = (s.arg0).fields["_z"] = (s.arg1); + s.tmp_1 = game_currentScene__P20970_mk(s); + s.callLocIdx = 132; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 | 1); + s.tmp_2 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_2); + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -forEach_inline__P99865.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +sprites_BaseSprite_z__P20070.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 forEach_inline__P99865_mk(s) { +function sprites_BaseSprite_z__P20070_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P99865, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_z__P20070, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, + arg1: undefined, } } -function sprites_create_inline__P99871(s) { +function sprites_BaseSprite_z__P20069(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23650,32 +21634,20 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = if_handler_2_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - if (!s.tmp_0.arg0.vtable.iface) { - setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); - s.callLocIdx = 301; 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 = 301; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 301; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 301; s.pc = 1; return s.tmp_0; } - } - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, sprites_BaseSprite__C20065_VT)) failedCast(r0); + r0 = s.arg0.fields["_z"]; + return leaveAccessor(s, r0) default: oops() } } } -sprites_create_inline__P99871.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +sprites_BaseSprite_z__P20069.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__P20069.isGetter = true; -function sprites_create_inline__P99871_mk(s) { +function sprites_BaseSprite_z__P20069_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_create_inline__P99871, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_z__P20069, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -23683,7 +21655,7 @@ function sprites_create_inline__P99871_mk(s) { -function game_onShade__P90538(s) { +function game_onShade__P20988(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23697,9 +21669,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P92467_mk(s); + s.tmp_0 = game_init__P22912_mk(s); s.tmp_0.arg0 = undefined; - s.callLocIdx = 972; s.pc = 4; return s.tmp_0; + s.callLocIdx = 959; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg0); @@ -23711,11 +21683,11 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_2 = scene_createRenderable__P90326_mk(s); + s.tmp_2 = scene_createRenderable__P20776_mk(s); s.tmp_2.arg0 = 80; s.tmp_2.arg1 = s.arg0; s.tmp_2.arg2 = undefined; - s.callLocIdx = 973; s.pc = 5; return s.tmp_2; + s.callLocIdx = 960; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; case 3: @@ -23723,12 +21695,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_onShade__P90538.info = {"start":15517,"length":145,"line":464,"column":4,"endLine":468,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]} +game_onShade__P20988.info = {"start":15517,"length":145,"line":464,"column":4,"endLine":468,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]} -function game_onShade__P90538_mk(s) { +function game_onShade__P20988_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onShade__P90538, depth: s.depth + 1, + parent: s, fn: game_onShade__P20988, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23740,7 +21712,7 @@ function game_onShade__P90538_mk(s) { -function scene_createRenderable__P90326(s) { +function scene_createRenderable__P20776(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23750,14 +21722,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.renderable___99019 = undefined; + s.renderable___28178 = 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__C90321_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_Renderable__C20771_VT); s.tmp_0 = r0; s.tmp_1 = r0 = s.arg2; r0 = pxsim_numops_toBool(s.tmp_1); @@ -23765,35 +21737,35 @@ switch (step) { r0 = s.tmp_1; { step = 2; continue; } case 1: - r0 = renderable_inline__P99025; + r0 = renderable_inline__P28184; case 2: // jmp value (already in r0) s.tmp_2 = r0; - s.tmp_3 = scene_Renderable_constructor__P90322_mk(s); + s.tmp_3 = scene_Renderable_constructor__P20772_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 = 909; s.pc = 3; return s.tmp_3; + s.callLocIdx = 903; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; - s.renderable___99019 = (s.tmp_0); - r0 = s.renderable___99019; + s.renderable___28178 = (s.tmp_0); + r0 = s.renderable___28178; return leave(s, r0) default: oops() } } } -scene_createRenderable__P90326.info = {"start":608,"length":339,"line":24,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/game/renderable.ts","functionName":"createRenderable","argumentNames":["z","handler","shouldBeVisible"]} +scene_createRenderable__P20776.info = {"start":608,"length":339,"line":24,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/game/renderable.ts","functionName":"createRenderable","argumentNames":["z","handler","shouldBeVisible"]} -function scene_createRenderable__P90326_mk(s) { +function scene_createRenderable__P20776_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_createRenderable__P90326, depth: s.depth + 1, + parent: s, fn: scene_createRenderable__P20776, depth: s.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___99019: undefined, + renderable___28178: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -23803,7 +21775,7 @@ function scene_createRenderable__P90326_mk(s) { -function renderable_inline__P99025(s) { +function renderable_inline__P28184(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23817,12 +21789,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -renderable_inline__P99025.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} +renderable_inline__P28184.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} -function renderable_inline__P99025_mk(s) { +function renderable_inline__P28184_mk(s) { checkStack(s.depth); return { - parent: s, fn: renderable_inline__P99025, depth: s.depth + 1, + parent: s, fn: renderable_inline__P28184, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -23830,7 +21802,7 @@ function renderable_inline__P99025_mk(s) { -function scene_Renderable_constructor__P90322(s) { +function scene_Renderable_constructor__P20772(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23848,25 +21820,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C90321_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Renderable__C20771_VT)) failedCast(r0); r0 = (s.arg0).fields["handler"] = (s.arg1); r0 = (s.arg0).fields["shouldBeVisible"] = (s.arg2); - s.tmp_0 = sprites_BaseSprite_constructor__P89617_mk(s); + s.tmp_0 = sprites_BaseSprite_constructor__P20067_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg3; - s.callLocIdx = 906; s.pc = 1; return s.tmp_0; + s.callLocIdx = 900; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Renderable_constructor__P90322.info = {"start":83,"length":212,"line":2,"column":8,"endLine":8,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":["this","handler","shouldBeVisible","z"]} +scene_Renderable_constructor__P20772.info = {"start":83,"length":212,"line":2,"column":8,"endLine":8,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":["this","handler","shouldBeVisible","z"]} -function scene_Renderable_constructor__P90322_mk(s) { +function scene_Renderable_constructor__P20772_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable_constructor__P90322, depth: s.depth + 1, + parent: s, fn: scene_Renderable_constructor__P20772, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -23879,7 +21851,7 @@ function scene_Renderable_constructor__P90322_mk(s) { -function scene_systemMenu_PauseMenu_constructor__P90617(s) { +function scene_systemMenu_PauseMenu_constructor__P21067(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23896,7 +21868,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C90616_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C21066_VT)) failedCast(r0); r0 = (s.arg0).fields["generator"] = (s.arg1); s.tmp_0 = r0 = s.arg2; r0 = pxsim_numops_toBool(s.tmp_0); @@ -23904,13 +21876,13 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_1 = scene_systemMenu_buildMenuTheme__P90625_mk(s); - r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___90632); + s.tmp_1 = scene_systemMenu_buildMenuTheme__P21075_mk(s); + r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___21082); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 3; s.tmp_1.arg2 = undefined; s.tmp_1.arg3 = undefined; - s.callLocIdx = 1011; s.pc = 3; return s.tmp_1; + s.callLocIdx = 998; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; case 2: @@ -23924,12 +21896,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_constructor__P90617.info = {"start":3029,"length":257,"line":116,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["this","generator","theme"]} +scene_systemMenu_PauseMenu_constructor__P21067.info = {"start":3029,"length":257,"line":116,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["this","generator","theme"]} -function scene_systemMenu_PauseMenu_constructor__P90617_mk(s) { +function scene_systemMenu_PauseMenu_constructor__P21067_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_constructor__P90617, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_constructor__P21067, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23943,7 +21915,7 @@ function scene_systemMenu_PauseMenu_constructor__P90617_mk(s) { -function scene_systemMenu_buildMenuTheme__P90625(s) { +function scene_systemMenu_buildMenuTheme__P21075(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23953,7 +21925,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cardsPerRow___100622 = undefined; + s.cardsPerRow___30465 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -23961,19 +21933,19 @@ switch (step) { s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.width(globals.screen___89553); + r0 = pxsim_ImageMethods.width(globals.screen___20003); s.tmp_0 = r0; r0 = (s.arg0 + s.arg1); s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_1); - s.cardsPerRow___100622 = (r0); + s.cardsPerRow___30465 = (r0); s.tmp_0 = r0 = s.arg2; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = globals.font8___89496; + r0 = globals.font8___19946; case 2: // jmp value (already in r0) s.tmp_1 = r0; @@ -23984,9 +21956,9 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - s.tmp_1 = image_doubledFont__P89499_mk(s); + s.tmp_1 = image_doubledFont__P19949_mk(s); s.tmp_1.arg0 = s.arg2; - s.callLocIdx = 1121; s.pc = 5; return s.tmp_1; + s.callLocIdx = 1108; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; case 4: @@ -23997,12 +21969,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___100622); - r0 = pxsim_ImageMethods.width(globals.screen___89553); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardsPerRow", s.cardsPerRow___30465); + r0 = pxsim_ImageMethods.width(globals.screen___20003); s.tmp_3 = r0; - r0 = (s.cardsPerRow___100622 * s.arg0); + r0 = (s.cardsPerRow___30465 * s.arg0); s.tmp_5 = r0; - r0 = (s.cardsPerRow___100622 - 1); + r0 = (s.cardsPerRow___30465 - 1); s.tmp_7 = r0; r0 = (s.tmp_7 * s.arg1); s.tmp_6 = r0; @@ -24023,7 +21995,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 = 1122; s.pc = 6; return s.tmp_11; } + else { s.callLocIdx = 1109; s.pc = 6; return s.tmp_11; } } case 6: r0 = s.retval; @@ -24033,7 +22005,7 @@ switch (step) { r0 = (s.tmp_9 + s.arg1); s.tmp_8 = r0; r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardsTop", s.tmp_8); - r0 = pxsim_ImageMethods.height(globals.screen___89553); + r0 = pxsim_ImageMethods.height(globals.screen___20003); s.tmp_14 = r0; s.tmp_16 = if_charHeight_1_mk(s); s.tmp_16.arg0 = s.arg2; @@ -24043,7 +22015,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 = 1123; s.pc = 7; return s.tmp_16; } + else { s.callLocIdx = 1110; s.pc = 7; return s.tmp_16; } } case 7: r0 = s.retval; @@ -24054,19 +22026,19 @@ switch (step) { s.tmp_12 = r0; r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "infoTop", s.tmp_12); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "headerText", "PAUSED"); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "selectedCard", globals.CARD_SELECTED___90633); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___90634); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___90632); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "selectedCard", globals.CARD_SELECTED___21083); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___21084); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___21082); r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildMenuTheme__P90625.info = {"start":11654,"length":906,"line":356,"column":4,"endLine":375,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildMenuTheme","argumentNames":["cardWidth","cardSpacing","infoFont","headerFont"]} +scene_systemMenu_buildMenuTheme__P21075.info = {"start":11654,"length":906,"line":356,"column":4,"endLine":375,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildMenuTheme","argumentNames":["cardWidth","cardSpacing","infoFont","headerFont"]} -function scene_systemMenu_buildMenuTheme__P90625_mk(s) { +function scene_systemMenu_buildMenuTheme__P21075_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildMenuTheme__P90625, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildMenuTheme__P21075, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -24085,7 +22057,7 @@ function scene_systemMenu_buildMenuTheme__P90625_mk(s) { tmp_14: undefined, tmp_15: undefined, tmp_16: undefined, - cardsPerRow___100622: undefined, + cardsPerRow___30465: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -24096,7 +22068,7 @@ function scene_systemMenu_buildMenuTheme__P90625_mk(s) { -function image_doubledFont__P89499(s) { +function image_doubledFont__P19949(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24110,7 +22082,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = image_scaledFont__P89500_mk(s); + s.tmp_0 = image_scaledFont__P19950_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 2; s.callLocIdx = 88; s.pc = 1; return s.tmp_0; @@ -24119,12 +22091,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -image_doubledFont__P89499.info = {"start":12008,"length":82,"line":146,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"doubledFont","argumentNames":["f"]} +image_doubledFont__P19949.info = {"start":12008,"length":82,"line":146,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"doubledFont","argumentNames":["f"]} -function image_doubledFont__P89499_mk(s) { +function image_doubledFont__P19949_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_doubledFont__P89499, depth: s.depth + 1, + parent: s, fn: image_doubledFont__P19949, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -24134,7 +22106,7 @@ function image_doubledFont__P89499_mk(s) { -function game_pushScene__P90524(s) { +function image_scaledFont__P19950(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24144,45 +22116,191 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.oldScene___100676 = undefined; - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 954; s.pc = 5; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = (s.arg1 | 0); + s.arg1 = (r0); + r0 = (s.arg1 < 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0; + { step = 5; continue; } + case 1: + case 2: + r0 = pxsim_pxtrt.mkMap(); + s.tmp_1 = r0; + s.tmp_4 = if_charWidth_1_mk(s); + s.tmp_4.arg0 = s.arg0; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charWidth"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charWidth"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 89; s.pc = 6; return s.tmp_4; } + } + case 6: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 * s.arg1); + s.tmp_2 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "charWidth", s.tmp_2); + s.tmp_7 = if_charHeight_1_mk(s); + s.tmp_7.arg0 = s.arg0; + if (!s.tmp_7.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight"); + } else { + s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["charHeight"]; + if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["charHeight"]; } + else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } + else { s.callLocIdx = 90; s.pc = 7; return s.tmp_7; } + } + case 7: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_6 * s.arg1); + s.tmp_5 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "charHeight", s.tmp_5); + s.tmp_9 = if_data_1_mk(s); + s.tmp_9.arg0 = s.arg0; + if (!s.tmp_9.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "data"); + } else { + s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["data"]; + if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["data"]; } + else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } + else { s.callLocIdx = 91; s.pc = 8; return s.tmp_9; } + } + case 8: + r0 = s.retval; + s.tmp_8 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "data", s.tmp_8); + s.tmp_11 = if_multiplier_1_mk(s); + s.tmp_11.arg0 = s.arg0; + if (!s.tmp_11.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "multiplier"); + } else { + s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["multiplier"]; + if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["multiplier"]; } + else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } + else { s.callLocIdx = 92; s.pc = 9; return s.tmp_11; } + } + case 9: + r0 = s.retval; + s.tmp_10 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_10); + if (!r0) { step = 3; continue; } + s.tmp_12 = r0 = s.arg1; + s.tmp_14 = if_multiplier_1_mk(s); + s.tmp_14.arg0 = s.arg0; + if (!s.tmp_14.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_14.arg0, "multiplier"); + } else { + s.tmp_14.fn = s.tmp_14.arg0.vtable.iface["multiplier"]; + if (s.tmp_14.fn == null) { s.retval = s.tmp_14.arg0.fields["multiplier"]; } + else if (!s.tmp_14.fn.isGetter) { s.retval = bind(s.tmp_14); } + else { s.callLocIdx = 93; s.pc = 10; return s.tmp_14; } + } + case 10: + r0 = s.retval; + s.tmp_13 = r0; + r0 = (s.tmp_12 * s.tmp_13); + { step = 4; continue; } + case 3: + r0 = s.arg1; + case 4: + // jmp value (already in r0) + s.tmp_15 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "multiplier", s.tmp_15); + r0 = s.tmp_1; + case 5: + return leave(s, r0) + default: oops() +} } } +image_scaledFont__P19950.info = {"start":12096,"length":331,"line":150,"column":4,"endLine":160,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"scaledFont","argumentNames":["f","size"]} + +function image_scaledFont__P19950_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: image_scaledFont__P19950, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function game_pushScene__P20974(s) { +let r0 = s.r0, 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___30544 = undefined; + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 947; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.oldScene___100676 = (r0); - s.tmp_0 = particles_clearAll__P90702_mk(s); - s.callLocIdx = 955; s.pc = 6; return s.tmp_0; + s.oldScene___30544 = (r0); + s.tmp_0 = particles_clearAll__P21152_mk(s); + s.callLocIdx = 948; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = particles_disableAll__P90703_mk(s); - s.callLocIdx = 956; s.pc = 7; return s.tmp_0; + s.tmp_0 = particles_disableAll__P21153_mk(s); + s.callLocIdx = 949; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._sceneStack___92460); + r0 = pxsim_numops_toBoolDecr(globals._sceneStack___22905); s.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___92460 = (r0); + globals._sceneStack___22905 = (r0); case 1: case 2: - r0 = pxsim_Array__push(globals._sceneStack___92460, globals._scene___92459); - s.tmp_0 = game_init__P92467_mk(s); + r0 = pxsim_Array__push(globals._sceneStack___22905, globals._scene___22904); + s.tmp_0 = game_init__P22912_mk(s); s.tmp_0.arg0 = true; - s.callLocIdx = 957; s.pc = 8; return s.tmp_0; + s.callLocIdx = 950; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___92461); + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___22906); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, game_pushScene_inline__P100693); + r0 = pxsim_pxtcore_mkAction(1, game_pushScene_inline__P30561); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___100676); - s.tmp_1 = helpers_arrayForEach__P87630_mk(s); - s.tmp_1.arg0 = globals._scenePushHandlers___92461; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___30544); + s.tmp_1 = helpers_arrayForEach__P18080_mk(s); + s.tmp_1.arg0 = globals._scenePushHandlers___22906; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 959; s.pc = 9; return s.tmp_1; + s.callLocIdx = 952; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; case 3: @@ -24191,23 +22309,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_pushScene__P90524.info = {"start":4760,"length":367,"line":148,"column":4,"endLine":159,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"pushScene","argumentNames":[]} +game_pushScene__P20974.info = {"start":4760,"length":367,"line":148,"column":4,"endLine":159,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"pushScene","argumentNames":[]} -function game_pushScene__P90524_mk(s) { +function game_pushScene__P20974_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_pushScene__P90524, depth: s.depth + 1, + parent: s, fn: game_pushScene__P20974, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - oldScene___100676: undefined, + oldScene___30544: undefined, } } -function game_pushScene_inline__P100693(s) { +function game_pushScene_inline__P30561(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24225,19 +22343,19 @@ switch (step) { s.tmp_0.argL = s.arg0; s.tmp_0.arg0 = s.caps[0]; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 958; s.pc = 1; return s.tmp_0; + s.callLocIdx = 951; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -game_pushScene_inline__P100693.info = {"start":5091,"length":18,"line":157,"column":39,"endLine":157,"endColumn":57,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} +game_pushScene_inline__P30561.info = {"start":5091,"length":18,"line":157,"column":39,"endLine":157,"endColumn":57,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} -function game_pushScene_inline__P100693_mk(s) { +function game_pushScene_inline__P30561_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_pushScene_inline__P100693, depth: s.depth + 1, + parent: s, fn: game_pushScene_inline__P30561, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -24247,7 +22365,7 @@ function game_pushScene_inline__P100693_mk(s) { -function particles_disableAll__P90703(s) { +function particles_disableAll__P21153(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24257,22 +22375,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___100697 = undefined; - s.tmp_0 = particles_particleSources__P92809_mk(s); - s.callLocIdx = 1204; s.pc = 3; return s.tmp_0; + s.sources___30565 = undefined; + s.tmp_0 = particles_particleSources__P23254_mk(s); + s.callLocIdx = 1191; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.sources___100697 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___100697); + s.sources___30565 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___30565); if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P87630_mk(s); - s.tmp_0.arg0 = s.sources___100697; - s.tmp_0.arg1 = particles_disableAll_inline__P100703; - s.callLocIdx = 1206; s.pc = 4; return s.tmp_0; + s.tmp_0 = helpers_arrayForEach__P18080_mk(s); + s.tmp_0.arg0 = s.sources___30565; + s.tmp_0.arg1 = particles_disableAll_inline__P30571; + s.callLocIdx = 1193; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P92805_mk(s); - s.callLocIdx = 1207; s.pc = 5; return s.tmp_0; + s.tmp_0 = particles_pruneParticles__P23250_mk(s); + s.callLocIdx = 1194; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 1: @@ -24281,22 +22399,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_disableAll__P90703.info = {"start":12370,"length":195,"line":402,"column":4,"endLine":408,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"disableAll","argumentNames":[]} +particles_disableAll__P21153.info = {"start":12370,"length":195,"line":402,"column":4,"endLine":408,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"disableAll","argumentNames":[]} -function particles_disableAll__P90703_mk(s) { +function particles_disableAll__P21153_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_disableAll__P90703, depth: s.depth + 1, + parent: s, fn: particles_disableAll__P21153, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___100697: undefined, + sources___30565: undefined, } } -function particles_disableAll_inline__P100703(s) { +function particles_disableAll_inline__P30571(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24310,22 +22428,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_enabled__P90685_mk(s); + s.tmp_0 = particles_ParticleSource_enabled__P21135_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = false; - s.callLocIdx = 1205; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1192; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = false; return leave(s, r0) default: oops() } } } -particles_disableAll_inline__P100703.info = {"start":12495,"length":22,"line":405,"column":28,"endLine":405,"endColumn":50,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +particles_disableAll_inline__P30571.info = {"start":12495,"length":22,"line":405,"column":28,"endLine":405,"endColumn":50,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function particles_disableAll_inline__P100703_mk(s) { +function particles_disableAll_inline__P30571_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_disableAll_inline__P100703, depth: s.depth + 1, + parent: s, fn: particles_disableAll_inline__P30571, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -24335,7 +22453,7 @@ function particles_disableAll_inline__P100703_mk(s) { -function particles_clearAll__P90702(s) { +function particles_clearAll__P21152(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24345,22 +22463,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___100708 = undefined; - s.tmp_0 = particles_particleSources__P92809_mk(s); - s.callLocIdx = 1200; s.pc = 3; return s.tmp_0; + s.sources___30576 = undefined; + s.tmp_0 = particles_particleSources__P23254_mk(s); + s.callLocIdx = 1187; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.sources___100708 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___100708); + s.sources___30576 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___30576); if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P87630_mk(s); - s.tmp_0.arg0 = s.sources___100708; - s.tmp_0.arg1 = particles_clearAll_inline__P100714; - s.callLocIdx = 1202; s.pc = 4; return s.tmp_0; + s.tmp_0 = helpers_arrayForEach__P18080_mk(s); + s.tmp_0.arg0 = s.sources___30576; + s.tmp_0.arg1 = particles_clearAll_inline__P30582; + s.callLocIdx = 1189; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P92805_mk(s); - s.callLocIdx = 1203; s.pc = 5; return s.tmp_0; + s.tmp_0 = particles_pruneParticles__P23250_mk(s); + s.callLocIdx = 1190; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 1: @@ -24369,22 +22487,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_clearAll__P90702.info = {"start":12098,"length":185,"line":391,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"clearAll","argumentNames":[]} +particles_clearAll__P21152.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__P90702_mk(s) { +function particles_clearAll__P21152_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_clearAll__P90702, depth: s.depth + 1, + parent: s, fn: particles_clearAll__P21152, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___100708: undefined, + sources___30576: undefined, } } -function particles_clearAll_inline__P100714(s) { +function particles_clearAll_inline__P30582(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24398,21 +22516,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_clear__P90687_mk(s); + s.tmp_0 = particles_ParticleSource_clear__P21137_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1201; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1188; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_clearAll_inline__P100714.info = {"start":12221,"length":14,"line":394,"column":28,"endLine":394,"endColumn":42,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +particles_clearAll_inline__P30582.info = {"start":12221,"length":14,"line":394,"column":28,"endLine":394,"endColumn":42,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function particles_clearAll_inline__P100714_mk(s) { +function particles_clearAll_inline__P30582_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_clearAll_inline__P100714, depth: s.depth + 1, + parent: s, fn: particles_clearAll_inline__P30582, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -24422,7 +22540,7 @@ function particles_clearAll_inline__P100714_mk(s) { -function particles_ParticleSource_clear__P90687(s) { +function particles_ParticleSource_clear__P21137(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24437,18 +22555,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C90672_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21122_VT)) failedCast(r0); r0 = (s.arg0).fields["head"] = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_clear__P90687.info = {"start":7424,"length":54,"line":243,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"clear","argumentNames":["this"]} +particles_ParticleSource_clear__P21137.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__P90687_mk(s) { +function particles_ParticleSource_clear__P21137_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_clear__P90687, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_clear__P21137, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -24457,7 +22575,7 @@ function particles_ParticleSource_clear__P90687_mk(s) { -function controller_Button_onEvent__P89717(s) { +function controller_Button_onEvent__P20167(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24467,7 +22585,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.eventHandler___100726 = undefined; + s.eventHandler___30594 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -24475,28 +22593,28 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C89710_VT)) failedCast(r0); - s.tmp_0 = controller_Button_getOrCreateHandlerForEvent__P92248_mk(s); + if (!checkSubtype(r0, controller_Button__C20160_VT)) failedCast(r0); + s.tmp_0 = controller_Button_getOrCreateHandlerForEvent__P22693_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 203; s.pc = 1; return s.tmp_0; + s.callLocIdx = 202; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.eventHandler___100726 = (r0); - r0 = (s.eventHandler___100726).fields["callback"] = (s.arg2); + s.eventHandler___30594 = (r0); + r0 = (s.eventHandler___30594).fields["callback"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_onEvent__P89717.info = {"start":3784,"length":188,"line":123,"column":8,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"onEvent","argumentNames":["this","event","handler"]} +controller_Button_onEvent__P20167.info = {"start":3784,"length":188,"line":123,"column":8,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"onEvent","argumentNames":["this","event","handler"]} -function controller_Button_onEvent__P89717_mk(s) { +function controller_Button_onEvent__P20167_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_onEvent__P89717, depth: s.depth + 1, + parent: s, fn: controller_Button_onEvent__P20167, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - eventHandler___100726: undefined, + eventHandler___30594: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -24506,7 +22624,7 @@ function controller_Button_onEvent__P89717_mk(s) { -function controller_Button_getOrCreateHandlerForEvent__P92248(s) { +function controller_Button_getOrCreateHandlerForEvent__P22693(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24516,21 +22634,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.handlerState___100747 = undefined; - s.eventHandler___100756 = undefined; - s.unnamed716___U2 = undefined; - s.unnamed717___U3 = undefined; - s.newHandler___100772 = undefined; + s.handlerState___30615 = undefined; + s.eventHandler___30624 = undefined; + s.unnamed160___U2 = undefined; + s.unnamed161___U3 = undefined; + s.newHandler___30640 = 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__C89710_VT)) failedCast(r0); - s.tmp_3 = controller_Button_handlerState__P92243_mk(s); + if (!checkSubtype(r0, controller_Button__C20160_VT)) failedCast(r0); + s.tmp_3 = controller_Button_handlerState__P22688_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 213; s.pc = 10; return s.tmp_3; + s.callLocIdx = 212; s.pc = 10; return s.tmp_3; case 10: r0 = s.retval; s.tmp_2 = r0; @@ -24540,17 +22658,17 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_ButtonEventHandlerState__C89706_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_ButtonEventHandlerState__C20156_VT); s.tmp_4 = r0; - s.tmp_5 = controller_ButtonEventHandlerState_constructor__P89707_mk(s); + s.tmp_5 = controller_ButtonEventHandlerState_constructor__P20157_mk(s); s.tmp_5.arg0 = s.tmp_4; r0 = s.arg0.fields["id"]; s.tmp_5.arg1 = r0; - s.callLocIdx = 215; s.pc = 11; return s.tmp_5; + s.callLocIdx = 214; s.pc = 11; return s.tmp_5; case 11: r0 = s.retval; - s.tmp_7 = game_currentScene__P90520_mk(s); - s.callLocIdx = 214; s.pc = 12; return s.tmp_7; + s.tmp_7 = game_currentScene__P20970_mk(s); + s.callLocIdx = 213; s.pc = 12; return s.tmp_7; case 12: r0 = s.retval; r0 = r0.fields["buttonEventHandlers"]; @@ -24558,13 +22676,13 @@ switch (step) { r0 = pxsim_Array__push(s.tmp_6, s.tmp_4); case 1: case 2: - s.tmp_0 = controller_Button_handlerState__P92243_mk(s); + s.tmp_0 = controller_Button_handlerState__P22688_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 216; s.pc = 13; return s.tmp_0; + s.callLocIdx = 215; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - s.handlerState___100747 = (r0); - r0 = s.handlerState___100747.fields["user"]; + s.handlerState___30615 = (r0); + r0 = s.handlerState___30615.fields["user"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; @@ -24572,76 +22690,76 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_3 = r0 = s.handlerState___100747; + s.tmp_3 = r0 = s.handlerState___30615; r0 = pxsim_Array__mk(); s.tmp_4 = r0; r0 = (s.tmp_3).fields["user"] = (s.tmp_4); case 3: case 4: - s.eventHandler___100756 = (undefined); - r0 = s.handlerState___100747.fields["user"]; - s.unnamed716___U2 = (r0); - s.unnamed717___U3 = (0); + s.eventHandler___30624 = (undefined); + r0 = s.handlerState___30615.fields["user"]; + s.unnamed160___U2 = (r0); + s.unnamed161___U3 = (0); case 5: - s.tmp_0 = r0 = s.unnamed717___U3; - r0 = pxsim_Array__length(s.unnamed716___U2); + s.tmp_0 = r0 = s.unnamed161___U3; + r0 = pxsim_Array__length(s.unnamed160___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 8; continue; } - r0 = pxsim_Array__getAt(s.unnamed716___U2, s.unnamed717___U3); - s.eventHandler___100756 = (r0); - r0 = s.eventHandler___100756.fields["event"]; + r0 = pxsim_Array__getAt(s.unnamed160___U2, s.unnamed161___U3); + s.eventHandler___30624 = (r0); + r0 = s.eventHandler___30624.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___100756; + r0 = s.eventHandler___30624; { step = 9; continue; } case 6: case 7: - r0 = (s.unnamed717___U3 + 1); - s.unnamed717___U3 = (r0); + r0 = (s.unnamed161___U3 + 1); + s.unnamed161___U3 = (r0); { step = 5; continue; } case 8: - s.unnamed716___U2 = (undefined); - r0 = pxsim_pxtcore_mkAction(2, controller_Button_getOrCreateHandlerForEvent_inline__P100769); + s.unnamed160___U2 = (undefined); + r0 = pxsim_pxtcore_mkAction(2, controller_Button_getOrCreateHandlerForEvent_inline__P30637); s.tmp_4 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.arg0); r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.arg1); - s.tmp_5 = control_onEvent__P87912_mk(s); + s.tmp_5 = control_onEvent__P18362_mk(s); s.tmp_5.arg0 = s.arg1; r0 = s.arg0.fields["id"]; s.tmp_5.arg1 = r0; s.tmp_5.arg2 = s.tmp_4; s.tmp_5.arg3 = 16; - s.callLocIdx = 218; s.pc = 14; return s.tmp_5; + s.callLocIdx = 217; s.pc = 14; return s.tmp_5; case 14: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(controller_ButtonHandler__C89704_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_ButtonHandler__C20154_VT); s.tmp_0 = r0; - s.tmp_1 = controller_ButtonHandler_constructor__P89705_mk(s); + s.tmp_1 = controller_ButtonHandler_constructor__P20155_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = undefined; - s.callLocIdx = 219; s.pc = 15; return s.tmp_1; + s.callLocIdx = 218; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; - s.newHandler___100772 = (s.tmp_0); - r0 = s.handlerState___100747.fields["user"]; + s.newHandler___30640 = (s.tmp_0); + r0 = s.handlerState___30615.fields["user"]; s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.newHandler___100772); - r0 = s.newHandler___100772; + r0 = pxsim_Array__push(s.tmp_0, s.newHandler___30640); + r0 = s.newHandler___30640; case 9: return leave(s, r0) default: oops() } } } -controller_Button_getOrCreateHandlerForEvent__P92248.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__P22693.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__P92248_mk(s) { +function controller_Button_getOrCreateHandlerForEvent__P22693_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_getOrCreateHandlerForEvent__P92248, depth: s.depth + 1, + parent: s, fn: controller_Button_getOrCreateHandlerForEvent__P22693, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -24651,11 +22769,11 @@ function controller_Button_getOrCreateHandlerForEvent__P92248_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - handlerState___100747: undefined, - eventHandler___100756: undefined, - unnamed716___U2: undefined, - unnamed717___U3: undefined, - newHandler___100772: undefined, + handlerState___30615: undefined, + eventHandler___30624: undefined, + unnamed160___U2: undefined, + unnamed161___U3: undefined, + newHandler___30640: undefined, arg0: undefined, arg1: undefined, } } @@ -24664,7 +22782,7 @@ function controller_Button_getOrCreateHandlerForEvent__P92248_mk(s) { -function controller_Button_getOrCreateHandlerForEvent_inline__P100769(s) { +function controller_Button_getOrCreateHandlerForEvent_inline__P30637(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24674,22 +22792,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_runButtonEvents__P92247_mk(s); + s.tmp_0 = controller_Button_runButtonEvents__P22692_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.caps[1]; - s.callLocIdx = 217; s.pc = 1; return s.tmp_0; + s.callLocIdx = 216; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_getOrCreateHandlerForEvent_inline__P100769.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__P30637.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__P100769_mk(s) { +function controller_Button_getOrCreateHandlerForEvent_inline__P30637_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_getOrCreateHandlerForEvent_inline__P100769, depth: s.depth + 1, + parent: s, fn: controller_Button_getOrCreateHandlerForEvent_inline__P30637, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -24698,7 +22816,7 @@ function controller_Button_getOrCreateHandlerForEvent_inline__P100769_mk(s) { -function controller_Button_runButtonEvents__P92247(s) { +function controller_Button_runButtonEvents__P22692(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24708,25 +22826,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.handlerState___100786 = undefined; - s.userHandler___100790 = undefined; - s.eventHandler___100801 = undefined; - s.unnamed714___U3 = undefined; - s.unnamed715___U4 = undefined; + s.handlerState___30654 = undefined; + s.userHandler___30658 = undefined; + s.eventHandler___30669 = undefined; + s.unnamed158___U3 = undefined; + s.unnamed159___U4 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C89710_VT)) failedCast(r0); - s.tmp_0 = controller_Button_handlerState__P92243_mk(s); + if (!checkSubtype(r0, controller_Button__C20160_VT)) failedCast(r0); + s.tmp_0 = controller_Button_handlerState__P22688_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 209; s.pc = 14; return s.tmp_0; + s.callLocIdx = 208; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - s.handlerState___100786 = (r0); - r0 = pxsim_numops_toBoolDecr(s.handlerState___100786); + s.handlerState___30654 = (r0); + r0 = pxsim_numops_toBoolDecr(s.handlerState___30654); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -24735,49 +22853,49 @@ switch (step) { { step = 13; continue; } case 1: case 2: - s.tmp_2 = controller_Button_getOrCreateHandlerForEvent__P92248_mk(s); + s.tmp_2 = controller_Button_getOrCreateHandlerForEvent__P22693_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; - s.callLocIdx = 210; s.pc = 15; return s.tmp_2; + s.callLocIdx = 209; s.pc = 15; return s.tmp_2; case 15: r0 = s.retval; - s.userHandler___100790 = (r0); - r0 = s.userHandler___100790.fields["callback"]; + s.userHandler___30658 = (r0); + r0 = s.userHandler___30658.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___100790; + s.tmp_1.arg0 = s.userHandler___30658; if (!s.tmp_1.arg0.vtable.iface) { setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "callback"), 1); - s.callLocIdx = 211; s.pc = 16; return s.tmp_1; + s.callLocIdx = 210; s.pc = 16; return s.tmp_1; } else { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["callback"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["callback"], 1); s.callLocIdx = 211; s.pc = 16; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 211; s.pc = 16; return s.tmp_1;; } - else { s.callLocIdx = 211; 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 = 210; s.pc = 16; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 210; s.pc = 16; return s.tmp_1;; } + else { s.callLocIdx = 210; s.pc = 16; return s.tmp_1; } } case 16: r0 = s.retval; case 3: case 4: - r0 = s.handlerState___100786.fields["system"]; + r0 = s.handlerState___30654.fields["system"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - s.eventHandler___100801 = (undefined); - r0 = s.handlerState___100786.fields["system"]; - s.unnamed714___U3 = (r0); - s.unnamed715___U4 = (0); + s.eventHandler___30669 = (undefined); + r0 = s.handlerState___30654.fields["system"]; + s.unnamed158___U3 = (r0); + s.unnamed159___U4 = (0); case 5: - s.tmp_0 = r0 = s.unnamed715___U4; - r0 = pxsim_Array__length(s.unnamed714___U3); + s.tmp_0 = r0 = s.unnamed159___U4; + r0 = pxsim_Array__length(s.unnamed158___U3); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 10; continue; } - r0 = pxsim_Array__getAt(s.unnamed714___U3, s.unnamed715___U4); - s.eventHandler___100801 = (r0); - r0 = s.eventHandler___100801.fields["event"]; + r0 = pxsim_Array__getAt(s.unnamed158___U3, s.unnamed159___U4); + s.eventHandler___30669 = (r0); + r0 = s.eventHandler___30669.fields["event"]; s.tmp_3 = r0; r0 = (s.tmp_3 === s.arg1); s.tmp_2 = r0; @@ -24786,32 +22904,32 @@ switch (step) { r0 = s.tmp_2; { step = 7; continue; } case 6: - r0 = s.eventHandler___100801.fields["callback"]; + r0 = s.eventHandler___30669.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___100801; + s.tmp_5.arg0 = s.eventHandler___30669; if (!s.tmp_5.arg0.vtable.iface) { setupLambda(s.tmp_5, pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "callback"), 1); - s.callLocIdx = 212; s.pc = 17; return s.tmp_5; + s.callLocIdx = 211; s.pc = 17; return s.tmp_5; } else { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["callback"]; - if (s.tmp_5.fn == null) { setupLambda(s.tmp_5, s.tmp_5.arg0.fields["callback"], 1); s.callLocIdx = 212; s.pc = 17; return s.tmp_5; } - else if (s.tmp_5.fn.isGetter) { s.tmp_5.stage2Call = true; s.callLocIdx = 212; s.pc = 17; return s.tmp_5;; } - else { s.callLocIdx = 212; 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 = 211; s.pc = 17; return s.tmp_5; } + else if (s.tmp_5.fn.isGetter) { s.tmp_5.stage2Call = true; s.callLocIdx = 211; s.pc = 17; return s.tmp_5;; } + else { s.callLocIdx = 211; s.pc = 17; return s.tmp_5; } } case 17: r0 = s.retval; case 8: case 9: - r0 = (s.unnamed715___U4 + 1); - s.unnamed715___U4 = (r0); + r0 = (s.unnamed159___U4 + 1); + s.unnamed159___U4 = (r0); { step = 5; continue; } case 10: - s.unnamed714___U3 = (undefined); + s.unnamed158___U3 = (undefined); case 11: case 12: case 13: @@ -24819,12 +22937,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_runButtonEvents__P92247.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__P22692.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__P92247_mk(s) { +function controller_Button_runButtonEvents__P22692_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_runButtonEvents__P92247, depth: s.depth + 1, + parent: s, fn: controller_Button_runButtonEvents__P22692, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -24832,11 +22950,11 @@ function controller_Button_runButtonEvents__P92247_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - handlerState___100786: undefined, - userHandler___100790: undefined, - eventHandler___100801: undefined, - unnamed714___U3: undefined, - unnamed715___U4: undefined, + handlerState___30654: undefined, + userHandler___30658: undefined, + eventHandler___30669: undefined, + unnamed158___U3: undefined, + unnamed159___U4: undefined, arg0: undefined, arg1: undefined, } } @@ -24845,7 +22963,7 @@ function controller_Button_runButtonEvents__P92247_mk(s) { -function controller_Button_handlerState__P92243(s) { +function controller_Button_handlerState__P22688(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24855,32 +22973,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.state___100817 = undefined; - s.unnamed712___U1 = undefined; - s.unnamed713___U2 = undefined; + s.state___30685 = undefined; + s.unnamed156___U1 = undefined; + s.unnamed157___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C89710_VT)) failedCast(r0); - s.state___100817 = (undefined); - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 199; s.pc = 6; return s.tmp_0; + if (!checkSubtype(r0, controller_Button__C20160_VT)) failedCast(r0); + s.state___30685 = (undefined); + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 198; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; r0 = r0.fields["buttonEventHandlers"]; - s.unnamed712___U1 = (r0); - s.unnamed713___U2 = (0); + s.unnamed156___U1 = (r0); + s.unnamed157___U2 = (0); case 1: - s.tmp_0 = r0 = s.unnamed713___U2; - r0 = pxsim_Array__length(s.unnamed712___U1); + s.tmp_0 = r0 = s.unnamed157___U2; + r0 = pxsim_Array__length(s.unnamed156___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed712___U1, s.unnamed713___U2); - s.state___100817 = (r0); - r0 = s.state___100817.fields["id"]; + r0 = pxsim_Array__getAt(s.unnamed156___U1, s.unnamed157___U2); + s.state___30685 = (r0); + r0 = s.state___30685.fields["id"]; s.tmp_3 = r0; r0 = s.arg0.fields["id"]; s.tmp_4 = r0; @@ -24888,36 +23006,36 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 2; continue; } - r0 = s.state___100817; + r0 = s.state___30685; { step = 5; continue; } case 2: case 3: - r0 = (s.unnamed713___U2 + 1); - s.unnamed713___U2 = (r0); + r0 = (s.unnamed157___U2 + 1); + s.unnamed157___U2 = (r0); { step = 1; continue; } case 4: - s.unnamed712___U1 = (undefined); + s.unnamed156___U1 = (undefined); r0 = undefined; case 5: return leaveAccessor(s, r0) default: oops() } } } -controller_Button_handlerState__P92243.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__P92243.isGetter = true; +controller_Button_handlerState__P22688.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__P22688.isGetter = true; -function controller_Button_handlerState__P92243_mk(s) { +function controller_Button_handlerState__P22688_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_handlerState__P92243, depth: s.depth + 1, + parent: s, fn: controller_Button_handlerState__P22688, depth: s.depth + 1, pc: 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___100817: undefined, - unnamed712___U1: undefined, - unnamed713___U2: undefined, + state___30685: undefined, + unnamed156___U1: undefined, + unnamed157___U2: undefined, arg0: undefined, } } @@ -24925,7 +23043,7 @@ function controller_Button_handlerState__P92243_mk(s) { -function controller_ButtonEventHandlerState_constructor__P89707(s) { +function controller_ButtonEventHandlerState_constructor__P20157(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24941,18 +23059,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_ButtonEventHandlerState__C89706_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_ButtonEventHandlerState__C20156_VT)) failedCast(r0); r0 = (s.arg0).fields["id"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_ButtonEventHandlerState_constructor__P89707.info = {"start":1122,"length":33,"line":48,"column":8,"endLine":48,"endColumn":41,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":["this","id"]} +controller_ButtonEventHandlerState_constructor__P20157.info = {"start":1122,"length":33,"line":48,"column":8,"endLine":48,"endColumn":41,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":["this","id"]} -function controller_ButtonEventHandlerState_constructor__P89707_mk(s) { +function controller_ButtonEventHandlerState_constructor__P20157_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_ButtonEventHandlerState_constructor__P89707, depth: s.depth + 1, + parent: s, fn: controller_ButtonEventHandlerState_constructor__P20157, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -24962,7 +23080,7 @@ function controller_ButtonEventHandlerState_constructor__P89707_mk(s) { -function controller_ButtonHandler_constructor__P89705(s) { +function controller_ButtonHandler_constructor__P20155(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24979,19 +23097,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_ButtonHandler__C89704_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_ButtonHandler__C20154_VT)) failedCast(r0); r0 = (s.arg0).fields["event"] = (s.arg1); r0 = (s.arg0).fields["callback"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_ButtonHandler_constructor__P89705.info = {"start":997,"length":66,"line":44,"column":8,"endLine":44,"endColumn":74,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":["this","event","callback"]} +controller_ButtonHandler_constructor__P20155.info = {"start":997,"length":66,"line":44,"column":8,"endLine":44,"endColumn":74,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":["this","event","callback"]} -function controller_ButtonHandler_constructor__P89705_mk(s) { +function controller_ButtonHandler_constructor__P20155_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_ButtonHandler_constructor__P89705, depth: s.depth + 1, + parent: s, fn: controller_ButtonHandler_constructor__P20155, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -25002,7 +23120,7 @@ function controller_ButtonHandler_constructor__P89705_mk(s) { -function scene_systemMenu_initScreen__P92727(s) { +function scene_systemMenu_initScreen__P23172(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25012,21 +23130,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.brightness___100829 = undefined; - s.tmp_0 = settings_readNumber__P89589_mk(s); + s.brightness___30697 = undefined; + s.tmp_0 = settings_readNumber__P20039_mk(s); s.tmp_0.arg0 = "#brightness"; - s.callLocIdx = 1130; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1117; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.brightness___100829 = (r0); - r0 = (s.brightness___100829 !== undefined); + s.brightness___30697 = (r0); + r0 = (s.brightness___30697 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_setScreenBrightness__P89486_mk(s); - s.tmp_1.arg0 = globals.screen___89553; - s.tmp_1.arg1 = s.brightness___100829; - s.callLocIdx = 1131; s.pc = 4; return s.tmp_1; + s.tmp_1 = helpers_setScreenBrightness__P19936_mk(s); + s.tmp_1.arg0 = globals.screen___20003; + s.tmp_1.arg1 = s.brightness___30697; + s.callLocIdx = 1118; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; case 1: @@ -25035,23 +23153,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_initScreen__P92727.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__P23172.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__P92727_mk(s) { +function scene_systemMenu_initScreen__P23172_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_initScreen__P92727, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_initScreen__P23172, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - brightness___100829: undefined, + brightness___30697: undefined, } } -function settings_readNumber__P89589(s) { +function settings_readNumber__P20039(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25061,15 +23179,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___100840 = undefined; - s.nums___100847 = undefined; + s.buf___30708 = undefined; + s.nums___30715 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim.settings._get(s.arg0); - s.buf___100840 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___100840); + s.buf___30708 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___30708); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -25079,20 +23197,20 @@ switch (step) { { step = 7; continue; } { step = 6; continue; } case 1: - s.tmp_2 = msgpack_unpackNumberArray__P87704_mk(s); - s.tmp_2.arg0 = s.buf___100840; + s.tmp_2 = msgpack_unpackNumberArray__P18154_mk(s); + s.tmp_2.arg0 = s.buf___30708; s.tmp_2.arg1 = 0; s.callLocIdx = 128; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; - s.nums___100847 = (r0); - s.tmp_0 = r0 = s.nums___100847; + s.nums___30715 = (r0); + s.tmp_0 = r0 = s.nums___30715; 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___100847); + r0 = pxsim_Array__length(s.nums___30715); s.tmp_1 = r0; r0 = (s.tmp_1 >= 1); case 3: @@ -25100,7 +23218,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.nums___100847, 0); + r0 = pxsim_Array__getAt(s.nums___30715, 0); { step = 7; continue; } case 4: case 5: @@ -25112,18 +23230,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_readNumber__P89589.info = {"start":3283,"length":313,"line":131,"column":4,"endLine":141,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readNumber","argumentNames":["key"]} +settings_readNumber__P20039.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__P89589_mk(s) { +function settings_readNumber__P20039_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readNumber__P89589, depth: s.depth + 1, + parent: s, fn: settings_readNumber__P20039, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - buf___100840: undefined, - nums___100847: undefined, + buf___30708: undefined, + nums___30715: undefined, arg0: undefined, } } @@ -25131,7 +23249,7 @@ function settings_readNumber__P89589_mk(s) { -function settings_readBuffer__P89586(s) { +function settings_readBuffer__P20036(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25149,12 +23267,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_readBuffer__P89586.info = {"start":2694,"length":72,"line":103,"column":4,"endLine":105,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readBuffer","argumentNames":["key"]} +settings_readBuffer__P20036.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__P89586_mk(s) { +function settings_readBuffer__P20036_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readBuffer__P89586, depth: s.depth + 1, + parent: s, fn: settings_readBuffer__P20036, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -25163,7 +23281,7 @@ function settings_readBuffer__P89586_mk(s) { -function msgpack_unpackNumberArray__P87704(s) { +function msgpack_unpackNumberArray__P18154(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25173,16 +23291,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___100860 = undefined; - s.fmt___100867 = undefined; - s.v___100876 = undefined; + s.res___30728 = undefined; + s.fmt___30735 = undefined; + s.v___30744 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.res___100860 = (r0); + s.res___30728 = (r0); case 1: s.tmp_1 = r0 = s.arg1; r0 = pxsim.BufferMethods.length(s.arg0); @@ -25194,14 +23312,14 @@ switch (step) { s.tmp_3 = r0 = s.arg1; r0 = (s.tmp_3 + 1); s.arg1 = (r0); - s.tmp_4 = msgpack_tagFormat__P91895_mk(s); + s.tmp_4 = msgpack_tagFormat__P22340_mk(s); r0 = pxsim.BufferMethods.getByte(s.arg0, s.tmp_3); s.tmp_4.arg0 = r0; s.callLocIdx = 19; s.pc = 12; return s.tmp_4; case 12: r0 = s.retval; - s.fmt___100867 = (r0); - r0 = (s.fmt___100867 === null); + s.fmt___30735 = (r0); + r0 = (s.fmt___30735 === null); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } @@ -25209,21 +23327,21 @@ switch (step) { r0 = (s.arg1 - 1); s.tmp_2 = r0; r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 6, s.tmp_2); - s.v___100876 = (r0); - r0 = (-31 <= s.v___100876); + s.v___30744 = (r0); + r0 = (-31 <= s.v___30744); 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___100876 <= 127); + r0 = (s.v___30744 <= 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___100860, s.v___100876); + r0 = pxsim_Array__push(s.res___30728, s.v___30744); { step = 5; continue; } case 4: r0 = null; @@ -25231,13 +23349,13 @@ switch (step) { case 5: { step = 7; continue; } case 6: - s.tmp_0 = r0 = s.res___100860; - r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___100867, s.arg1); + s.tmp_0 = r0 = s.res___30728; + r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___30735, 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__P87696_mk(s); - s.tmp_2.arg0 = s.fmt___100867; + s.tmp_2 = pins_sizeOf__P18146_mk(s); + s.tmp_2.arg0 = s.fmt___30735; s.callLocIdx = 20; s.pc = 13; return s.tmp_2; case 13: r0 = s.retval; @@ -25258,26 +23376,26 @@ switch (step) { case 9: { step = 1; continue; } case 10: - r0 = s.res___100860; + r0 = s.res___30728; case 11: return leave(s, r0) default: oops() } } } -msgpack_unpackNumberArray__P87704.info = {"start":2650,"length":669,"line":91,"column":4,"endLine":111,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"unpackNumberArray","argumentNames":["buf","offset"]} +msgpack_unpackNumberArray__P18154.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__P87704_mk(s) { +function msgpack_unpackNumberArray__P18154_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_unpackNumberArray__P87704, depth: s.depth + 1, + parent: s, fn: msgpack_unpackNumberArray__P18154, depth: s.depth + 1, pc: 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___100860: undefined, - fmt___100867: undefined, - v___100876: undefined, + res___30728: undefined, + fmt___30735: undefined, + v___30744: undefined, arg0: undefined, arg1: undefined, } } @@ -25286,7 +23404,7 @@ function msgpack_unpackNumberArray__P87704_mk(s) { -function scene_systemMenu_initVolume__P92726(s) { +function scene_systemMenu_initVolume__P23171(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25296,20 +23414,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.vol___100921 = undefined; - s.tmp_0 = settings_readNumber__P89589_mk(s); + s.vol___30789 = undefined; + s.tmp_0 = settings_readNumber__P20039_mk(s); s.tmp_0.arg0 = "#volume"; - s.callLocIdx = 1128; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1115; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.vol___100921 = (r0); - r0 = (s.vol___100921 !== undefined); + s.vol___30789 = (r0); + r0 = (s.vol___30789 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = music_setVolume__P89141_mk(s); - s.tmp_1.arg0 = s.vol___100921; - s.callLocIdx = 1129; s.pc = 4; return s.tmp_1; + s.tmp_1 = music_setVolume__P19591_mk(s); + s.tmp_1.arg0 = s.vol___30789; + s.callLocIdx = 1116; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; case 1: @@ -25318,23 +23436,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_initVolume__P92726.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__P23171.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__P92726_mk(s) { +function scene_systemMenu_initVolume__P23171_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_initVolume__P92726, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_initVolume__P23171, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - vol___100921: undefined, + vol___30789: undefined, } } -function game_GameOverConfig_constructor__P90509(s) { +function game_GameOverConfig_constructor__P20959(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25349,22 +23467,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverConfig__C90494_VT)) failedCast(r0); - s.tmp_0 = game_GameOverConfig_init__P90510_mk(s); + if (!checkSubtype(r0, game_GameOverConfig__C20944_VT)) failedCast(r0); + s.tmp_0 = game_GameOverConfig_init__P20960_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 945; s.pc = 1; return s.tmp_0; + s.callLocIdx = 938; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -game_GameOverConfig_constructor__P90509.info = {"start":893,"length":50,"line":35,"column":8,"endLine":37,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["this"]} +game_GameOverConfig_constructor__P20959.info = {"start":893,"length":50,"line":35,"column":8,"endLine":37,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["this"]} -function game_GameOverConfig_constructor__P90509_mk(s) { +function game_GameOverConfig_constructor__P20959_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverConfig_constructor__P90509, depth: s.depth + 1, + parent: s, fn: game_GameOverConfig_constructor__P20959, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -25374,7 +23492,7 @@ function game_GameOverConfig_constructor__P90509_mk(s) { -function game_GameOverConfig_init__P90510(s) { +function game_GameOverConfig_init__P20960(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25389,22 +23507,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_GameOverConfig__C90494_VT)) failedCast(r0); + if (!checkSubtype(r0, game_GameOverConfig__C20944_VT)) failedCast(r0); r0 = (s.arg0).fields["scoringType"] = (0); - r0 = (s.arg0).fields["winEffect"] = (globals.confetti___90795); - r0 = (s.arg0).fields["loseEffect"] = (globals.melt___90817); + r0 = (s.arg0).fields["winEffect"] = (globals.confetti___21245); + r0 = (s.arg0).fields["loseEffect"] = (globals.melt___21267); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = music_melodyPlayable__P89444_mk(s); - s.tmp_2.arg0 = globals.powerUp___89171; - s.callLocIdx = 946; s.pc = 1; return s.tmp_2; + s.tmp_2 = music_melodyPlayable__P19894_mk(s); + s.tmp_2.arg0 = globals.powerUp___19621; + s.callLocIdx = 939; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["winSound"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = music_melodyPlayable__P89444_mk(s); - s.tmp_2.arg0 = globals.wawawawaa___89168; - s.callLocIdx = 947; s.pc = 2; return s.tmp_2; + s.tmp_2 = music_melodyPlayable__P19894_mk(s); + s.tmp_2.arg0 = globals.wawawawaa___19618; + s.callLocIdx = 940; s.pc = 2; return s.tmp_2; case 2: r0 = s.retval; s.tmp_1 = r0; @@ -25422,12 +23540,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_GameOverConfig_init__P90510.info = {"start":953,"length":701,"line":39,"column":8,"endLine":54,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["this"]} +game_GameOverConfig_init__P20960.info = {"start":953,"length":701,"line":39,"column":8,"endLine":54,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["this"]} -function game_GameOverConfig_init__P90510_mk(s) { +function game_GameOverConfig_init__P20960_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_GameOverConfig_init__P90510, depth: s.depth + 1, + parent: s, fn: game_GameOverConfig_init__P20960, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25439,7 +23557,7 @@ function game_GameOverConfig_init__P90510_mk(s) { -function melt_inline__P100984(s) { +function melt_inline__P30852(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25449,11 +23567,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rounds___100987 = undefined; - s.j___100995 = undefined; - s.x___101000 = undefined; - s.y___101006 = undefined; - s.c___101012 = undefined; + s.rounds___30855 = undefined; + s.j___30863 = undefined; + s.x___30868 = undefined; + s.y___30874 = undefined; + s.c___30880 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -25466,14 +23584,14 @@ switch (step) { r0 = (s.tmp_1 * s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 >> 5); - s.rounds___100987 = (r0); - s.j___100995 = (0); + s.rounds___30855 = (r0); + s.j___30863 = (0); case 1: - r0 = (s.j___100995 < s.rounds___100987); + r0 = (s.j___30863 < s.rounds___30855); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P90584_mk(s); + s.tmp_1 = Math_FastRandom_randomRange__P21034_mk(s); s.tmp_1.arg0 = s.arg1; s.tmp_1.arg1 = 0; r0 = pxsim_ImageMethods.width(s.arg0); @@ -25483,8 +23601,8 @@ switch (step) { s.callLocIdx = 58; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.x___101000 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P90584_mk(s); + s.x___30868 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P21034_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 0; r0 = pxsim_ImageMethods.height(s.arg0); @@ -25494,42 +23612,42 @@ switch (step) { s.callLocIdx = 59; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.y___101006 = (r0); - r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___101000, s.y___101006); - s.c___101012 = (r0); + s.y___30874 = (r0); + r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___30868, s.y___30874); + s.c___30880 = (r0); s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___101000; - r0 = (s.y___101006 + 1); + s.tmp_1 = r0 = s.x___30868; + r0 = (s.y___30874 + 1); s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___101012); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___30880); s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___101000; - r0 = (s.y___101006 + 2); + s.tmp_1 = r0 = s.x___30868; + r0 = (s.y___30874 + 2); s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___101012); - r0 = (s.j___100995 + 1); - s.j___100995 = (r0); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___30880); + r0 = (s.j___30863 + 1); + s.j___30863 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -melt_inline__P100984.info = {"start":2652,"length":386,"line":72,"column":45,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} +melt_inline__P30852.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__P100984_mk(s) { +function melt_inline__P30852_mk(s) { checkStack(s.depth); return { - parent: s, fn: melt_inline__P100984, depth: s.depth + 1, + parent: s, fn: melt_inline__P30852, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - rounds___100987: undefined, - j___100995: undefined, - x___101000: undefined, - y___101006: undefined, - c___101012: undefined, + rounds___30855: undefined, + j___30863: undefined, + x___30868: undefined, + y___30874: undefined, + c___30880: undefined, arg0: undefined, arg1: undefined, } } @@ -25538,7 +23656,7 @@ function melt_inline__P100984_mk(s) { -function confetti_inline__P101038(s) { +function confetti_inline__P30906(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25548,13 +23666,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.factory___101041 = undefined; + s.factory___30909 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C90739_VT); + r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C21189_VT); s.tmp_0 = r0; s.tmp_2 = if_width_1_mk(s); s.tmp_2.arg0 = s.arg0; @@ -25589,27 +23707,27 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.tmp_5 = particles_ConfettiFactory_constructor__P90740_mk(s); + s.tmp_5 = particles_ConfettiFactory_constructor__P21190_mk(s); s.tmp_5.arg0 = s.tmp_0; s.tmp_5.arg1 = s.tmp_4; s.tmp_5.arg2 = 16; s.callLocIdx = 48; s.pc = 5; return s.tmp_5; case 5: r0 = s.retval; - s.factory___101041 = (s.tmp_0); - s.tmp_0 = particles_SprayFactory_setSpeed__P90716_mk(s); - s.tmp_0.arg0 = s.factory___101041; + s.factory___30909 = (s.tmp_0); + s.tmp_0 = particles_SprayFactory_setSpeed__P21166_mk(s); + s.tmp_0.arg0 = s.factory___30909; s.tmp_0.arg1 = 30; s.callLocIdx = 49; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C90672_VT); + r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C21122_VT); s.tmp_0 = r0; - s.tmp_1 = particles_ParticleSource_constructor__P90677_mk(s); + s.tmp_1 = particles_ParticleSource_constructor__P21127_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___101041; + s.tmp_1.arg3 = s.factory___30909; s.callLocIdx = 50; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; @@ -25617,12 +23735,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -confetti_inline__P101038.info = {"start":7534,"length":284,"line":191,"column":59,"endLine":195,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} +confetti_inline__P30906.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 confetti_inline__P101038_mk(s) { +function confetti_inline__P30906_mk(s) { checkStack(s.depth); return { - parent: s, fn: confetti_inline__P101038, depth: s.depth + 1, + parent: s, fn: confetti_inline__P30906, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25630,7 +23748,7 @@ function confetti_inline__P101038_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - factory___101041: undefined, + factory___30909: undefined, arg0: undefined, arg1: undefined, } } @@ -25639,7 +23757,7 @@ function confetti_inline__P101038_mk(s) { -function particles_ParticleSource_constructor__P90677(s) { +function particles_ParticleSource_constructor__P21127(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25649,8 +23767,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___101062 = undefined; - s.removedSource___101071 = undefined; + s.sources___30930 = undefined; + s.removedSource___30939 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -25659,65 +23777,65 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C90672_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_constructor__P89617_mk(s); + if (!checkSubtype(r0, particles_ParticleSource__C21122_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_constructor__P20067_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.callLocIdx = 1150; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1137; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = particles_init__P92803_mk(s); - s.callLocIdx = 1151; s.pc = 6; return s.tmp_0; + s.tmp_0 = particles_init__P23248_mk(s); + s.callLocIdx = 1138; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = particles_particleSources__P92809_mk(s); - s.callLocIdx = 1152; s.pc = 7; return s.tmp_0; + s.tmp_0 = particles_particleSources__P23254_mk(s); + s.callLocIdx = 1139; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.sources___101062 = (r0); - r0 = pxsim_Array__length(s.sources___101062); + s.sources___30930 = (r0); + r0 = pxsim_Array__length(s.sources___30930); s.tmp_1 = r0; - r0 = (s.tmp_1 >= globals.MAX_SOURCES___92795); + r0 = (s.tmp_1 >= globals.MAX_SOURCES___23240); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = particles_sortSources__P92806_mk(s); - s.tmp_2.arg0 = s.sources___101062; - s.callLocIdx = 1153; s.pc = 8; return s.tmp_2; + s.tmp_2 = particles_sortSources__P23251_mk(s); + s.tmp_2.arg0 = s.sources___30930; + s.callLocIdx = 1140; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; - r0 = pxsim_Array_.removeAt(s.sources___101062, 0); - s.removedSource___101071 = (r0); - s.tmp_0 = particles_ParticleSource_clear__P90687_mk(s); - s.tmp_0.arg0 = s.removedSource___101071; - s.callLocIdx = 1155; s.pc = 9; return s.tmp_0; + r0 = pxsim_Array_.removeAt(s.sources___30930, 0); + s.removedSource___30939 = (r0); + s.tmp_0 = particles_ParticleSource_clear__P21137_mk(s); + s.tmp_0.arg0 = s.removedSource___30939; + s.callLocIdx = 1142; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.tmp_0 = particles_ParticleSource_destroy__P90686_mk(s); - s.tmp_0.arg0 = s.removedSource___101071; - s.callLocIdx = 1156; s.pc = 10; return s.tmp_0; + s.tmp_0 = particles_ParticleSource_destroy__P21136_mk(s); + s.tmp_0.arg0 = s.removedSource___30939; + s.callLocIdx = 1143; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; case 1: case 2: r0 = (s.arg0).fields["pFlags"] = (0); - s.tmp_0 = particles_ParticleSource_setRate__P90689_mk(s); + s.tmp_0 = particles_ParticleSource_setRate__P21139_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 1157; s.pc = 11; return s.tmp_0; + s.callLocIdx = 1144; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; - s.tmp_0 = particles_ParticleSource_setAcceleration__P90681_mk(s); + s.tmp_0 = particles_ParticleSource_setAcceleration__P21131_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 0; - s.callLocIdx = 1158; s.pc = 12; return s.tmp_0; + s.callLocIdx = 1145; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_0 = particles_ParticleSource_setAnchor__P90688_mk(s); + s.tmp_0 = particles_ParticleSource_setAnchor__P21138_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1159; s.pc = 13; return s.tmp_0; + s.callLocIdx = 1146; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; r0 = (s.arg0).fields["lifespan"] = (undefined); @@ -25729,39 +23847,39 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - r0 = globals.defaultFactory___90692; + r0 = globals.defaultFactory___21142; case 4: // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_2 = particles_ParticleSource_setFactory__P90691_mk(s); + s.tmp_2 = particles_ParticleSource_setFactory__P21141_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 1160; s.pc = 14; return s.tmp_2; + s.callLocIdx = 1147; s.pc = 14; return s.tmp_2; case 14: r0 = s.retval; - r0 = pxsim_Array__push(s.sources___101062, s.arg0); - s.tmp_0 = particles_ParticleSource_enabled__P90685_mk(s); + r0 = pxsim_Array__push(s.sources___30930, s.arg0); + s.tmp_0 = particles_ParticleSource_enabled__P21135_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = true; - s.callLocIdx = 1161; s.pc = 15; return s.tmp_0; + s.callLocIdx = 1148; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_constructor__P90677.info = {"start":2307,"length":899,"line":87,"column":8,"endLine":110,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["this","anchor","particlesPerSecond","factory"]} +particles_ParticleSource_constructor__P21127.info = {"start":2307,"length":899,"line":87,"column":8,"endLine":110,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["this","anchor","particlesPerSecond","factory"]} -function particles_ParticleSource_constructor__P90677_mk(s) { +function particles_ParticleSource_constructor__P21127_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_constructor__P90677, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_constructor__P21127, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - sources___101062: undefined, - removedSource___101071: undefined, + sources___30930: undefined, + removedSource___30939: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -25772,7 +23890,7 @@ function particles_ParticleSource_constructor__P90677_mk(s) { -function particles_sortSources__P92806(s) { +function particles_sortSources__P23251(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25786,22 +23904,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = helpers_arraySort__P87626_mk(s); + s.tmp_0 = helpers_arraySort__P18076_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = particles_sortSources_inline__P101269; - s.callLocIdx = 1199; s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = particles_sortSources_inline__P31137; + s.callLocIdx = 1186; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_sortSources__P92806.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__P23251.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__P92806_mk(s) { +function particles_sortSources__P23251_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_sortSources__P92806, depth: s.depth + 1, + parent: s, fn: particles_sortSources__P23251, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -25811,7 +23929,7 @@ function particles_sortSources__P92806_mk(s) { -function particles_sortSources_inline__P101269(s) { +function particles_sortSources_inline__P31137(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25849,12 +23967,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_sortSources_inline__P101269.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__P31137.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__P101269_mk(s) { +function particles_sortSources_inline__P31137_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_sortSources_inline__P101269, depth: s.depth + 1, + parent: s, fn: particles_sortSources_inline__P31137, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25870,7 +23988,7 @@ function particles_sortSources_inline__P101269_mk(s) { -function particles_init__P92803(s) { +function particles_init__P23248(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25880,34 +23998,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___101308 = undefined; - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 1189; s.pc = 4; return s.tmp_0; + s.scene___31176 = undefined; + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 1176; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.scene___101308 = (r0); - r0 = s.scene___101308.fields["particleSources"]; + s.scene___31176 = (r0); + r0 = s.scene___31176.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___101308; + s.tmp_1 = r0 = s.scene___31176; r0 = pxsim_Array__mk(); s.tmp_2 = r0; r0 = (s.tmp_1).fields["particleSources"] = (s.tmp_2); r0 = pxsim.control.millis(); - globals.lastUpdate___92798 = (r0); - s.tmp_0 = game_onUpdate__P90544_mk(s); - s.tmp_0.arg0 = particles_updateParticles__P92804; - s.callLocIdx = 1190; s.pc = 5; return s.tmp_0; + globals.lastUpdate___23243 = (r0); + s.tmp_0 = game_onUpdate__P20994_mk(s); + s.tmp_0.arg0 = particles_updateParticles__P23249; + s.callLocIdx = 1177; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = game_onUpdateInterval__P90545_mk(s); + s.tmp_0 = game_onUpdateInterval__P20995_mk(s); s.tmp_0.arg0 = 250; - s.tmp_0.arg1 = particles_pruneParticles__P92805; - s.callLocIdx = 1191; s.pc = 6; return s.tmp_0; + s.tmp_0.arg1 = particles_pruneParticles__P23250; + s.callLocIdx = 1178; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; case 3: @@ -25915,24 +24033,24 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_init__P92803.info = {"start":9236,"length":276,"line":304,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]} +particles_init__P23248.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__P92803_mk(s) { +function particles_init__P23248_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_init__P92803, depth: s.depth + 1, + parent: s, fn: particles_init__P23248, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - scene___101308: undefined, + scene___31176: undefined, } } -function particles_updateParticles__P92804(s) { +function particles_updateParticles__P23249(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25942,16 +24060,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___101350 = undefined; - s.time___101357 = undefined; - s.dt___101360 = undefined; - s.i___101366 = undefined; - s.tmp_0 = particles_particleSources__P92809_mk(s); - s.callLocIdx = 1192; s.pc = 6; return s.tmp_0; + s.sources___31218 = undefined; + s.time___31225 = undefined; + s.dt___31228 = undefined; + s.i___31234 = undefined; + s.tmp_0 = particles_particleSources__P23254_mk(s); + s.callLocIdx = 1179; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.sources___101350 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___101350); + s.sources___31218 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___31218); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -25960,34 +24078,34 @@ switch (step) { { step = 5; continue; } case 1: case 2: - s.tmp_2 = particles_sortSources__P92806_mk(s); - s.tmp_2.arg0 = s.sources___101350; - s.callLocIdx = 1193; s.pc = 7; return s.tmp_2; + s.tmp_2 = particles_sortSources__P23251_mk(s); + s.tmp_2.arg0 = s.sources___31218; + s.callLocIdx = 1180; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; r0 = pxsim.control.millis(); - s.time___101357 = (r0); - r0 = (s.time___101357 - globals.lastUpdate___92798); - s.dt___101360 = (r0); - globals.lastUpdate___92798 = (s.time___101357); - s.i___101366 = (0); + s.time___31225 = (r0); + r0 = (s.time___31225 - globals.lastUpdate___23243); + s.dt___31228 = (r0); + globals.lastUpdate___23243 = (s.time___31225); + s.i___31234 = (0); case 3: - s.tmp_1 = r0 = s.i___101366; - r0 = pxsim_Array__length(s.sources___101350); + s.tmp_1 = r0 = s.i___31234; + r0 = pxsim_Array__length(s.sources___31218); 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__P90679_mk(s); - r0 = pxsim_Array__getAt(s.sources___101350, s.i___101366); + s.tmp_3 = particles_ParticleSource__update__P21129_mk(s); + r0 = pxsim_Array__getAt(s.sources___31218, s.i___31234); s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.dt___101360; - s.callLocIdx = 1194; s.pc = 8; return s.tmp_3; + s.tmp_3.arg1 = s.dt___31228; + s.callLocIdx = 1181; s.pc = 8; return s.tmp_3; case 8: r0 = s.retval; - r0 = (s.i___101366 + 1); - s.i___101366 = (r0); + r0 = (s.i___31234 + 1); + s.i___31234 = (r0); { step = 3; continue; } case 4: case 5: @@ -25995,28 +24113,28 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_updateParticles__P92804.info = {"start":9518,"length":340,"line":313,"column":4,"endLine":325,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]} +particles_updateParticles__P23249.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__P92804_mk(s) { +function particles_updateParticles__P23249_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_updateParticles__P92804, depth: s.depth + 1, + parent: s, fn: particles_updateParticles__P23249, depth: s.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___101350: undefined, - time___101357: undefined, - dt___101360: undefined, - i___101366: undefined, + sources___31218: undefined, + time___31225: undefined, + dt___31228: undefined, + i___31234: undefined, } } -function particles_ParticleSource__update__P90679(s) { +function particles_ParticleSource__update__P21129(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26026,16 +24144,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___101429 = undefined; - s.current___101448 = undefined; - s.fixedDt___101456 = undefined; + s.p___31297 = undefined; + s.current___31316 = undefined; + s.fixedDt___31324 = 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__C90672_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21122_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["timer"]; s.tmp_2 = r0; @@ -26061,9 +24179,9 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = (s.arg0).fields["lifespan"] = (undefined); - s.tmp_0 = particles_ParticleSource_destroy__P90686_mk(s); + s.tmp_0 = particles_ParticleSource_destroy__P21136_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1165; s.pc = 28; return s.tmp_0; + s.callLocIdx = 1152; s.pc = 28; return s.tmp_0; case 28: r0 = s.retval; case 1: @@ -26086,7 +24204,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 = 1166; s.pc = 29; return s.tmp_2; } + else { s.callLocIdx = 1153; s.pc = 29; return s.tmp_2; } } case 29: r0 = s.retval; @@ -26109,7 +24227,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 = 1167; s.pc = 30; return s.tmp_5; } + else { s.callLocIdx = 1154; s.pc = 30; return s.tmp_5; } } case 30: r0 = s.retval; @@ -26134,9 +24252,9 @@ switch (step) { r0 = s.tmp_0; { step = 13; continue; } case 12: - s.tmp_2 = particles_ParticleSource_enabled__P90684_mk(s); + s.tmp_2 = particles_ParticleSource_enabled__P21134_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 1168; s.pc = 31; return s.tmp_2; + s.callLocIdx = 1155; s.pc = 31; return s.tmp_2; case 31: r0 = s.retval; case 13: @@ -26152,18 +24270,18 @@ switch (step) { r0 = (s.tmp_6 + s.tmp_7); s.tmp_5 = r0; r0 = (s.tmp_4).fields["timer"] = (s.tmp_5); - s.tmp_0 = particles_ParticleFactory__C90708_v0_2_mk(s); + s.tmp_0 = particles_ParticleFactory__C21158_v0_2_mk(s); r0 = s.arg0.fields["_factory"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["anchor"]; s.tmp_0.arg1 = r0; - if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C90708_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C21158_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.createParticle; s.pc = 32; return s.tmp_0; case 32: r0 = s.retval; - s.p___101429 = (r0); - r0 = pxsim_numops_toBoolDecr(s.p___101429); + s.p___31297 = (r0); + r0 = pxsim_numops_toBoolDecr(s.p___31297); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -26174,8 +24292,8 @@ switch (step) { case 15: r0 = s.arg0.fields["head"]; s.tmp_2 = r0; - r0 = (s.p___101429).fields["next"] = (s.tmp_2); - r0 = (s.arg0).fields["head"] = (s.p___101429); + r0 = (s.p___31297).fields["next"] = (s.tmp_2); + r0 = (s.arg0).fields["head"] = (s.p___31297); { step = 11; continue; } case 16: r0 = s.arg0.fields["head"]; @@ -26190,7 +24308,7 @@ switch (step) { case 17: case 18: r0 = s.arg0.fields["head"]; - s.current___101448 = (r0); + s.current___31316 = (r0); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["_dt"]; s.tmp_2 = r0; @@ -26202,36 +24320,36 @@ switch (step) { r0 = (s.tmp_0 * 256); s.tmp_1 = r0; r0 = (s.tmp_1 | 0); - s.fixedDt___101456 = (r0); - r0 = pxsim_numops_toBoolDecr(s.fixedDt___101456); + s.fixedDt___31324 = (r0); + r0 = pxsim_numops_toBoolDecr(s.fixedDt___31324); if (!r0) { step = 23; continue; } case 19: - r0 = s.current___101448.fields["lifespan"]; + r0 = s.current___31316.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___101448; + s.tmp_2 = r0 = s.current___31316; r0 = s.tmp_2.fields["lifespan"]; s.tmp_4 = r0; r0 = (s.tmp_4 - s.arg1); s.tmp_3 = r0; r0 = (s.tmp_2).fields["lifespan"] = (s.tmp_3); - s.tmp_0 = particles_ParticleSource__C90672_v4_3_mk(s); + s.tmp_0 = particles_ParticleSource__C21122_v4_3_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.current___101448; - s.tmp_0.arg2 = s.fixedDt___101456; - if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C90672_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.arg1 = s.current___31316; + s.tmp_0.arg2 = s.fixedDt___31324; + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C21122_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.updateParticle; s.pc = 33; return s.tmp_0; case 33: r0 = s.retval; case 20: case 21: - r0 = s.current___101448.fields["next"]; + r0 = s.current___31316.fields["next"]; s.tmp_0 = r0; - s.current___101448 = (r0); + s.current___31316 = (r0); r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 22; continue; } { step = 19; continue; } @@ -26240,15 +24358,15 @@ switch (step) { { step = 26; continue; } case 23: case 24: - s.tmp_0 = r0 = s.current___101448; + s.tmp_0 = r0 = s.current___31316; 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___101448.fields["next"]; + r0 = s.current___31316.fields["next"]; s.tmp_0 = r0; - s.current___101448 = (r0); + s.current___31316 = (r0); r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 25; continue; } { step = 24; continue; } @@ -26259,12 +24377,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource__update__P90679.info = {"start":3694,"length":1400,"line":124,"column":8,"endLine":164,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_update","argumentNames":["this","dt"]} +particles_ParticleSource__update__P21129.info = {"start":3694,"length":1400,"line":124,"column":8,"endLine":164,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_update","argumentNames":["this","dt"]} -function particles_ParticleSource__update__P90679_mk(s) { +function particles_ParticleSource__update__P21129_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource__update__P90679, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource__update__P21129, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26274,9 +24392,9 @@ function particles_ParticleSource__update__P90679_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - p___101429: undefined, - current___101448: undefined, - fixedDt___101456: undefined, + p___31297: undefined, + current___31316: undefined, + fixedDt___31324: undefined, arg0: undefined, arg1: undefined, } } @@ -26285,7 +24403,7 @@ function particles_ParticleSource__update__P90679_mk(s) { -function particles_ParticleSource_updateParticle__P92800(s) { +function particles_ParticleSource_updateParticle__P23245(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26302,7 +24420,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C90672_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21122_VT)) failedCast(r0); r0 = (s.arg2 >> 10); s.arg2 = (r0); s.tmp_0 = r0 = s.arg1; @@ -26357,12 +24475,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_updateParticle__P92800.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__P23245.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__P92800_mk(s) { +function particles_ParticleSource_updateParticle__P23245_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_updateParticle__P92800, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_updateParticle__P23245, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26379,7 +24497,7 @@ function particles_ParticleSource_updateParticle__P92800_mk(s) { -function Fx_rightShift__P87692(s) { +function Fx_rightShift__P18142(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26398,12 +24516,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_rightShift__P87692.info = {"start":2266,"length":108,"line":71,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"rightShift","argumentNames":["a","n"]} +Fx_rightShift__P18142.info = {"start":2266,"length":108,"line":71,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"rightShift","argumentNames":["a","n"]} -function Fx_rightShift__P87692_mk(s) { +function Fx_rightShift__P18142_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_rightShift__P87692, depth: s.depth + 1, + parent: s, fn: Fx_rightShift__P18142, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -26413,7 +24531,7 @@ function Fx_rightShift__P87692_mk(s) { -function particles_ParticleFactory_createParticle__P90710(s) { +function particles_ParticleFactory_createParticle__P21160(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26423,17 +24541,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___101539 = undefined; + s.p___31407 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C90708_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C90653_VT); - s.p___101539 = (r0); - s.tmp_0 = r0 = s.p___101539; + if (!checkSubtype(r0, particles_ParticleFactory__C21158_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C21103_VT); + s.p___31407 = (r0); + s.tmp_0 = r0 = s.p___31407; s.tmp_3 = if_x_1_mk(s); s.tmp_3.arg0 = s.arg1; if (!s.tmp_3.arg0.vtable.iface) { @@ -26442,7 +24560,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 = 1219; s.pc = 1; return s.tmp_3; } + else { s.callLocIdx = 1206; s.pc = 1; return s.tmp_3; } } case 1: r0 = s.retval; @@ -26452,7 +24570,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___101539; + s.tmp_0 = r0 = s.p___31407; s.tmp_3 = if_y_1_mk(s); s.tmp_3.arg0 = s.arg1; if (!s.tmp_3.arg0.vtable.iface) { @@ -26461,7 +24579,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 = 1221; s.pc = 2; return s.tmp_3; } + else { s.callLocIdx = 1208; s.pc = 2; return s.tmp_3; } } case 2: r0 = s.retval; @@ -26471,26 +24589,26 @@ switch (step) { r0 = (s.tmp_4 | 0); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = (s.p___101539).fields["vx"] = (0); - r0 = (s.p___101539).fields["vy"] = (0); - r0 = (s.p___101539).fields["lifespan"] = (500); - r0 = s.p___101539; + r0 = (s.p___31407).fields["vx"] = (0); + r0 = (s.p___31407).fields["vy"] = (0); + r0 = (s.p___31407).fields["lifespan"] = (500); + r0 = s.p___31407; return leave(s, r0) default: oops() } } } -particles_ParticleFactory_createParticle__P90710.info = {"start":1822,"length":282,"line":67,"column":8,"endLine":77,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +particles_ParticleFactory_createParticle__P21160.info = {"start":1822,"length":282,"line":67,"column":8,"endLine":77,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} -function particles_ParticleFactory_createParticle__P90710_mk(s) { +function particles_ParticleFactory_createParticle__P21160_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_createParticle__P90710, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_createParticle__P21160, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - p___101539: undefined, + p___31407: undefined, arg0: undefined, arg1: undefined, } } @@ -26499,7 +24617,7 @@ function particles_ParticleFactory_createParticle__P90710_mk(s) { -function game_onUpdateInterval__P90545(s) { +function game_onUpdateInterval__P20995(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26509,7 +24627,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.timer___101330 = undefined; + s.timer___31198 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -26534,22 +24652,22 @@ switch (step) { case 3: case 4: r0 = pxsim_pxtrt.mklocRef(); - s.timer___101330 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.timer___101330, 0); - r0 = pxsim_pxtcore_mkAction(3, game_onUpdateInterval_inline__P101334); + s.timer___31198 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.timer___31198, 0); + r0 = pxsim_pxtcore_mkAction(3, game_onUpdateInterval_inline__P31202); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___101330); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___31198); 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__P87924_mk(s); - s.tmp_2 = game_eventContext__P90523_mk(s); - s.callLocIdx = 976; s.pc = 7; return s.tmp_2; + s.tmp_1 = control_EventContext_registerFrameHandler__P18374_mk(s); + s.tmp_2 = game_eventContext__P20973_mk(s); + s.callLocIdx = 963; 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 = 980; s.pc = 6; return s.tmp_1; + s.callLocIdx = 967; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; case 5: @@ -26557,17 +24675,17 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_onUpdateInterval__P90545.info = {"start":813,"length":401,"line":26,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/game/gameutil.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]} +game_onUpdateInterval__P20995.info = {"start":813,"length":401,"line":26,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/game/gameutil.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]} -function game_onUpdateInterval__P90545_mk(s) { +function game_onUpdateInterval__P20995_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdateInterval__P90545, depth: s.depth + 1, + parent: s, fn: game_onUpdateInterval__P20995, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - timer___101330: undefined, + timer___31198: undefined, arg0: undefined, arg1: undefined, } } @@ -26576,7 +24694,7 @@ function game_onUpdateInterval__P90545_mk(s) { -function game_onUpdateInterval_inline__P101334(s) { +function game_onUpdateInterval_inline__P31202(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26586,28 +24704,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.time___101335 = undefined; - s.tmp_1 = game_currentScene__P90520_mk(s); - s.callLocIdx = 977; s.pc = 3; return s.tmp_1; + s.time___31203 = undefined; + s.tmp_1 = game_currentScene__P20970_mk(s); + s.callLocIdx = 964; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0 = r0; r0 = s.tmp_0.fields["_millis"]; - s.time___101335 = (r0); + s.time___31203 = (r0); r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.time___101335); + r0 = (s.tmp_1 <= s.time___31203); 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___101335 + s.caps[1]); + r0 = (s.time___31203 + 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 = 979; s.pc = 4; return s.tmp_0; + s.callLocIdx = 966; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 1: @@ -26616,25 +24734,25 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_onUpdateInterval_inline__P101334.info = {"start":1027,"length":179,"line":29,"column":81,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/gameutil.ts","functionName":"inline","argumentNames":[]} +game_onUpdateInterval_inline__P31202.info = {"start":1027,"length":179,"line":29,"column":81,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/gameutil.ts","functionName":"inline","argumentNames":[]} -function game_onUpdateInterval_inline__P101334_mk(s) { +function game_onUpdateInterval_inline__P31202_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdateInterval_inline__P101334, depth: s.depth + 1, + parent: s, fn: game_onUpdateInterval_inline__P31202, depth: s.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___101335: undefined, + time___31203: undefined, } } -function scene_Scene_millis__P90390(s) { +function scene_Scene_millis__P20840(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26649,17 +24767,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C90364_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C20814_VT)) failedCast(r0); r0 = s.arg0.fields["_millis"]; return leave(s, r0) default: oops() } } } -scene_Scene_millis__P90390.info = {"start":7147,"length":61,"line":196,"column":8,"endLine":198,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]} +scene_Scene_millis__P20840.info = {"start":7147,"length":61,"line":196,"column":8,"endLine":198,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]} -function scene_Scene_millis__P90390_mk(s) { +function scene_Scene_millis__P20840_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_millis__P90390, depth: s.depth + 1, + parent: s, fn: scene_Scene_millis__P20840, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -26668,7 +24786,7 @@ function scene_Scene_millis__P90390_mk(s) { -function game_onUpdate__P90544(s) { +function game_onUpdate__P20994(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26691,15 +24809,15 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_2 = control_EventContext_registerFrameHandler__P87924_mk(s); - s.tmp_3 = game_eventContext__P90523_mk(s); - s.callLocIdx = 974; s.pc = 5; return s.tmp_3; + s.tmp_2 = control_EventContext_registerFrameHandler__P18374_mk(s); + s.tmp_3 = game_eventContext__P20973_mk(s); + s.callLocIdx = 961; 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 = 975; s.pc = 4; return s.tmp_2; + s.callLocIdx = 962; s.pc = 4; return s.tmp_2; case 4: r0 = s.retval; case 3: @@ -26707,12 +24825,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_onUpdate__P90544.info = {"start":327,"length":153,"line":13,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/gameutil.ts","functionName":"onUpdate","argumentNames":["a"]} +game_onUpdate__P20994.info = {"start":327,"length":153,"line":13,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/gameutil.ts","functionName":"onUpdate","argumentNames":["a"]} -function game_onUpdate__P90544_mk(s) { +function game_onUpdate__P20994_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdate__P90544, depth: s.depth + 1, + parent: s, fn: game_onUpdate__P20994, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26725,7 +24843,7 @@ function game_onUpdate__P90544_mk(s) { -function MAX_SOURCES_inline__P101284(s) { +function MAX_SOURCES_inline__P31152(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26735,13 +24853,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sz___101285 = undefined; - s.tmp_0 = control_ramSize__P87867_mk(s); + s.sz___31153 = undefined; + s.tmp_0 = control_ramSize__P18317_mk(s); s.callLocIdx = 42; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.sz___101285 = (r0); - r0 = (s.sz___101285 <= 102400); + s.sz___31153 = (r0); + r0 = (s.sz___31153 <= 102400); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -26749,7 +24867,7 @@ switch (step) { { step = 5; continue; } { step = 4; continue; } case 1: - r0 = (s.sz___101285 <= 204800); + r0 = (s.sz___31153 <= 204800); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 2; continue; } @@ -26766,23 +24884,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -MAX_SOURCES_inline__P101284.info = {"start":240,"length":217,"line":9,"column":25,"endLine":18,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]} +MAX_SOURCES_inline__P31152.info = {"start":240,"length":217,"line":9,"column":25,"endLine":18,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]} -function MAX_SOURCES_inline__P101284_mk(s) { +function MAX_SOURCES_inline__P31152_mk(s) { checkStack(s.depth); return { - parent: s, fn: MAX_SOURCES_inline__P101284, depth: s.depth + 1, + parent: s, fn: MAX_SOURCES_inline__P31152, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - sz___101285: undefined, + sz___31153: undefined, } } -function control_ramSize__P87867(s) { +function control_ramSize__P18317(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26807,12 +24925,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_ramSize__P87867.info = {"start":4847,"length":100,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"ramSize","argumentNames":[]} +control_ramSize__P18317.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__P87867_mk(s) { +function control_ramSize__P18317_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_ramSize__P87867, depth: s.depth + 1, + parent: s, fn: control_ramSize__P18317, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26822,7 +24940,7 @@ function control_ramSize__P87867_mk(s) { -function control__ramSize__P91922(s) { +function control__ramSize__P22367(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26836,12 +24954,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control__ramSize__P91922.info = {"start":4727,"length":60,"line":160,"column":4,"endLine":162,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"_ramSize","argumentNames":[]} +control__ramSize__P22367.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__P91922_mk(s) { +function control__ramSize__P22367_mk(s) { checkStack(s.depth); return { - parent: s, fn: control__ramSize__P91922, depth: s.depth + 1, + parent: s, fn: control__ramSize__P22367, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -26849,7 +24967,7 @@ function control__ramSize__P91922_mk(s) { -function particles_SprayFactory_constructor__P90713(s) { +function particles_SprayFactory_constructor__P21163(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26867,35 +24985,35 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C90712_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_SprayFactory__C21162_VT)) failedCast(r0); r0 = undefined; - s.tmp_0 = particles_initTrig__P92824_mk(s); - s.callLocIdx = 1226; s.pc = 1; return s.tmp_0; + s.tmp_0 = particles_initTrig__P23269_mk(s); + s.callLocIdx = 1213; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setSpeed__P90716_mk(s); + s.tmp_0 = particles_SprayFactory_setSpeed__P21166_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1227; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1214; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setDirection__P90717_mk(s); + s.tmp_0 = particles_SprayFactory_setDirection__P21167_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg2; s.tmp_0.arg2 = s.arg3; - s.callLocIdx = 1228; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1215; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_SprayFactory_constructor__P90713.info = {"start":2623,"length":218,"line":98,"column":8,"endLine":103,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","speed","centerDegrees","arcDegrees"]} +particles_SprayFactory_constructor__P21163.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__P90713_mk(s) { +function particles_SprayFactory_constructor__P21163_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_constructor__P90713, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_constructor__P21163, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -26908,7 +25026,7 @@ function particles_SprayFactory_constructor__P90713_mk(s) { -function particles_initTrig__P92824(s) { +function particles_initTrig__P23269(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26918,36 +25036,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.cachedSin___92810); + r0 = pxsim_numops_toBoolDecr(globals.cachedSin___23255); s.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__P90706_mk(s); + s.tmp_2 = particles_cacheSin__P21156_mk(s); s.tmp_2.arg0 = 100; - s.callLocIdx = 1214; s.pc = 3; return s.tmp_2; + s.callLocIdx = 1201; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; - globals.cachedSin___92810 = (r0); - s.tmp_0 = particles_cacheCos__P90707_mk(s); + globals.cachedSin___23255 = (r0); + s.tmp_0 = particles_cacheCos__P21157_mk(s); s.tmp_0.arg0 = 100; - s.callLocIdx = 1215; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1202; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - globals.cachedCos___92811 = (r0); + globals.cachedCos___23256 = (r0); case 1: case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_initTrig__P92824.info = {"start":291,"length":155,"line":11,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"initTrig","argumentNames":[]} +particles_initTrig__P23269.info = {"start":291,"length":155,"line":11,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"initTrig","argumentNames":[]} -function particles_initTrig__P92824_mk(s) { +function particles_initTrig__P23269_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_initTrig__P92824, depth: s.depth + 1, + parent: s, fn: particles_initTrig__P23269, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26958,7 +25076,7 @@ function particles_initTrig__P92824_mk(s) { -function particles_cacheCos__P90707(s) { +function particles_cacheCos__P21157(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26968,25 +25086,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cos___101165 = undefined; - s.anglePerSlice___101167 = undefined; - s.i___101173 = undefined; + s.cos___31033 = undefined; + s.anglePerSlice___31035 = undefined; + s.i___31041 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.cos___101165 = (r0); + s.cos___31033 = (r0); r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___101167 = (r0); - s.i___101173 = (0); + s.anglePerSlice___31035 = (r0); + s.i___31041 = (0); case 1: - r0 = (s.i___101173 < s.arg0); + r0 = (s.i___31041 < s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.cos___101165; - r0 = (s.i___101173 * s.anglePerSlice___101167); + s.tmp_1 = r0 = s.cos___31033; + r0 = (s.i___31041 * s.anglePerSlice___31035); s.tmp_4 = r0; r0 = pxsim.Math_.cos(s.tmp_4); s.tmp_3 = r0; @@ -26995,20 +25113,20 @@ switch (step) { r0 = (s.tmp_5 | 0); s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___101173 + 1); - s.i___101173 = (r0); + r0 = (s.i___31041 + 1); + s.i___31041 = (r0); { step = 1; continue; } case 2: - r0 = s.cos___101165; + r0 = s.cos___31033; return leave(s, r0) default: oops() } } } -particles_cacheCos__P90707.info = {"start":1005,"length":263,"line":35,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheCos","argumentNames":["slices"]} +particles_cacheCos__P21157.info = {"start":1005,"length":263,"line":35,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheCos","argumentNames":["slices"]} -function particles_cacheCos__P90707_mk(s) { +function particles_cacheCos__P21157_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_cacheCos__P90707, depth: s.depth + 1, + parent: s, fn: particles_cacheCos__P21157, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27016,9 +25134,9 @@ function particles_cacheCos__P90707_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - cos___101165: undefined, - anglePerSlice___101167: undefined, - i___101173: undefined, + cos___31033: undefined, + anglePerSlice___31035: undefined, + i___31041: undefined, arg0: undefined, } } @@ -27026,7 +25144,7 @@ function particles_cacheCos__P90707_mk(s) { -function particles_cacheSin__P90706(s) { +function particles_cacheSin__P21156(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27036,25 +25154,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sin___101191 = undefined; - s.anglePerSlice___101193 = undefined; - s.i___101199 = undefined; + s.sin___31059 = undefined; + s.anglePerSlice___31061 = undefined; + s.i___31067 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.sin___101191 = (r0); + s.sin___31059 = (r0); r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___101193 = (r0); - s.i___101199 = (0); + s.anglePerSlice___31061 = (r0); + s.i___31067 = (0); case 1: - r0 = (s.i___101199 < s.arg0); + r0 = (s.i___31067 < s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.sin___101191; - r0 = (s.i___101199 * s.anglePerSlice___101193); + s.tmp_1 = r0 = s.sin___31059; + r0 = (s.i___31067 * s.anglePerSlice___31061); s.tmp_4 = r0; r0 = pxsim.Math_.sin(s.tmp_4); s.tmp_3 = r0; @@ -27063,20 +25181,20 @@ switch (step) { r0 = (s.tmp_5 | 0); s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___101199 + 1); - s.i___101199 = (r0); + r0 = (s.i___31067 + 1); + s.i___31067 = (r0); { step = 1; continue; } case 2: - r0 = s.sin___101191; + r0 = s.sin___31059; return leave(s, r0) default: oops() } } } -particles_cacheSin__P90706.info = {"start":594,"length":263,"line":22,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheSin","argumentNames":["slices"]} +particles_cacheSin__P21156.info = {"start":594,"length":263,"line":22,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheSin","argumentNames":["slices"]} -function particles_cacheSin__P90706_mk(s) { +function particles_cacheSin__P21156_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_cacheSin__P90706, depth: s.depth + 1, + parent: s, fn: particles_cacheSin__P21156, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27084,9 +25202,9 @@ function particles_cacheSin__P90706_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - sin___101191: undefined, - anglePerSlice___101193: undefined, - i___101199: undefined, + sin___31059: undefined, + anglePerSlice___31061: undefined, + i___31067: undefined, arg0: undefined, } } @@ -27094,7 +25212,7 @@ function particles_cacheSin__P90706_mk(s) { -function particles_SprayFactory_setDirection__P90717(s) { +function particles_SprayFactory_setDirection__P21167(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27111,31 +25229,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C90712_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_SprayFactory__C21162_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_4 = particles_toRadians__P92829_mk(s); + s.tmp_4 = particles_toRadians__P23274_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 = 1236; s.pc = 1; return s.tmp_4; + s.callLocIdx = 1223; s.pc = 1; return s.tmp_4; case 1: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 / globals.angleSlice___92823); + r0 = (s.tmp_3 / globals.angleSlice___23268); 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__P92829_mk(s); + s.tmp_4 = particles_toRadians__P23274_mk(s); s.tmp_4.arg0 = s.arg2; - s.callLocIdx = 1237; s.pc = 2; return s.tmp_4; + s.callLocIdx = 1224; s.pc = 2; return s.tmp_4; case 2: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 / globals.angleSlice___92823); + r0 = (s.tmp_3 / globals.angleSlice___23268); s.tmp_2 = r0; r0 = (s.tmp_2 | 0); s.tmp_1 = r0; @@ -27144,12 +25262,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_SprayFactory_setDirection__P90717.info = {"start":3424,"length":228,"line":123,"column":8,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setDirection","argumentNames":["this","centerDegrees","arcDegrees"]} +particles_SprayFactory_setDirection__P21167.info = {"start":3424,"length":228,"line":123,"column":8,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setDirection","argumentNames":["this","centerDegrees","arcDegrees"]} -function particles_SprayFactory_setDirection__P90717_mk(s) { +function particles_SprayFactory_setDirection__P21167_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_setDirection__P90717, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_setDirection__P21167, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27167,7 +25285,7 @@ function particles_SprayFactory_setDirection__P90717_mk(s) { -function particles_toRadians__P92829(s) { +function particles_toRadians__P23274(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27185,9 +25303,9 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = Math_abs__P87649_mk(s); + s.tmp_3 = Math_abs__P18099_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1218; s.pc = 3; return s.tmp_3; + s.callLocIdx = 1205; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; s.tmp_2 = r0; @@ -27204,12 +25322,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_toRadians__P92829.info = {"start":1307,"length":206,"line":45,"column":4,"endLine":52,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"toRadians","argumentNames":["degrees"]} +particles_toRadians__P23274.info = {"start":1307,"length":206,"line":45,"column":4,"endLine":52,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"toRadians","argumentNames":["degrees"]} -function particles_toRadians__P92829_mk(s) { +function particles_toRadians__P23274_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_toRadians__P92829, depth: s.depth + 1, + parent: s, fn: particles_toRadians__P23274, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27222,7 +25340,7 @@ function particles_toRadians__P92829_mk(s) { -function particles_ParticleFactory_constructor__P90709(s) { +function particles_ParticleFactory_constructor__P21159(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27237,17 +25355,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C90708_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleFactory__C21158_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleFactory_constructor__P90709.info = {"start":1617,"length":78,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this"]} +particles_ParticleFactory_constructor__P21159.info = {"start":1617,"length":78,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this"]} -function particles_ParticleFactory_constructor__P90709_mk(s) { +function particles_ParticleFactory_constructor__P21159_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_constructor__P90709, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_constructor__P21159, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -27256,7 +25374,7 @@ function particles_ParticleFactory_constructor__P90709_mk(s) { -function particles_ParticleSource_setFactory__P90691(s) { +function particles_ParticleSource_setFactory__P21141(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27272,7 +25390,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C90672_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21122_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } r0 = (s.arg0).fields["_factory"] = (s.arg1); @@ -27282,12 +25400,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_setFactory__P90691.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_ParticleSource_setFactory__P21141.info = {"start":8124,"length":114,"line":272,"column":8,"endLine":275,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setFactory","argumentNames":["this","factory"]} -function particles_ParticleSource_setFactory__P90691_mk(s) { +function particles_ParticleSource_setFactory__P21141_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setFactory__P90691, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setFactory__P21141, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -27297,7 +25415,7 @@ function particles_ParticleSource_setFactory__P90691_mk(s) { -function particles_ParticleSource_setRate__P90689(s) { +function particles_ParticleSource_setRate__P21139(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27313,7 +25431,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C90672_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21122_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (1000 / s.arg1); s.tmp_2 = r0; @@ -27325,12 +25443,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRate__P90689.info = {"start":7802,"length":139,"line":259,"column":8,"endLine":262,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRate","argumentNames":["this","particlesPerSecond"]} +particles_ParticleSource_setRate__P21139.info = {"start":7802,"length":139,"line":259,"column":8,"endLine":262,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRate","argumentNames":["this","particlesPerSecond"]} -function particles_ParticleSource_setRate__P90689_mk(s) { +function particles_ParticleSource_setRate__P21139_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRate__P90689, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRate__P21139, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27343,7 +25461,7 @@ function particles_ParticleSource_setRate__P90689_mk(s) { -function particles_ParticleSource_setAnchor__P90688(s) { +function particles_ParticleSource_setAnchor__P21138(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27359,18 +25477,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C90672_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21122_VT)) failedCast(r0); r0 = (s.arg0).fields["anchor"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setAnchor__P90688.info = {"start":7594,"length":79,"line":251,"column":8,"endLine":253,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAnchor","argumentNames":["this","anchor"]} +particles_ParticleSource_setAnchor__P21138.info = {"start":7594,"length":79,"line":251,"column":8,"endLine":253,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAnchor","argumentNames":["this","anchor"]} -function particles_ParticleSource_setAnchor__P90688_mk(s) { +function particles_ParticleSource_setAnchor__P21138_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setAnchor__P90688, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAnchor__P21138, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -27380,7 +25498,7 @@ function particles_ParticleSource_setAnchor__P90688_mk(s) { -function particles_ParticleSource_destroy__P90686(s) { +function particles_ParticleSource_destroy__P21136(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27395,11 +25513,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C90672_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleSource_enabled__P90685_mk(s); + if (!checkSubtype(r0, particles_ParticleSource__C21122_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleSource_enabled__P21135_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = false; - s.callLocIdx = 1175; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1162; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; s.tmp_0 = r0 = s.arg0; @@ -27408,21 +25526,21 @@ switch (step) { r0 = (s.tmp_2 | 2); s.tmp_1 = r0; r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); - s.tmp_0 = particles_ParticleSource__prune__P90680_mk(s); + s.tmp_0 = particles_ParticleSource__prune__P21130_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1176; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1163; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_destroy__P90686.info = {"start":7094,"length":240,"line":233,"column":8,"endLine":238,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]} +particles_ParticleSource_destroy__P21136.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__P90686_mk(s) { +function particles_ParticleSource_destroy__P21136_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_destroy__P90686, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_destroy__P21136, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27434,7 +25552,7 @@ function particles_ParticleSource_destroy__P90686_mk(s) { -function particles_ParticleSource_setAcceleration__P90681(s) { +function particles_ParticleSource_setAcceleration__P21131(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27451,7 +25569,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C90672_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21122_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -27468,12 +25586,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_setAcceleration__P90681.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"]} +particles_ParticleSource_setAcceleration__P21131.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__P90681_mk(s) { +function particles_ParticleSource_setAcceleration__P21131_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setAcceleration__P90681, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAcceleration__P21131, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27487,7 +25605,7 @@ function particles_ParticleSource_setAcceleration__P90681_mk(s) { -function helpers_arrayShift__P87623(s) { +function helpers_arrayShift__P18073(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27505,12 +25623,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_arrayShift__P87623.info = {"start":4045,"length":82,"line":153,"column":4,"endLine":155,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayShift","argumentNames":["arr"]} +helpers_arrayShift__P18073.info = {"start":4045,"length":82,"line":153,"column":4,"endLine":155,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayShift","argumentNames":["arr"]} -function helpers_arrayShift__P87623_mk(s) { +function helpers_arrayShift__P18073_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayShift__P87623, depth: s.depth + 1, + parent: s, fn: helpers_arrayShift__P18073, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -27519,7 +25637,7 @@ function helpers_arrayShift__P87623_mk(s) { -function particles_SprayFactory_setSpeed__P90716(s) { +function particles_SprayFactory_setSpeed__P21166(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27535,7 +25653,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C90712_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_SprayFactory__C21162_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -27546,12 +25664,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_SprayFactory_setSpeed__P90716.info = {"start":3322,"length":92,"line":119,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setSpeed","argumentNames":["this","pixelsPerSecond"]} +particles_SprayFactory_setSpeed__P21166.info = {"start":3322,"length":92,"line":119,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setSpeed","argumentNames":["this","pixelsPerSecond"]} -function particles_SprayFactory_setSpeed__P90716_mk(s) { +function particles_SprayFactory_setSpeed__P21166_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_setSpeed__P90716, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_setSpeed__P21166, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27564,7 +25682,7 @@ function particles_SprayFactory_setSpeed__P90716_mk(s) { -function particles_ConfettiFactory_constructor__P90740(s) { +function particles_ConfettiFactory_constructor__P21190(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27574,8 +25692,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.confetti___101578 = undefined; - s.i___101594 = undefined; + s.confetti___31446 = undefined; + s.i___31462 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -27583,52 +25701,52 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ConfettiFactory__C90739_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ConfettiFactory__C21189_VT)) failedCast(r0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim.image.ofBuffer(_hex101581); + r0 = pxsim.image.ofBuffer(_hex31449); s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - r0 = pxsim.image.ofBuffer(_hex101583); + r0 = pxsim.image.ofBuffer(_hex31451); s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); - r0 = pxsim.image.ofBuffer(_hex101585); + r0 = pxsim.image.ofBuffer(_hex31453); s.tmp_3 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_3); - r0 = pxsim.image.ofBuffer(_hex101587); + r0 = pxsim.image.ofBuffer(_hex31455); s.tmp_4 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_4); - r0 = pxsim.image.ofBuffer(_hex101589); + r0 = pxsim.image.ofBuffer(_hex31457); s.tmp_5 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_5); - s.confetti___101578 = (s.tmp_0); - s.tmp_0 = particles_ShapeFactory_constructor__P90735_mk(s); + s.confetti___31446 = (s.tmp_0); + s.tmp_0 = particles_ShapeFactory_constructor__P21185_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___101578, 0); + r0 = pxsim_Array__getAt(s.confetti___31446, 0); s.tmp_0.arg3 = r0; - s.callLocIdx = 1260; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1247; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.i___101594 = (1); + s.i___31462 = (1); case 1: - s.tmp_1 = r0 = s.i___101594; - r0 = pxsim_Array__length(s.confetti___101578); + s.tmp_1 = r0 = s.i___31462; + r0 = pxsim_Array__length(s.confetti___31446); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_3 = particles_ShapeFactory_addShape__P90736_mk(s); + s.tmp_3 = particles_ShapeFactory_addShape__P21186_mk(s); s.tmp_3.arg0 = s.arg0; - r0 = pxsim_Array__getAt(s.confetti___101578, s.i___101594); + r0 = pxsim_Array__getAt(s.confetti___31446, s.i___31462); s.tmp_3.arg1 = r0; - s.callLocIdx = 1261; s.pc = 4; return s.tmp_3; + s.callLocIdx = 1248; s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; - r0 = (s.i___101594 + 1); - s.i___101594 = (r0); + r0 = (s.i___31462 + 1); + s.i___31462 = (r0); { step = 1; continue; } case 2: r0 = (s.arg0).fields["minLifespan"] = (1000); @@ -27637,12 +25755,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ConfettiFactory_constructor__P90740.info = {"start":7755,"length":706,"line":247,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange"]} +particles_ConfettiFactory_constructor__P21190.info = {"start":7755,"length":706,"line":247,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange"]} -function particles_ConfettiFactory_constructor__P90740_mk(s) { +function particles_ConfettiFactory_constructor__P21190_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ConfettiFactory_constructor__P90740, depth: s.depth + 1, + parent: s, fn: particles_ConfettiFactory_constructor__P21190, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27650,23 +25768,23 @@ function particles_ConfettiFactory_constructor__P90740_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - confetti___101578: undefined, - i___101594: undefined, + confetti___31446: undefined, + i___31462: undefined, arg0: undefined, arg1: undefined, arg2: undefined, } } -const _hex101581 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") -const _hex101583 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") -const _hex101585 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") -const _hex101587 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") -const _hex101589 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") +const _hex31449 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") +const _hex31451 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") +const _hex31453 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") +const _hex31455 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") +const _hex31457 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") -function particles_ShapeFactory_addShape__P90736(s) { +function particles_ShapeFactory_addShape__P21186(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27682,7 +25800,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C90734_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ShapeFactory__C21184_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["sources"]; @@ -27694,12 +25812,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ShapeFactory_addShape__P90736.info = {"start":7079,"length":83,"line":225,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"addShape","argumentNames":["this","shape"]} +particles_ShapeFactory_addShape__P21186.info = {"start":7079,"length":83,"line":225,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"addShape","argumentNames":["this","shape"]} -function particles_ShapeFactory_addShape__P90736_mk(s) { +function particles_ShapeFactory_addShape__P21186_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_addShape__P90736, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_addShape__P21186, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -27710,7 +25828,7 @@ function particles_ShapeFactory_addShape__P90736_mk(s) { -function particles_ShapeFactory_constructor__P90735(s) { +function particles_ShapeFactory_constructor__P21185(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27728,14 +25846,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C90734_VT)) failedCast(r0); - s.tmp_0 = particles_AreaFactory_constructor__P90723_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C21184_VT)) failedCast(r0); + s.tmp_0 = particles_AreaFactory_constructor__P21173_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 = 1250; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1237; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = pxsim_Array__mk(); @@ -27766,12 +25884,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ShapeFactory_constructor__P90735.info = {"start":6668,"length":285,"line":212,"column":8,"endLine":219,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange","source"]} +particles_ShapeFactory_constructor__P21185.info = {"start":6668,"length":285,"line":212,"column":8,"endLine":219,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange","source"]} -function particles_ShapeFactory_constructor__P90735_mk(s) { +function particles_ShapeFactory_constructor__P21185_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_constructor__P90735, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_constructor__P21185, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27788,7 +25906,7 @@ function particles_ShapeFactory_constructor__P90735_mk(s) { -function particles_AreaFactory_constructor__P90723(s) { +function particles_AreaFactory_constructor__P21173(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27807,13 +25925,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AreaFactory__C90718_VT)) failedCast(r0); - s.tmp_0 = particles_SprayFactory_constructor__P90713_mk(s); + if (!checkSubtype(r0, particles_AreaFactory__C21168_VT)) failedCast(r0); + s.tmp_0 = particles_SprayFactory_constructor__P21163_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 = 1238; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1225; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = (s.arg0).fields["xRange"] = (s.arg1); @@ -27838,12 +25956,12 @@ switch (step) { // jmp value (already in r0) s.tmp_0 = r0; r0 = (s.arg0).fields["maxLifespan"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C90580_VT); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C21030_VT); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P90582_mk(s); + s.tmp_1 = Math_FastRandom_constructor__P21032_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = undefined; - s.callLocIdx = 1239; s.pc = 6; return s.tmp_1; + s.callLocIdx = 1226; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; r0 = (s.arg0).fields["galois"] = (s.tmp_0); @@ -27851,12 +25969,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_AreaFactory_constructor__P90723.info = {"start":3950,"length":374,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange","minLifespan","maxLifespan"]} +particles_AreaFactory_constructor__P21173.info = {"start":3950,"length":374,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange","minLifespan","maxLifespan"]} -function particles_AreaFactory_constructor__P90723_mk(s) { +function particles_AreaFactory_constructor__P21173_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_constructor__P90723, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_constructor__P21173, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27871,7 +25989,7 @@ function particles_AreaFactory_constructor__P90723_mk(s) { -function effects_ScreenEffect_constructor__P90788(s) { +function effects_ScreenEffect_constructor__P21238(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27890,13 +26008,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ScreenEffect__C90787_VT)) failedCast(r0); - s.tmp_0 = effects_ParticleEffect_constructor__P90784_mk(s); + if (!checkSubtype(r0, effects_ScreenEffect__C21237_VT)) failedCast(r0); + s.tmp_0 = effects_ParticleEffect_constructor__P21234_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 = 1267; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1254; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = (s.arg0).fields["sceneDefaultRate"] = (s.arg2); @@ -27904,12 +26022,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ScreenEffect_constructor__P90788.info = {"start":2911,"length":332,"line":81,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this","anchorDefault","sceneDefault","defaultLifespan","sourceFactory"]} +effects_ScreenEffect_constructor__P21238.info = {"start":2911,"length":332,"line":81,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this","anchorDefault","sceneDefault","defaultLifespan","sourceFactory"]} -function effects_ScreenEffect_constructor__P90788_mk(s) { +function effects_ScreenEffect_constructor__P21238_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ScreenEffect_constructor__P90788, depth: s.depth + 1, + parent: s, fn: effects_ScreenEffect_constructor__P21238, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -27923,7 +26041,7 @@ function effects_ScreenEffect_constructor__P90788_mk(s) { -function effects_ParticleEffect_constructor__P90784(s) { +function effects_ParticleEffect_constructor__P21234(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27941,7 +26059,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C90783_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ParticleEffect__C21233_VT)) failedCast(r0); r0 = (s.arg0).fields["sourceFactory"] = (s.arg3); r0 = (s.arg0).fields["defaultRate"] = (s.arg1); r0 = (s.arg0).fields["defaultLifespan"] = (s.arg2); @@ -27949,12 +26067,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ParticleEffect_constructor__P90784.info = {"start":384,"length":364,"line":13,"column":8,"endLine":18,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this","defaultParticlesPerSecond","defaultLifespan","sourceFactory"]} +effects_ParticleEffect_constructor__P21234.info = {"start":384,"length":364,"line":13,"column":8,"endLine":18,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this","defaultParticlesPerSecond","defaultLifespan","sourceFactory"]} -function effects_ParticleEffect_constructor__P90784_mk(s) { +function effects_ParticleEffect_constructor__P21234_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_constructor__P90784, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_constructor__P21234, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -27966,7 +26084,7 @@ function effects_ParticleEffect_constructor__P90784_mk(s) { -function music_melodyPlayable__P89444(s) { +function music_melodyPlayable__P19894(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27980,9 +26098,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(music_MelodyPlayable__C89437_VT); + r0 = pxsim_pxtcore_mkClassInstance(music_MelodyPlayable__C19887_VT); s.tmp_0 = r0; - s.tmp_1 = music_MelodyPlayable_constructor__P89438_mk(s); + s.tmp_1 = music_MelodyPlayable_constructor__P19888_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; s.callLocIdx = 73; s.pc = 1; return s.tmp_1; @@ -27992,12 +26110,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_melodyPlayable__P89444.info = {"start":3172,"length":107,"line":121,"column":4,"endLine":123,"endColumn":5,"fileName":"pxt_modules/mixer/playable.ts","functionName":"melodyPlayable","argumentNames":["melody"]} +music_melodyPlayable__P19894.info = {"start":3172,"length":107,"line":121,"column":4,"endLine":123,"endColumn":5,"fileName":"pxt_modules/mixer/playable.ts","functionName":"melodyPlayable","argumentNames":["melody"]} -function music_melodyPlayable__P89444_mk(s) { +function music_melodyPlayable__P19894_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_melodyPlayable__P89444, depth: s.depth + 1, + parent: s, fn: music_melodyPlayable__P19894, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28008,7 +26126,7 @@ function music_melodyPlayable__P89444_mk(s) { -function music_MelodyPlayable_constructor__P89438(s) { +function music_MelodyPlayable_constructor__P19888(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28024,19 +26142,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_MelodyPlayable__C89437_VT)) failedCast(r0); + if (!checkSubtype(r0, music_MelodyPlayable__C19887_VT)) failedCast(r0); r0 = (s.arg0).fields["melody"] = (s.arg1); r0 = undefined; r0 = undefined; return leave(s, r0) default: oops() } } } -music_MelodyPlayable_constructor__P89438.info = {"start":1531,"length":67,"line":68,"column":8,"endLine":70,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"inline","argumentNames":["this","melody"]} +music_MelodyPlayable_constructor__P19888.info = {"start":1531,"length":67,"line":68,"column":8,"endLine":70,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"inline","argumentNames":["this","melody"]} -function music_MelodyPlayable_constructor__P89438_mk(s) { +function music_MelodyPlayable_constructor__P19888_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_MelodyPlayable_constructor__P89438, depth: s.depth + 1, + parent: s, fn: music_MelodyPlayable_constructor__P19888, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -28046,7 +26164,7 @@ function music_MelodyPlayable_constructor__P89438_mk(s) { -function music_Playable_constructor__P89434(s) { +function music_Playable_constructor__P19884(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28061,17 +26179,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Playable__C89432_VT)) failedCast(r0); + if (!checkSubtype(r0, music_Playable__C19882_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -music_Playable_constructor__P89434.info = {"start":1086,"length":26,"line":47,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"inline","argumentNames":["this"]} +music_Playable_constructor__P19884.info = {"start":1086,"length":26,"line":47,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/mixer/playable.ts","functionName":"inline","argumentNames":["this"]} -function music_Playable_constructor__P89434_mk(s) { +function music_Playable_constructor__P19884_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Playable_constructor__P89434, depth: s.depth + 1, + parent: s, fn: music_Playable_constructor__P19884, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -28080,7 +26198,7 @@ function music_Playable_constructor__P89434_mk(s) { -function music_Melody_constructor__P89150(s) { +function music_Melody_constructor__P19600(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28096,18 +26214,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C89147_VT)) failedCast(r0); + if (!checkSubtype(r0, music_Melody__C19597_VT)) failedCast(r0); r0 = (s.arg0).fields["_text"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_constructor__P89150.info = {"start":6430,"length":67,"line":203,"column":8,"endLine":205,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","text"]} +music_Melody_constructor__P19600.info = {"start":6430,"length":67,"line":203,"column":8,"endLine":205,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","text"]} -function music_Melody_constructor__P89150_mk(s) { +function music_Melody_constructor__P19600_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_constructor__P89150, depth: s.depth + 1, + parent: s, fn: music_Melody_constructor__P19600, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -28117,7 +26235,7 @@ function music_Melody_constructor__P89150_mk(s) { -function Fx8__P87670(s) { +function Fx8__P18120(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28137,12 +26255,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx8__P87670.info = {"start":42,"length":68,"line":4,"column":0,"endLine":6,"endColumn":1,"fileName":"pxt_modules/base/fixed.ts","functionName":"Fx8","argumentNames":["v"]} +Fx8__P18120.info = {"start":42,"length":68,"line":4,"column":0,"endLine":6,"endColumn":1,"fileName":"pxt_modules/base/fixed.ts","functionName":"Fx8","argumentNames":["v"]} -function Fx8__P87670_mk(s) { +function Fx8__P18120_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx8__P87670, depth: s.depth + 1, + parent: s, fn: Fx8__P18120, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28152,7 +26270,7 @@ function Fx8__P87670_mk(s) { -function SpriteKind_create__P90000(s) { +function SpriteKind_create__P20450(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28162,26 +26280,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.nextKind___92278 === undefined); + r0 = (globals.nextKind___22723 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.nextKind___92278 = (1000); + globals.nextKind___22723 = (1000); case 1: case 2: - s.tmp_0 = r0 = globals.nextKind___92278; + s.tmp_0 = r0 = globals.nextKind___22723; r0 = (s.tmp_0 + 1); - globals.nextKind___92278 = (r0); + globals.nextKind___22723 = (r0); r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -SpriteKind_create__P90000.info = {"start":783,"length":112,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/spritekind.ts","functionName":"create","argumentNames":[]} +SpriteKind_create__P20450.info = {"start":783,"length":112,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/spritekind.ts","functionName":"create","argumentNames":[]} -function SpriteKind_create__P90000_mk(s) { +function SpriteKind_create__P20450_mk(s) { checkStack(s.depth); return { - parent: s, fn: SpriteKind_create__P90000, depth: s.depth + 1, + parent: s, fn: SpriteKind_create__P20450, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -28190,7 +26308,7 @@ function SpriteKind_create__P90000_mk(s) { -function controller_Button_constructor__P89716(s) { +function controller_Button_constructor__P20166(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28207,7 +26325,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C89710_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C20160_VT)) failedCast(r0); r0 = (s.arg0).fields["id"] = (s.arg1); r0 = (s.arg0).fields["_pressed"] = (false); r0 = (s.arg0).fields["repeatDelay"] = (undefined); @@ -28217,13 +26335,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__P101731); + r0 = pxsim_pxtcore_mkAction(1, controller_Button_inline__P31599); 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__P101738); + r0 = pxsim_pxtcore_mkAction(1, controller_Button_inline__P31606); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); r0 = s.arg0.fields["id"]; @@ -28242,12 +26360,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_constructor__P89716.info = {"start":2004,"length":864,"line":77,"column":8,"endLine":94,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":["this","id","configKey"]} +controller_Button_constructor__P20166.info = {"start":2004,"length":864,"line":77,"column":8,"endLine":94,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":["this","id","configKey"]} -function controller_Button_constructor__P89716_mk(s) { +function controller_Button_constructor__P20166_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_constructor__P89716, depth: s.depth + 1, + parent: s, fn: controller_Button_constructor__P20166, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28261,7 +26379,7 @@ function controller_Button_constructor__P89716_mk(s) { -function controller_Button_inline__P101731(s) { +function controller_Button_inline__P31599(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28271,22 +26389,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_setPressed__P89723_mk(s); + s.tmp_0 = controller_Button_setPressed__P20173_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = false; - s.callLocIdx = 200; s.pc = 1; return s.tmp_0; + s.callLocIdx = 199; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_inline__P101731.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__P31599.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__P101731_mk(s) { +function controller_Button_inline__P31599_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_inline__P101731, depth: s.depth + 1, + parent: s, fn: controller_Button_inline__P31599, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -28295,7 +26413,7 @@ function controller_Button_inline__P101731_mk(s) { -function controller_Button_inline__P101738(s) { +function controller_Button_inline__P31606(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28305,22 +26423,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_setPressed__P89723_mk(s); + s.tmp_0 = controller_Button_setPressed__P20173_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = true; - s.callLocIdx = 201; s.pc = 1; return s.tmp_0; + s.callLocIdx = 200; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_inline__P101738.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__P31606.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__P101738_mk(s) { +function controller_Button_inline__P31606_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_inline__P101738, depth: s.depth + 1, + parent: s, fn: controller_Button_inline__P31606, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -28329,7 +26447,7 @@ function controller_Button_inline__P101738_mk(s) { -function controller_setupButton__P92261(s) { +function controller_setupButton__P22706(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28348,12 +26466,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_setupButton__P92261.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__P22706.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__P92261_mk(s) { +function controller_setupButton__P22706_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_setupButton__P92261, depth: s.depth + 1, + parent: s, fn: controller_setupButton__P22706, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -28363,7 +26481,7 @@ function controller_setupButton__P92261_mk(s) { -function controller_Button_setPressed__P89723(s) { +function controller_Button_setPressed__P20173(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28379,26 +26497,26 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C89710_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C20160_VT)) failedCast(r0); r0 = s.arg0.fields["_pressed"]; s.tmp_1 = r0; r0 = (s.tmp_1 != s.arg1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_2 = power_poke__P89450_mk(s); - s.callLocIdx = 204; s.pc = 7; return s.tmp_2; + s.tmp_2 = power_poke__P19900_mk(s); + s.callLocIdx = 203; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; r0 = s.arg0.fields["_owner"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = controller_Controller_connected__P89677_mk(s); + s.tmp_1 = controller_Controller_connected__P20127_mk(s); r0 = s.arg0.fields["_owner"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = true; - s.callLocIdx = 205; s.pc = 8; return s.tmp_1; + s.callLocIdx = 204; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; case 1: @@ -28409,17 +26527,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__P92245_mk(s); + s.tmp_0 = controller_Button_raiseButtonDown__P22690_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 206; s.pc = 9; return s.tmp_0; + s.callLocIdx = 205; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; { step = 4; continue; } case 3: r0 = (s.arg0).fields["_repeatCount"] = (0); - s.tmp_0 = controller_Button_raiseButtonUp__P92244_mk(s); + s.tmp_0 = controller_Button_raiseButtonUp__P22689_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 207; s.pc = 10; return s.tmp_0; + s.callLocIdx = 206; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; case 4: @@ -28429,12 +26547,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_setPressed__P89723.info = {"start":6774,"length":507,"line":201,"column":8,"endLine":215,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"setPressed","argumentNames":["this","pressed"]} +controller_Button_setPressed__P20173.info = {"start":6774,"length":507,"line":201,"column":8,"endLine":215,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"setPressed","argumentNames":["this","pressed"]} -function controller_Button_setPressed__P89723_mk(s) { +function controller_Button_setPressed__P20173_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_setPressed__P89723, depth: s.depth + 1, + parent: s, fn: controller_Button_setPressed__P20173, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28447,7 +26565,7 @@ function controller_Button_setPressed__P89723_mk(s) { -function controller_Button_raiseButtonDown__P92245(s) { +function controller_Button_raiseButtonDown__P22690(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28462,8 +26580,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C89710_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___92255); + if (!checkSubtype(r0, controller_Button__C20160_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___22700); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["id"]; s.tmp_0 = r0; @@ -28478,12 +26596,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonDown__P92245.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__P22690.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__P92245_mk(s) { +function controller_Button_raiseButtonDown__P22690_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonDown__P92245, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonDown__P22690, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28493,7 +26611,7 @@ function controller_Button_raiseButtonDown__P92245_mk(s) { -function controller_Button_raiseButtonUp__P92244(s) { +function controller_Button_raiseButtonUp__P22689(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28508,8 +26626,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C89710_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___92255); + if (!checkSubtype(r0, controller_Button__C20160_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___22700); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["id"]; s.tmp_0 = r0; @@ -28524,12 +26642,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonUp__P92244.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__P22689.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__P92244_mk(s) { +function controller_Button_raiseButtonUp__P22689_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonUp__P92244, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonUp__P22689, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28539,7 +26657,7 @@ function controller_Button_raiseButtonUp__P92244_mk(s) { -function game_addScenePushHandler__P90539(s) { +function game_addScenePushHandler__P20989(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28553,35 +26671,35 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___92461); + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___22906); s.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___92461 = (r0); + globals._scenePushHandlers___22906 = (r0); case 1: case 2: - r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___92461, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___22906, 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___92461, s.arg0); + r0 = pxsim_Array__push(globals._scenePushHandlers___22906, s.arg0); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -game_addScenePushHandler__P90539.info = {"start":16044,"length":242,"line":479,"column":4,"endLine":483,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]} +game_addScenePushHandler__P20989.info = {"start":16044,"length":242,"line":479,"column":4,"endLine":483,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]} -function game_addScenePushHandler__P90539_mk(s) { +function game_addScenePushHandler__P20989_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_addScenePushHandler__P90539, depth: s.depth + 1, + parent: s, fn: game_addScenePushHandler__P20989, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28592,7 +26710,7 @@ function game_addScenePushHandler__P90539_mk(s) { -function controller_Controller_id__P89662(s) { +function controller_Controller_id__P20112(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28607,18 +26725,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C89655_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C20105_VT)) failedCast(r0); r0 = s.arg0.fields["_id"]; return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_id__P89662.info = {"start":3444,"length":49,"line":109,"column":8,"endLine":111,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"id","argumentNames":["this"]} -controller_Controller_id__P89662.isGetter = true; +controller_Controller_id__P20112.info = {"start":3444,"length":49,"line":109,"column":8,"endLine":111,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"id","argumentNames":["this"]} +controller_Controller_id__P20112.isGetter = true; -function controller_Controller_id__P89662_mk(s) { +function controller_Controller_id__P20112_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_id__P89662, depth: s.depth + 1, + parent: s, fn: controller_Controller_id__P20112, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -28627,7 +26745,7 @@ function controller_Controller_id__P89662_mk(s) { -function controller_Controller_connected__P89676(s) { +function controller_Controller_connected__P20126(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28642,18 +26760,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C89655_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C20105_VT)) failedCast(r0); r0 = s.arg0.fields["_connected"]; return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_connected__P89676.info = {"start":7723,"length":63,"line":250,"column":8,"endLine":252,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this"]} -controller_Controller_connected__P89676.isGetter = true; +controller_Controller_connected__P20126.info = {"start":7723,"length":63,"line":250,"column":8,"endLine":252,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this"]} +controller_Controller_connected__P20126.isGetter = true; -function controller_Controller_connected__P89676_mk(s) { +function controller_Controller_connected__P20126_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_connected__P89676, depth: s.depth + 1, + parent: s, fn: controller_Controller_connected__P20126, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -28662,7 +26780,7 @@ function controller_Controller_connected__P89676_mk(s) { -function game_currentScene__P90520(s) { +function game_currentScene__P20970(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28672,21 +26790,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_init__P92467_mk(s); + s.tmp_0 = game_init__P22912_mk(s); s.tmp_0.arg0 = undefined; - s.callLocIdx = 949; s.pc = 1; return s.tmp_0; + s.callLocIdx = 942; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals._scene___92459; + r0 = globals._scene___22904; return leave(s, r0) default: oops() } } } -game_currentScene__P90520.info = {"start":4025,"length":90,"line":118,"column":4,"endLine":121,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"currentScene","argumentNames":[]} +game_currentScene__P20970.info = {"start":4025,"length":90,"line":118,"column":4,"endLine":121,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"currentScene","argumentNames":[]} -function game_currentScene__P90520_mk(s) { +function game_currentScene__P20970_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_currentScene__P90520, depth: s.depth + 1, + parent: s, fn: game_currentScene__P20970, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -28695,7 +26813,7 @@ function game_currentScene__P90520_mk(s) { -function game_addScenePopHandler__P90541(s) { +function game_addScenePopHandler__P20991(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28709,35 +26827,35 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___92462); + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___22907); s.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___92462 = (r0); + globals._scenePopHandlers___22907 = (r0); case 1: case 2: - r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___92462, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___22907, 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___92462, s.arg0); + r0 = pxsim_Array__push(globals._scenePopHandlers___22907, s.arg0); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -game_addScenePopHandler__P90541.info = {"start":17045,"length":237,"line":503,"column":4,"endLine":507,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]} +game_addScenePopHandler__P20991.info = {"start":17045,"length":237,"line":503,"column":4,"endLine":507,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]} -function game_addScenePopHandler__P90541_mk(s) { +function game_addScenePopHandler__P20991_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_addScenePopHandler__P90541, depth: s.depth + 1, + parent: s, fn: game_addScenePopHandler__P20991, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28748,7 +26866,7 @@ function game_addScenePopHandler__P90541_mk(s) { -function settings_initScopes__P92149(s) { +function settings_initScopes__P22594(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28758,17 +26876,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rn___101833 = undefined; - s.tmp_1 = settings_runNumber__P89579_mk(s); + s.rn___31701 = undefined; + s.tmp_1 = settings_runNumber__P20029_mk(s); s.callLocIdx = 119; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 + 1); - s.rn___101833 = (r0); - s.tmp_0 = settings_writeNumber__P89584_mk(s); - s.tmp_0.arg0 = globals.RUN_KEY___92137; - s.tmp_0.arg1 = s.rn___101833; + s.rn___31701 = (r0); + s.tmp_0 = settings_writeNumber__P20034_mk(s); + s.tmp_0.arg0 = globals.RUN_KEY___22582; + s.tmp_0.arg1 = s.rn___31701; s.callLocIdx = 120; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; @@ -28777,8 +26895,8 @@ switch (step) { r0 = (s.tmp_1 & 2147483647); s.tmp_0 = r0; r0 = pxsim_pxtcore.seedAddRandom(s.tmp_0); - r0 = pxsim_pxtcore.seedAddRandom(s.rn___101833); - s.tmp_0 = settings_setScope__P92148_mk(s); + r0 = pxsim_pxtcore.seedAddRandom(s.rn___31701); + s.tmp_0 = settings_setScope__P22593_mk(s); r0 = pxsim_pxtcore.programName(); s.tmp_0.arg0 = r0; s.callLocIdx = 121; s.pc = 3; return s.tmp_0; @@ -28788,23 +26906,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_initScopes__P92149.info = {"start":1104,"length":230,"line":41,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"initScopes","argumentNames":[]} +settings_initScopes__P22594.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__P92149_mk(s) { +function settings_initScopes__P22594_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_initScopes__P92149, depth: s.depth + 1, + parent: s, fn: settings_initScopes__P22594, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - rn___101833: undefined, + rn___31701: undefined, } } -function settings_setScope__P92148(s) { +function settings_setScope__P22593(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28814,7 +26932,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.currScope___101862 = undefined; + s.currScope___31730 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -28839,19 +26957,19 @@ switch (step) { r0 = pxsim_pxtrt.panic(922); case 3: case 4: - s.tmp_0 = settings_readString__P89587_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___92138; + s.tmp_0 = settings_readString__P20037_mk(s); + s.tmp_0.arg0 = globals.SCOPE_KEY___22583; s.callLocIdx = 117; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.currScope___101862 = (r0); - r0 = (s.currScope___101862 != s.arg0); + s.currScope___31730 = (r0); + r0 = (s.currScope___31730 != 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__P89582_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___92138; + s.tmp_0 = settings_writeString__P20032_mk(s); + s.tmp_0.arg0 = globals.SCOPE_KEY___22583; s.tmp_0.arg1 = s.arg0; s.callLocIdx = 118; s.pc = 8; return s.tmp_0; case 8: @@ -28862,18 +26980,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_setScope__P92148.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__P22593.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__P92148_mk(s) { +function settings_setScope__P22593_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_setScope__P92148, depth: s.depth + 1, + parent: s, fn: settings_setScope__P22593, depth: s.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___101862: undefined, + currScope___31730: undefined, arg0: undefined, } } @@ -28881,7 +26999,7 @@ function settings_setScope__P92148_mk(s) { -function settings_readString__P89587(s) { +function settings_readString__P20037(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28891,14 +27009,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___101883 = undefined; + s.buf___31751 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim.settings._get(s.arg0); - s.buf___101883 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___101883); + s.buf___31751 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___31751); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -28908,7 +27026,7 @@ switch (step) { { step = 3; continue; } { step = 2; continue; } case 1: - r0 = pxsim.BufferMethods.toString(s.buf___101883); + r0 = pxsim.BufferMethods.toString(s.buf___31751); { step = 3; continue; } case 2: r0 = undefined; @@ -28916,16 +27034,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_readString__P89587.info = {"start":2827,"length":177,"line":110,"column":4,"endLine":116,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readString","argumentNames":["key"]} +settings_readString__P20037.info = {"start":2827,"length":177,"line":110,"column":4,"endLine":116,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readString","argumentNames":["key"]} -function settings_readString__P89587_mk(s) { +function settings_readString__P20037_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readString__P89587, depth: s.depth + 1, + parent: s, fn: settings_readString__P20037, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - buf___101883: undefined, + buf___31751: undefined, arg0: undefined, } } @@ -28933,7 +27051,7 @@ function settings_readString__P89587_mk(s) { -function settings_writeString__P89582(s) { +function settings_writeString__P20032(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28948,7 +27066,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = settings_writeBuffer__P89581_mk(s); + s.tmp_0 = settings_writeBuffer__P20031_mk(s); s.tmp_0.arg0 = s.arg0; r0 = pxsim.control.createBufferFromUTF8(s.arg1); s.tmp_0.arg1 = r0; @@ -28959,12 +27077,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_writeString__P89582.info = {"start":1895,"length":125,"line":75,"column":4,"endLine":77,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeString","argumentNames":["key","value"]} +settings_writeString__P20032.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__P89582_mk(s) { +function settings_writeString__P20032_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeString__P89582, depth: s.depth + 1, + parent: s, fn: settings_writeString__P20032, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28975,7 +27093,7 @@ function settings_writeString__P89582_mk(s) { -function settings_runNumber__P89579(s) { +function settings_runNumber__P20029(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28985,8 +27103,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_1 = settings_readNumber__P89589_mk(s); - s.tmp_1.arg0 = globals.RUN_KEY___92137; + s.tmp_1 = settings_readNumber__P20039_mk(s); + s.tmp_1.arg0 = globals.RUN_KEY___22582; s.callLocIdx = 116; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; @@ -29004,12 +27122,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_runNumber__P89579.info = {"start":745,"length":75,"line":27,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"runNumber","argumentNames":[]} +settings_runNumber__P20029.info = {"start":745,"length":75,"line":27,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"runNumber","argumentNames":[]} -function settings_runNumber__P89579_mk(s) { +function settings_runNumber__P20029_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_runNumber__P89579, depth: s.depth + 1, + parent: s, fn: settings_runNumber__P20029, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29020,7 +27138,7 @@ function settings_runNumber__P89579_mk(s) { -function control___screen_setupUpdate__P89515(s) { +function control___screen_setupUpdate__P19965(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29034,8 +27152,8 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.__updated___92104 = (true); - globals.__update___92102 = (s.arg0); + globals.__updated___22549 = (true); + globals.__update___22547 = (s.arg0); s.tmp_0 = lambda_1_mk(s); s.tmp_0.argL = s.arg0; setupLambda(s.tmp_0, s.tmp_0.argL); @@ -29046,12 +27164,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control___screen_setupUpdate__P89515.info = {"start":198,"length":125,"line":10,"column":4,"endLine":14,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"setupUpdate","argumentNames":["update"]} +control___screen_setupUpdate__P19965.info = {"start":198,"length":125,"line":10,"column":4,"endLine":14,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"setupUpdate","argumentNames":["update"]} -function control___screen_setupUpdate__P89515_mk(s) { +function control___screen_setupUpdate__P19965_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_setupUpdate__P89515, depth: s.depth + 1, + parent: s, fn: control___screen_setupUpdate__P19965, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -29061,7 +27179,7 @@ function control___screen_setupUpdate__P89515_mk(s) { -function _screen_internal_getScreenHeight__P89558(s) { +function _screen_internal_getScreenHeight__P20008(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29079,12 +27197,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -_screen_internal_getScreenHeight__P89558.info = {"start":960,"length":127,"line":28,"column":4,"endLine":30,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"getScreenHeight","argumentNames":["defl"]} +_screen_internal_getScreenHeight__P20008.info = {"start":960,"length":127,"line":28,"column":4,"endLine":30,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"getScreenHeight","argumentNames":["defl"]} -function _screen_internal_getScreenHeight__P89558_mk(s) { +function _screen_internal_getScreenHeight__P20008_mk(s) { checkStack(s.depth); return { - parent: s, fn: _screen_internal_getScreenHeight__P89558, depth: s.depth + 1, + parent: s, fn: _screen_internal_getScreenHeight__P20008, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -29093,7 +27211,7 @@ function _screen_internal_getScreenHeight__P89558_mk(s) { -function _screen_internal_getScreenWidth__P89557(s) { +function _screen_internal_getScreenWidth__P20007(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29111,12 +27229,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -_screen_internal_getScreenWidth__P89557.info = {"start":810,"length":125,"line":23,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"getScreenWidth","argumentNames":["defl"]} +_screen_internal_getScreenWidth__P20007.info = {"start":810,"length":125,"line":23,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"getScreenWidth","argumentNames":["defl"]} -function _screen_internal_getScreenWidth__P89557_mk(s) { +function _screen_internal_getScreenWidth__P20007_mk(s) { checkStack(s.depth); return { - parent: s, fn: _screen_internal_getScreenWidth__P89557, depth: s.depth + 1, + parent: s, fn: _screen_internal_getScreenWidth__P20007, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -29125,7 +27243,7 @@ function _screen_internal_getScreenWidth__P89557_mk(s) { -function control___screen_update__P89514(s) { +function control___screen_update__P19964(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29135,27 +27253,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.__update___92102); + r0 = pxsim_numops_toBoolDecr(globals.__update___22547); if (!r0) { step = 1; continue; } s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.__update___92102; + s.tmp_0.argL = globals.__update___22547; setupLambda(s.tmp_0, s.tmp_0.argL); s.callLocIdx = 109; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; case 1: case 2: - globals.__updated___92104 = (true); + globals.__updated___22549 = (true); r0 = undefined; return leave(s, r0) default: oops() } } } -control___screen_update__P89514.info = {"start":90,"length":102,"line":4,"column":4,"endLine":8,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"update","argumentNames":[]} +control___screen_update__P19964.info = {"start":90,"length":102,"line":4,"column":4,"endLine":8,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"update","argumentNames":[]} -function control___screen_update__P89514_mk(s) { +function control___screen_update__P19964_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_update__P89514, depth: s.depth + 1, + parent: s, fn: control___screen_update__P19964, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -29164,7 +27282,7 @@ function control___screen_update__P89514_mk(s) { -function pause__P87934(s) { +function pause__P18384(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29188,12 +27306,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -pause__P87934.info = {"start":246,"length":57,"line":7,"column":0,"endLine":9,"endColumn":1,"fileName":"pxt_modules/base/pause.ts","functionName":"pause","argumentNames":["ms"]} +pause__P18384.info = {"start":246,"length":57,"line":7,"column":0,"endLine":9,"endColumn":1,"fileName":"pxt_modules/base/pause.ts","functionName":"pause","argumentNames":["ms"]} -function pause__P87934_mk(s) { +function pause__P18384_mk(s) { checkStack(s.depth); return { - parent: s, fn: pause__P87934, depth: s.depth + 1, + parent: s, fn: pause__P18384, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -29202,7 +27320,7 @@ function pause__P87934_mk(s) { -function music_Melody_toString__P89156(s) { +function music_Melody_toString__P19606(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29217,17 +27335,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C89147_VT)) failedCast(r0); + if (!checkSubtype(r0, music_Melody__C19597_VT)) failedCast(r0); r0 = s.arg0.fields["_text"]; return leave(s, r0) default: oops() } } } -music_Melody_toString__P89156.info = {"start":10223,"length":53,"line":318,"column":8,"endLine":320,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"toString","argumentNames":["this"]} +music_Melody_toString__P19606.info = {"start":10223,"length":53,"line":318,"column":8,"endLine":320,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"toString","argumentNames":["this"]} -function music_Melody_toString__P89156_mk(s) { +function music_Melody_toString__P19606_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_toString__P89156, depth: s.depth + 1, + parent: s, fn: music_Melody_toString__P19606, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -29236,7 +27354,7 @@ function music_Melody_toString__P89156_mk(s) { -function particles_ShapeFactory_createParticle__P90738(s) { +function particles_ShapeFactory_createParticle__P21188(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29246,47 +27364,233 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___101921 = undefined; + s.p___31789 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C90734_VT)) failedCast(r0); - s.tmp_0 = particles_AreaFactory_createParticle__P90724_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C21184_VT)) failedCast(r0); + s.tmp_0 = particles_AreaFactory_createParticle__P21174_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1258; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1245; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.p___101921 = (r0); - s.tmp_0 = r0 = s.p___101921; - s.tmp_2 = Math_FastRandom_randomRange__P90584_mk(s); + s.p___31789 = (r0); + s.tmp_0 = r0 = s.p___31789; + s.tmp_2 = Math_FastRandom_randomRange__P21034_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = 1; s.tmp_2.arg2 = 14; - s.callLocIdx = 1259; s.pc = 2; return s.tmp_2; + s.callLocIdx = 1246; 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___101921; + r0 = s.p___31789; return leave(s, r0) default: oops() } } } -particles_ShapeFactory_createParticle__P90738.info = {"start":7505,"length":178,"line":239,"column":8,"endLine":243,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +particles_ShapeFactory_createParticle__P21188.info = {"start":7505,"length":178,"line":239,"column":8,"endLine":243,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} -function particles_ShapeFactory_createParticle__P90738_mk(s) { +function particles_ShapeFactory_createParticle__P21188_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_createParticle__P90738, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_createParticle__P21188, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - p___101921: undefined, + p___31789: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function particles_AreaFactory_createParticle__P21174(s) { +let r0 = s.r0, 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___31801 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_AreaFactory__C21168_VT)) failedCast(r0); + s.tmp_0 = particles_SprayFactory_createParticle__P21164_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1227; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.p___31801 = (r0); + s.tmp_0 = r0 = s.p___31801; + s.tmp_2 = Math_FastRandom_randomRange__P21034_mk(s); + r0 = s.arg0.fields["galois"]; + s.tmp_2.arg0 = r0; + r0 = s.arg0.fields["minLifespan"]; + s.tmp_2.arg1 = r0; + r0 = s.arg0.fields["maxLifespan"]; + s.tmp_2.arg2 = r0; + s.callLocIdx = 1228; 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___31801; + s.tmp_4 = Math_FastRandom_randomRange__P21034_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 = 1229; s.pc = 5; return s.tmp_4; + case 5: + r0 = s.retval; + s.tmp_3 = r0; + r0 = s.arg0.fields["xRange"]; + s.tmp_6 = r0; + r0 = (s.tmp_6 >> 1); + s.tmp_5 = r0; + r0 = (s.tmp_3 - s.tmp_5); + s.tmp_2 = r0; + r0 = s.p___31801.fields["_x"]; + s.tmp_7 = r0; + r0 = (s.tmp_2 << 8); + s.tmp_8 = r0; + r0 = (s.tmp_8 + s.tmp_7); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_1 = if_height_1_mk(s); + s.tmp_1.arg0 = s.arg1; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "height"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["height"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["height"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 1232; s.pc = 6; return s.tmp_1; } + } + case 6: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_3 = if_height_1_mk(s); + s.tmp_3.arg0 = s.arg1; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "height"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["height"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["height"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 1233; s.pc = 7; return s.tmp_3; } + } + case 7: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + { step = 2; continue; } + case 1: + r0 = 0; + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + s.tmp_5 = r0 = s.p___31801; + s.tmp_9 = Math_FastRandom_randomRange__P21034_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 = 1231; 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___31801.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___31801; + return leave(s, r0) + default: oops() +} } } +particles_AreaFactory_createParticle__P21174.info = {"start":4334,"length":426,"line":148,"column":8,"endLine":156,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} + +function particles_AreaFactory_createParticle__P21174_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_AreaFactory_createParticle__P21174, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + p___31801: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Fx_iadd__P18129(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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 = (s.tmp_0 + s.arg1); + return leave(s, r0) + default: oops() +} } } +Fx_iadd__P18129.info = {"start":634,"length":110,"line":23,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"iadd","argumentNames":["a","b"]} + +function Fx_iadd__P18129_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_iadd__P18129, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, arg1: undefined, } } @@ -29295,7 +27599,7 @@ function particles_ShapeFactory_createParticle__P90738_mk(s) { -function particles_AreaFactory_createParticle__P90724(s) { +function particles_SprayFactory_createParticle__P21164(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29305,137 +27609,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___101933 = undefined; + s.p___31857 = undefined; + s.angle___31861 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AreaFactory__C90718_VT)) failedCast(r0); - s.tmp_0 = particles_SprayFactory_createParticle__P90714_mk(s); + if (!checkSubtype(r0, particles_SprayFactory__C21162_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleFactory_createParticle__P21160_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1240; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.p___101933 = (r0); - s.tmp_0 = r0 = s.p___101933; - s.tmp_2 = Math_FastRandom_randomRange__P90584_mk(s); - r0 = s.arg0.fields["galois"]; - s.tmp_2.arg0 = r0; - r0 = s.arg0.fields["minLifespan"]; - s.tmp_2.arg1 = r0; - r0 = s.arg0.fields["maxLifespan"]; - s.tmp_2.arg2 = r0; - s.callLocIdx = 1241; s.pc = 4; return s.tmp_2; - case 4: + s.callLocIdx = 1216; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; + s.p___31857 = (r0); + r0 = s.arg0.fields["minAngle"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lifespan"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___101933; - s.tmp_4 = Math_FastRandom_randomRange__P90584_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 = 1242; s.pc = 5; return s.tmp_4; - case 5: + s.tmp_3 = Math_FastRandom_randomRange__P21034_mk(s); + s.tmp_3.arg0 = globals.galois___23260; + s.tmp_3.arg1 = 0; + r0 = s.arg0.fields["spread"]; + s.tmp_3.arg2 = r0; + s.callLocIdx = 1217; s.pc = 2; return s.tmp_3; + case 2: r0 = s.retval; - s.tmp_3 = r0; - r0 = s.arg0.fields["xRange"]; - s.tmp_6 = r0; - r0 = (s.tmp_6 >> 1); - s.tmp_5 = r0; - r0 = (s.tmp_3 - s.tmp_5); s.tmp_2 = r0; - r0 = s.p___101933.fields["_x"]; - s.tmp_7 = r0; - r0 = (s.tmp_2 << 8); - s.tmp_8 = r0; - r0 = (s.tmp_8 + s.tmp_7); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_1 = if_height_1_mk(s); - s.tmp_1.arg0 = s.arg1; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "height"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["height"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["height"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1245; s.pc = 6; return s.tmp_1; } - } - case 6: - r0 = s.retval; + 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 = if_height_1_mk(s); - s.tmp_3.arg0 = s.arg1; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "height"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["height"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["height"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1246; s.pc = 7; return s.tmp_3; } - } - case 7: - r0 = s.retval; + r0 = (s.tmp_0 % 100); + s.angle___31861 = (r0); + s.tmp_0 = r0 = s.p___31857; + r0 = pxsim_Array__getAt(globals.cachedSin___23255, s.angle___31861); s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) + r0 = s.arg0.fields["speed"]; + s.tmp_3 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.tmp_3); s.tmp_4 = r0; - s.tmp_5 = r0 = s.p___101933; - s.tmp_9 = Math_FastRandom_randomRange__P90584_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 = 1244; 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___101933.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___101933; + r0 = (s.tmp_4 >> 8); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); + s.tmp_0 = r0 = s.p___31857; + r0 = pxsim_Array__getAt(globals.cachedCos___23256, s.angle___31861); + s.tmp_2 = r0; + r0 = s.arg0.fields["speed"]; + s.tmp_3 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.tmp_3); + s.tmp_4 = r0; + r0 = (s.tmp_4 >> 8); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); + r0 = s.p___31857; return leave(s, r0) default: oops() } } } -particles_AreaFactory_createParticle__P90724.info = {"start":4334,"length":426,"line":148,"column":8,"endLine":156,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +particles_SprayFactory_createParticle__P21164.info = {"start":2851,"length":333,"line":105,"column":8,"endLine":113,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} -function particles_AreaFactory_createParticle__P90724_mk(s) { +function particles_SprayFactory_createParticle__P21164_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_createParticle__P90724, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_createParticle__P21164, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - p___101933: undefined, + p___31857: undefined, + angle___31861: undefined, arg0: undefined, arg1: undefined, } } @@ -29444,7 +27686,7 @@ function particles_AreaFactory_createParticle__P90724_mk(s) { -function Fx_iadd__P87679(s) { +function sprites_SpriteSet_toString__P20445(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29456,32 +27698,51 @@ 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; + if (!checkSubtype(r0, sprites_SpriteSet__C20434_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 = (s.tmp_0 + s.arg1); + r0 = pxsim_String__concat(s.tmp_0, " sprites"); return leave(s, r0) default: oops() } } } -Fx_iadd__P87679.info = {"start":634,"length":110,"line":23,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"iadd","argumentNames":["a","b"]} +sprites_SpriteSet_toString__P20445.info = {"start":2586,"length":66,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"toString","argumentNames":["this"]} -function Fx_iadd__P87679_mk(s) { +function sprites_SpriteSet_toString__P20445_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_iadd__P87679, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_toString__P20445, depth: s.depth + 1, pc: 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 particles_SprayFactory_createParticle__P90714(s) { +function sprites_SpriteSet_length__P20437(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29491,84 +27752,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___101989 = undefined; - s.angle___101993 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C90712_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleFactory_createParticle__P90710_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1229; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.p___101989 = (r0); - r0 = s.arg0.fields["minAngle"]; - s.tmp_1 = r0; - s.tmp_3 = Math_FastRandom_randomRange__P90584_mk(s); - s.tmp_3.arg0 = globals.galois___92815; - s.tmp_3.arg1 = 0; - r0 = s.arg0.fields["spread"]; - s.tmp_3.arg2 = r0; - s.callLocIdx = 1230; s.pc = 2; return s.tmp_3; - case 2: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); + if (!checkSubtype(r0, sprites_SpriteSet__C20434_VT)) failedCast(r0); + r0 = s.arg0.fields["_sprites"]; s.tmp_0 = r0; - r0 = (s.tmp_0 % 100); - s.angle___101993 = (r0); - s.tmp_0 = r0 = s.p___101989; - r0 = pxsim_Array__getAt(globals.cachedSin___92810, s.angle___101993); - s.tmp_2 = r0; - r0 = s.arg0.fields["speed"]; - s.tmp_3 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.tmp_3); - s.tmp_4 = r0; - r0 = (s.tmp_4 >> 8); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___101989; - r0 = pxsim_Array__getAt(globals.cachedCos___92811, s.angle___101993); - s.tmp_2 = r0; - r0 = s.arg0.fields["speed"]; - s.tmp_3 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.tmp_3); - s.tmp_4 = r0; - r0 = (s.tmp_4 >> 8); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); - r0 = s.p___101989; - return leave(s, r0) + r0 = pxsim_Array__length(s.tmp_0); + return leaveAccessor(s, r0) default: oops() } } } -particles_SprayFactory_createParticle__P90714.info = {"start":2851,"length":333,"line":105,"column":8,"endLine":113,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +sprites_SpriteSet_length__P20437.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__P20437.isGetter = true; -function particles_SprayFactory_createParticle__P90714_mk(s) { +function sprites_SpriteSet_length__P20437_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_createParticle__P90714, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_length__P20437, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - p___101989: undefined, - angle___101993: undefined, arg0: undefined, - arg1: undefined, } } -function particles_ParticleSource___draw__P90678(s) { +function particles_ParticleSource___draw__P21128(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29578,18 +27790,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___102025 = undefined; - s.left___102028 = undefined; - s.top___102038 = undefined; + s.current___31904 = undefined; + s.left___31907 = undefined; + s.top___31917 = 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__C90672_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21122_VT)) failedCast(r0); r0 = s.arg0.fields["head"]; - s.current___102025 = (r0); + s.current___31904 = (r0); r0 = s.arg0.fields["pFlags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -29607,7 +27819,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.left___102028 = (s.tmp_4); + s.left___31907 = (s.tmp_4); r0 = s.arg0.fields["pFlags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -29625,49 +27837,49 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_4 = r0; - s.top___102038 = (s.tmp_4); + s.top___31917 = (s.tmp_4); case 5: - r0 = pxsim_numops_toBoolDecr(s.current___102025); + r0 = pxsim_numops_toBoolDecr(s.current___31904); if (!r0) { step = 8; continue; } - r0 = s.current___102025.fields["lifespan"]; + r0 = s.current___31904.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__P92801_mk(s); + s.tmp_2 = particles_ParticleSource_drawParticle__P23246_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.current___102025; - s.tmp_2.arg2 = s.left___102028; - s.tmp_2.arg3 = s.top___102038; - s.callLocIdx = 1164; s.pc = 9; return s.tmp_2; + s.tmp_2.arg1 = s.current___31904; + s.tmp_2.arg2 = s.left___31907; + s.tmp_2.arg3 = s.top___31917; + s.callLocIdx = 1151; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; case 6: case 7: - r0 = s.current___102025.fields["next"]; - s.current___102025 = (r0); + r0 = s.current___31904.fields["next"]; + s.current___31904 = (r0); { step = 5; continue; } case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource___draw__P90678.info = {"start":3216,"length":468,"line":112,"column":8,"endLine":122,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"__draw","argumentNames":["this","camera"]} +particles_ParticleSource___draw__P21128.info = {"start":3216,"length":468,"line":112,"column":8,"endLine":122,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"__draw","argumentNames":["this","camera"]} -function particles_ParticleSource___draw__P90678_mk(s) { +function particles_ParticleSource___draw__P21128_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource___draw__P90678, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource___draw__P21128, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - current___102025: undefined, - left___102028: undefined, - top___102038: undefined, + current___31904: undefined, + left___31907: undefined, + top___31917: undefined, arg0: undefined, arg1: undefined, } } @@ -29676,7 +27888,7 @@ function particles_ParticleSource___draw__P90678_mk(s) { -function particles_ParticleSource_drawParticle__P92801(s) { +function particles_ParticleSource_drawParticle__P23246(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29694,8 +27906,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C90672_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleFactory__C90708_v1_4_mk(s); + if (!checkSubtype(r0, particles_ParticleSource__C21122_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleFactory__C21158_v1_4_mk(s); r0 = s.arg0.fields["_factory"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; @@ -29707,7 +27919,7 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_2 - s.arg3); s.tmp_0.arg3 = r0; - if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C90708_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C21158_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.drawParticle; s.pc = 1; return s.tmp_0; case 1: @@ -29716,12 +27928,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_drawParticle__P92801.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__P23246.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__P92801_mk(s) { +function particles_ParticleSource_drawParticle__P23246_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_drawParticle__P92801, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_drawParticle__P23246, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29736,7 +27948,7 @@ function particles_ParticleSource_drawParticle__P92801_mk(s) { -function particles_ParticleFactory_drawParticle__P90711(s) { +function particles_ParticleFactory_drawParticle__P21161(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29754,8 +27966,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C90708_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___89553; + if (!checkSubtype(r0, particles_ParticleFactory__C21158_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___20003; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -29769,12 +27981,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleFactory_drawParticle__P90711.info = {"start":2265,"length":118,"line":85,"column":8,"endLine":87,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","particle","x","y"]} +particles_ParticleFactory_drawParticle__P21161.info = {"start":2265,"length":118,"line":85,"column":8,"endLine":87,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","particle","x","y"]} -function particles_ParticleFactory_drawParticle__P90711_mk(s) { +function particles_ParticleFactory_drawParticle__P21161_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_drawParticle__P90711, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_drawParticle__P21161, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29791,7 +28003,7 @@ function particles_ParticleFactory_drawParticle__P90711_mk(s) { -function sprites_SpriteMap_toString__P89975(s) { +function sprites_SpriteMap_toString__P20425(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29806,7 +28018,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C89967_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C20417_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_3 = r0; r0 = s.arg0.fields["buckets"]; @@ -29826,11 +28038,11 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, " buckets, "); s.tmp_1 = r0; - s.tmp_10 = helpers_arrayFilter__P87631_mk(s); + s.tmp_10 = helpers_arrayFilter__P18081_mk(s); r0 = s.arg0.fields["buckets"]; s.tmp_10.arg0 = r0; - s.tmp_10.arg1 = length_inline__P102101; - s.callLocIdx = 520; s.pc = 2; return s.tmp_10; + s.tmp_10.arg1 = length_inline__P31980; + s.callLocIdx = 514; s.pc = 2; return s.tmp_10; case 2: r0 = s.retval; s.tmp_9 = r0; @@ -29851,12 +28063,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteMap_toString__P89975.info = {"start":4109,"length":123,"line":112,"column":8,"endLine":114,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"toString","argumentNames":["this"]} +sprites_SpriteMap_toString__P20425.info = {"start":4109,"length":123,"line":112,"column":8,"endLine":114,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"toString","argumentNames":["this"]} -function sprites_SpriteMap_toString__P89975_mk(s) { +function sprites_SpriteMap_toString__P20425_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_toString__P89975, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_toString__P20425, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29876,7 +28088,7 @@ function sprites_SpriteMap_toString__P89975_mk(s) { -function length_inline__P102101(s) { +function length_inline__P31980(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29900,12 +28112,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -length_inline__P102101.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__P31980.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__P102101_mk(s) { +function length_inline__P31980_mk(s) { checkStack(s.depth); return { - parent: s, fn: length_inline__P102101, depth: s.depth + 1, + parent: s, fn: length_inline__P31980, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29917,7 +28129,7 @@ function length_inline__P102101_mk(s) { -function ArcadePhysicsEngine_moveSprite__P90062(s) { +function ArcadePhysicsEngine_moveSprite__P20512(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29927,9 +28139,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___102133 = undefined; - s.maxDist___102141 = undefined; - s.ms___102161 = undefined; + s.tm___32012 = undefined; + s.maxDist___32020 = undefined; + s.ms___32040 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -29938,7 +28150,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C90048_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20498_VT)) failedCast(r0); r0 = s.arg1.fields["_x"]; s.tmp_0 = r0; r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); @@ -29957,19 +28169,19 @@ switch (step) { r0 = (s.tmp_2 + s.arg3); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 757; s.pc = 13; return s.tmp_0; + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 751; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___102133 = (r0); - s.tmp_0 = r0 = s.tm___102133; + s.tm___32012 = (r0); + s.tmp_0 = r0 = s.tm___32012; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.tm___102133.fields["_map"]; + r0 = s.tm___32012.fields["_map"]; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; @@ -29988,41 +28200,41 @@ switch (step) { r0 = (s.tmp_6 + 128); s.tmp_7 = r0; r0 = (s.tmp_7 >> 8); - s.maxDist___102141 = (r0); - s.tmp_2 = Math_abs__P87649_mk(s); + s.maxDist___32020 = (r0); + s.tmp_2 = Math_abs__P18099_mk(s); r0 = (s.arg2 + 128); s.tmp_3 = r0; r0 = (s.tmp_3 >> 8); s.tmp_2.arg0 = r0; - s.callLocIdx = 761; s.pc = 14; return s.tmp_2; + s.callLocIdx = 755; s.pc = 14; return s.tmp_2; case 14: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.maxDist___102141); + r0 = (s.tmp_1 <= s.maxDist___32020); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 3; continue; } r0 = s.tmp_0; { step = 4; continue; } case 3: - s.tmp_5 = Math_abs__P87649_mk(s); + s.tmp_5 = Math_abs__P18099_mk(s); r0 = (s.arg3 + 128); s.tmp_6 = r0; r0 = (s.tmp_6 >> 8); s.tmp_5.arg0 = r0; - s.callLocIdx = 763; s.pc = 15; return s.tmp_5; + s.callLocIdx = 757; s.pc = 15; return s.tmp_5; case 15: r0 = s.retval; s.tmp_4 = r0; - r0 = (s.tmp_4 <= s.maxDist___102141); + r0 = (s.tmp_4 <= s.maxDist___32020); case 4: // jmp value (already in r0) s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 5; continue; } - r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C90046_VT); + r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C20496_VT); s.tmp_8 = r0; - s.tmp_9 = MovingSprite_constructor__P90047_mk(s); + s.tmp_9 = MovingSprite_constructor__P20497_mk(s); s.tmp_9.arg0 = s.tmp_8; s.tmp_9.arg1 = s.arg1; r0 = s.arg1.fields["_vx"]; @@ -30033,23 +28245,23 @@ switch (step) { s.tmp_9.arg5 = s.arg3; s.tmp_9.arg6 = s.arg2; s.tmp_9.arg7 = s.arg3; - s.callLocIdx = 764; s.pc = 16; return s.tmp_9; + s.callLocIdx = 758; s.pc = 16; return s.tmp_9; case 16: r0 = s.retval; - s.ms___102161 = (s.tmp_8); - s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P92315_mk(s); + s.ms___32040 = (s.tmp_8); + s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P22760_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ms___102161; - s.tmp_0.arg2 = s.tm___102133; - s.callLocIdx = 765; s.pc = 17; return s.tmp_0; + s.tmp_0.arg1 = s.ms___32040; + s.tmp_0.arg2 = s.tm___32012; + s.callLocIdx = 759; s.pc = 17; return s.tmp_0; case 17: r0 = s.retval; { step = 10; continue; } case 5: - s.tmp_1 = tiles_TileMap_isOnWall__P90279_mk(s); - s.tmp_1.arg0 = s.tm___102133; + s.tmp_1 = tiles_TileMap_isOnWall__P20729_mk(s); + s.tmp_1.arg0 = s.tm___32012; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 766; s.pc = 18; return s.tmp_1; + s.callLocIdx = 760; s.pc = 18; return s.tmp_1; case 18: r0 = s.retval; s.tmp_0 = r0; @@ -30058,11 +28270,11 @@ switch (step) { r0 = s.tmp_0; { step = 7; continue; } case 6: - s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P92317_mk(s); + s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P22762_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = s.arg1; - s.tmp_4.arg2 = s.tm___102133; - s.callLocIdx = 767; s.pc = 19; return s.tmp_4; + s.tmp_4.arg2 = s.tm___32012; + s.callLocIdx = 761; s.pc = 19; return s.tmp_4; case 19: r0 = s.retval; s.tmp_3 = r0; @@ -30096,12 +28308,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_moveSprite__P90062.info = {"start":23898,"length":1208,"line":654,"column":4,"endLine":685,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]} +ArcadePhysicsEngine_moveSprite__P20512.info = {"start":23898,"length":1208,"line":654,"column":4,"endLine":685,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]} -function ArcadePhysicsEngine_moveSprite__P90062_mk(s) { +function ArcadePhysicsEngine_moveSprite__P20512_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_moveSprite__P90062, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_moveSprite__P20512, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30113,9 +28325,9 @@ function ArcadePhysicsEngine_moveSprite__P90062_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - tm___102133: undefined, - maxDist___102141: undefined, - ms___102161: undefined, + tm___32012: undefined, + maxDist___32020: undefined, + ms___32040: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -30126,7 +28338,7 @@ function ArcadePhysicsEngine_moveSprite__P90062_mk(s) { -function ArcadePhysicsEngine_canResolveClipping__P92317(s) { +function ArcadePhysicsEngine_canResolveClipping__P22762(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30136,19 +28348,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___102206 = undefined; - s.sz___102209 = undefined; - s.maxMove___102214 = undefined; - s.origY___102216 = undefined; - s.origX___102219 = undefined; - s.l___102222 = undefined; - s.r___102227 = undefined; - s.t___102232 = undefined; - s.b___102237 = undefined; - s.offset___102242 = undefined; - s.offset___102267 = undefined; - s.offset___102298 = undefined; - s.offset___102323 = undefined; + s.hbox___32085 = undefined; + s.sz___32088 = undefined; + s.maxMove___32093 = undefined; + s.origY___32095 = undefined; + s.origX___32098 = undefined; + s.l___32101 = undefined; + s.r___32106 = undefined; + s.t___32111 = undefined; + s.b___32116 = undefined; + s.offset___32121 = undefined; + s.offset___32146 = undefined; + s.offset___32177 = undefined; + s.offset___32202 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -30156,7 +28368,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C90048_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20498_VT)) failedCast(r0); r0 = s.arg1.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.isStatic(s.tmp_3); @@ -30167,9 +28379,9 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_4 = Sprite__C89862_v4_1_mk(s); + s.tmp_4 = Sprite__C20312_v4_1_mk(s); s.tmp_4.arg0 = s.arg1; - if (!checkSubtype(s.tmp_4.arg0, Sprite__C89862_VT)) failedCast(s.tmp_4.arg0); + if (!checkSubtype(s.tmp_4.arg0, Sprite__C20312_VT)) failedCast(s.tmp_4.arg0); s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.setHitbox; s.pc = 20; return s.tmp_4; case 20: @@ -30177,83 +28389,83 @@ switch (step) { case 1: case 2: r0 = s.arg1.fields["_hitbox"]; - s.hbox___102206 = (r0); + s.hbox___32085 = (r0); r0 = s.arg2.fields["_scale"]; s.tmp_0 = r0; r0 = (1 << s.tmp_0); - s.sz___102209 = (r0); - s.tmp_0 = ArcadePhysicsEngine_maxStep__P90054_mk(s); + s.sz___32088 = (r0); + s.tmp_0 = ArcadePhysicsEngine_maxStep__P20504_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 770; s.pc = 21; return s.tmp_0; + s.callLocIdx = 764; s.pc = 21; return s.tmp_0; case 21: r0 = s.retval; - s.maxMove___102214 = (r0); + s.maxMove___32093 = (r0); r0 = s.arg1.fields["_y"]; - s.origY___102216 = (r0); + s.origY___32095 = (r0); r0 = s.arg1.fields["_x"]; - s.origX___102219 = (r0); - s.tmp_1 = game_Hitbox_left__P89737_mk(s); - s.tmp_1.arg0 = s.hbox___102206; - s.callLocIdx = 771; s.pc = 22; return s.tmp_1; + s.origX___32098 = (r0); + s.tmp_1 = game_Hitbox_left__P20187_mk(s); + s.tmp_1.arg0 = s.hbox___32085; + s.callLocIdx = 765; 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___102222 = (r0); - s.tmp_1 = game_Hitbox_right__P89739_mk(s); - s.tmp_1.arg0 = s.hbox___102206; - s.callLocIdx = 773; s.pc = 23; return s.tmp_1; + s.l___32101 = (r0); + s.tmp_1 = game_Hitbox_right__P20189_mk(s); + s.tmp_1.arg0 = s.hbox___32085; + s.callLocIdx = 767; 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___102227 = (r0); - s.tmp_1 = game_Hitbox_top__P89738_mk(s); - s.tmp_1.arg0 = s.hbox___102206; - s.callLocIdx = 775; s.pc = 24; return s.tmp_1; + s.r___32106 = (r0); + s.tmp_1 = game_Hitbox_top__P20188_mk(s); + s.tmp_1.arg0 = s.hbox___32085; + s.callLocIdx = 769; 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___102232 = (r0); - s.tmp_1 = game_Hitbox_bottom__P89740_mk(s); - s.tmp_1.arg0 = s.hbox___102206; - s.callLocIdx = 777; s.pc = 25; return s.tmp_1; + s.t___32111 = (r0); + s.tmp_1 = game_Hitbox_bottom__P20190_mk(s); + s.tmp_1.arg0 = s.hbox___32085; + s.callLocIdx = 771; 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___102237 = (r0); - r0 = (s.b___102237 + 1); + s.b___32116 = (r0); + r0 = (s.b___32116 + 1); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___102209); - s.offset___102242 = (r0); - r0 = (s.offset___102242 <= s.maxMove___102214); + r0 = (s.tmp_0 % s.sz___32088); + s.offset___32121 = (r0); + r0 = (s.offset___32121 <= s.maxMove___32093); 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___102242 * 256); + r0 = (s.offset___32121 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); s.tmp_4 = r0; r0 = (s.tmp_3 - s.tmp_4); s.tmp_2 = r0; r0 = (s.tmp_1).fields["_y"] = (s.tmp_2); - s.tmp_3 = tiles_TileMap_isOnWall__P90279_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P20729_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 781; s.pc = 26; return s.tmp_3; + s.callLocIdx = 775; s.pc = 26; return s.tmp_3; case 26: r0 = s.retval; s.tmp_2 = r0; @@ -30267,38 +28479,38 @@ switch (step) { { step = 19; continue; } { step = 4; continue; } case 3: - r0 = (s.arg1).fields["_y"] = (s.origY___102216); + r0 = (s.arg1).fields["_y"] = (s.origY___32095); case 4: case 5: case 6: - r0 = (s.t___102232 / s.sz___102209); + r0 = (s.t___32111 / s.sz___32088); 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___102209); + r0 = (s.tmp_1 * s.sz___32088); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.t___102232); - s.offset___102267 = (r0); - r0 = (s.offset___102267 <= s.maxMove___102214); + r0 = (s.tmp_0 - s.t___32111); + s.offset___32146 = (r0); + r0 = (s.offset___32146 <= s.maxMove___32093); 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___102267 * 256); + r0 = (s.offset___32146 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); s.tmp_4 = r0; r0 = (s.tmp_3 + s.tmp_4); s.tmp_2 = r0; r0 = (s.tmp_1).fields["_y"] = (s.tmp_2); - s.tmp_3 = tiles_TileMap_isOnWall__P90279_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P20729_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 784; s.pc = 27; return s.tmp_3; + s.callLocIdx = 778; s.pc = 27; return s.tmp_3; case 27: r0 = s.retval; s.tmp_2 = r0; @@ -30312,32 +28524,32 @@ switch (step) { { step = 19; continue; } { step = 8; continue; } case 7: - r0 = (s.arg1).fields["_y"] = (s.origY___102216); + r0 = (s.arg1).fields["_y"] = (s.origY___32095); case 8: case 9: case 10: - r0 = (s.r___102227 + 1); + r0 = (s.r___32106 + 1); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___102209); - s.offset___102298 = (r0); - r0 = (s.offset___102298 <= s.maxMove___102214); + r0 = (s.tmp_0 % s.sz___32088); + s.offset___32177 = (r0); + r0 = (s.offset___32177 <= s.maxMove___32093); 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___102298 * 256); + r0 = (s.offset___32177 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); s.tmp_4 = r0; r0 = (s.tmp_3 - s.tmp_4); s.tmp_2 = r0; r0 = (s.tmp_1).fields["_x"] = (s.tmp_2); - s.tmp_3 = tiles_TileMap_isOnWall__P90279_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P20729_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 787; s.pc = 28; return s.tmp_3; + s.callLocIdx = 781; s.pc = 28; return s.tmp_3; case 28: r0 = s.retval; s.tmp_2 = r0; @@ -30351,38 +28563,38 @@ switch (step) { { step = 19; continue; } { step = 12; continue; } case 11: - r0 = (s.arg1).fields["_x"] = (s.origX___102219); + r0 = (s.arg1).fields["_x"] = (s.origX___32098); case 12: case 13: case 14: - r0 = (s.l___102222 / s.sz___102209); + r0 = (s.l___32101 / s.sz___32088); 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___102209); + r0 = (s.tmp_1 * s.sz___32088); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.l___102222); - s.offset___102323 = (r0); - r0 = (s.offset___102323 <= s.maxMove___102214); + r0 = (s.tmp_0 - s.l___32101); + s.offset___32202 = (r0); + r0 = (s.offset___32202 <= s.maxMove___32093); 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___102323 * 256); + r0 = (s.offset___32202 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); s.tmp_4 = r0; r0 = (s.tmp_3 + s.tmp_4); s.tmp_2 = r0; r0 = (s.tmp_1).fields["_x"] = (s.tmp_2); - s.tmp_3 = tiles_TileMap_isOnWall__P90279_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P20729_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 790; s.pc = 29; return s.tmp_3; + s.callLocIdx = 784; s.pc = 29; return s.tmp_3; case 29: r0 = s.retval; s.tmp_2 = r0; @@ -30396,7 +28608,7 @@ switch (step) { { step = 19; continue; } { step = 16; continue; } case 15: - r0 = (s.arg1).fields["_x"] = (s.origX___102219); + r0 = (s.arg1).fields["_x"] = (s.origX___32098); case 16: case 17: case 18: @@ -30405,12 +28617,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_canResolveClipping__P92317.info = {"start":25202,"length":2135,"line":688,"column":4,"endLine":759,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"canResolveClipping","argumentNames":["this","s","tm"]} +ArcadePhysicsEngine_canResolveClipping__P22762.info = {"start":25202,"length":2135,"line":688,"column":4,"endLine":759,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"canResolveClipping","argumentNames":["this","s","tm"]} -function ArcadePhysicsEngine_canResolveClipping__P92317_mk(s) { +function ArcadePhysicsEngine_canResolveClipping__P22762_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P92317, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P22762, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30418,19 +28630,19 @@ function ArcadePhysicsEngine_canResolveClipping__P92317_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - hbox___102206: undefined, - sz___102209: undefined, - maxMove___102214: undefined, - origY___102216: undefined, - origX___102219: undefined, - l___102222: undefined, - r___102227: undefined, - t___102232: undefined, - b___102237: undefined, - offset___102242: undefined, - offset___102267: undefined, - offset___102298: undefined, - offset___102323: undefined, + hbox___32085: undefined, + sz___32088: undefined, + maxMove___32093: undefined, + origY___32095: undefined, + origX___32098: undefined, + l___32101: undefined, + r___32106: undefined, + t___32111: undefined, + b___32116: undefined, + offset___32121: undefined, + offset___32146: undefined, + offset___32177: undefined, + offset___32202: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -30440,7 +28652,7 @@ function ArcadePhysicsEngine_canResolveClipping__P92317_mk(s) { -function Sprite_isStatic__P89916(s) { +function Sprite_isStatic__P20366(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30455,19 +28667,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); r0 = s.arg0.fields["_image"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.isStatic(s.tmp_0); return leave(s, r0) default: oops() } } } -Sprite_isStatic__P89916.info = {"start":9841,"length":57,"line":355,"column":4,"endLine":357,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isStatic","argumentNames":["this"]} +Sprite_isStatic__P20366.info = {"start":9841,"length":57,"line":355,"column":4,"endLine":357,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isStatic","argumentNames":["this"]} -function Sprite_isStatic__P89916_mk(s) { +function Sprite_isStatic__P20366_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isStatic__P89916, depth: s.depth + 1, + parent: s, fn: Sprite_isStatic__P20366, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -30477,7 +28689,7 @@ function Sprite_isStatic__P89916_mk(s) { -function game_Hitbox_bottom__P89740(s) { +function game_Hitbox_bottom__P20190(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30492,12 +28704,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C89729_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C20179_VT)) failedCast(r0); r0 = s.arg0.fields["height"]; s.tmp_1 = r0; - s.tmp_3 = game_Hitbox_top__P89738_mk(s); + s.tmp_3 = game_Hitbox_top__P20188_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 226; s.pc = 1; return s.tmp_3; + s.callLocIdx = 225; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -30507,13 +28719,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_bottom__P89740.info = {"start":786,"length":139,"line":33,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"bottom","argumentNames":["this"]} -game_Hitbox_bottom__P89740.isGetter = true; +game_Hitbox_bottom__P20190.info = {"start":786,"length":139,"line":33,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"bottom","argumentNames":["this"]} +game_Hitbox_bottom__P20190.isGetter = true; -function game_Hitbox_bottom__P89740_mk(s) { +function game_Hitbox_bottom__P20190_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_bottom__P89740, depth: s.depth + 1, + parent: s, fn: game_Hitbox_bottom__P20190, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30526,7 +28738,7 @@ function game_Hitbox_bottom__P89740_mk(s) { -function game_Hitbox_right__P89739(s) { +function game_Hitbox_right__P20189(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30541,12 +28753,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C89729_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C20179_VT)) failedCast(r0); r0 = s.arg0.fields["width"]; s.tmp_1 = r0; - s.tmp_3 = game_Hitbox_left__P89737_mk(s); + s.tmp_3 = game_Hitbox_left__P20187_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 223; s.pc = 1; return s.tmp_3; + s.callLocIdx = 222; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -30556,13 +28768,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_right__P89739.info = {"start":638,"length":138,"line":26,"column":8,"endLine":31,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"right","argumentNames":["this"]} -game_Hitbox_right__P89739.isGetter = true; +game_Hitbox_right__P20189.info = {"start":638,"length":138,"line":26,"column":8,"endLine":31,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"right","argumentNames":["this"]} +game_Hitbox_right__P20189.isGetter = true; -function game_Hitbox_right__P89739_mk(s) { +function game_Hitbox_right__P20189_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_right__P89739, depth: s.depth + 1, + parent: s, fn: game_Hitbox_right__P20189, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30575,7 +28787,7 @@ function game_Hitbox_right__P89739_mk(s) { -function game_Hitbox_top__P89738(s) { +function game_Hitbox_top__P20188(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30590,7 +28802,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C89729_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C20179_VT)) failedCast(r0); r0 = s.arg0.fields["oy"]; s.tmp_0 = r0; r0 = s.arg0.fields["parent"]; @@ -30600,13 +28812,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_top__P89738.info = {"start":555,"length":73,"line":22,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"top","argumentNames":["this"]} -game_Hitbox_top__P89738.isGetter = true; +game_Hitbox_top__P20188.info = {"start":555,"length":73,"line":22,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"top","argumentNames":["this"]} +game_Hitbox_top__P20188.isGetter = true; -function game_Hitbox_top__P89738_mk(s) { +function game_Hitbox_top__P20188_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_top__P89738, depth: s.depth + 1, + parent: s, fn: game_Hitbox_top__P20188, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30617,7 +28829,7 @@ function game_Hitbox_top__P89738_mk(s) { -function game_Hitbox_left__P89737(s) { +function game_Hitbox_left__P20187(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30632,7 +28844,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C89729_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C20179_VT)) failedCast(r0); r0 = s.arg0.fields["ox"]; s.tmp_0 = r0; r0 = s.arg0.fields["parent"]; @@ -30642,13 +28854,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_left__P89737.info = {"start":471,"length":74,"line":18,"column":8,"endLine":20,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"left","argumentNames":["this"]} -game_Hitbox_left__P89737.isGetter = true; +game_Hitbox_left__P20187.info = {"start":471,"length":74,"line":18,"column":8,"endLine":20,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"left","argumentNames":["this"]} +game_Hitbox_left__P20187.isGetter = true; -function game_Hitbox_left__P89737_mk(s) { +function game_Hitbox_left__P20187_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_left__P89737, depth: s.depth + 1, + parent: s, fn: game_Hitbox_left__P20187, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30659,7 +28871,7 @@ function game_Hitbox_left__P89737_mk(s) { -function ArcadePhysicsEngine_tilemapCollisions__P92315(s) { +function ArcadePhysicsEngine_tilemapCollisions__P22760(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30669,37 +28881,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___102483 = undefined; - s.hbox___102508 = undefined; - s.tileScale___102511 = undefined; - s.tileSize___102514 = undefined; - s.xDiff___102518 = undefined; - s.yDiff___102525 = undefined; - s.right___102541 = undefined; - s.x0___102545 = undefined; - s.collidedTiles___102560 = undefined; - s.y___102562 = undefined; - s.y0___102576 = undefined; - s.obstacle___102592 = undefined; - s.collisionDirection___102619 = undefined; - s.tile___102645 = undefined; - s.unnamed728___U14 = undefined; - s.unnamed729___U15 = undefined; - s.down___102736 = undefined; - s.y0___102740 = undefined; - s.collidedTiles___102755 = undefined; - s.x___102757 = undefined; - s.x0___102767 = undefined; - s.obstacle___102781 = undefined; - s.collisionDirection___102808 = undefined; - s.tile___102834 = undefined; - s.unnamed730___U24 = undefined; - s.unnamed731___U25 = undefined; - s.overlappedTiles___102928 = undefined; - s.x___102930 = undefined; - s.x0___102940 = undefined; - s.y___102950 = undefined; - s.y0___102960 = undefined; + s.s___32362 = undefined; + s.hbox___32387 = undefined; + s.tileScale___32390 = undefined; + s.tileSize___32393 = undefined; + s.xDiff___32397 = undefined; + s.yDiff___32404 = undefined; + s.right___32420 = undefined; + s.x0___32424 = undefined; + s.collidedTiles___32439 = undefined; + s.y___32441 = undefined; + s.y0___32455 = undefined; + s.obstacle___32471 = undefined; + s.collisionDirection___32498 = undefined; + s.tile___32524 = undefined; + s.unnamed172___U14 = undefined; + s.unnamed173___U15 = undefined; + s.down___32615 = undefined; + s.y0___32619 = undefined; + s.collidedTiles___32634 = undefined; + s.x___32636 = undefined; + s.x0___32646 = undefined; + s.obstacle___32660 = undefined; + s.collisionDirection___32687 = undefined; + s.tile___32713 = undefined; + s.unnamed174___U24 = undefined; + s.unnamed175___U25 = undefined; + s.overlappedTiles___32807 = undefined; + s.x___32809 = undefined; + s.x0___32819 = undefined; + s.y___32829 = undefined; + s.y0___32839 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -30707,19 +28919,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C90048_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20498_VT)) failedCast(r0); r0 = s.arg1.fields["sprite"]; - s.s___102483 = (r0); - r0 = s.s___102483.fields["flags"]; + s.s___32362 = (r0); + r0 = s.s___32362.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 256); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_5 = tiles_TileMap_isOnWall__P90279_mk(s); + s.tmp_5 = tiles_TileMap_isOnWall__P20729_mk(s); s.tmp_5.arg0 = s.arg2; - s.tmp_5.arg1 = s.s___102483; - s.callLocIdx = 653; s.pc = 97; return s.tmp_5; + s.tmp_5.arg1 = s.s___32362; + s.callLocIdx = 647; s.pc = 97; return s.tmp_5; case 97: r0 = s.retval; s.tmp_4 = r0; @@ -30729,7 +28941,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___102483; + s.tmp_6 = r0 = s.s___32362; r0 = s.tmp_6.fields["flags"]; s.tmp_8 = r0; r0 = (s.tmp_8 & -257); @@ -30739,7 +28951,7 @@ switch (step) { case 2: case 3: case 4: - r0 = s.s___102483.fields["_image"]; + r0 = s.s___32362.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.isStatic(s.tmp_3); s.tmp_2 = r0; @@ -30749,34 +28961,34 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_4 = Sprite__C89862_v4_1_mk(s); - s.tmp_4.arg0 = s.s___102483; - if (!checkSubtype(s.tmp_4.arg0, Sprite__C89862_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4 = Sprite__C20312_v4_1_mk(s); + s.tmp_4.arg0 = s.s___32362; + if (!checkSubtype(s.tmp_4.arg0, Sprite__C20312_VT)) failedCast(s.tmp_4.arg0); s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.setHitbox; s.pc = 98; return s.tmp_4; case 98: r0 = s.retval; case 5: case 6: - r0 = s.s___102483.fields["_hitbox"]; - s.hbox___102508 = (r0); + r0 = s.s___32362.fields["_hitbox"]; + s.hbox___32387 = (r0); r0 = s.arg2.fields["_scale"]; - s.tileScale___102511 = (r0); - r0 = (1 << s.tileScale___102511); - s.tileSize___102514 = (r0); - r0 = s.s___102483.fields["_x"]; + s.tileScale___32390 = (r0); + r0 = (1 << s.tileScale___32390); + s.tileSize___32393 = (r0); + r0 = s.s___32362.fields["_x"]; s.tmp_0 = r0; - r0 = s.s___102483.fields["_lastX"]; + r0 = s.s___32362.fields["_lastX"]; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.xDiff___102518 = (r0); - r0 = s.s___102483.fields["_y"]; + s.xDiff___32397 = (r0); + r0 = s.s___32362.fields["_y"]; s.tmp_0 = r0; - r0 = s.s___102483.fields["_lastY"]; + r0 = s.s___32362.fields["_lastY"]; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.yDiff___102525 = (r0); - r0 = s.s___102483.fields["flags"]; + s.yDiff___32404 = (r0); + r0 = s.s___32362.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 2818); s.tmp_2 = r0; @@ -30786,26 +28998,26 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 83; continue; } - r0 = (s.xDiff___102518 !== 0); + r0 = (s.xDiff___32397 !== 0); s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 43; continue; } - r0 = (s.xDiff___102518 > 0); - s.right___102541 = (r0); - r0 = pxsim_numops_toBoolDecr(s.right___102541); + r0 = (s.xDiff___32397 > 0); + s.right___32420 = (r0); + r0 = pxsim_numops_toBoolDecr(s.right___32420); if (!r0) { step = 7; continue; } - s.tmp_1 = game_Hitbox_right__P89739_mk(s); - s.tmp_1.arg0 = s.hbox___102508; - s.callLocIdx = 658; s.pc = 99; return s.tmp_1; + s.tmp_1 = game_Hitbox_right__P20189_mk(s); + s.tmp_1.arg0 = s.hbox___32387; + s.callLocIdx = 652; s.pc = 99; return s.tmp_1; case 99: r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 + 256); { step = 8; continue; } case 7: - s.tmp_3 = game_Hitbox_left__P89737_mk(s); - s.tmp_3.arg0 = s.hbox___102508; - s.callLocIdx = 660; s.pc = 100; return s.tmp_3; + s.tmp_3 = game_Hitbox_left__P20187_mk(s); + s.tmp_3.arg0 = s.hbox___32387; + s.callLocIdx = 654; s.pc = 100; return s.tmp_3; case 100: r0 = s.retval; s.tmp_2 = r0; @@ -30815,30 +29027,30 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 128); s.tmp_5 = r0; - r0 = (s.tileScale___102511 + 8); + r0 = (s.tileScale___32390 + 8); s.tmp_6 = r0; r0 = (s.tmp_5 >> s.tmp_6); - s.x0___102545 = (r0); + s.x0___32424 = (r0); r0 = pxsim_Array__mk(); - s.collidedTiles___102560 = (r0); - s.tmp_1 = game_Hitbox_top__P89738_mk(s); - s.tmp_1.arg0 = s.hbox___102508; - s.callLocIdx = 664; s.pc = 101; return s.tmp_1; + s.collidedTiles___32439 = (r0); + s.tmp_1 = game_Hitbox_top__P20188_mk(s); + s.tmp_1.arg0 = s.hbox___32387; + s.callLocIdx = 658; s.pc = 101; return s.tmp_1; case 101: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.yDiff___102525); - s.y___102562 = (r0); + r0 = (s.tmp_0 - s.yDiff___32404); + s.y___32441 = (r0); case 9: - s.tmp_1 = r0 = s.y___102562; - s.tmp_3 = r0 = s.tileSize___102514; - s.tmp_6 = game_Hitbox_bottom__P89740_mk(s); - s.tmp_6.arg0 = s.hbox___102508; - s.callLocIdx = 666; s.pc = 102; return s.tmp_6; + s.tmp_1 = r0 = s.y___32441; + s.tmp_3 = r0 = s.tileSize___32393; + s.tmp_6 = game_Hitbox_bottom__P20190_mk(s); + s.tmp_6.arg0 = s.hbox___32387; + s.callLocIdx = 660; s.pc = 102; return s.tmp_6; case 102: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.yDiff___102525); + r0 = (s.tmp_5 - s.yDiff___32404); s.tmp_4 = r0; r0 = (s.tmp_3 << 8); s.tmp_7 = r0; @@ -30848,51 +29060,51 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - s.tmp_10 = Fx_min__P87687_mk(s); - s.tmp_10.arg0 = s.y___102562; - s.tmp_12 = game_Hitbox_bottom__P89740_mk(s); - s.tmp_12.arg0 = s.hbox___102508; - s.callLocIdx = 669; s.pc = 104; return s.tmp_12; + s.tmp_10 = Fx_min__P18137_mk(s); + s.tmp_10.arg0 = s.y___32441; + s.tmp_12 = game_Hitbox_bottom__P20190_mk(s); + s.tmp_12.arg0 = s.hbox___32387; + s.callLocIdx = 663; s.pc = 104; return s.tmp_12; case 104: r0 = s.retval; s.tmp_11 = r0; - r0 = (s.tmp_11 - s.yDiff___102525); + r0 = (s.tmp_11 - s.yDiff___32404); s.tmp_10.arg1 = r0; - s.callLocIdx = 671; s.pc = 103; return s.tmp_10; + s.callLocIdx = 665; s.pc = 103; return s.tmp_10; case 103: r0 = s.retval; s.tmp_9 = r0; r0 = (s.tmp_9 + 128); s.tmp_8 = r0; - r0 = (s.tileScale___102511 + 8); + r0 = (s.tileScale___32390 + 8); s.tmp_13 = r0; r0 = (s.tmp_8 >> s.tmp_13); - s.y0___102576 = (r0); - s.tmp_1 = tiles_TileMap_isObstacle__P90277_mk(s); + s.y0___32455 = (r0); + s.tmp_1 = tiles_TileMap_isObstacle__P20727_mk(s); s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___102545; - s.tmp_1.arg2 = s.y0___102576; - s.callLocIdx = 674; s.pc = 105; return s.tmp_1; + s.tmp_1.arg1 = s.x0___32424; + s.tmp_1.arg2 = s.y0___32455; + s.callLocIdx = 668; s.pc = 105; return s.tmp_1; case 105: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 12; continue; } - s.tmp_2 = tiles_TileMap_getObstacle__P90278_mk(s); + s.tmp_2 = tiles_TileMap_getObstacle__P20728_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___102545; - s.tmp_2.arg2 = s.y0___102576; - s.callLocIdx = 675; s.pc = 106; return s.tmp_2; + s.tmp_2.arg1 = s.x0___32424; + s.tmp_2.arg2 = s.y0___32455; + s.callLocIdx = 669; s.pc = 106; return s.tmp_2; case 106: r0 = s.retval; - s.obstacle___102592 = (r0); - r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P102600); + s.obstacle___32471 = (r0); + r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P32479); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___102592); - s.tmp_4 = helpers_arraySome__P87628_mk(s); - s.tmp_4.arg0 = s.collidedTiles___102560; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___32471); + s.tmp_4 = helpers_arraySome__P18078_mk(s); + s.tmp_4.arg0 = s.collidedTiles___32439; s.tmp_4.arg1 = s.tmp_0; - s.callLocIdx = 676; s.pc = 107; return s.tmp_4; + s.callLocIdx = 670; s.pc = 107; return s.tmp_4; case 107: r0 = s.retval; s.tmp_3 = r0; @@ -30902,22 +29114,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___102560, s.obstacle___102592); + r0 = pxsim_Array__push(s.collidedTiles___32439, s.obstacle___32471); case 10: case 11: case 12: case 13: - r0 = (s.tileSize___102514 << 8); + r0 = (s.tileSize___32393 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.y___102562); - s.y___102562 = (r0); + r0 = (s.tmp_0 + s.y___32441); + s.y___32441 = (r0); { step = 9; continue; } case 14: - r0 = pxsim_Array__length(s.collidedTiles___102560); + r0 = pxsim_Array__length(s.collidedTiles___32439); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 41; continue; } - r0 = pxsim_numops_toBoolDecr(s.right___102541); + r0 = pxsim_numops_toBoolDecr(s.right___32420); if (!r0) { step = 15; continue; } r0 = 2; { step = 16; continue; } @@ -30926,23 +29138,23 @@ switch (step) { case 16: // jmp value (already in r0) s.tmp_1 = r0; - s.collisionDirection___102619 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.right___102541); + s.collisionDirection___32498 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.right___32420); if (!r0) { step = 17; continue; } - r0 = (s.x0___102545 << s.tileScale___102511); + r0 = (s.x0___32424 << s.tileScale___32390); 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___102508.fields["width"]; + r0 = s.hbox___32387.fields["width"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); { step = 18; continue; } case 17: - r0 = (s.x0___102545 + 1); + r0 = (s.x0___32424 + 1); s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___102511); + r0 = (s.tmp_5 << s.tileScale___32390); s.tmp_4 = r0; r0 = (s.tmp_4 * 256); s.tmp_6 = r0; @@ -30950,24 +29162,24 @@ switch (step) { case 18: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.s___102483; - r0 = s.hbox___102508.fields["ox"]; + s.tmp_8 = r0 = s.s___32362; + r0 = s.hbox___32387.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___102645 = (undefined); - s.unnamed728___U14 = (s.collidedTiles___102560); - s.unnamed729___U15 = (0); + s.tile___32524 = (undefined); + s.unnamed172___U14 = (s.collidedTiles___32439); + s.unnamed173___U15 = (0); case 19: - s.tmp_0 = r0 = s.unnamed729___U15; - r0 = pxsim_Array__length(s.unnamed728___U14); + s.tmp_0 = r0 = s.unnamed173___U15; + r0 = pxsim_Array__length(s.unnamed172___U14); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 22; continue; } - r0 = pxsim_Array__getAt(s.unnamed728___U14, s.unnamed729___U15); - s.tile___102645 = (r0); - r0 = s.s___102483.fields["flags"]; + r0 = pxsim_Array__getAt(s.unnamed172___U14, s.unnamed173___U15); + s.tile___32524 = (r0); + r0 = s.s___32362.fields["flags"]; s.tmp_5 = r0; r0 = (s.tmp_5 & 2818); s.tmp_4 = r0; @@ -30977,37 +29189,37 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 20; continue; } - s.tmp_6 = Sprite_registerObstacle__P89947_mk(s); - s.tmp_6.arg0 = s.s___102483; - s.tmp_6.arg1 = s.collisionDirection___102619; - s.tmp_6.arg2 = s.tile___102645; + s.tmp_6 = Sprite_registerObstacle__P20397_mk(s); + s.tmp_6.arg0 = s.s___32362; + s.tmp_6.arg1 = s.collisionDirection___32498; + s.tmp_6.arg2 = s.tile___32524; s.tmp_6.arg3 = s.arg2; - s.callLocIdx = 682; s.pc = 108; return s.tmp_6; + s.callLocIdx = 676; s.pc = 108; return s.tmp_6; case 108: r0 = s.retval; case 20: case 21: - r0 = (s.unnamed729___U15 + 1); - s.unnamed729___U15 = (r0); + r0 = (s.unnamed173___U15 + 1); + s.unnamed173___U15 = (r0); { step = 19; continue; } case 22: - s.unnamed728___U14 = (undefined); - r0 = s.s___102483.fields["flags"]; + s.unnamed172___U14 = (undefined); + r0 = s.s___32362.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__P89949_mk(s); - s.tmp_2.arg0 = s.s___102483; + s.tmp_2 = Sprite_destroy__P20399_mk(s); + s.tmp_2.arg0 = s.s___32362; s.tmp_2.arg1 = undefined; s.tmp_2.arg2 = undefined; - s.callLocIdx = 683; s.pc = 109; return s.tmp_2; + s.callLocIdx = 677; s.pc = 109; return s.tmp_2; case 109: r0 = s.retval; { step = 40; continue; } case 23: - r0 = s.s___102483.fields["_vx"]; + r0 = s.s___32362.fields["_vx"]; s.tmp_1 = r0; r0 = s.arg1.fields["cachedVx"]; s.tmp_2 = r0; @@ -31018,7 +29230,7 @@ switch (step) { r0 = s.tmp_0; { step = 25; continue; } case 24: - r0 = s.s___102483.fields["flags"]; + r0 = s.s___32362.fields["flags"]; s.tmp_5 = r0; r0 = (s.tmp_5 & 2818); s.tmp_4 = r0; @@ -31030,13 +29242,13 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 36; continue; } - r0 = s.s___102483.fields["flags"]; + r0 = s.s___32362.fields["flags"]; s.tmp_8 = r0; r0 = (s.tmp_8 & 32); s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 34; continue; } - r0 = pxsim_numops_toBoolDecr(s.right___102541); + r0 = pxsim_numops_toBoolDecr(s.right___32420); s.tmp_10 = r0; r0 = pxsim_Boolean__bang(s.tmp_10); s.tmp_9 = r0; @@ -31045,9 +29257,9 @@ switch (step) { r0 = s.tmp_9; { step = 27; continue; } case 26: - s.tmp_12 = Sprite_vx__P89879_mk(s); - s.tmp_12.arg0 = s.s___102483; - s.callLocIdx = 684; s.pc = 110; return s.tmp_12; + s.tmp_12 = Sprite_vx__P20329_mk(s); + s.tmp_12.arg0 = s.s___32362; + s.callLocIdx = 678; s.pc = 110; return s.tmp_12; case 110: r0 = s.retval; s.tmp_11 = r0; @@ -31060,15 +29272,15 @@ switch (step) { r0 = s.tmp_13; { step = 31; continue; } case 28: - s.tmp_14 = r0 = s.right___102541; + s.tmp_14 = r0 = s.right___32420; r0 = pxsim_numops_toBool(s.tmp_14); if (r0) { step = 29; continue; } r0 = s.tmp_14; { step = 30; continue; } case 29: - s.tmp_16 = Sprite_vx__P89879_mk(s); - s.tmp_16.arg0 = s.s___102483; - s.callLocIdx = 685; s.pc = 111; return s.tmp_16; + s.tmp_16 = Sprite_vx__P20329_mk(s); + s.tmp_16.arg0 = s.s___32362; + s.callLocIdx = 679; s.pc = 111; return s.tmp_16; case 111: r0 = s.retval; s.tmp_15 = r0; @@ -31082,8 +29294,8 @@ switch (step) { s.tmp_18 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_18); if (!r0) { step = 32; continue; } - s.tmp_19 = r0 = s.s___102483; - r0 = s.s___102483.fields["_vx"]; + s.tmp_19 = r0 = s.s___32362; + r0 = s.s___32362.fields["_vx"]; s.tmp_21 = r0; r0 = (0 - s.tmp_21); s.tmp_20 = r0; @@ -31105,29 +29317,29 @@ switch (step) { { step = 35; continue; } case 34: r0 = (s.arg1).fields["dx"] = (0); - r0 = (s.s___102483).fields["_vx"] = (0); + r0 = (s.s___32362).fields["_vx"] = (0); case 35: { step = 39; continue; } case 36: - s.tmp_2 = Math_sign__P87650_mk(s); - r0 = s.s___102483.fields["_vx"]; + s.tmp_2 = Math_sign__P18100_mk(s); + r0 = s.s___32362.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 = 690; s.pc = 112; return s.tmp_2; + s.callLocIdx = 684; s.pc = 112; return s.tmp_2; case 112: r0 = s.retval; s.tmp_1 = r0; - s.tmp_6 = Math_sign__P87650_mk(s); + s.tmp_6 = Math_sign__P18100_mk(s); r0 = s.arg1.fields["cachedVx"]; s.tmp_7 = r0; r0 = (s.tmp_7 + 128); s.tmp_8 = r0; r0 = (s.tmp_8 >> 8); s.tmp_6.arg0 = r0; - s.callLocIdx = 692; s.pc = 113; return s.tmp_6; + s.callLocIdx = 686; s.pc = 113; return s.tmp_6; case 113: r0 = s.retval; s.tmp_5 = r0; @@ -31144,26 +29356,26 @@ switch (step) { case 42: case 43: case 44: - r0 = (s.yDiff___102525 !== 0); + r0 = (s.yDiff___32404 !== 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 81; continue; } - r0 = (s.yDiff___102525 > 0); - s.down___102736 = (r0); - r0 = pxsim_numops_toBoolDecr(s.down___102736); + r0 = (s.yDiff___32404 > 0); + s.down___32615 = (r0); + r0 = pxsim_numops_toBoolDecr(s.down___32615); if (!r0) { step = 45; continue; } - s.tmp_1 = game_Hitbox_bottom__P89740_mk(s); - s.tmp_1.arg0 = s.hbox___102508; - s.callLocIdx = 693; s.pc = 114; return s.tmp_1; + s.tmp_1 = game_Hitbox_bottom__P20190_mk(s); + s.tmp_1.arg0 = s.hbox___32387; + s.callLocIdx = 687; s.pc = 114; return s.tmp_1; case 114: r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 + 256); { step = 46; continue; } case 45: - s.tmp_3 = game_Hitbox_top__P89738_mk(s); - s.tmp_3.arg0 = s.hbox___102508; - s.callLocIdx = 695; s.pc = 115; return s.tmp_3; + s.tmp_3 = game_Hitbox_top__P20188_mk(s); + s.tmp_3.arg0 = s.hbox___32387; + s.callLocIdx = 689; s.pc = 115; return s.tmp_3; case 115: r0 = s.retval; s.tmp_2 = r0; @@ -31173,24 +29385,24 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 128); s.tmp_5 = r0; - r0 = (s.tileScale___102511 + 8); + r0 = (s.tileScale___32390 + 8); s.tmp_6 = r0; r0 = (s.tmp_5 >> s.tmp_6); - s.y0___102740 = (r0); + s.y0___32619 = (r0); r0 = pxsim_Array__mk(); - s.collidedTiles___102755 = (r0); - s.tmp_0 = game_Hitbox_left__P89737_mk(s); - s.tmp_0.arg0 = s.hbox___102508; - s.callLocIdx = 699; s.pc = 116; return s.tmp_0; + s.collidedTiles___32634 = (r0); + s.tmp_0 = game_Hitbox_left__P20187_mk(s); + s.tmp_0.arg0 = s.hbox___32387; + s.callLocIdx = 693; s.pc = 116; return s.tmp_0; case 116: r0 = s.retval; - s.x___102757 = (r0); + s.x___32636 = (r0); case 47: - s.tmp_1 = r0 = s.x___102757; - s.tmp_3 = r0 = s.tileSize___102514; - s.tmp_5 = game_Hitbox_right__P89739_mk(s); - s.tmp_5.arg0 = s.hbox___102508; - s.callLocIdx = 700; s.pc = 117; return s.tmp_5; + s.tmp_1 = r0 = s.x___32636; + s.tmp_3 = r0 = s.tileSize___32393; + s.tmp_5 = game_Hitbox_right__P20189_mk(s); + s.tmp_5.arg0 = s.hbox___32387; + s.callLocIdx = 694; s.pc = 117; return s.tmp_5; case 117: r0 = s.retval; s.tmp_4 = r0; @@ -31202,49 +29414,49 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 52; continue; } - s.tmp_9 = Fx_min__P87687_mk(s); - s.tmp_9.arg0 = s.x___102757; - s.tmp_10 = game_Hitbox_right__P89739_mk(s); - s.tmp_10.arg0 = s.hbox___102508; - s.callLocIdx = 702; s.pc = 119; return s.tmp_10; + s.tmp_9 = Fx_min__P18137_mk(s); + s.tmp_9.arg0 = s.x___32636; + s.tmp_10 = game_Hitbox_right__P20189_mk(s); + s.tmp_10.arg0 = s.hbox___32387; + s.callLocIdx = 696; s.pc = 119; return s.tmp_10; case 119: r0 = s.retval; s.tmp_9.arg1 = r0; - s.callLocIdx = 703; s.pc = 118; return s.tmp_9; + s.callLocIdx = 697; s.pc = 118; return s.tmp_9; case 118: r0 = s.retval; s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___102511 + 8); + r0 = (s.tileScale___32390 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.x0___102767 = (r0); - s.tmp_1 = tiles_TileMap_isObstacle__P90277_mk(s); + s.x0___32646 = (r0); + s.tmp_1 = tiles_TileMap_isObstacle__P20727_mk(s); s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___102767; - s.tmp_1.arg2 = s.y0___102740; - s.callLocIdx = 706; s.pc = 120; return s.tmp_1; + s.tmp_1.arg1 = s.x0___32646; + s.tmp_1.arg2 = s.y0___32619; + s.callLocIdx = 700; s.pc = 120; return s.tmp_1; case 120: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 50; continue; } - s.tmp_2 = tiles_TileMap_getObstacle__P90278_mk(s); + s.tmp_2 = tiles_TileMap_getObstacle__P20728_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___102767; - s.tmp_2.arg2 = s.y0___102740; - s.callLocIdx = 707; s.pc = 121; return s.tmp_2; + s.tmp_2.arg1 = s.x0___32646; + s.tmp_2.arg2 = s.y0___32619; + s.callLocIdx = 701; s.pc = 121; return s.tmp_2; case 121: r0 = s.retval; - s.obstacle___102781 = (r0); - r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P102789); + s.obstacle___32660 = (r0); + r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P32668); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___102781); - s.tmp_4 = helpers_arraySome__P87628_mk(s); - s.tmp_4.arg0 = s.collidedTiles___102755; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___32660); + s.tmp_4 = helpers_arraySome__P18078_mk(s); + s.tmp_4.arg0 = s.collidedTiles___32634; s.tmp_4.arg1 = s.tmp_0; - s.callLocIdx = 708; s.pc = 122; return s.tmp_4; + s.callLocIdx = 702; s.pc = 122; return s.tmp_4; case 122: r0 = s.retval; s.tmp_3 = r0; @@ -31254,22 +29466,22 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 48; continue; } - r0 = pxsim_Array__push(s.collidedTiles___102755, s.obstacle___102781); + r0 = pxsim_Array__push(s.collidedTiles___32634, s.obstacle___32660); case 48: case 49: case 50: case 51: - r0 = (s.tileSize___102514 << 8); + r0 = (s.tileSize___32393 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.x___102757); - s.x___102757 = (r0); + r0 = (s.tmp_0 + s.x___32636); + s.x___32636 = (r0); { step = 47; continue; } case 52: - r0 = pxsim_Array__length(s.collidedTiles___102755); + r0 = pxsim_Array__length(s.collidedTiles___32634); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 79; continue; } - r0 = pxsim_numops_toBoolDecr(s.down___102736); + r0 = pxsim_numops_toBoolDecr(s.down___32615); if (!r0) { step = 53; continue; } r0 = 3; { step = 54; continue; } @@ -31278,23 +29490,23 @@ switch (step) { case 54: // jmp value (already in r0) s.tmp_1 = r0; - s.collisionDirection___102808 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.down___102736); + s.collisionDirection___32687 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.down___32615); if (!r0) { step = 55; continue; } - r0 = (s.y0___102740 << s.tileScale___102511); + r0 = (s.y0___32619 << s.tileScale___32390); 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___102508.fields["height"]; + r0 = s.hbox___32387.fields["height"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); { step = 56; continue; } case 55: - r0 = (s.y0___102740 + 1); + r0 = (s.y0___32619 + 1); s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___102511); + r0 = (s.tmp_5 << s.tileScale___32390); s.tmp_4 = r0; r0 = (s.tmp_4 * 256); s.tmp_6 = r0; @@ -31302,24 +29514,24 @@ switch (step) { case 56: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.s___102483; - r0 = s.hbox___102508.fields["oy"]; + s.tmp_8 = r0 = s.s___32362; + r0 = s.hbox___32387.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___102834 = (undefined); - s.unnamed730___U24 = (s.collidedTiles___102755); - s.unnamed731___U25 = (0); + s.tile___32713 = (undefined); + s.unnamed174___U24 = (s.collidedTiles___32634); + s.unnamed175___U25 = (0); case 57: - s.tmp_0 = r0 = s.unnamed731___U25; - r0 = pxsim_Array__length(s.unnamed730___U24); + s.tmp_0 = r0 = s.unnamed175___U25; + r0 = pxsim_Array__length(s.unnamed174___U24); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 60; continue; } - r0 = pxsim_Array__getAt(s.unnamed730___U24, s.unnamed731___U25); - s.tile___102834 = (r0); - r0 = s.s___102483.fields["flags"]; + r0 = pxsim_Array__getAt(s.unnamed174___U24, s.unnamed175___U25); + s.tile___32713 = (r0); + r0 = s.s___32362.fields["flags"]; s.tmp_5 = r0; r0 = (s.tmp_5 & 2818); s.tmp_4 = r0; @@ -31329,37 +29541,37 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 58; continue; } - s.tmp_6 = Sprite_registerObstacle__P89947_mk(s); - s.tmp_6.arg0 = s.s___102483; - s.tmp_6.arg1 = s.collisionDirection___102808; - s.tmp_6.arg2 = s.tile___102834; + s.tmp_6 = Sprite_registerObstacle__P20397_mk(s); + s.tmp_6.arg0 = s.s___32362; + s.tmp_6.arg1 = s.collisionDirection___32687; + s.tmp_6.arg2 = s.tile___32713; s.tmp_6.arg3 = s.arg2; - s.callLocIdx = 714; s.pc = 123; return s.tmp_6; + s.callLocIdx = 708; s.pc = 123; return s.tmp_6; case 123: r0 = s.retval; case 58: case 59: - r0 = (s.unnamed731___U25 + 1); - s.unnamed731___U25 = (r0); + r0 = (s.unnamed175___U25 + 1); + s.unnamed175___U25 = (r0); { step = 57; continue; } case 60: - s.unnamed730___U24 = (undefined); - r0 = s.s___102483.fields["flags"]; + s.unnamed174___U24 = (undefined); + r0 = s.s___32362.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 = 61; continue; } - s.tmp_2 = Sprite_destroy__P89949_mk(s); - s.tmp_2.arg0 = s.s___102483; + s.tmp_2 = Sprite_destroy__P20399_mk(s); + s.tmp_2.arg0 = s.s___32362; s.tmp_2.arg1 = undefined; s.tmp_2.arg2 = undefined; - s.callLocIdx = 715; s.pc = 124; return s.tmp_2; + s.callLocIdx = 709; s.pc = 124; return s.tmp_2; case 124: r0 = s.retval; { step = 78; continue; } case 61: - r0 = s.s___102483.fields["_vy"]; + r0 = s.s___32362.fields["_vy"]; s.tmp_1 = r0; r0 = s.arg1.fields["cachedVy"]; s.tmp_2 = r0; @@ -31370,7 +29582,7 @@ switch (step) { r0 = s.tmp_0; { step = 63; continue; } case 62: - r0 = s.s___102483.fields["flags"]; + r0 = s.s___32362.fields["flags"]; s.tmp_5 = r0; r0 = (s.tmp_5 & 2818); s.tmp_4 = r0; @@ -31382,13 +29594,13 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 74; continue; } - r0 = s.s___102483.fields["flags"]; + r0 = s.s___32362.fields["flags"]; s.tmp_8 = r0; r0 = (s.tmp_8 & 32); s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 72; continue; } - r0 = pxsim_numops_toBoolDecr(s.down___102736); + r0 = pxsim_numops_toBoolDecr(s.down___32615); s.tmp_10 = r0; r0 = pxsim_Boolean__bang(s.tmp_10); s.tmp_9 = r0; @@ -31397,9 +29609,9 @@ switch (step) { r0 = s.tmp_9; { step = 65; continue; } case 64: - s.tmp_12 = Sprite_vy__P89881_mk(s); - s.tmp_12.arg0 = s.s___102483; - s.callLocIdx = 716; s.pc = 125; return s.tmp_12; + s.tmp_12 = Sprite_vy__P20331_mk(s); + s.tmp_12.arg0 = s.s___32362; + s.callLocIdx = 710; s.pc = 125; return s.tmp_12; case 125: r0 = s.retval; s.tmp_11 = r0; @@ -31412,15 +29624,15 @@ switch (step) { r0 = s.tmp_13; { step = 69; continue; } case 66: - s.tmp_14 = r0 = s.down___102736; + s.tmp_14 = r0 = s.down___32615; r0 = pxsim_numops_toBool(s.tmp_14); if (r0) { step = 67; continue; } r0 = s.tmp_14; { step = 68; continue; } case 67: - s.tmp_16 = Sprite_vy__P89881_mk(s); - s.tmp_16.arg0 = s.s___102483; - s.callLocIdx = 717; s.pc = 126; return s.tmp_16; + s.tmp_16 = Sprite_vy__P20331_mk(s); + s.tmp_16.arg0 = s.s___32362; + s.callLocIdx = 711; s.pc = 126; return s.tmp_16; case 126: r0 = s.retval; s.tmp_15 = r0; @@ -31434,8 +29646,8 @@ switch (step) { s.tmp_18 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_18); if (!r0) { step = 70; continue; } - s.tmp_19 = r0 = s.s___102483; - r0 = s.s___102483.fields["_vy"]; + s.tmp_19 = r0 = s.s___32362; + r0 = s.s___32362.fields["_vy"]; s.tmp_21 = r0; r0 = (0 - s.tmp_21); s.tmp_20 = r0; @@ -31457,29 +29669,29 @@ switch (step) { { step = 73; continue; } case 72: r0 = (s.arg1).fields["dy"] = (0); - r0 = (s.s___102483).fields["_vy"] = (0); + r0 = (s.s___32362).fields["_vy"] = (0); case 73: { step = 77; continue; } case 74: - s.tmp_2 = Math_sign__P87650_mk(s); - r0 = s.s___102483.fields["_vy"]; + s.tmp_2 = Math_sign__P18100_mk(s); + r0 = s.s___32362.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 = 722; s.pc = 127; return s.tmp_2; + s.callLocIdx = 716; s.pc = 127; return s.tmp_2; case 127: r0 = s.retval; s.tmp_1 = r0; - s.tmp_6 = Math_sign__P87650_mk(s); + s.tmp_6 = Math_sign__P18100_mk(s); r0 = s.arg1.fields["cachedVy"]; s.tmp_7 = r0; r0 = (s.tmp_7 + 128); s.tmp_8 = r0; r0 = (s.tmp_8 >> 8); s.tmp_6.arg0 = r0; - s.callLocIdx = 724; s.pc = 128; return s.tmp_6; + s.callLocIdx = 718; s.pc = 128; return s.tmp_6; case 128: r0 = s.retval; s.tmp_5 = r0; @@ -31498,7 +29710,7 @@ switch (step) { case 82: case 83: case 84: - r0 = s.s___102483.fields["flags"]; + r0 = s.s___32362.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 1538); s.tmp_2 = r0; @@ -31509,19 +29721,19 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 95; continue; } r0 = pxsim_Array__mk(); - s.overlappedTiles___102928 = (r0); - s.tmp_0 = game_Hitbox_left__P89737_mk(s); - s.tmp_0.arg0 = s.hbox___102508; - s.callLocIdx = 725; s.pc = 129; return s.tmp_0; + s.overlappedTiles___32807 = (r0); + s.tmp_0 = game_Hitbox_left__P20187_mk(s); + s.tmp_0.arg0 = s.hbox___32387; + s.callLocIdx = 719; s.pc = 129; return s.tmp_0; case 129: r0 = s.retval; - s.x___102930 = (r0); + s.x___32809 = (r0); case 85: - s.tmp_1 = r0 = s.x___102930; - s.tmp_3 = r0 = s.tileSize___102514; - s.tmp_5 = game_Hitbox_right__P89739_mk(s); - s.tmp_5.arg0 = s.hbox___102508; - s.callLocIdx = 726; s.pc = 130; return s.tmp_5; + s.tmp_1 = r0 = s.x___32809; + s.tmp_3 = r0 = s.tileSize___32393; + s.tmp_5 = game_Hitbox_right__P20189_mk(s); + s.tmp_5.arg0 = s.hbox___32387; + s.callLocIdx = 720; s.pc = 130; return s.tmp_5; case 130: r0 = s.retval; s.tmp_4 = r0; @@ -31533,36 +29745,36 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 92; continue; } - s.tmp_9 = Fx_min__P87687_mk(s); - s.tmp_9.arg0 = s.x___102930; - s.tmp_10 = game_Hitbox_right__P89739_mk(s); - s.tmp_10.arg0 = s.hbox___102508; - s.callLocIdx = 728; s.pc = 132; return s.tmp_10; + s.tmp_9 = Fx_min__P18137_mk(s); + s.tmp_9.arg0 = s.x___32809; + s.tmp_10 = game_Hitbox_right__P20189_mk(s); + s.tmp_10.arg0 = s.hbox___32387; + s.callLocIdx = 722; s.pc = 132; return s.tmp_10; case 132: r0 = s.retval; s.tmp_9.arg1 = r0; - s.callLocIdx = 729; s.pc = 131; return s.tmp_9; + s.callLocIdx = 723; 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___102511 + 8); + r0 = (s.tileScale___32390 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.x0___102940 = (r0); - s.tmp_0 = game_Hitbox_top__P89738_mk(s); - s.tmp_0.arg0 = s.hbox___102508; - s.callLocIdx = 732; s.pc = 133; return s.tmp_0; + s.x0___32819 = (r0); + s.tmp_0 = game_Hitbox_top__P20188_mk(s); + s.tmp_0.arg0 = s.hbox___32387; + s.callLocIdx = 726; s.pc = 133; return s.tmp_0; case 133: r0 = s.retval; - s.y___102950 = (r0); + s.y___32829 = (r0); case 86: - s.tmp_1 = r0 = s.y___102950; - s.tmp_3 = r0 = s.tileSize___102514; - s.tmp_5 = game_Hitbox_bottom__P89740_mk(s); - s.tmp_5.arg0 = s.hbox___102508; - s.callLocIdx = 733; s.pc = 134; return s.tmp_5; + s.tmp_1 = r0 = s.y___32829; + s.tmp_3 = r0 = s.tileSize___32393; + s.tmp_5 = game_Hitbox_bottom__P20190_mk(s); + s.tmp_5.arg0 = s.hbox___32387; + s.callLocIdx = 727; s.pc = 134; return s.tmp_5; case 134: r0 = s.retval; s.tmp_4 = r0; @@ -31574,29 +29786,29 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 91; continue; } - s.tmp_9 = Fx_min__P87687_mk(s); - s.tmp_9.arg0 = s.y___102950; - s.tmp_10 = game_Hitbox_bottom__P89740_mk(s); - s.tmp_10.arg0 = s.hbox___102508; - s.callLocIdx = 735; s.pc = 136; return s.tmp_10; + s.tmp_9 = Fx_min__P18137_mk(s); + s.tmp_9.arg0 = s.y___32829; + s.tmp_10 = game_Hitbox_bottom__P20190_mk(s); + s.tmp_10.arg0 = s.hbox___32387; + s.callLocIdx = 729; s.pc = 136; return s.tmp_10; case 136: r0 = s.retval; s.tmp_9.arg1 = r0; - s.callLocIdx = 736; s.pc = 135; return s.tmp_9; + s.callLocIdx = 730; s.pc = 135; return s.tmp_9; case 135: r0 = s.retval; s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___102511 + 8); + r0 = (s.tileScale___32390 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.y0___102960 = (r0); - s.tmp_3 = tiles_TileMap_isObstacle__P90277_mk(s); + s.y0___32839 = (r0); + s.tmp_3 = tiles_TileMap_isObstacle__P20727_mk(s); s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.x0___102940; - s.tmp_3.arg2 = s.y0___102960; - s.callLocIdx = 739; s.pc = 137; return s.tmp_3; + s.tmp_3.arg1 = s.x0___32819; + s.tmp_3.arg2 = s.y0___32839; + s.callLocIdx = 733; s.pc = 137; return s.tmp_3; case 137: r0 = s.retval; s.tmp_2 = r0; @@ -31609,7 +29821,7 @@ switch (step) { r0 = s.tmp_0; { step = 88; continue; } case 87: - r0 = s.s___102483.fields["flags"]; + r0 = s.s___32362.fields["flags"]; s.tmp_8 = r0; r0 = (s.tmp_8 & 2048); s.tmp_7 = r0; @@ -31625,39 +29837,39 @@ switch (step) { s.tmp_9 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_9); if (!r0) { step = 89; continue; } - s.tmp_10 = r0 = s.overlappedTiles___102928; - s.tmp_12 = tiles_TileMap_getTile__P90270_mk(s); + s.tmp_10 = r0 = s.overlappedTiles___32807; + s.tmp_12 = tiles_TileMap_getTile__P20720_mk(s); s.tmp_12.arg0 = s.arg2; - s.tmp_12.arg1 = s.x0___102940; - s.tmp_12.arg2 = s.y0___102960; - s.callLocIdx = 740; s.pc = 138; return s.tmp_12; + s.tmp_12.arg1 = s.x0___32819; + s.tmp_12.arg2 = s.y0___32839; + s.callLocIdx = 734; s.pc = 138; return s.tmp_12; case 138: r0 = s.retval; s.tmp_11 = r0; r0 = pxsim_Array__push(s.tmp_10, s.tmp_11); case 89: case 90: - r0 = (s.tileSize___102514 << 8); + r0 = (s.tileSize___32393 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.y___102950); - s.y___102950 = (r0); + r0 = (s.tmp_0 + s.y___32829); + s.y___32829 = (r0); { step = 86; continue; } case 91: - r0 = (s.tileSize___102514 << 8); + r0 = (s.tileSize___32393 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.x___102930); - s.x___102930 = (r0); + r0 = (s.tmp_0 + s.x___32809); + s.x___32809 = (r0); { step = 85; continue; } case 92: - r0 = pxsim_Array__length(s.overlappedTiles___102928); + r0 = pxsim_Array__length(s.overlappedTiles___32807); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 93; continue; } - s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P92316_mk(s); + s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P22761_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.s___102483; - s.tmp_1.arg2 = s.overlappedTiles___102928; - s.callLocIdx = 743; s.pc = 139; return s.tmp_1; + s.tmp_1.arg1 = s.s___32362; + s.tmp_1.arg2 = s.overlappedTiles___32807; + s.callLocIdx = 737; s.pc = 139; return s.tmp_1; case 139: r0 = s.retval; case 93: @@ -31668,12 +29880,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapCollisions__P92315.info = {"start":12929,"length":9654,"line":379,"column":4,"endLine":618,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapCollisions","argumentNames":["this","movingSprite","tm"]} +ArcadePhysicsEngine_tilemapCollisions__P22760.info = {"start":12929,"length":9654,"line":379,"column":4,"endLine":618,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapCollisions","argumentNames":["this","movingSprite","tm"]} -function ArcadePhysicsEngine_tilemapCollisions__P92315_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions__P22760_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P92315, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P22760, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31697,37 +29909,37 @@ function ArcadePhysicsEngine_tilemapCollisions__P92315_mk(s) { tmp_19: undefined, tmp_20: undefined, tmp_21: undefined, - s___102483: undefined, - hbox___102508: undefined, - tileScale___102511: undefined, - tileSize___102514: undefined, - xDiff___102518: undefined, - yDiff___102525: undefined, - right___102541: undefined, - x0___102545: undefined, - collidedTiles___102560: undefined, - y___102562: undefined, - y0___102576: undefined, - obstacle___102592: undefined, - collisionDirection___102619: undefined, - tile___102645: undefined, - unnamed728___U14: undefined, - unnamed729___U15: undefined, - down___102736: undefined, - y0___102740: undefined, - collidedTiles___102755: undefined, - x___102757: undefined, - x0___102767: undefined, - obstacle___102781: undefined, - collisionDirection___102808: undefined, - tile___102834: undefined, - unnamed730___U24: undefined, - unnamed731___U25: undefined, - overlappedTiles___102928: undefined, - x___102930: undefined, - x0___102940: undefined, - y___102950: undefined, - y0___102960: undefined, + s___32362: undefined, + hbox___32387: undefined, + tileScale___32390: undefined, + tileSize___32393: undefined, + xDiff___32397: undefined, + yDiff___32404: undefined, + right___32420: undefined, + x0___32424: undefined, + collidedTiles___32439: undefined, + y___32441: undefined, + y0___32455: undefined, + obstacle___32471: undefined, + collisionDirection___32498: undefined, + tile___32524: undefined, + unnamed172___U14: undefined, + unnamed173___U15: undefined, + down___32615: undefined, + y0___32619: undefined, + collidedTiles___32634: undefined, + x___32636: undefined, + x0___32646: undefined, + obstacle___32660: undefined, + collisionDirection___32687: undefined, + tile___32713: undefined, + unnamed174___U24: undefined, + unnamed175___U25: undefined, + overlappedTiles___32807: undefined, + x___32809: undefined, + x0___32819: undefined, + y___32829: undefined, + y0___32839: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -31737,7 +29949,7 @@ function ArcadePhysicsEngine_tilemapCollisions__P92315_mk(s) { -function ArcadePhysicsEngine_tilemapCollisions_inline__P102600(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P32479(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31759,12 +29971,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapCollisions_inline__P102600.info = {"start":15147,"length":39,"line":441,"column":48,"endLine":441,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} +ArcadePhysicsEngine_tilemapCollisions_inline__P32479.info = {"start":15147,"length":39,"line":441,"column":48,"endLine":441,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} -function ArcadePhysicsEngine_tilemapCollisions_inline__P102600_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P32479_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P102600, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P32479, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31775,7 +29987,7 @@ function ArcadePhysicsEngine_tilemapCollisions_inline__P102600_mk(s) { -function ArcadePhysicsEngine_tilemapCollisions_inline__P102789(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P32668(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31797,12 +30009,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapCollisions_inline__P102789.info = {"start":18668,"length":39,"line":522,"column":48,"endLine":522,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} +ArcadePhysicsEngine_tilemapCollisions_inline__P32668.info = {"start":18668,"length":39,"line":522,"column":48,"endLine":522,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} -function ArcadePhysicsEngine_tilemapCollisions_inline__P102789_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P32668_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P102789, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P32668, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31813,7 +30025,7 @@ function ArcadePhysicsEngine_tilemapCollisions_inline__P102789_mk(s) { -function ArcadePhysicsEngine_tilemapOverlaps__P92316(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P22761(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31823,11 +30035,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.alreadyHandled___103007 = undefined; - s.tile___103010 = undefined; - s.unnamed732___U2 = undefined; - s.unnamed733___U3 = undefined; - s.tileOverlapHandlers___103031 = undefined; + s.alreadyHandled___32886 = undefined; + s.tile___32889 = undefined; + s.unnamed176___U2 = undefined; + s.unnamed177___U3 = undefined; + s.tileOverlapHandlers___32910 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -31835,27 +30047,27 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C90048_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20498_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.alreadyHandled___103007 = (r0); - s.tile___103010 = (undefined); - s.unnamed732___U2 = (s.arg2); - s.unnamed733___U3 = (0); + s.alreadyHandled___32886 = (r0); + s.tile___32889 = (undefined); + s.unnamed176___U2 = (s.arg2); + s.unnamed177___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed733___U3; - r0 = pxsim_Array__length(s.unnamed732___U2); + s.tmp_0 = r0 = s.unnamed177___U3; + r0 = pxsim_Array__length(s.unnamed176___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 7; continue; } - r0 = pxsim_Array__getAt(s.unnamed732___U2, s.unnamed733___U3); - s.tile___103010 = (r0); - r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapOverlaps_inline__P103014); + r0 = pxsim_Array__getAt(s.unnamed176___U2, s.unnamed177___U3); + s.tile___32889 = (r0); + r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapOverlaps_inline__P32893); s.tmp_2 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___103010); - s.tmp_4 = helpers_arraySome__P87628_mk(s); - s.tmp_4.arg0 = s.alreadyHandled___103007; + r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___32889); + s.tmp_4 = helpers_arraySome__P18078_mk(s); + s.tmp_4.arg0 = s.alreadyHandled___32886; s.tmp_4.arg1 = s.tmp_2; - s.callLocIdx = 748; s.pc = 8; return s.tmp_4; + s.callLocIdx = 742; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; s.tmp_3 = r0; @@ -31864,64 +30076,64 @@ switch (step) { { step = 6; continue; } case 2: case 3: - r0 = pxsim_Array__push(s.alreadyHandled___103007, s.tile___103010); - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 749; s.pc = 9; return s.tmp_0; + r0 = pxsim_Array__push(s.alreadyHandled___32886, s.tile___32889); + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 743; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; r0 = r0.fields["tileOverlapHandlers"]; - s.tileOverlapHandlers___103031 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___103031); + s.tileOverlapHandlers___32910 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___32910); if (!r0) { step = 4; continue; } - r0 = pxsim_pxtcore_mkAction(2, forEach_inline__P103039); + r0 = pxsim_pxtcore_mkAction(2, forEach_inline__P32918); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___103010); - r0 = pxsim_pxtcore_mkAction(2, ArcadePhysicsEngine_tilemapOverlaps_inline__P103055); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___32889); + r0 = pxsim_pxtcore_mkAction(2, ArcadePhysicsEngine_tilemapOverlaps_inline__P32934); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___103010); - s.tmp_2 = helpers_arrayForEach__P87630_mk(s); - s.tmp_3 = helpers_arrayFilter__P87631_mk(s); - s.tmp_3.arg0 = s.tileOverlapHandlers___103031; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___32889); + s.tmp_2 = helpers_arrayForEach__P18080_mk(s); + s.tmp_3 = helpers_arrayFilter__P18081_mk(s); + s.tmp_3.arg0 = s.tileOverlapHandlers___32910; s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 752; s.pc = 11; return s.tmp_3; + s.callLocIdx = 746; 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 = 754; s.pc = 10; return s.tmp_2; + s.callLocIdx = 748; s.pc = 10; return s.tmp_2; case 10: r0 = s.retval; case 4: case 5: case 6: - r0 = (s.unnamed733___U3 + 1); - s.unnamed733___U3 = (r0); + r0 = (s.unnamed177___U3 + 1); + s.unnamed177___U3 = (r0); { step = 1; continue; } case 7: - s.unnamed732___U2 = (undefined); + s.unnamed176___U2 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapOverlaps__P92316.info = {"start":22860,"length":707,"line":626,"column":4,"endLine":642,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapOverlaps","argumentNames":["this","sprite","overlappedTiles"]} +ArcadePhysicsEngine_tilemapOverlaps__P22761.info = {"start":22860,"length":707,"line":626,"column":4,"endLine":642,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapOverlaps","argumentNames":["this","sprite","overlappedTiles"]} -function ArcadePhysicsEngine_tilemapOverlaps__P92316_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P22761_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P92316, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P22761, depth: s.depth + 1, pc: 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___103007: undefined, - tile___103010: undefined, - unnamed732___U2: undefined, - unnamed733___U3: undefined, - tileOverlapHandlers___103031: undefined, + alreadyHandled___32886: undefined, + tile___32889: undefined, + unnamed176___U2: undefined, + unnamed177___U3: undefined, + tileOverlapHandlers___32910: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -31931,7 +30143,7 @@ function ArcadePhysicsEngine_tilemapOverlaps__P92316_mk(s) { -function ArcadePhysicsEngine_tilemapOverlaps_inline__P103014(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P32893(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31968,12 +30180,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapOverlaps_inline__P103014.info = {"start":23075,"length":51,"line":630,"column":36,"endLine":630,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["l"]} +ArcadePhysicsEngine_tilemapOverlaps_inline__P32893.info = {"start":23075,"length":51,"line":630,"column":36,"endLine":630,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["l"]} -function ArcadePhysicsEngine_tilemapOverlaps_inline__P103014_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P32893_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P103014, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P32893, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31988,7 +30200,7 @@ function ArcadePhysicsEngine_tilemapOverlaps_inline__P103014_mk(s) { -function forEach_inline__P103039(s) { +function forEach_inline__P32918(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32015,9 +30227,9 @@ switch (step) { case 1: r0 = s.arg0.fields["tileKind"]; s.tmp_3 = r0; - s.tmp_5 = tiles_getTileImage__P90289_mk(s); + s.tmp_5 = tiles_getTileImage__P20739_mk(s); s.tmp_5.arg0 = s.caps[1]; - s.callLocIdx = 751; s.pc = 3; return s.tmp_5; + s.callLocIdx = 745; s.pc = 3; return s.tmp_5; case 3: r0 = s.retval; s.tmp_4 = r0; @@ -32029,12 +30241,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -forEach_inline__P103039.info = {"start":23395,"length":81,"line":638,"column":28,"endLine":638,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +forEach_inline__P32918.info = {"start":23395,"length":81,"line":638,"column":28,"endLine":638,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function forEach_inline__P103039_mk(s) { +function forEach_inline__P32918_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P103039, depth: s.depth + 1, + parent: s, fn: forEach_inline__P32918, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32050,7 +30262,7 @@ function forEach_inline__P103039_mk(s) { -function ArcadePhysicsEngine_tilemapOverlaps_inline__P103055(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P32934(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32070,12 +30282,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 = 753; s.pc = 1; return s.tmp_0; + s.callLocIdx = 747; 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 = 753; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 753; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 753; 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 = 747; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 747; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 747; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -32083,12 +30295,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapOverlaps_inline__P103055.info = {"start":23507,"length":28,"line":639,"column":29,"endLine":639,"endColumn":57,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +ArcadePhysicsEngine_tilemapOverlaps_inline__P32934.info = {"start":23507,"length":28,"line":639,"column":29,"endLine":639,"endColumn":57,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function ArcadePhysicsEngine_tilemapOverlaps_inline__P103055_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P32934_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P103055, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P32934, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -32098,7 +30310,7 @@ function ArcadePhysicsEngine_tilemapOverlaps_inline__P103055_mk(s) { -function tiles_getTileImage__P90289(s) { +function tiles_getTileImage__P20739(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32108,16 +30320,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___103063 = undefined; + s.scene___32942 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 882; s.pc = 6; return s.tmp_0; + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 876; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.scene___103063 = (r0); + s.scene___32942 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -32127,7 +30339,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___103063.fields["tileMap"]; + r0 = s.scene___32942.fields["tileMap"]; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; @@ -32137,32 +30349,32 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 3; continue; } - r0 = pxsim.image.ofBuffer(_hex103073); + r0 = pxsim.image.ofBuffer(_hex32952); { step = 5; continue; } case 3: case 4: - s.tmp_5 = tiles_TileMap_getTileImage__P90280_mk(s); - r0 = s.scene___103063.fields["tileMap"]; + s.tmp_5 = tiles_TileMap_getTileImage__P20730_mk(s); + r0 = s.scene___32942.fields["tileMap"]; s.tmp_5.arg0 = r0; - s.tmp_6 = tiles_Location_tileSet__P90225_mk(s); + s.tmp_6 = tiles_Location_tileSet__P20675_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 883; s.pc = 8; return s.tmp_6; + s.callLocIdx = 877; s.pc = 8; return s.tmp_6; case 8: r0 = s.retval; s.tmp_5.arg1 = r0; - s.callLocIdx = 884; s.pc = 7; return s.tmp_5; + s.callLocIdx = 878; s.pc = 7; return s.tmp_5; case 7: r0 = s.retval; case 5: return leave(s, r0) default: oops() } } } -tiles_getTileImage__P90289.info = {"start":21871,"length":207,"line":673,"column":4,"endLine":677,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["loc"]} +tiles_getTileImage__P20739.info = {"start":21871,"length":207,"line":673,"column":4,"endLine":677,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["loc"]} -function tiles_getTileImage__P90289_mk(s) { +function tiles_getTileImage__P20739_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_getTileImage__P90289, depth: s.depth + 1, + parent: s, fn: tiles_getTileImage__P20739, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32171,16 +30383,16 @@ function tiles_getTileImage__P90289_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - scene___103063: undefined, + scene___32942: undefined, arg0: undefined, } } -const _hex103073 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") +const _hex32952 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") -function tiles_TileMap_getTileImage__P90280(s) { +function tiles_TileMap_getTileImage__P20730(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32196,23 +30408,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C90256_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMapData_getTileImage__P90247_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C20706_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMapData_getTileImage__P20697_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 881; s.pc = 1; return s.tmp_0; + s.callLocIdx = 875; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -tiles_TileMap_getTileImage__P90280.info = {"start":17510,"length":96,"line":553,"column":8,"endLine":555,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} +tiles_TileMap_getTileImage__P20730.info = {"start":17510,"length":96,"line":553,"column":8,"endLine":555,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} -function tiles_TileMap_getTileImage__P90280_mk(s) { +function tiles_TileMap_getTileImage__P20730_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTileImage__P90280, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTileImage__P20730, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -32223,7 +30435,7 @@ function tiles_TileMap_getTileImage__P90280_mk(s) { -function tiles_TileMapData_getTileImage__P90247(s) { +function tiles_TileMapData_getTileImage__P20697(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32233,25 +30445,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.size___103128 = undefined; - s.cachedImage___103132 = undefined; - s.originalImage___103139 = undefined; + s.size___33007 = undefined; + s.cachedImage___33011 = undefined; + s.originalImage___33018 = 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__C90238_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C20688_VT)) failedCast(r0); r0 = s.arg0.fields["_scale"]; s.tmp_0 = r0; r0 = (1 << s.tmp_0); - s.size___103128 = (r0); + s.size___33007 = (r0); r0 = s.arg0.fields["cachedTileView"]; s.tmp_0 = r0; r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); - s.cachedImage___103132 = (r0); - r0 = pxsim_numops_toBoolDecr(s.cachedImage___103132); + s.cachedImage___33011 = (r0); + r0 = pxsim_numops_toBoolDecr(s.cachedImage___33011); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -32260,58 +30472,58 @@ switch (step) { r0 = s.arg0.fields["tileset"]; s.tmp_2 = r0; r0 = pxsim_Array__getAt(s.tmp_2, s.arg1); - s.originalImage___103139 = (r0); - r0 = pxsim_numops_toBoolDecr(s.originalImage___103139); + s.originalImage___33018 = (r0); + r0 = pxsim_numops_toBoolDecr(s.originalImage___33018); if (!r0) { step = 5; continue; } - r0 = pxsim_ImageMethods.width(s.originalImage___103139); + r0 = pxsim_ImageMethods.width(s.originalImage___33018); s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.size___103128); + r0 = (s.tmp_1 <= s.size___33007); 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___103139); + r0 = pxsim_ImageMethods.height(s.originalImage___33018); s.tmp_2 = r0; - r0 = (s.tmp_2 <= s.size___103128); + r0 = (s.tmp_2 <= s.size___33007); 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___103132 = (s.originalImage___103139); + s.cachedImage___33011 = (s.originalImage___33018); { step = 4; continue; } case 3: - r0 = pxsim.image.create(s.size___103128, s.size___103128); - s.cachedImage___103132 = (r0); - r0 = pxsim_ImageMethods.drawImage(s.cachedImage___103132, s.originalImage___103139, 0, 0); + r0 = pxsim.image.create(s.size___33007, s.size___33007); + s.cachedImage___33011 = (r0); + r0 = pxsim_ImageMethods.drawImage(s.cachedImage___33011, s.originalImage___33018, 0, 0); case 4: r0 = s.arg0.fields["cachedTileView"]; s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___103132); + r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___33011); case 5: case 6: case 7: case 8: - r0 = s.cachedImage___103132; + r0 = s.cachedImage___33011; return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTileImage__P90247.info = {"start":7354,"length":717,"line":251,"column":8,"endLine":268,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} +tiles_TileMapData_getTileImage__P20697.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 tiles_TileMapData_getTileImage__P90247_mk(s) { +function tiles_TileMapData_getTileImage__P20697_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTileImage__P90247, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTileImage__P20697, depth: s.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___103128: undefined, - cachedImage___103132: undefined, - originalImage___103139: undefined, + size___33007: undefined, + cachedImage___33011: undefined, + originalImage___33018: undefined, arg0: undefined, arg1: undefined, } } @@ -32320,7 +30532,7 @@ function tiles_TileMapData_getTileImage__P90247_mk(s) { -function tiles_TileMapData_scale__P90242(s) { +function tiles_TileMapData_scale__P20692(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32335,18 +30547,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C90238_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C20688_VT)) failedCast(r0); r0 = s.arg0.fields["_scale"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMapData_scale__P90242.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__P90242.isGetter = true; +tiles_TileMapData_scale__P20692.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__P20692.isGetter = true; -function tiles_TileMapData_scale__P90242_mk(s) { +function tiles_TileMapData_scale__P20692_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_scale__P90242, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P20692, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -32355,7 +30567,7 @@ function tiles_TileMapData_scale__P90242_mk(s) { -function tiles_Location_tileSet__P90225(s) { +function tiles_Location_tileSet__P20675(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32370,11 +30582,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C90214_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMap_getTileIndex__P90271_mk(s); - s.tmp_1 = tiles_Location_tileMap__P90216_mk(s); + if (!checkSubtype(r0, tiles_Location__C20664_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMap_getTileIndex__P20721_mk(s); + s.tmp_1 = tiles_Location_tileMap__P20666_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 812; s.pc = 2; return s.tmp_1; + s.callLocIdx = 806; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg0 = r0; @@ -32382,19 +30594,19 @@ switch (step) { s.tmp_0.arg1 = r0; r0 = s.arg0.fields["_row"]; s.tmp_0.arg2 = r0; - s.callLocIdx = 813; s.pc = 1; return s.tmp_0; + s.callLocIdx = 807; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_tileSet__P90225.info = {"start":2323,"length":101,"line":86,"column":8,"endLine":88,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"tileSet","argumentNames":["this"]} -tiles_Location_tileSet__P90225.isGetter = true; +tiles_Location_tileSet__P20675.info = {"start":2323,"length":101,"line":86,"column":8,"endLine":88,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"tileSet","argumentNames":["this"]} +tiles_Location_tileSet__P20675.isGetter = true; -function tiles_Location_tileSet__P90225_mk(s) { +function tiles_Location_tileSet__P20675_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_tileSet__P90225, depth: s.depth + 1, + parent: s, fn: tiles_Location_tileSet__P20675, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32405,7 +30617,7 @@ function tiles_Location_tileSet__P90225_mk(s) { -function tiles_TileMap_getTileIndex__P90271(s) { +function tiles_TileMap_getTileIndex__P20721(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32422,24 +30634,24 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C90256_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMapData_getTile__P90244_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C20706_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMapData_getTile__P20694_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 836; s.pc = 1; return s.tmp_0; + s.callLocIdx = 830; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -tiles_TileMap_getTileIndex__P90271.info = {"start":11191,"length":105,"line":384,"column":8,"endLine":386,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileIndex","argumentNames":["this","col","row"]} +tiles_TileMap_getTileIndex__P20721.info = {"start":11191,"length":105,"line":384,"column":8,"endLine":386,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileIndex","argumentNames":["this","col","row"]} -function tiles_TileMap_getTileIndex__P90271_mk(s) { +function tiles_TileMap_getTileIndex__P20721_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTileIndex__P90271, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTileIndex__P20721, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -32451,7 +30663,7 @@ function tiles_TileMap_getTileIndex__P90271_mk(s) { -function tiles_TileMapData_getTile__P90244(s) { +function tiles_TileMapData_getTile__P20694(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32468,12 +30680,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C90238_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P90250_mk(s); + if (!checkSubtype(r0, tiles_TileMapData__C20688_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P20700_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; - s.callLocIdx = 815; s.pc = 4; return s.tmp_1; + s.callLocIdx = 809; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; s.tmp_0 = r0; @@ -32502,12 +30714,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTile__P90244.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"]} +tiles_TileMapData_getTile__P20694.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 tiles_TileMapData_getTile__P90244_mk(s) { +function tiles_TileMapData_getTile__P20694_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTile__P90244, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTile__P20694, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32527,7 +30739,7 @@ function tiles_TileMapData_getTile__P90244_mk(s) { -function tiles_TileMapData_isOutsideMap__P90250(s) { +function tiles_TileMapData_isOutsideMap__P20700(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32544,7 +30756,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C90238_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C20688_VT)) failedCast(r0); r0 = (s.arg1 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -32584,12 +30796,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_isOutsideMap__P90250.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"]} +tiles_TileMapData_isOutsideMap__P20700.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 tiles_TileMapData_isOutsideMap__P90250_mk(s) { +function tiles_TileMapData_isOutsideMap__P20700_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_isOutsideMap__P90250, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_isOutsideMap__P20700, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32608,7 +30820,7 @@ function tiles_TileMapData_isOutsideMap__P90250_mk(s) { -function tiles_Location_tileMap__P90216(s) { +function tiles_Location_tileMap__P20666(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32623,22 +30835,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C90214_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 803; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, tiles_Location__C20664_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 797; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = r0.fields["tileMap"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_tileMap__P90216.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__P90216.isGetter = true; +tiles_Location_tileMap__P20666.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__P20666.isGetter = true; -function tiles_Location_tileMap__P90216_mk(s) { +function tiles_Location_tileMap__P20666_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_tileMap__P90216, depth: s.depth + 1, + parent: s, fn: tiles_Location_tileMap__P20666, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -32648,7 +30860,7 @@ function tiles_Location_tileMap__P90216_mk(s) { -function tiles_Location_row__P90218(s) { +function tiles_Location_row__P20668(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32663,18 +30875,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C90214_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C20664_VT)) failedCast(r0); r0 = s.arg0.fields["_row"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_row__P90218.info = {"start":877,"length":51,"line":38,"column":8,"endLine":40,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"row","argumentNames":["this"]} -tiles_Location_row__P90218.isGetter = true; +tiles_Location_row__P20668.info = {"start":877,"length":51,"line":38,"column":8,"endLine":40,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"row","argumentNames":["this"]} +tiles_Location_row__P20668.isGetter = true; -function tiles_Location_row__P90218_mk(s) { +function tiles_Location_row__P20668_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_row__P90218, depth: s.depth + 1, + parent: s, fn: tiles_Location_row__P20668, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -32683,7 +30895,7 @@ function tiles_Location_row__P90218_mk(s) { -function tiles_Location_column__P90217(s) { +function tiles_Location_column__P20667(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32698,18 +30910,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C90214_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C20664_VT)) failedCast(r0); r0 = s.arg0.fields["_col"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_column__P90217.info = {"start":695,"length":54,"line":31,"column":8,"endLine":33,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"column","argumentNames":["this"]} -tiles_Location_column__P90217.isGetter = true; +tiles_Location_column__P20667.info = {"start":695,"length":54,"line":31,"column":8,"endLine":33,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"column","argumentNames":["this"]} +tiles_Location_column__P20667.isGetter = true; -function tiles_Location_column__P90217_mk(s) { +function tiles_Location_column__P20667_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_column__P90217, depth: s.depth + 1, + parent: s, fn: tiles_Location_column__P20667, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -32718,7 +30930,7 @@ function tiles_Location_column__P90217_mk(s) { -function tiles_TileMap_getObstacle__P90278(s) { +function tiles_TileMap_getObstacle__P20728(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32728,8 +30940,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.index___103302 = undefined; - s.tile___103314 = undefined; + s.index___33181 = undefined; + s.tile___33193 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -32737,13 +30949,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C90256_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P90250_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C20706_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P20700_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; - s.callLocIdx = 860; s.pc = 3; return s.tmp_1; + s.callLocIdx = 854; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0 = r0; @@ -32752,31 +30964,31 @@ switch (step) { r0 = 0; { step = 2; continue; } case 1: - s.tmp_2 = tiles_TileMapData_getTile__P90244_mk(s); + s.tmp_2 = tiles_TileMapData_getTile__P20694_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = s.arg1; s.tmp_2.arg2 = s.arg2; - s.callLocIdx = 861; s.pc = 4; return s.tmp_2; + s.callLocIdx = 855; 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___103302 = (s.tmp_3); - s.tmp_0 = tiles_TileMapData_getTileImage__P90247_mk(s); + s.index___33181 = (s.tmp_3); + s.tmp_0 = tiles_TileMapData_getTileImage__P20697_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___103302; - s.callLocIdx = 862; s.pc = 5; return s.tmp_0; + s.tmp_0.arg1 = s.index___33181; + s.callLocIdx = 856; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tile___103314 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C90019_VT); + s.tile___33193 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C20469_VT); s.tmp_0 = r0; - s.tmp_1 = sprites_StaticObstacle_constructor__P90025_mk(s); + s.tmp_1 = sprites_StaticObstacle_constructor__P20475_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.tile___103314; + s.tmp_1.arg1 = s.tile___33193; s.tmp_2 = r0 = s.arg2; r0 = s.arg0.fields["_scale"]; s.tmp_3 = r0; @@ -32789,20 +31001,20 @@ switch (step) { s.tmp_1.arg3 = r0; r0 = s.arg0.fields["_layer"]; s.tmp_1.arg4 = r0; - s.tmp_1.arg5 = s.index___103302; - s.callLocIdx = 866; s.pc = 6; return s.tmp_1; + s.tmp_1.arg5 = s.index___33181; + s.callLocIdx = 860; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -tiles_TileMap_getObstacle__P90278.info = {"start":16453,"length":410,"line":522,"column":8,"endLine":532,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getObstacle","argumentNames":["this","col","row"]} +tiles_TileMap_getObstacle__P20728.info = {"start":16453,"length":410,"line":522,"column":8,"endLine":532,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getObstacle","argumentNames":["this","col","row"]} -function tiles_TileMap_getObstacle__P90278_mk(s) { +function tiles_TileMap_getObstacle__P20728_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getObstacle__P90278, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getObstacle__P20728, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32810,8 +31022,8 @@ function tiles_TileMap_getObstacle__P90278_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - index___103302: undefined, - tile___103314: undefined, + index___33181: undefined, + tile___33193: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -32821,7 +31033,7 @@ function tiles_TileMap_getObstacle__P90278_mk(s) { -function tiles_TileMap_layer__P90266(s) { +function tiles_TileMap_layer__P20716(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32836,18 +31048,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C90256_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C20706_VT)) failedCast(r0); r0 = s.arg0.fields["_layer"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_layer__P90266.info = {"start":9967,"length":63,"line":341,"column":8,"endLine":343,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"layer","argumentNames":["this"]} -tiles_TileMap_layer__P90266.isGetter = true; +tiles_TileMap_layer__P20716.info = {"start":9967,"length":63,"line":341,"column":8,"endLine":343,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"layer","argumentNames":["this"]} +tiles_TileMap_layer__P20716.isGetter = true; -function tiles_TileMap_layer__P90266_mk(s) { +function tiles_TileMap_layer__P20716_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_layer__P90266, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_layer__P20716, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -32856,7 +31068,7 @@ function tiles_TileMap_layer__P90266_mk(s) { -function sprites_StaticObstacle_constructor__P90025(s) { +function sprites_StaticObstacle_constructor__P20475(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32876,7 +31088,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C90019_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C20469_VT)) failedCast(r0); r0 = (s.arg0).fields["image"] = (s.arg1); r0 = (s.arg0).fields["layer"] = (s.arg4); r0 = (s.arg0).fields["top"] = (s.arg2); @@ -32886,12 +31098,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_StaticObstacle_constructor__P90025.info = {"start":563,"length":261,"line":28,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"inline","argumentNames":["this","image","top","left","layer","tileIndex"]} +sprites_StaticObstacle_constructor__P20475.info = {"start":563,"length":261,"line":28,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"inline","argumentNames":["this","image","top","left","layer","tileIndex"]} -function sprites_StaticObstacle_constructor__P90025_mk(s) { +function sprites_StaticObstacle_constructor__P20475_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_constructor__P90025, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_constructor__P20475, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -32905,7 +31117,7 @@ function sprites_StaticObstacle_constructor__P90025_mk(s) { -function tiles_TileMap_isObstacle__P90277(s) { +function tiles_TileMap_isObstacle__P20727(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32922,7 +31134,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C90256_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C20706_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); @@ -32943,12 +31155,12 @@ switch (step) { { step = 5; continue; } case 1: case 2: - s.tmp_8 = tiles_TileMapData_isOutsideMap__P90250_mk(s); + s.tmp_8 = tiles_TileMapData_isOutsideMap__P20700_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_8.arg0 = r0; s.tmp_8.arg1 = s.arg1; s.tmp_8.arg2 = s.arg2; - s.callLocIdx = 858; s.pc = 6; return s.tmp_8; + s.callLocIdx = 852; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; s.tmp_7 = r0; @@ -32969,12 +31181,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_isObstacle__P90277.info = {"start":16232,"length":211,"line":515,"column":8,"endLine":520,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isObstacle","argumentNames":["this","col","row"]} +tiles_TileMap_isObstacle__P20727.info = {"start":16232,"length":211,"line":515,"column":8,"endLine":520,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isObstacle","argumentNames":["this","col","row"]} -function tiles_TileMap_isObstacle__P90277_mk(s) { +function tiles_TileMap_isObstacle__P20727_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isObstacle__P90277, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isObstacle__P20727, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32997,7 +31209,7 @@ function tiles_TileMap_isObstacle__P90277_mk(s) { -function tiles_TileMapData_isWall__P90249(s) { +function tiles_TileMapData_isWall__P20699(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33014,7 +31226,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C90238_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C20688_VT)) failedCast(r0); r0 = s.arg0.fields["layers"]; s.tmp_1 = r0; r0 = pxsim_ImageMethods.getPixel(s.tmp_1, s.arg1, s.arg2); @@ -33023,12 +31235,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_isWall__P90249.info = {"start":8218,"length":107,"line":274,"column":8,"endLine":276,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isWall","argumentNames":["this","col","row"]} +tiles_TileMapData_isWall__P20699.info = {"start":8218,"length":107,"line":274,"column":8,"endLine":276,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isWall","argumentNames":["this","col","row"]} -function tiles_TileMapData_isWall__P90249_mk(s) { +function tiles_TileMapData_isWall__P20699_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_isWall__P90249, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_isWall__P20699, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33041,7 +31253,7 @@ function tiles_TileMapData_isWall__P90249_mk(s) { -function tiles_TileMap_getTile__P90270(s) { +function tiles_TileMap_getTile__P20720(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33058,27 +31270,27 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C90256_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C90214_VT); + if (!checkSubtype(r0, tiles_TileMap__C20706_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C20664_VT); s.tmp_0 = r0; - s.tmp_1 = tiles_Location_constructor__P90215_mk(s); + s.tmp_1 = tiles_Location_constructor__P20665_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 = 834; s.pc = 1; return s.tmp_1; + s.callLocIdx = 828; 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__P90270.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"]} +tiles_TileMap_getTile__P20720.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 tiles_TileMap_getTile__P90270_mk(s) { +function tiles_TileMap_getTile__P20720_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTile__P90270, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTile__P20720, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33091,7 +31303,7 @@ function tiles_TileMap_getTile__P90270_mk(s) { -function tiles_Location_constructor__P90215(s) { +function tiles_Location_constructor__P20665(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33109,19 +31321,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C90214_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C20664_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() } } } -tiles_Location_constructor__P90215.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"]} +tiles_Location_constructor__P20665.info = {"start":360,"length":121,"line":19,"column":8,"endLine":22,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","col","row","map"]} -function tiles_Location_constructor__P90215_mk(s) { +function tiles_Location_constructor__P20665_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_constructor__P90215, depth: s.depth + 1, + parent: s, fn: tiles_Location_constructor__P20665, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -33133,7 +31345,7 @@ function tiles_Location_constructor__P90215_mk(s) { -function Sprite_registerObstacle__P89947(s) { +function Sprite_registerObstacle__P20397(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33143,10 +31355,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.collisionHandlers___103215 = undefined; - s.wallCollisionHandlers___103222 = undefined; - s.wallHandlersToRun___103247 = undefined; - s.asTileLocation___103260 = undefined; + s.collisionHandlers___33094 = undefined; + s.wallCollisionHandlers___33101 = undefined; + s.wallHandlersToRun___33126 = undefined; + s.asTileLocation___33139 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -33155,12 +31367,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); r0 = s.arg0.fields["_obstacles"]; s.tmp_0 = r0; r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.arg2); - s.tmp_1 = game_currentScene__P90520_mk(s); - s.callLocIdx = 420; s.pc = 9; return s.tmp_1; + s.tmp_1 = game_currentScene__P20970_mk(s); + s.callLocIdx = 414; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; r0 = r0.fields["collisionHandlers"]; @@ -33173,42 +31385,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 = 421; s.pc = 10; return s.tmp_3; } + else { s.callLocIdx = 415; 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___103215 = (r0); - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 422; s.pc = 11; return s.tmp_0; + s.collisionHandlers___33094 = (r0); + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 416; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; r0 = r0.fields["wallCollisionHandlers"]; - s.wallCollisionHandlers___103222 = (r0); - r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___103215); + s.wallCollisionHandlers___33101 = (r0); + r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___33094); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P103230); + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P33109); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, Sprite_registerObstacle_inline__P103236); + r0 = pxsim_pxtcore_mkAction(1, Sprite_registerObstacle_inline__P33115); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P87630_mk(s); - s.tmp_3 = helpers_arrayFilter__P87631_mk(s); - s.tmp_3.arg0 = s.collisionHandlers___103215; + s.tmp_2 = helpers_arrayForEach__P18080_mk(s); + s.tmp_3 = helpers_arrayFilter__P18081_mk(s); + s.tmp_3.arg0 = s.collisionHandlers___33094; s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 424; s.pc = 13; return s.tmp_3; + s.callLocIdx = 418; 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 = 426; s.pc = 12; return s.tmp_2; + s.callLocIdx = 420; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; case 1: case 2: - r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___103222); + r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___33101); if (!r0) { step = 7; continue; } s.tmp_0 = r0 = s.arg3; r0 = pxsim_numops_toBool(s.tmp_0); @@ -33216,8 +31428,8 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - s.tmp_1 = game_currentScene__P90520_mk(s); - s.callLocIdx = 427; s.pc = 14; return s.tmp_1; + s.tmp_1 = game_currentScene__P20970_mk(s); + s.callLocIdx = 421; s.pc = 14; return s.tmp_1; case 14: r0 = s.retval; r0 = r0.fields["tileMap"]; @@ -33225,21 +31437,21 @@ switch (step) { // jmp value (already in r0) s.tmp_2 = r0; s.arg3 = (s.tmp_2); - r0 = pxsim_pxtcore_mkAction(1, wallHandlersToRun_inline__P103249); + r0 = pxsim_pxtcore_mkAction(1, wallHandlersToRun_inline__P33128); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayFilter__P87631_mk(s); - s.tmp_1.arg0 = s.wallCollisionHandlers___103222; + s.tmp_1 = helpers_arrayFilter__P18081_mk(s); + s.tmp_1.arg0 = s.wallCollisionHandlers___33101; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 429; s.pc = 15; return s.tmp_1; + s.callLocIdx = 423; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; - s.wallHandlersToRun___103247 = (r0); - r0 = pxsim_Array__length(s.wallHandlersToRun___103247); + s.wallHandlersToRun___33126 = (r0); + r0 = pxsim_Array__length(s.wallHandlersToRun___33126); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_1 = tiles_TileMap_getTile__P90270_mk(s); + s.tmp_1 = tiles_TileMap_getTile__P20720_mk(s); s.tmp_1.arg0 = s.arg3; s.tmp_3 = if_left_1_mk(s); s.tmp_3.arg0 = s.arg2; @@ -33249,7 +31461,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 = 430; s.pc = 17; return s.tmp_3; } + else { s.callLocIdx = 424; s.pc = 17; return s.tmp_3; } } case 17: r0 = s.retval; @@ -33266,7 +31478,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 = 432; s.pc = 18; return s.tmp_6; } + else { s.callLocIdx = 426; s.pc = 18; return s.tmp_6; } } case 18: r0 = s.retval; @@ -33275,18 +31487,18 @@ switch (step) { s.tmp_7 = r0; r0 = (s.tmp_5 >> s.tmp_7); s.tmp_1.arg2 = r0; - s.callLocIdx = 434; s.pc = 16; return s.tmp_1; + s.callLocIdx = 428; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - s.asTileLocation___103260 = (r0); - r0 = pxsim_pxtcore_mkAction(2, Sprite_registerObstacle_inline__P103276); + s.asTileLocation___33139 = (r0); + r0 = pxsim_pxtcore_mkAction(2, Sprite_registerObstacle_inline__P33155); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___103260); - s.tmp_1 = helpers_arrayForEach__P87630_mk(s); - s.tmp_1.arg0 = s.wallHandlersToRun___103247; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___33139); + s.tmp_1 = helpers_arrayForEach__P18080_mk(s); + s.tmp_1.arg0 = s.wallHandlersToRun___33126; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 436; s.pc = 19; return s.tmp_1; + s.callLocIdx = 430; s.pc = 19; return s.tmp_1; case 19: r0 = s.retval; case 5: @@ -33297,12 +31509,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_registerObstacle__P89947.info = {"start":24992,"length":965,"line":817,"column":4,"endLine":837,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]} +Sprite_registerObstacle__P20397.info = {"start":24992,"length":965,"line":817,"column":4,"endLine":837,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]} -function Sprite_registerObstacle__P89947_mk(s) { +function Sprite_registerObstacle__P20397_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_registerObstacle__P89947, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle__P20397, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33312,10 +31524,10 @@ function Sprite_registerObstacle__P89947_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - collisionHandlers___103215: undefined, - wallCollisionHandlers___103222: undefined, - wallHandlersToRun___103247: undefined, - asTileLocation___103260: undefined, + collisionHandlers___33094: undefined, + wallCollisionHandlers___33101: undefined, + wallHandlersToRun___33126: undefined, + asTileLocation___33139: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -33326,7 +31538,7 @@ function Sprite_registerObstacle__P89947_mk(s) { -function forEach_inline__P103230(s) { +function forEach_inline__P33109(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33348,12 +31560,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -forEach_inline__P103230.info = {"start":25390,"length":26,"line":824,"column":24,"endLine":824,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +forEach_inline__P33109.info = {"start":25390,"length":26,"line":824,"column":24,"endLine":824,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function forEach_inline__P103230_mk(s) { +function forEach_inline__P33109_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P103230, depth: s.depth + 1, + parent: s, fn: forEach_inline__P33109, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33364,7 +31576,7 @@ function forEach_inline__P103230_mk(s) { -function Sprite_registerObstacle_inline__P103236(s) { +function Sprite_registerObstacle_inline__P33115(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33383,12 +31595,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 = 425; s.pc = 1; return s.tmp_0; + s.callLocIdx = 419; 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 = 425; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 425; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 425; 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 = 419; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 419; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 419; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -33396,12 +31608,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_registerObstacle_inline__P103236.info = {"start":25443,"length":20,"line":825,"column":25,"endLine":825,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +Sprite_registerObstacle_inline__P33115.info = {"start":25443,"length":20,"line":825,"column":25,"endLine":825,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function Sprite_registerObstacle_inline__P103236_mk(s) { +function Sprite_registerObstacle_inline__P33115_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_registerObstacle_inline__P103236, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle_inline__P33115, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -33411,7 +31623,7 @@ function Sprite_registerObstacle_inline__P103236_mk(s) { -function wallHandlersToRun_inline__P103249(s) { +function wallHandlersToRun_inline__P33128(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33433,12 +31645,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -wallHandlersToRun_inline__P103249.info = {"start":25649,"length":32,"line":830,"column":24,"endLine":830,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +wallHandlersToRun_inline__P33128.info = {"start":25649,"length":32,"line":830,"column":24,"endLine":830,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function wallHandlersToRun_inline__P103249_mk(s) { +function wallHandlersToRun_inline__P33128_mk(s) { checkStack(s.depth); return { - parent: s, fn: wallHandlersToRun_inline__P103249, depth: s.depth + 1, + parent: s, fn: wallHandlersToRun_inline__P33128, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33449,7 +31661,7 @@ function wallHandlersToRun_inline__P103249_mk(s) { -function Sprite_registerObstacle_inline__P103276(s) { +function Sprite_registerObstacle_inline__P33155(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33469,12 +31681,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 = 435; s.pc = 1; return s.tmp_0; + s.callLocIdx = 429; 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 = 435; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 435; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 435; 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 = 429; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 429; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 429; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -33482,12 +31694,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_registerObstacle_inline__P103276.info = {"start":25889,"length":36,"line":834,"column":29,"endLine":834,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +Sprite_registerObstacle_inline__P33155.info = {"start":25889,"length":36,"line":834,"column":29,"endLine":834,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function Sprite_registerObstacle_inline__P103276_mk(s) { +function Sprite_registerObstacle_inline__P33155_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_registerObstacle_inline__P103276, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle_inline__P33155, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -33497,7 +31709,7 @@ function Sprite_registerObstacle_inline__P103276_mk(s) { -function Math_sign__P87650(s) { +function Math_sign__P18100(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33532,12 +31744,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_sign__P87650.info = {"start":16355,"length":125,"line":547,"column":4,"endLine":551,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sign","argumentNames":["x"]} +Math_sign__P18100.info = {"start":16355,"length":125,"line":547,"column":4,"endLine":551,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sign","argumentNames":["x"]} -function Math_sign__P87650_mk(s) { +function Math_sign__P18100_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_sign__P87650, depth: s.depth + 1, + parent: s, fn: Math_sign__P18100, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33548,7 +31760,7 @@ function Math_sign__P87650_mk(s) { -function helpers_arraySome__P87628(s) { +function helpers_arraySome__P18078(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33558,26 +31770,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___103284 = undefined; - s.i___103287 = undefined; + s.len___33163 = undefined; + s.i___33166 = 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___103284 = (r0); - s.i___103287 = (0); + s.len___33163 = (r0); + s.i___33166 = (0); case 1: - r0 = (s.i___103287 < s.len___103284); + r0 = (s.i___33166 < s.len___33163); 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___103287); + r0 = pxsim_Array__getAt(s.arg0, s.i___33166); s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.i___103287; + s.tmp_2.arg1 = s.i___33166; setupLambda(s.tmp_2, s.tmp_2.argL); s.callLocIdx = 4; s.pc = 6; return s.tmp_2; case 6: @@ -33589,8 +31801,8 @@ switch (step) { { step = 5; continue; } case 2: case 3: - r0 = (s.i___103287 + 1); - s.i___103287 = (r0); + r0 = (s.i___33166 + 1); + s.i___33166 = (r0); { step = 1; continue; } case 4: r0 = false; @@ -33598,18 +31810,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_arraySome__P87628.info = {"start":6833,"length":296,"line":238,"column":4,"endLine":244,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySome","argumentNames":["arr","callbackfn"]} +helpers_arraySome__P18078.info = {"start":6833,"length":296,"line":238,"column":4,"endLine":244,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySome","argumentNames":["arr","callbackfn"]} -function helpers_arraySome__P87628_mk(s) { +function helpers_arraySome__P18078_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySome__P87628, depth: s.depth + 1, + parent: s, fn: helpers_arraySome__P18078, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - len___103284: undefined, - i___103287: undefined, + len___33163: undefined, + i___33166: undefined, arg0: undefined, arg1: undefined, } } @@ -33618,7 +31830,7 @@ function helpers_arraySome__P87628_mk(s) { -function tiles_TileMap_isOnWall__P90279(s) { +function tiles_TileMap_isOnWall__P20729(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33628,25 +31840,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___102389 = undefined; - s.left___102392 = undefined; - s.right___102398 = undefined; - s.top___102404 = undefined; - s.bottom___102410 = undefined; - s.col___102416 = undefined; - s.row___102422 = undefined; + s.hbox___32268 = undefined; + s.left___32271 = undefined; + s.right___32277 = undefined; + s.top___32283 = undefined; + s.bottom___32289 = undefined; + s.col___32295 = undefined; + s.row___32301 = 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__C90256_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C20706_VT)) failedCast(r0); r0 = s.arg1.fields["_hitbox"]; - s.hbox___102389 = (r0); - s.tmp_1 = game_Hitbox_left__P89737_mk(s); - s.tmp_1.arg0 = s.hbox___102389; - s.callLocIdx = 867; s.pc = 8; return s.tmp_1; + s.hbox___32268 = (r0); + s.tmp_1 = game_Hitbox_left__P20187_mk(s); + s.tmp_1.arg0 = s.hbox___32268; + s.callLocIdx = 861; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; s.tmp_0 = r0; @@ -33655,10 +31867,10 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.left___102392 = (r0); - s.tmp_1 = game_Hitbox_right__P89739_mk(s); - s.tmp_1.arg0 = s.hbox___102389; - s.callLocIdx = 870; s.pc = 9; return s.tmp_1; + s.left___32271 = (r0); + s.tmp_1 = game_Hitbox_right__P20189_mk(s); + s.tmp_1.arg0 = s.hbox___32268; + s.callLocIdx = 864; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; s.tmp_0 = r0; @@ -33667,10 +31879,10 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.right___102398 = (r0); - s.tmp_1 = game_Hitbox_top__P89738_mk(s); - s.tmp_1.arg0 = s.hbox___102389; - s.callLocIdx = 873; s.pc = 10; return s.tmp_1; + s.right___32277 = (r0); + s.tmp_1 = game_Hitbox_top__P20188_mk(s); + s.tmp_1.arg0 = s.hbox___32268; + s.callLocIdx = 867; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; s.tmp_0 = r0; @@ -33679,10 +31891,10 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.top___102404 = (r0); - s.tmp_1 = game_Hitbox_bottom__P89740_mk(s); - s.tmp_1.arg0 = s.hbox___102389; - s.callLocIdx = 876; s.pc = 11; return s.tmp_1; + s.top___32283 = (r0); + s.tmp_1 = game_Hitbox_bottom__P20190_mk(s); + s.tmp_1.arg0 = s.hbox___32268; + s.callLocIdx = 870; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; s.tmp_0 = r0; @@ -33691,24 +31903,24 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.bottom___102410 = (r0); - s.col___102416 = (s.left___102392); + s.bottom___32289 = (r0); + s.col___32295 = (s.left___32271); case 1: - r0 = (s.col___102416 <= s.right___102398); + r0 = (s.col___32295 <= s.right___32277); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.row___102422 = (s.top___102404); + s.row___32301 = (s.top___32283); case 2: - r0 = (s.row___102422 <= s.bottom___102410); + r0 = (s.row___32301 <= s.bottom___32289); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_2 = tiles_TileMap_isObstacle__P90277_mk(s); + s.tmp_2 = tiles_TileMap_isObstacle__P20727_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.col___102416; - s.tmp_2.arg2 = s.row___102422; - s.callLocIdx = 879; s.pc = 12; return s.tmp_2; + s.tmp_2.arg1 = s.col___32295; + s.tmp_2.arg2 = s.row___32301; + s.callLocIdx = 873; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; s.tmp_1 = r0; @@ -33718,12 +31930,12 @@ switch (step) { { step = 7; continue; } case 3: case 4: - r0 = (s.row___102422 + 1); - s.row___102422 = (r0); + r0 = (s.row___32301 + 1); + s.row___32301 = (r0); { step = 2; continue; } case 5: - r0 = (s.col___102416 + 1); - s.col___102416 = (r0); + r0 = (s.col___32295 + 1); + s.col___32295 = (r0); { step = 1; continue; } case 6: r0 = false; @@ -33731,24 +31943,24 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_isOnWall__P90279.info = {"start":16873,"length":627,"line":534,"column":8,"endLine":551,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]} +tiles_TileMap_isOnWall__P20729.info = {"start":16873,"length":627,"line":534,"column":8,"endLine":551,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]} -function tiles_TileMap_isOnWall__P90279_mk(s) { +function tiles_TileMap_isOnWall__P20729_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isOnWall__P90279, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isOnWall__P20729, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - hbox___102389: undefined, - left___102392: undefined, - right___102398: undefined, - top___102404: undefined, - bottom___102410: undefined, - col___102416: undefined, - row___102422: undefined, + hbox___32268: undefined, + left___32271: undefined, + right___32277: undefined, + top___32283: undefined, + bottom___32289: undefined, + col___32295: undefined, + row___32301: undefined, arg0: undefined, arg1: undefined, } } @@ -33757,7 +31969,7 @@ function tiles_TileMap_isOnWall__P90279_mk(s) { -function MovingSprite_constructor__P90047(s) { +function MovingSprite_constructor__P20497(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33779,7 +31991,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, MovingSprite__C90046_VT)) failedCast(r0); + if (!checkSubtype(r0, MovingSprite__C20496_VT)) failedCast(r0); r0 = (s.arg0).fields["sprite"] = (s.arg1); r0 = (s.arg0).fields["cachedVx"] = (s.arg2); r0 = (s.arg0).fields["cachedVy"] = (s.arg3); @@ -33791,12 +32003,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -MovingSprite_constructor__P90047.info = {"start":949,"length":313,"line":33,"column":4,"endLine":44,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","sprite","cachedVx","cachedVy","dx","dy","xStep","yStep"]} +MovingSprite_constructor__P20497.info = {"start":949,"length":313,"line":33,"column":4,"endLine":44,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","sprite","cachedVx","cachedVy","dx","dy","xStep","yStep"]} -function MovingSprite_constructor__P90047_mk(s) { +function MovingSprite_constructor__P20497_mk(s) { checkStack(s.depth); return { - parent: s, fn: MovingSprite_constructor__P90047, depth: s.depth + 1, + parent: s, fn: MovingSprite_constructor__P20497, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -33812,7 +32024,7 @@ function MovingSprite_constructor__P90047_mk(s) { -function ArcadePhysicsEngine_move__P90060(s) { +function ArcadePhysicsEngine_move__P20510(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33822,81 +32034,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dtMs___103359 = undefined; - s.dt2___103365 = undefined; - s.scene___103369 = undefined; - s.tileMap___103372 = undefined; - s.movingSprites___103375 = undefined; - s.MAX_STEP_COUNT___103406 = undefined; - s.overlapHandlers___103418 = undefined; - s.selected___103425 = undefined; - s.buffers___103426 = undefined; - s.count___103430 = undefined; - s.currMovers___103440 = undefined; - s.remainingMovers___103447 = undefined; - s.ms___103452 = undefined; - s.unnamed722___U13 = undefined; - s.unnamed723___U14 = undefined; - s.s___103454 = undefined; - s.stepX___103547 = undefined; - s.stepY___103561 = undefined; - s.bounce___103624 = undefined; + s.dtMs___33238 = undefined; + s.dt2___33244 = undefined; + s.scene___33248 = undefined; + s.tileMap___33251 = undefined; + s.movingSprites___33254 = undefined; + s.MAX_STEP_COUNT___33285 = undefined; + s.overlapHandlers___33297 = undefined; + s.selected___33304 = undefined; + s.buffers___33305 = undefined; + s.count___33309 = undefined; + s.currMovers___33319 = undefined; + s.remainingMovers___33326 = undefined; + s.ms___33331 = undefined; + s.unnamed166___U13 = undefined; + s.unnamed167___U14 = undefined; + s.s___33333 = undefined; + s.stepX___33426 = undefined; + s.stepY___33440 = undefined; + s.bounce___33503 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C90048_VT)) failedCast(r0); - s.tmp_0 = Math_min__P87652_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20498_VT)) failedCast(r0); + s.tmp_0 = Math_min__P18102_mk(s); s.tmp_0.arg0 = 100; r0 = (s.arg1 * 1000); s.tmp_0.arg1 = r0; - s.callLocIdx = 545; s.pc = 53; return s.tmp_0; + s.callLocIdx = 539; s.pc = 53; return s.tmp_0; case 53: r0 = s.retval; - s.dtMs___103359 = (r0); - r0 = pxsim.Math_.idiv(s.dtMs___103359, 2); - s.dt2___103365 = (r0); - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 546; s.pc = 54; return s.tmp_0; + s.dtMs___33238 = (r0); + r0 = pxsim.Math_.idiv(s.dtMs___33238, 2); + s.dt2___33244 = (r0); + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 540; s.pc = 54; return s.tmp_0; case 54: r0 = s.retval; - s.scene___103369 = (r0); - r0 = s.scene___103369.fields["tileMap"]; - s.tileMap___103372 = (r0); - r0 = pxsim_pxtcore_mkAction(3, movingSprites_inline__P103377); + s.scene___33248 = (r0); + r0 = s.scene___33248.fields["tileMap"]; + s.tileMap___33251 = (r0); + r0 = pxsim_pxtcore_mkAction(3, movingSprites_inline__P33256); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtMs___103359); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___103365); - s.tmp_1 = helpers_arrayMap__P87627_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtMs___33238); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___33244); + s.tmp_1 = helpers_arrayMap__P18077_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 548; s.pc = 55; return s.tmp_1; + s.callLocIdx = 542; s.pc = 55; return s.tmp_1; case 55: r0 = s.retval; - s.movingSprites___103375 = (r0); - s.tmp_0 = helpers_arrayForEach__P87630_mk(s); + s.movingSprites___33254 = (r0); + s.tmp_0 = helpers_arrayForEach__P18080_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = ArcadePhysicsEngine_move_inline__P103389; - s.callLocIdx = 552; s.pc = 56; return s.tmp_0; + s.tmp_0.arg1 = ArcadePhysicsEngine_move_inline__P33268; + s.callLocIdx = 546; s.pc = 56; return s.tmp_0; case 56: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_clear__P89973_mk(s); + s.tmp_0 = sprites_SpriteMap_clear__P20423_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; - s.callLocIdx = 553; s.pc = 57; return s.tmp_0; + s.callLocIdx = 547; s.pc = 57; return s.tmp_0; case 57: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_resizeBuckets__P89972_mk(s); + s.tmp_0 = sprites_SpriteMap_resizeBuckets__P20422_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["sprites"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 554; s.pc = 58; return s.tmp_0; + s.callLocIdx = 548; s.pc = 58; return s.tmp_0; case 58: r0 = s.retval; r0 = s.arg0.fields["maxVelocity"]; @@ -33907,41 +32119,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___103359); + r0 = pxsim.Math_.imul(s.tmp_2, s.dtMs___33238); 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___103406 = (r0); - s.tmp_0 = helpers_arraySlice__P87636_mk(s); - r0 = s.scene___103369.fields["overlapHandlers"]; + s.MAX_STEP_COUNT___33285 = (r0); + s.tmp_0 = helpers_arraySlice__P18086_mk(s); + r0 = s.scene___33248.fields["overlapHandlers"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = undefined; s.tmp_0.arg2 = undefined; - s.callLocIdx = 559; s.pc = 59; return s.tmp_0; + s.callLocIdx = 553; s.pc = 59; return s.tmp_0; case 59: r0 = s.retval; - s.overlapHandlers___103418 = (r0); - s.selected___103425 = (0); + s.overlapHandlers___33297 = (r0); + s.selected___33304 = (0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___103375); + r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___33254); r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - s.buffers___103426 = (s.tmp_0); - s.count___103430 = (0); + s.buffers___33305 = (s.tmp_0); + s.count___33309 = (0); case 1: - r0 = (s.count___103430 < s.MAX_STEP_COUNT___103406); + r0 = (s.count___33309 < s.MAX_STEP_COUNT___33285); 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___103426, s.selected___103425); + r0 = pxsim_Array__getAt(s.buffers___33305, s.selected___33304); s.tmp_2 = r0; r0 = pxsim_Array__length(s.tmp_2); s.tmp_1 = r0; @@ -33951,43 +32163,43 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 52; continue; } - r0 = pxsim_Array__getAt(s.buffers___103426, s.selected___103425); - s.currMovers___103440 = (r0); - r0 = (s.selected___103425 ^ 1); - s.selected___103425 = (r0); - r0 = pxsim_Array__getAt(s.buffers___103426, s.selected___103425); - s.remainingMovers___103447 = (r0); - s.ms___103452 = (undefined); - s.unnamed722___U13 = (s.currMovers___103440); - s.unnamed723___U14 = (0); + r0 = pxsim_Array__getAt(s.buffers___33305, s.selected___33304); + s.currMovers___33319 = (r0); + r0 = (s.selected___33304 ^ 1); + s.selected___33304 = (r0); + r0 = pxsim_Array__getAt(s.buffers___33305, s.selected___33304); + s.remainingMovers___33326 = (r0); + s.ms___33331 = (undefined); + s.unnamed166___U13 = (s.currMovers___33319); + s.unnamed167___U14 = (0); case 4: - s.tmp_0 = r0 = s.unnamed723___U14; - r0 = pxsim_Array__length(s.unnamed722___U13); + s.tmp_0 = r0 = s.unnamed167___U14; + r0 = pxsim_Array__length(s.unnamed166___U13); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 49; continue; } - r0 = pxsim_Array__getAt(s.unnamed722___U13, s.unnamed723___U14); - s.ms___103452 = (r0); - r0 = s.ms___103452.fields["sprite"]; - s.s___103454 = (r0); - r0 = s.ms___103452.fields["cachedVx"]; + r0 = pxsim_Array__getAt(s.unnamed166___U13, s.unnamed167___U14); + s.ms___33331 = (r0); + r0 = s.ms___33331.fields["sprite"]; + s.s___33333 = (r0); + r0 = s.ms___33331.fields["cachedVx"]; s.tmp_1 = r0; - r0 = s.s___103454.fields["_vx"]; + r0 = s.s___33333.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___103454.fields["_vx"]; + r0 = s.s___33333.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___103452).fields["dx"] = (0); + r0 = (s.ms___33331).fields["dx"] = (0); { step = 14; continue; } case 5: - r0 = s.s___103454.fields["_vx"]; + r0 = s.s___33333.fields["_vx"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -33996,7 +32208,7 @@ switch (step) { r0 = s.tmp_0; { step = 7; continue; } case 6: - r0 = s.ms___103452.fields["cachedVx"]; + r0 = s.ms___33331.fields["cachedVx"]; s.tmp_2 = r0; r0 = (s.tmp_2 > 0); case 7: @@ -34007,7 +32219,7 @@ switch (step) { r0 = s.tmp_3; { step = 11; continue; } case 8: - r0 = s.s___103454.fields["_vx"]; + r0 = s.s___33333.fields["_vx"]; s.tmp_5 = r0; r0 = (s.tmp_5 > 0); s.tmp_4 = r0; @@ -34016,7 +32228,7 @@ switch (step) { r0 = s.tmp_4; { step = 10; continue; } case 9: - r0 = s.ms___103452.fields["cachedVx"]; + r0 = s.ms___33331.fields["cachedVx"]; s.tmp_6 = r0; r0 = (s.tmp_6 < 0); case 10: @@ -34028,14 +32240,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___103452; - r0 = s.ms___103452.fields["dx"]; + s.tmp_9 = r0 = s.ms___33331; + r0 = s.ms___33331.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___103452; - r0 = s.ms___103452.fields["xStep"]; + s.tmp_0 = r0 = s.ms___33331; + r0 = s.ms___33331.fields["xStep"]; s.tmp_2 = r0; r0 = (0 - s.tmp_2); s.tmp_1 = r0; @@ -34043,29 +32255,29 @@ switch (step) { case 12: case 13: case 14: - r0 = s.s___103454.fields["_vx"]; + r0 = s.s___33333.fields["_vx"]; s.tmp_0 = r0; - r0 = (s.ms___103452).fields["cachedVx"] = (s.tmp_0); + r0 = (s.ms___33331).fields["cachedVx"] = (s.tmp_0); case 15: case 16: - r0 = s.ms___103452.fields["cachedVy"]; + r0 = s.ms___33331.fields["cachedVy"]; s.tmp_1 = r0; - r0 = s.s___103454.fields["_vy"]; + r0 = s.s___33333.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___103454.fields["_vy"]; + r0 = s.s___33333.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___103452).fields["dy"] = (0); + r0 = (s.ms___33331).fields["dy"] = (0); { step = 26; continue; } case 17: - r0 = s.s___103454.fields["_vy"]; + r0 = s.s___33333.fields["_vy"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -34074,7 +32286,7 @@ switch (step) { r0 = s.tmp_0; { step = 19; continue; } case 18: - r0 = s.ms___103452.fields["cachedVy"]; + r0 = s.ms___33331.fields["cachedVy"]; s.tmp_2 = r0; r0 = (s.tmp_2 > 0); case 19: @@ -34085,7 +32297,7 @@ switch (step) { r0 = s.tmp_3; { step = 23; continue; } case 20: - r0 = s.s___103454.fields["_vy"]; + r0 = s.s___33333.fields["_vy"]; s.tmp_5 = r0; r0 = (s.tmp_5 > 0); s.tmp_4 = r0; @@ -34094,7 +32306,7 @@ switch (step) { r0 = s.tmp_4; { step = 22; continue; } case 21: - r0 = s.ms___103452.fields["cachedVy"]; + r0 = s.ms___33331.fields["cachedVy"]; s.tmp_6 = r0; r0 = (s.tmp_6 < 0); case 22: @@ -34106,14 +32318,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___103452; - r0 = s.ms___103452.fields["dy"]; + s.tmp_9 = r0 = s.ms___33331; + r0 = s.ms___33331.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___103452; - r0 = s.ms___103452.fields["yStep"]; + s.tmp_0 = r0 = s.ms___33331; + r0 = s.ms___33331.fields["yStep"]; s.tmp_2 = r0; r0 = (0 - s.tmp_2); s.tmp_1 = r0; @@ -34121,22 +32333,22 @@ switch (step) { case 24: case 25: case 26: - r0 = s.s___103454.fields["_vy"]; + r0 = s.s___33333.fields["_vy"]; s.tmp_0 = r0; - r0 = (s.ms___103452).fields["cachedVy"] = (s.tmp_0); + r0 = (s.ms___33331).fields["cachedVy"] = (s.tmp_0); case 27: case 28: - s.tmp_2 = Fx_abs__P87686_mk(s); - r0 = s.ms___103452.fields["xStep"]; + s.tmp_2 = Fx_abs__P18136_mk(s); + r0 = s.ms___33331.fields["xStep"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 564; s.pc = 60; return s.tmp_2; + s.callLocIdx = 558; s.pc = 60; return s.tmp_2; case 60: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = Fx_abs__P87686_mk(s); - r0 = s.ms___103452.fields["dx"]; + s.tmp_4 = Fx_abs__P18136_mk(s); + r0 = s.ms___33331.fields["dx"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 565; s.pc = 61; return s.tmp_4; + s.callLocIdx = 559; s.pc = 61; return s.tmp_4; case 61: r0 = s.retval; s.tmp_3 = r0; @@ -34144,25 +32356,25 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 29; continue; } - r0 = s.ms___103452.fields["dx"]; + r0 = s.ms___33331.fields["dx"]; { step = 30; continue; } case 29: - r0 = s.ms___103452.fields["xStep"]; + r0 = s.ms___33331.fields["xStep"]; case 30: // jmp value (already in r0) s.tmp_5 = r0; - s.stepX___103547 = (s.tmp_5); - s.tmp_2 = Fx_abs__P87686_mk(s); - r0 = s.ms___103452.fields["yStep"]; + s.stepX___33426 = (s.tmp_5); + s.tmp_2 = Fx_abs__P18136_mk(s); + r0 = s.ms___33331.fields["yStep"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 566; s.pc = 62; return s.tmp_2; + s.callLocIdx = 560; s.pc = 62; return s.tmp_2; case 62: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = Fx_abs__P87686_mk(s); - r0 = s.ms___103452.fields["dy"]; + s.tmp_4 = Fx_abs__P18136_mk(s); + r0 = s.ms___33331.fields["dy"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 567; s.pc = 63; return s.tmp_4; + s.callLocIdx = 561; s.pc = 63; return s.tmp_4; case 63: r0 = s.retval; s.tmp_3 = r0; @@ -34170,45 +32382,45 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 31; continue; } - r0 = s.ms___103452.fields["dy"]; + r0 = s.ms___33331.fields["dy"]; { step = 32; continue; } case 31: - r0 = s.ms___103452.fields["yStep"]; + r0 = s.ms___33331.fields["yStep"]; case 32: // jmp value (already in r0) s.tmp_5 = r0; - s.stepY___103561 = (s.tmp_5); - s.tmp_0 = r0 = s.ms___103452; - r0 = s.ms___103452.fields["dx"]; + s.stepY___33440 = (s.tmp_5); + s.tmp_0 = r0 = s.ms___33331; + r0 = s.ms___33331.fields["dx"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepX___103547); + r0 = (s.tmp_2 - s.stepX___33426); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dx"] = (s.tmp_1); - s.tmp_0 = r0 = s.ms___103452; - r0 = s.ms___103452.fields["dy"]; + s.tmp_0 = r0 = s.ms___33331; + r0 = s.ms___33331.fields["dy"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepY___103561); + r0 = (s.tmp_2 - s.stepY___33440); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dy"] = (s.tmp_1); - r0 = s.s___103454.fields["_x"]; + r0 = s.s___33333.fields["_x"]; s.tmp_0 = r0; - r0 = (s.s___103454).fields["_lastX"] = (s.tmp_0); - r0 = s.s___103454.fields["_y"]; + r0 = (s.s___33333).fields["_lastX"] = (s.tmp_0); + r0 = s.s___33333.fields["_y"]; s.tmp_0 = r0; - r0 = (s.s___103454).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = r0 = s.s___103454; - r0 = s.s___103454.fields["_x"]; + r0 = (s.s___33333).fields["_lastY"] = (s.tmp_0); + s.tmp_0 = r0 = s.s___33333; + r0 = s.s___33333.fields["_x"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepX___103547); + r0 = (s.tmp_2 + s.stepX___33426); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.s___103454; - r0 = s.s___103454.fields["_y"]; + s.tmp_0 = r0 = s.s___33333; + r0 = s.s___33333.fields["_y"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepY___103561); + r0 = (s.tmp_2 + s.stepY___33440); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = s.s___103454.fields["flags"]; + r0 = s.s___33333.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 4610); s.tmp_2 = r0; @@ -34218,22 +32430,22 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 33; continue; } - s.tmp_4 = sprites_SpriteMap_insertAABB__P89974_mk(s); + s.tmp_4 = sprites_SpriteMap_insertAABB__P20424_mk(s); r0 = s.arg0.fields["map"]; s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.s___103454; - s.callLocIdx = 572; s.pc = 64; return s.tmp_4; + s.tmp_4.arg1 = s.s___33333; + s.callLocIdx = 566; s.pc = 64; return s.tmp_4; case 64: r0 = s.retval; case 33: case 34: - s.tmp_0 = r0 = s.tileMap___103372; + s.tmp_0 = r0 = s.tileMap___33251; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 35; continue; } r0 = s.tmp_0; { step = 36; continue; } case 35: - r0 = s.tileMap___103372.fields["_map"]; + r0 = s.tileMap___33251.fields["_map"]; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; @@ -34247,20 +32459,20 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 37; continue; } - s.tmp_6 = ArcadePhysicsEngine_tilemapCollisions__P92315_mk(s); + s.tmp_6 = ArcadePhysicsEngine_tilemapCollisions__P22760_mk(s); s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.ms___103452; - s.tmp_6.arg2 = s.tileMap___103372; - s.callLocIdx = 574; s.pc = 65; return s.tmp_6; + s.tmp_6.arg1 = s.ms___33331; + s.tmp_6.arg2 = s.tileMap___33251; + s.callLocIdx = 568; s.pc = 65; return s.tmp_6; case 65: r0 = s.retval; case 37: case 38: - r0 = s.s___103454.fields["flags"]; + r0 = s.s___33333.fields["flags"]; s.tmp_0 = r0; r0 = (s.tmp_0 & 32); - s.bounce___103624 = (r0); - r0 = s.s___103454.fields["flags"]; + s.bounce___33503 = (r0); + r0 = s.s___33333.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 8); s.tmp_0 = r0; @@ -34269,13 +32481,13 @@ switch (step) { r0 = s.tmp_0; { step = 42; continue; } case 39: - s.tmp_2 = r0 = s.bounce___103624; + s.tmp_2 = r0 = s.bounce___33503; 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___103372); + r0 = pxsim_numops_toBoolDecr(s.tileMap___33251); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); case 41: @@ -34287,81 +32499,81 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 43; continue; } - s.tmp_6 = ArcadePhysicsEngine_screenEdgeCollisions__P92314_mk(s); + s.tmp_6 = ArcadePhysicsEngine_screenEdgeCollisions__P22759_mk(s); s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.ms___103452; - s.tmp_6.arg2 = s.bounce___103624; - r0 = s.scene___103369.fields["camera"]; + s.tmp_6.arg1 = s.ms___33331; + s.tmp_6.arg2 = s.bounce___33503; + r0 = s.scene___33248.fields["camera"]; s.tmp_6.arg3 = r0; - s.callLocIdx = 575; s.pc = 66; return s.tmp_6; + s.callLocIdx = 569; s.pc = 66; return s.tmp_6; case 66: r0 = s.retval; case 43: case 44: - s.tmp_2 = Fx_abs__P87686_mk(s); - r0 = s.ms___103452.fields["dx"]; + s.tmp_2 = Fx_abs__P18136_mk(s); + r0 = s.ms___33331.fields["dx"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 576; s.pc = 67; return s.tmp_2; + s.callLocIdx = 570; s.pc = 67; return s.tmp_2; case 67: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___90042); + r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___20492); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 45; continue; } r0 = s.tmp_0; { step = 46; continue; } case 45: - s.tmp_4 = Fx_abs__P87686_mk(s); - r0 = s.ms___103452.fields["dy"]; + s.tmp_4 = Fx_abs__P18136_mk(s); + r0 = s.ms___33331.fields["dy"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 577; s.pc = 68; return s.tmp_4; + s.callLocIdx = 571; s.pc = 68; return s.tmp_4; case 68: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___90042); + r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___20492); case 46: // jmp value (already in r0) s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 47; continue; } - r0 = pxsim_Array__push(s.remainingMovers___103447, s.ms___103452); + r0 = pxsim_Array__push(s.remainingMovers___33326, s.ms___33331); case 47: case 48: - r0 = (s.unnamed723___U14 + 1); - s.unnamed723___U14 = (r0); + r0 = (s.unnamed167___U14 + 1); + s.unnamed167___U14 = (r0); { step = 4; continue; } case 49: - s.unnamed722___U13 = (undefined); - s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P92313_mk(s); + s.unnamed166___U13 = (undefined); + s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P22758_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.currMovers___103440; - s.tmp_0.arg2 = s.overlapHandlers___103418; - s.callLocIdx = 578; s.pc = 69; return s.tmp_0; + s.tmp_0.arg1 = s.currMovers___33319; + s.tmp_0.arg2 = s.overlapHandlers___33297; + s.callLocIdx = 572; s.pc = 69; return s.tmp_0; case 69: r0 = s.retval; case 50: - r0 = pxsim_Array__length(s.currMovers___103440); + r0 = pxsim_Array__length(s.currMovers___33319); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 51; continue; } - r0 = pxsim_Array_.pop(s.currMovers___103440); + r0 = pxsim_Array_.pop(s.currMovers___33319); { step = 50; continue; } case 51: - r0 = (s.count___103430 + 1); - s.count___103430 = (r0); + r0 = (s.count___33309 + 1); + s.count___33309 = (r0); { step = 1; continue; } case 52: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_move__P90060.info = {"start":2822,"length":4105,"line":112,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} +ArcadePhysicsEngine_move__P20510.info = {"start":2822,"length":4105,"line":112,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} -function ArcadePhysicsEngine_move__P90060_mk(s) { +function ArcadePhysicsEngine_move__P20510_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_move__P90060, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_move__P20510, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34375,25 +32587,25 @@ function ArcadePhysicsEngine_move__P90060_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - dtMs___103359: undefined, - dt2___103365: undefined, - scene___103369: undefined, - tileMap___103372: undefined, - movingSprites___103375: undefined, - MAX_STEP_COUNT___103406: undefined, - overlapHandlers___103418: undefined, - selected___103425: undefined, - buffers___103426: undefined, - count___103430: undefined, - currMovers___103440: undefined, - remainingMovers___103447: undefined, - ms___103452: undefined, - unnamed722___U13: undefined, - unnamed723___U14: undefined, - s___103454: undefined, - stepX___103547: undefined, - stepY___103561: undefined, - bounce___103624: undefined, + dtMs___33238: undefined, + dt2___33244: undefined, + scene___33248: undefined, + tileMap___33251: undefined, + movingSprites___33254: undefined, + MAX_STEP_COUNT___33285: undefined, + overlapHandlers___33297: undefined, + selected___33304: undefined, + buffers___33305: undefined, + count___33309: undefined, + currMovers___33319: undefined, + remainingMovers___33326: undefined, + ms___33331: undefined, + unnamed166___U13: undefined, + unnamed167___U14: undefined, + s___33333: undefined, + stepX___33426: undefined, + stepY___33440: undefined, + bounce___33503: undefined, arg0: undefined, arg1: undefined, } } @@ -34402,7 +32614,7 @@ function ArcadePhysicsEngine_move__P90060_mk(s) { -function movingSprites_inline__P103377(s) { +function movingSprites_inline__P33256(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34416,23 +32628,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P92312_mk(s); + s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P22757_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 = 547; s.pc = 1; return s.tmp_0; + s.callLocIdx = 541; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -movingSprites_inline__P103377.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__P33256.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__P103377_mk(s) { +function movingSprites_inline__P33256_mk(s) { checkStack(s.depth); return { - parent: s, fn: movingSprites_inline__P103377, depth: s.depth + 1, + parent: s, fn: movingSprites_inline__P33256, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -34442,7 +32654,7 @@ function movingSprites_inline__P103377_mk(s) { -function ArcadePhysicsEngine_move_inline__P103389(s) { +function ArcadePhysicsEngine_move_inline__P33268(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34456,9 +32668,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_1 = Sprite_vx__P89879_mk(s); + s.tmp_1 = Sprite_vx__P20329_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 549; s.pc = 5; return s.tmp_1; + s.callLocIdx = 543; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0 = r0; @@ -34467,9 +32679,9 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_2 = Sprite_vy__P89881_mk(s); + s.tmp_2 = Sprite_vy__P20331_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 550; s.pc = 6; return s.tmp_2; + s.callLocIdx = 544; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; case 2: @@ -34477,9 +32689,9 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - s.tmp_4 = Sprite_clearObstacles__P89946_mk(s); + s.tmp_4 = Sprite_clearObstacles__P20396_mk(s); s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 551; s.pc = 7; return s.tmp_4; + s.callLocIdx = 545; s.pc = 7; return s.tmp_4; case 7: r0 = s.retval; case 3: @@ -34488,12 +32700,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_move_inline__P103389.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__P33268.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__P103389_mk(s) { +function ArcadePhysicsEngine_move_inline__P33268_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_move_inline__P103389, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_move_inline__P33268, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34507,7 +32719,7 @@ function ArcadePhysicsEngine_move_inline__P103389_mk(s) { -function ArcadePhysicsEngine_screenEdgeCollisions__P92314(s) { +function ArcadePhysicsEngine_screenEdgeCollisions__P22759(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34517,8 +32729,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___104203 = undefined; - s.offset___104218 = undefined; + s.s___34086 = undefined; + s.offset___34101 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -34527,10 +32739,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C90048_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20498_VT)) failedCast(r0); r0 = s.arg1.fields["sprite"]; - s.s___104203 = (r0); - r0 = s.s___104203.fields["_image"]; + s.s___34086 = (r0); + r0 = s.s___34086.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.isStatic(s.tmp_3); s.tmp_2 = r0; @@ -34540,18 +32752,18 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_4 = Sprite__C89862_v4_1_mk(s); - s.tmp_4.arg0 = s.s___104203; - if (!checkSubtype(s.tmp_4.arg0, Sprite__C89862_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4 = Sprite__C20312_v4_1_mk(s); + s.tmp_4.arg0 = s.s___34086; + if (!checkSubtype(s.tmp_4.arg0, Sprite__C20312_VT)) failedCast(s.tmp_4.arg0); s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.setHitbox; s.pc = 21; return s.tmp_4; case 21: r0 = s.retval; case 1: case 2: - s.tmp_3 = scene_Camera_isUpdated__P90318_mk(s); + s.tmp_3 = scene_Camera_isUpdated__P20768_mk(s); s.tmp_3.arg0 = s.arg3; - s.callLocIdx = 623; s.pc = 22; return s.tmp_3; + s.callLocIdx = 617; s.pc = 22; return s.tmp_3; case 22: r0 = s.retval; s.tmp_2 = r0; @@ -34561,17 +32773,17 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_4 = scene_Camera_update__P90319_mk(s); + s.tmp_4 = scene_Camera_update__P20769_mk(s); s.tmp_4.arg0 = s.arg3; - s.callLocIdx = 624; s.pc = 23; return s.tmp_4; + s.callLocIdx = 618; s.pc = 23; return s.tmp_4; case 23: r0 = s.retval; case 3: case 4: - s.tmp_2 = game_Hitbox_left__P89737_mk(s); - r0 = s.s___104203.fields["_hitbox"]; + s.tmp_2 = game_Hitbox_left__P20187_mk(s); + r0 = s.s___34086.fields["_hitbox"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 625; s.pc = 24; return s.tmp_2; + s.callLocIdx = 619; s.pc = 24; return s.tmp_2; case 24: r0 = s.retval; s.tmp_1 = r0; @@ -34580,48 +32792,48 @@ switch (step) { r0 = s.arg3.fields["_offsetX"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); - s.offset___104218 = (r0); - r0 = (s.offset___104218 < 0); + s.offset___34101 = (r0); + r0 = (s.offset___34101 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_1 = Sprite_left__P89921_mk(s); - s.tmp_2 = r0 = s.s___104203; + s.tmp_1 = Sprite_left__P20371_mk(s); + s.tmp_2 = r0 = s.s___34086; s.tmp_1.arg0 = r0; - s.tmp_4 = Sprite_left__P89920_mk(s); + s.tmp_4 = Sprite_left__P20370_mk(s); s.tmp_4.arg0 = s.tmp_2; - s.callLocIdx = 628; s.pc = 26; return s.tmp_4; + s.callLocIdx = 622; s.pc = 26; return s.tmp_4; case 26: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 - s.offset___104218); + r0 = (s.tmp_3 - s.offset___34101); s.tmp_1.arg1 = r0; - s.callLocIdx = 629; s.pc = 25; return s.tmp_1; + s.callLocIdx = 623; s.pc = 25; return s.tmp_1; case 25: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 5; continue; } - s.tmp_0 = Sprite_vx__P89880_mk(s); - s.tmp_0.arg0 = s.s___104203; - s.tmp_2 = Sprite_vx__P89879_mk(s); - s.tmp_2.arg0 = s.s___104203; - s.callLocIdx = 630; s.pc = 28; return s.tmp_2; + s.tmp_0 = Sprite_vx__P20330_mk(s); + s.tmp_0.arg0 = s.s___34086; + s.tmp_2 = Sprite_vx__P20329_mk(s); + s.tmp_2.arg0 = s.s___34086; + s.callLocIdx = 624; s.pc = 28; return s.tmp_2; case 28: r0 = s.retval; s.tmp_1 = r0; r0 = (0 - s.tmp_1); s.tmp_0.arg1 = r0; - s.callLocIdx = 631; s.pc = 27; return s.tmp_0; + s.callLocIdx = 625; s.pc = 27; return s.tmp_0; case 27: r0 = s.retval; case 5: case 6: { step = 12; continue; } case 7: - s.tmp_4 = game_Hitbox_right__P89739_mk(s); - r0 = s.s___104203.fields["_hitbox"]; + s.tmp_4 = game_Hitbox_right__P20189_mk(s); + r0 = s.s___34086.fields["_hitbox"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 632; s.pc = 29; return s.tmp_4; + s.callLocIdx = 626; s.pc = 29; return s.tmp_4; case 29: r0 = s.retval; s.tmp_3 = r0; @@ -34631,42 +32843,42 @@ switch (step) { s.tmp_5 = r0; r0 = (s.tmp_2 - s.tmp_5); s.tmp_1 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___89553); + r0 = pxsim_ImageMethods.width(globals.screen___20003); s.tmp_6 = r0; r0 = (s.tmp_1 - s.tmp_6); s.tmp_0 = r0; - s.offset___104218 = (r0); + s.offset___34101 = (r0); r0 = (s.tmp_0 > 0); s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 10; continue; } - s.tmp_8 = Sprite_right__P89923_mk(s); - s.tmp_9 = r0 = s.s___104203; + s.tmp_8 = Sprite_right__P20373_mk(s); + s.tmp_9 = r0 = s.s___34086; s.tmp_8.arg0 = r0; - s.tmp_11 = Sprite_right__P89922_mk(s); + s.tmp_11 = Sprite_right__P20372_mk(s); s.tmp_11.arg0 = s.tmp_9; - s.callLocIdx = 635; s.pc = 31; return s.tmp_11; + s.callLocIdx = 629; s.pc = 31; return s.tmp_11; case 31: r0 = s.retval; s.tmp_10 = r0; - r0 = (s.tmp_10 - s.offset___104218); + r0 = (s.tmp_10 - s.offset___34101); s.tmp_8.arg1 = r0; - s.callLocIdx = 636; s.pc = 30; return s.tmp_8; + s.callLocIdx = 630; s.pc = 30; return s.tmp_8; case 30: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 8; continue; } - s.tmp_0 = Sprite_vx__P89880_mk(s); - s.tmp_0.arg0 = s.s___104203; - s.tmp_2 = Sprite_vx__P89879_mk(s); - s.tmp_2.arg0 = s.s___104203; - s.callLocIdx = 637; s.pc = 33; return s.tmp_2; + s.tmp_0 = Sprite_vx__P20330_mk(s); + s.tmp_0.arg0 = s.s___34086; + s.tmp_2 = Sprite_vx__P20329_mk(s); + s.tmp_2.arg0 = s.s___34086; + s.callLocIdx = 631; s.pc = 33; return s.tmp_2; case 33: r0 = s.retval; s.tmp_1 = r0; r0 = (0 - s.tmp_1); s.tmp_0.arg1 = r0; - s.callLocIdx = 638; s.pc = 32; return s.tmp_0; + s.callLocIdx = 632; s.pc = 32; return s.tmp_0; case 32: r0 = s.retval; case 8: @@ -34674,10 +32886,10 @@ switch (step) { case 10: case 11: case 12: - s.tmp_3 = game_Hitbox_top__P89738_mk(s); - r0 = s.s___104203.fields["_hitbox"]; + s.tmp_3 = game_Hitbox_top__P20188_mk(s); + r0 = s.s___34086.fields["_hitbox"]; s.tmp_3.arg0 = r0; - s.callLocIdx = 639; s.pc = 34; return s.tmp_3; + s.callLocIdx = 633; s.pc = 34; return s.tmp_3; case 34: r0 = s.retval; s.tmp_2 = r0; @@ -34687,48 +32899,48 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_1 - s.tmp_4); s.tmp_0 = r0; - s.offset___104218 = (r0); + s.offset___34101 = (r0); r0 = (s.tmp_0 < 0); s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 15; continue; } - s.tmp_6 = Sprite_top__P89925_mk(s); - s.tmp_7 = r0 = s.s___104203; + s.tmp_6 = Sprite_top__P20375_mk(s); + s.tmp_7 = r0 = s.s___34086; s.tmp_6.arg0 = r0; - s.tmp_9 = Sprite_top__P89924_mk(s); + s.tmp_9 = Sprite_top__P20374_mk(s); s.tmp_9.arg0 = s.tmp_7; - s.callLocIdx = 642; s.pc = 36; return s.tmp_9; + s.callLocIdx = 636; s.pc = 36; return s.tmp_9; case 36: r0 = s.retval; s.tmp_8 = r0; - r0 = (s.tmp_8 - s.offset___104218); + r0 = (s.tmp_8 - s.offset___34101); s.tmp_6.arg1 = r0; - s.callLocIdx = 643; s.pc = 35; return s.tmp_6; + s.callLocIdx = 637; s.pc = 35; return s.tmp_6; case 35: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 13; continue; } - s.tmp_0 = Sprite_vy__P89882_mk(s); - s.tmp_0.arg0 = s.s___104203; - s.tmp_2 = Sprite_vy__P89881_mk(s); - s.tmp_2.arg0 = s.s___104203; - s.callLocIdx = 644; s.pc = 38; return s.tmp_2; + s.tmp_0 = Sprite_vy__P20332_mk(s); + s.tmp_0.arg0 = s.s___34086; + s.tmp_2 = Sprite_vy__P20331_mk(s); + s.tmp_2.arg0 = s.s___34086; + s.callLocIdx = 638; s.pc = 38; return s.tmp_2; case 38: r0 = s.retval; s.tmp_1 = r0; r0 = (0 - s.tmp_1); s.tmp_0.arg1 = r0; - s.callLocIdx = 645; s.pc = 37; return s.tmp_0; + s.callLocIdx = 639; s.pc = 37; return s.tmp_0; case 37: r0 = s.retval; case 13: case 14: { step = 20; continue; } case 15: - s.tmp_4 = game_Hitbox_bottom__P89740_mk(s); - r0 = s.s___104203.fields["_hitbox"]; + s.tmp_4 = game_Hitbox_bottom__P20190_mk(s); + r0 = s.s___34086.fields["_hitbox"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 646; s.pc = 39; return s.tmp_4; + s.callLocIdx = 640; s.pc = 39; return s.tmp_4; case 39: r0 = s.retval; s.tmp_3 = r0; @@ -34738,42 +32950,42 @@ switch (step) { s.tmp_5 = r0; r0 = (s.tmp_2 - s.tmp_5); s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___89553); + r0 = pxsim_ImageMethods.height(globals.screen___20003); s.tmp_6 = r0; r0 = (s.tmp_1 - s.tmp_6); s.tmp_0 = r0; - s.offset___104218 = (r0); + s.offset___34101 = (r0); r0 = (s.tmp_0 > 0); s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 18; continue; } - s.tmp_8 = Sprite_bottom__P89927_mk(s); - s.tmp_9 = r0 = s.s___104203; + s.tmp_8 = Sprite_bottom__P20377_mk(s); + s.tmp_9 = r0 = s.s___34086; s.tmp_8.arg0 = r0; - s.tmp_11 = Sprite_bottom__P89926_mk(s); + s.tmp_11 = Sprite_bottom__P20376_mk(s); s.tmp_11.arg0 = s.tmp_9; - s.callLocIdx = 649; s.pc = 41; return s.tmp_11; + s.callLocIdx = 643; s.pc = 41; return s.tmp_11; case 41: r0 = s.retval; s.tmp_10 = r0; - r0 = (s.tmp_10 - s.offset___104218); + r0 = (s.tmp_10 - s.offset___34101); s.tmp_8.arg1 = r0; - s.callLocIdx = 650; s.pc = 40; return s.tmp_8; + s.callLocIdx = 644; s.pc = 40; return s.tmp_8; case 40: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 16; continue; } - s.tmp_0 = Sprite_vy__P89882_mk(s); - s.tmp_0.arg0 = s.s___104203; - s.tmp_2 = Sprite_vy__P89881_mk(s); - s.tmp_2.arg0 = s.s___104203; - s.callLocIdx = 651; s.pc = 43; return s.tmp_2; + s.tmp_0 = Sprite_vy__P20332_mk(s); + s.tmp_0.arg0 = s.s___34086; + s.tmp_2 = Sprite_vy__P20331_mk(s); + s.tmp_2.arg0 = s.s___34086; + s.callLocIdx = 645; s.pc = 43; return s.tmp_2; case 43: r0 = s.retval; s.tmp_1 = r0; r0 = (0 - s.tmp_1); s.tmp_0.arg1 = r0; - s.callLocIdx = 652; s.pc = 42; return s.tmp_0; + s.callLocIdx = 646; s.pc = 42; return s.tmp_0; case 42: r0 = s.retval; case 16: @@ -34785,12 +32997,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_screenEdgeCollisions__P92314.info = {"start":12018,"length":905,"line":355,"column":4,"endLine":377,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"screenEdgeCollisions","argumentNames":["this","movingSprite","bounce","camera"]} +ArcadePhysicsEngine_screenEdgeCollisions__P22759.info = {"start":12018,"length":905,"line":355,"column":4,"endLine":377,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"screenEdgeCollisions","argumentNames":["this","movingSprite","bounce","camera"]} -function ArcadePhysicsEngine_screenEdgeCollisions__P92314_mk(s) { +function ArcadePhysicsEngine_screenEdgeCollisions__P22759_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_screenEdgeCollisions__P92314, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_screenEdgeCollisions__P22759, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34804,8 +33016,8 @@ function ArcadePhysicsEngine_screenEdgeCollisions__P92314_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - s___104203: undefined, - offset___104218: undefined, + s___34086: undefined, + offset___34101: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -34816,7 +33028,7 @@ function ArcadePhysicsEngine_screenEdgeCollisions__P92314_mk(s) { -function scene_Camera_isUpdated__P90318(s) { +function scene_Camera_isUpdated__P20768(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34831,7 +33043,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C90302_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C20752_VT)) failedCast(r0); r0 = s.arg0.fields["sprite"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -34843,10 +33055,10 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 1: - s.tmp_5 = Sprite_x__P89875_mk(s); + s.tmp_5 = Sprite_x__P20325_mk(s); r0 = s.arg0.fields["sprite"]; s.tmp_5.arg0 = r0; - s.callLocIdx = 895; s.pc = 5; return s.tmp_5; + s.callLocIdx = 889; s.pc = 5; return s.tmp_5; case 5: r0 = s.retval; s.tmp_4 = r0; @@ -34859,10 +33071,10 @@ switch (step) { r0 = s.tmp_3; { step = 3; continue; } case 2: - s.tmp_8 = Sprite_y__P89877_mk(s); + s.tmp_8 = Sprite_y__P20327_mk(s); r0 = s.arg0.fields["sprite"]; s.tmp_8.arg0 = r0; - s.callLocIdx = 896; s.pc = 6; return s.tmp_8; + s.callLocIdx = 890; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; s.tmp_7 = r0; @@ -34880,12 +33092,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Camera_isUpdated__P90318.info = {"start":2403,"length":150,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"isUpdated","argumentNames":["this"]} +scene_Camera_isUpdated__P20768.info = {"start":2403,"length":150,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"isUpdated","argumentNames":["this"]} -function scene_Camera_isUpdated__P90318_mk(s) { +function scene_Camera_isUpdated__P20768_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_isUpdated__P90318, depth: s.depth + 1, + parent: s, fn: scene_Camera_isUpdated__P20768, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34906,7 +33118,7 @@ function scene_Camera_isUpdated__P90318_mk(s) { -function Sprite_bottom__P89927(s) { +function Sprite_bottom__P20377(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34922,31 +33134,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P89925_mk(s); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P20375_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; - s.tmp_3 = Sprite_height__P89919_mk(s); + s.tmp_3 = Sprite_height__P20369_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 365; s.pc = 2; return s.tmp_3; + s.callLocIdx = 364; 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 = 366; s.pc = 1; return s.tmp_0; + s.callLocIdx = 365; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_bottom__P89927.info = {"start":12204,"length":73,"line":440,"column":4,"endLine":442,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this","value"]} +Sprite_bottom__P20377.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 Sprite_bottom__P89927_mk(s) { +function Sprite_bottom__P20377_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_bottom__P89927, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P20377, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34960,7 +33172,7 @@ function Sprite_bottom__P89927_mk(s) { -function Sprite_bottom__P89926(s) { +function Sprite_bottom__P20376(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34975,16 +33187,16 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - s.tmp_1 = Sprite_top__P89924_mk(s); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + s.tmp_1 = Sprite_top__P20374_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 363; s.pc = 1; return s.tmp_1; + s.callLocIdx = 362; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Sprite_height__P89919_mk(s); + s.tmp_3 = Sprite_height__P20369_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 364; s.pc = 2; return s.tmp_3; + s.callLocIdx = 363; s.pc = 2; return s.tmp_3; case 2: r0 = s.retval; s.tmp_2 = r0; @@ -34992,13 +33204,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -Sprite_bottom__P89926.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__P89926.isGetter = true; +Sprite_bottom__P20376.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__P20376.isGetter = true; -function Sprite_bottom__P89926_mk(s) { +function Sprite_bottom__P20376_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_bottom__P89926, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P20376, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35011,7 +33223,7 @@ function Sprite_bottom__P89926_mk(s) { -function Sprite_right__P89923(s) { +function Sprite_right__P20373(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35027,31 +33239,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P89921_mk(s); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P20371_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; - s.tmp_3 = Sprite_width__P89918_mk(s); + s.tmp_3 = Sprite_width__P20368_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 357; s.pc = 2; return s.tmp_3; + s.callLocIdx = 356; 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 = 358; s.pc = 1; return s.tmp_0; + s.callLocIdx = 357; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_right__P89923.info = {"start":11367,"length":71,"line":410,"column":4,"endLine":412,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this","value"]} +Sprite_right__P20373.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 Sprite_right__P89923_mk(s) { +function Sprite_right__P20373_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P89923, depth: s.depth + 1, + parent: s, fn: Sprite_right__P20373, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35065,7 +33277,7 @@ function Sprite_right__P89923_mk(s) { -function ArcadePhysicsEngine_spriteCollisions__P92313(s) { +function Sprite_right__P20372(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35075,18 +33287,69 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ms___103681 = undefined; - s.unnamed724___U1 = undefined; - s.unnamed725___U2 = undefined; - s.sprite___103683 = undefined; - s.overSprites___103690 = undefined; - s.overlapper___103698 = undefined; - s.unnamed726___U6 = undefined; - s.unnamed727___U7 = undefined; - s.thisKind___103704 = undefined; - s.otherKind___103708 = undefined; - s.higher___103721 = undefined; - s.lower___103730 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + s.tmp_1 = Sprite_left__P20370_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 354; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + s.tmp_0 = r0; + s.tmp_3 = Sprite_width__P20368_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 355; s.pc = 2; return s.tmp_3; + case 2: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_0 + s.tmp_2); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_right__P20372.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__P20372.isGetter = true; + +function Sprite_right__P20372_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_right__P20372, depth: s.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 ArcadePhysicsEngine_spriteCollisions__P22758(s) { +let r0 = s.r0, 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___33560 = undefined; + s.unnamed168___U1 = undefined; + s.unnamed169___U2 = undefined; + s.sprite___33562 = undefined; + s.overSprites___33569 = undefined; + s.overlapper___33577 = undefined; + s.unnamed170___U6 = undefined; + s.unnamed171___U7 = undefined; + s.thisKind___33583 = undefined; + s.otherKind___33587 = undefined; + s.higher___33600 = undefined; + s.lower___33609 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -35094,7 +33357,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C90048_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20498_VT)) failedCast(r0); r0 = pxsim_Array__length(s.arg2); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -35106,20 +33369,20 @@ switch (step) { { step = 21; continue; } case 1: case 2: - s.ms___103681 = (undefined); - s.unnamed724___U1 = (s.arg1); - s.unnamed725___U2 = (0); + s.ms___33560 = (undefined); + s.unnamed168___U1 = (s.arg1); + s.unnamed169___U2 = (0); case 3: - s.tmp_0 = r0 = s.unnamed725___U2; - r0 = pxsim_Array__length(s.unnamed724___U1); + s.tmp_0 = r0 = s.unnamed169___U2; + r0 = pxsim_Array__length(s.unnamed168___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 20; continue; } - r0 = pxsim_Array__getAt(s.unnamed724___U1, s.unnamed725___U2); - s.ms___103681 = (r0); - r0 = s.ms___103681.fields["sprite"]; - s.sprite___103683 = (r0); - r0 = s.sprite___103683.fields["flags"]; + r0 = pxsim_Array__getAt(s.unnamed168___U1, s.unnamed169___U2); + s.ms___33560 = (r0); + r0 = s.ms___33560.fields["sprite"]; + s.sprite___33562 = (r0); + r0 = s.sprite___33562.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4610); s.tmp_0 = r0; @@ -35128,27 +33391,27 @@ switch (step) { { step = 19; continue; } case 4: case 5: - s.tmp_2 = sprites_SpriteMap_overlaps__P89970_mk(s); + s.tmp_2 = sprites_SpriteMap_overlaps__P20420_mk(s); r0 = s.arg0.fields["map"]; s.tmp_2.arg0 = r0; - r0 = s.ms___103681.fields["sprite"]; + r0 = s.ms___33560.fields["sprite"]; s.tmp_2.arg1 = r0; - s.callLocIdx = 616; s.pc = 22; return s.tmp_2; + s.callLocIdx = 610; s.pc = 22; return s.tmp_2; case 22: r0 = s.retval; - s.overSprites___103690 = (r0); - s.overlapper___103698 = (undefined); - s.unnamed726___U6 = (s.overSprites___103690); - s.unnamed727___U7 = (0); + s.overSprites___33569 = (r0); + s.overlapper___33577 = (undefined); + s.unnamed170___U6 = (s.overSprites___33569); + s.unnamed171___U7 = (0); case 6: - s.tmp_0 = r0 = s.unnamed727___U7; - r0 = pxsim_Array__length(s.unnamed726___U6); + s.tmp_0 = r0 = s.unnamed171___U7; + r0 = pxsim_Array__length(s.unnamed170___U6); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 18; continue; } - r0 = pxsim_Array__getAt(s.unnamed726___U6, s.unnamed727___U7); - s.overlapper___103698 = (r0); - r0 = s.overlapper___103698.fields["flags"]; + r0 = pxsim_Array__getAt(s.unnamed170___U6, s.unnamed171___U7); + s.overlapper___33577 = (r0); + r0 = s.overlapper___33577.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 4610); s.tmp_2 = r0; @@ -35157,13 +33420,13 @@ switch (step) { { step = 17; continue; } case 7: case 8: - r0 = s.sprite___103683.fields["_kind"]; - s.thisKind___103704 = (r0); - r0 = s.overlapper___103698.fields["_kind"]; - s.otherKind___103708 = (r0); - r0 = s.sprite___103683.fields["_kindsOverlappedWith"]; + r0 = s.sprite___33562.fields["_kind"]; + s.thisKind___33583 = (r0); + r0 = s.overlapper___33577.fields["_kind"]; + s.otherKind___33587 = (r0); + r0 = s.sprite___33562.fields["_kindsOverlappedWith"]; s.tmp_2 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___103708, undefined); + r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___33587, undefined); s.tmp_1 = r0; r0 = (s.tmp_1 === -1); s.tmp_0 = r0; @@ -35172,37 +33435,37 @@ switch (step) { { step = 17; continue; } case 9: case 10: - r0 = s.sprite___103683.fields["id"]; + r0 = s.sprite___33562.fields["id"]; s.tmp_4 = r0; - r0 = s.overlapper___103698.fields["id"]; + r0 = s.overlapper___33577.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___103683; + r0 = s.sprite___33562; { step = 12; continue; } case 11: - r0 = s.overlapper___103698; + r0 = s.overlapper___33577; case 12: // jmp value (already in r0) s.tmp_6 = r0; - s.higher___103721 = (s.tmp_6); - r0 = (s.higher___103721 === s.sprite___103683); + s.higher___33600 = (s.tmp_6); + r0 = (s.higher___33600 === s.sprite___33562); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - r0 = s.overlapper___103698; + r0 = s.overlapper___33577; { step = 14; continue; } case 13: - r0 = s.sprite___103683; + r0 = s.sprite___33562; case 14: // jmp value (already in r0) s.tmp_1 = r0; - s.lower___103730 = (s.tmp_1); - r0 = s.higher___103721.fields["_overlappers"]; + s.lower___33609 = (s.tmp_1); + r0 = s.higher___33600.fields["_overlappers"]; s.tmp_2 = r0; - r0 = s.lower___103730.fields["id"]; + r0 = s.lower___33609.fields["id"]; s.tmp_3 = r0; r0 = pxsim_Array_.indexOf(s.tmp_2, s.tmp_3, undefined); s.tmp_1 = r0; @@ -35210,54 +33473,54 @@ 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__P103750); + r0 = pxsim_pxtcore_mkAction(2, forEach_inline__P33629); s.tmp_4 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___103704); - r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___103708); - r0 = pxsim_pxtcore_mkAction(5, ArcadePhysicsEngine_spriteCollisions_inline__P103774); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___33583); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___33587); + r0 = pxsim_pxtcore_mkAction(5, ArcadePhysicsEngine_spriteCollisions_inline__P33653); s.tmp_5 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___103721); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___103730); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___103683); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___103698); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___103704); - s.tmp_6 = helpers_arrayForEach__P87630_mk(s); - s.tmp_7 = helpers_arrayFilter__P87631_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___33600); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___33609); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___33562); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___33577); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___33583); + s.tmp_6 = helpers_arrayForEach__P18080_mk(s); + s.tmp_7 = helpers_arrayFilter__P18081_mk(s); s.tmp_7.arg0 = s.arg2; s.tmp_7.arg1 = s.tmp_4; - s.callLocIdx = 619; s.pc = 24; return s.tmp_7; + s.callLocIdx = 613; 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 = 621; s.pc = 23; return s.tmp_6; + s.callLocIdx = 615; s.pc = 23; return s.tmp_6; case 23: r0 = s.retval; case 15: case 16: case 17: - r0 = (s.unnamed727___U7 + 1); - s.unnamed727___U7 = (r0); + r0 = (s.unnamed171___U7 + 1); + s.unnamed171___U7 = (r0); { step = 6; continue; } case 18: - s.unnamed726___U6 = (undefined); + s.unnamed170___U6 = (undefined); case 19: - r0 = (s.unnamed725___U2 + 1); - s.unnamed725___U2 = (r0); + r0 = (s.unnamed169___U2 + 1); + s.unnamed169___U2 = (r0); { step = 3; continue; } case 20: - s.unnamed724___U1 = (undefined); + s.unnamed168___U1 = (undefined); case 21: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_spriteCollisions__P92313.info = {"start":9744,"length":2268,"line":309,"column":4,"endLine":353,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"spriteCollisions","argumentNames":["this","movedSprites","handlers"]} +ArcadePhysicsEngine_spriteCollisions__P22758.info = {"start":9744,"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__P92313_mk(s) { +function ArcadePhysicsEngine_spriteCollisions__P22758_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P92313, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P22758, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35267,18 +33530,18 @@ function ArcadePhysicsEngine_spriteCollisions__P92313_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - ms___103681: undefined, - unnamed724___U1: undefined, - unnamed725___U2: undefined, - sprite___103683: undefined, - overSprites___103690: undefined, - overlapper___103698: undefined, - unnamed726___U6: undefined, - unnamed727___U7: undefined, - thisKind___103704: undefined, - otherKind___103708: undefined, - higher___103721: undefined, - lower___103730: undefined, + ms___33560: undefined, + unnamed168___U1: undefined, + unnamed169___U2: undefined, + sprite___33562: undefined, + overSprites___33569: undefined, + overlapper___33577: undefined, + unnamed170___U6: undefined, + unnamed171___U7: undefined, + thisKind___33583: undefined, + otherKind___33587: undefined, + higher___33600: undefined, + lower___33609: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -35288,7 +33551,7 @@ function ArcadePhysicsEngine_spriteCollisions__P92313_mk(s) { -function forEach_inline__P103750(s) { +function forEach_inline__P33629(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35345,12 +33608,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -forEach_inline__P103750.info = {"start":11113,"length":137,"line":335,"column":32,"endLine":336,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +forEach_inline__P33629.info = {"start":11113,"length":137,"line":335,"column":32,"endLine":336,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function forEach_inline__P103750_mk(s) { +function forEach_inline__P33629_mk(s) { checkStack(s.depth); return { - parent: s, fn: forEach_inline__P103750, depth: s.depth + 1, + parent: s, fn: forEach_inline__P33629, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35368,7 +33631,7 @@ function forEach_inline__P103750_mk(s) { -function ArcadePhysicsEngine_spriteCollisions_inline__P103774(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P33653(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35387,7 +33650,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__P103784); + r0 = pxsim_pxtcore_mkAction(6, ArcadePhysicsEngine_spriteCollisions_inline__P33663); 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]); @@ -35400,12 +33663,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_spriteCollisions_inline__P103774.info = {"start":11310,"length":652,"line":338,"column":33,"endLine":349,"endColumn":25,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +ArcadePhysicsEngine_spriteCollisions_inline__P33653.info = {"start":11310,"length":652,"line":338,"column":33,"endLine":349,"endColumn":25,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function ArcadePhysicsEngine_spriteCollisions_inline__P103774_mk(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P33653_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P103774, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P33653, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35416,7 +33679,7 @@ function ArcadePhysicsEngine_spriteCollisions_inline__P103774_mk(s) { -function ArcadePhysicsEngine_spriteCollisions_inline__P103784(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P33663(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35472,12 +33735,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 = 620; s.pc = 7; return s.tmp_12; + s.callLocIdx = 614; 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 = 620; s.pc = 7; return s.tmp_12; } - else if (s.tmp_12.fn.isGetter) { s.tmp_12.stage2Call = true; s.callLocIdx = 620; s.pc = 7; return s.tmp_12;; } - else { s.callLocIdx = 620; 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 = 614; s.pc = 7; return s.tmp_12; } + else if (s.tmp_12.fn.isGetter) { s.tmp_12.stage2Call = true; s.callLocIdx = 614; s.pc = 7; return s.tmp_12;; } + else { s.callLocIdx = 614; s.pc = 7; return s.tmp_12; } } case 7: r0 = s.retval; @@ -35492,12 +33755,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_spriteCollisions_inline__P103784.info = {"start":11431,"length":503,"line":340,"column":50,"endLine":348,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]} +ArcadePhysicsEngine_spriteCollisions_inline__P33663.info = {"start":11431,"length":503,"line":340,"column":50,"endLine":348,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]} -function ArcadePhysicsEngine_spriteCollisions_inline__P103784_mk(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P33663_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P103784, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P33663, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35518,7 +33781,7 @@ function ArcadePhysicsEngine_spriteCollisions_inline__P103784_mk(s) { -function sprites_SpriteMap_overlaps__P89970(s) { +function sprites_SpriteMap_overlaps__P20420(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35528,47 +33791,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___103818 = undefined; - s.o___103822 = undefined; + s.n___33697 = undefined; + s.o___33701 = 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__C89967_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_neighbors__P89969_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C20417_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_neighbors__P20419_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 493; s.pc = 1; return s.tmp_0; + s.callLocIdx = 487; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.n___103818 = (r0); - r0 = pxsim_pxtcore_mkAction(1, o_inline__P103824); + s.n___33697 = (r0); + r0 = pxsim_pxtcore_mkAction(1, o_inline__P33703); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayFilter__P87631_mk(s); - s.tmp_1.arg0 = s.n___103818; + s.tmp_1 = helpers_arrayFilter__P18081_mk(s); + s.tmp_1.arg0 = s.n___33697; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 495; s.pc = 2; return s.tmp_1; + s.callLocIdx = 489; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - s.o___103822 = (r0); - r0 = s.o___103822; + s.o___33701 = (r0); + r0 = s.o___33701; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_overlaps__P89970.info = {"start":923,"length":189,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"overlaps","argumentNames":["this","sprite"]} +sprites_SpriteMap_overlaps__P20420.info = {"start":923,"length":189,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"overlaps","argumentNames":["this","sprite"]} -function sprites_SpriteMap_overlaps__P89970_mk(s) { +function sprites_SpriteMap_overlaps__P20420_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_overlaps__P89970, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_overlaps__P20420, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - n___103818: undefined, - o___103822: undefined, + n___33697: undefined, + o___33701: undefined, arg0: undefined, arg1: undefined, } } @@ -35577,7 +33840,7 @@ function sprites_SpriteMap_overlaps__P89970_mk(s) { -function o_inline__P103824(s) { +function o_inline__P33703(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35591,21 +33854,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Sprite_overlapsWith__P89941_mk(s); + s.tmp_0 = Sprite_overlapsWith__P20391_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 494; s.pc = 1; return s.tmp_0; + s.callLocIdx = 488; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -o_inline__P103824.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__P33703.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__P103824_mk(s) { +function o_inline__P33703_mk(s) { checkStack(s.depth); return { - parent: s, fn: o_inline__P103824, depth: s.depth + 1, + parent: s, fn: o_inline__P33703, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -35615,7 +33878,7 @@ function o_inline__P103824_mk(s) { -function sprites_SpriteMap_neighbors__P89969(s) { +function sprites_SpriteMap_neighbors__P20419(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35625,112 +33888,112 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___104089 = undefined; - s.layer___104091 = undefined; + s.n___33968 = undefined; + s.layer___33970 = 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__C89967_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C20417_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.n___104089 = (r0); + s.n___33968 = (r0); r0 = s.arg1.fields["layer"]; - s.layer___104091 = (r0); - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P92277_mk(s); + s.layer___33970 = (r0); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P22722_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_left__P89920_mk(s); + s.tmp_1 = Sprite_left__P20370_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 481; s.pc = 2; return s.tmp_1; + s.callLocIdx = 475; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_top__P89924_mk(s); + s.tmp_2 = Sprite_top__P20374_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 482; s.pc = 3; return s.tmp_2; + s.callLocIdx = 476; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___104091; - s.tmp_0.arg4 = s.n___104089; - s.callLocIdx = 483; s.pc = 1; return s.tmp_0; + s.tmp_0.arg3 = s.layer___33970; + s.tmp_0.arg4 = s.n___33968; + s.callLocIdx = 477; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P92277_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P22722_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_left__P89920_mk(s); + s.tmp_1 = Sprite_left__P20370_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 484; s.pc = 5; return s.tmp_1; + s.callLocIdx = 478; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_bottom__P89926_mk(s); + s.tmp_2 = Sprite_bottom__P20376_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 485; s.pc = 6; return s.tmp_2; + s.callLocIdx = 479; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___104091; - s.tmp_0.arg4 = s.n___104089; - s.callLocIdx = 486; s.pc = 4; return s.tmp_0; + s.tmp_0.arg3 = s.layer___33970; + s.tmp_0.arg4 = s.n___33968; + s.callLocIdx = 480; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P92277_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P22722_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_right__P89922_mk(s); + s.tmp_1 = Sprite_right__P20372_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 487; s.pc = 8; return s.tmp_1; + s.callLocIdx = 481; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_top__P89924_mk(s); + s.tmp_2 = Sprite_top__P20374_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 488; s.pc = 9; return s.tmp_2; + s.callLocIdx = 482; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___104091; - s.tmp_0.arg4 = s.n___104089; - s.callLocIdx = 489; s.pc = 7; return s.tmp_0; + s.tmp_0.arg3 = s.layer___33970; + s.tmp_0.arg4 = s.n___33968; + s.callLocIdx = 483; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P92277_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P22722_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_right__P89922_mk(s); + s.tmp_1 = Sprite_right__P20372_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 490; s.pc = 11; return s.tmp_1; + s.callLocIdx = 484; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_bottom__P89926_mk(s); + s.tmp_2 = Sprite_bottom__P20376_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 491; s.pc = 12; return s.tmp_2; + s.callLocIdx = 485; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___104091; - s.tmp_0.arg4 = s.n___104089; - s.callLocIdx = 492; s.pc = 10; return s.tmp_0; + s.tmp_0.arg3 = s.layer___33970; + s.tmp_0.arg4 = s.n___33968; + s.callLocIdx = 486; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - r0 = pxsim_Array_.removeElement(s.n___104089, s.arg1); - r0 = s.n___104089; + r0 = pxsim_Array_.removeElement(s.n___33968, s.arg1); + r0 = s.n___33968; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_neighbors__P89969.info = {"start":376,"length":442,"line":15,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"neighbors","argumentNames":["this","sprite"]} +sprites_SpriteMap_neighbors__P20419.info = {"start":376,"length":442,"line":15,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"neighbors","argumentNames":["this","sprite"]} -function sprites_SpriteMap_neighbors__P89969_mk(s) { +function sprites_SpriteMap_neighbors__P20419_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_neighbors__P89969, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_neighbors__P20419, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - n___104089: undefined, - layer___104091: undefined, + n___33968: undefined, + layer___33970: undefined, arg0: undefined, arg1: undefined, } } @@ -35739,7 +34002,7 @@ function sprites_SpriteMap_neighbors__P89969_mk(s) { -function sprites_SpriteMap_mergeAtKey__P92277(s) { +function sprites_SpriteMap_mergeAtKey__P22722(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35749,11 +34012,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___104136 = undefined; - s.bucket___104141 = undefined; - s.sprite___104148 = undefined; - s.unnamed720___U3 = undefined; - s.unnamed721___U4 = undefined; + s.k___34019 = undefined; + s.bucket___34024 = undefined; + s.sprite___34031 = undefined; + s.unnamed164___U3 = undefined; + s.unnamed165___U4 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -35763,33 +34026,33 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C89967_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P92275_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C20417_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_key__P22720_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 519; s.pc = 9; return s.tmp_0; + s.callLocIdx = 513; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.k___104136 = (r0); + s.k___34019 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___104136); - s.bucket___104141 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___104141); + r0 = pxsim_Array__getAt(s.tmp_0, s.k___34019); + s.bucket___34024 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___34024); if (!r0) { step = 7; continue; } - s.sprite___104148 = (undefined); - s.unnamed720___U3 = (s.bucket___104141); - s.unnamed721___U4 = (0); + s.sprite___34031 = (undefined); + s.unnamed164___U3 = (s.bucket___34024); + s.unnamed165___U4 = (0); case 1: - s.tmp_0 = r0 = s.unnamed721___U4; - r0 = pxsim_Array__length(s.unnamed720___U3); + s.tmp_0 = r0 = s.unnamed165___U4; + r0 = pxsim_Array__length(s.unnamed164___U3); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed720___U3, s.unnamed721___U4); - s.sprite___104148 = (r0); - r0 = s.sprite___104148.fields["layer"]; + r0 = pxsim_Array__getAt(s.unnamed164___U3, s.unnamed165___U4); + s.sprite___34031 = (r0); + r0 = s.sprite___34031.fields["layer"]; s.tmp_3 = r0; r0 = (s.tmp_3 & s.arg3); s.tmp_2 = r0; @@ -35798,7 +34061,7 @@ switch (step) { r0 = s.tmp_2; { step = 3; continue; } case 2: - r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___104148, undefined); + r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___34031, undefined); s.tmp_4 = r0; r0 = (s.tmp_4 < 0); case 3: @@ -35806,26 +34069,26 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__push(s.arg4, s.sprite___104148); + r0 = pxsim_Array__push(s.arg4, s.sprite___34031); case 4: case 5: - r0 = (s.unnamed721___U4 + 1); - s.unnamed721___U4 = (r0); + r0 = (s.unnamed165___U4 + 1); + s.unnamed165___U4 = (r0); { step = 1; continue; } case 6: - s.unnamed720___U3 = (undefined); + s.unnamed164___U3 = (undefined); case 7: case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_mergeAtKey__P92277.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__P22722.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__P92277_mk(s) { +function sprites_SpriteMap_mergeAtKey__P22722_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_mergeAtKey__P92277, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_mergeAtKey__P22722, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35833,11 +34096,11 @@ function sprites_SpriteMap_mergeAtKey__P92277_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - k___104136: undefined, - bucket___104141: undefined, - sprite___104148: undefined, - unnamed720___U3: undefined, - unnamed721___U4: undefined, + k___34019: undefined, + bucket___34024: undefined, + sprite___34031: undefined, + unnamed164___U3: undefined, + unnamed165___U4: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -35849,7 +34112,7 @@ function sprites_SpriteMap_mergeAtKey__P92277_mk(s) { -function sprites_SpriteMap_key__P92275(s) { +function sprites_SpriteMap_key__P22720(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35859,8 +34122,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.xi___104169 = undefined; - s.yi___104181 = undefined; + s.xi___34052 = undefined; + s.yi___34064 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -35868,8 +34131,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C89967_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P87648_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C20417_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P18098_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg0.fields["columnCount"]; s.tmp_0.arg1 = r0; @@ -35877,11 +34140,11 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.arg1, s.tmp_1); s.tmp_0.arg2 = r0; - s.callLocIdx = 507; s.pc = 1; return s.tmp_0; + s.callLocIdx = 501; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.xi___104169 = (r0); - s.tmp_0 = Math_clamp__P87648_mk(s); + s.xi___34052 = (r0); + s.tmp_0 = Math_clamp__P18098_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg0.fields["rowCount"]; s.tmp_0.arg1 = r0; @@ -35889,31 +34152,31 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.arg2, s.tmp_1); s.tmp_0.arg2 = r0; - s.callLocIdx = 508; s.pc = 2; return s.tmp_0; + s.callLocIdx = 502; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.yi___104181 = (r0); - s.tmp_0 = r0 = s.xi___104169; + s.yi___34064 = (r0); + s.tmp_0 = r0 = s.xi___34052; r0 = s.arg0.fields["columnCount"]; s.tmp_2 = r0; - r0 = (s.yi___104181 * s.tmp_2); + r0 = (s.yi___34064 * s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); return leave(s, r0) default: oops() } } } -sprites_SpriteMap_key__P92275.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__P22720.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__P92275_mk(s) { +function sprites_SpriteMap_key__P22720_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_key__P92275, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_key__P22720, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - xi___104169: undefined, - yi___104181: undefined, + xi___34052: undefined, + yi___34064: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -35923,7 +34186,7 @@ function sprites_SpriteMap_key__P92275_mk(s) { -function Sprite_overlapsWith__P89941(s) { +function Sprite_overlapsWith__P20391(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35933,15 +34196,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.A___103902 = undefined; - s.B___103903 = undefined; + s.A___33781 = undefined; + s.B___33782 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); r0 = (s.arg1 == s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -35987,23 +34250,23 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_8); if (!r0) { step = 9; continue; } - s.tmp_9 = game_Hitbox_overlapsWith__P89744_mk(s); + s.tmp_9 = game_Hitbox_overlapsWith__P20194_mk(s); r0 = s.arg1.fields["_hitbox"]; s.tmp_9.arg0 = r0; r0 = s.arg0.fields["_hitbox"]; s.tmp_9.arg1 = r0; - s.callLocIdx = 389; s.pc = 28; return s.tmp_9; + s.callLocIdx = 383; s.pc = 28; return s.tmp_9; case 28: r0 = s.retval; { step = 27; continue; } case 9: case 10: - s.tmp_13 = game_Hitbox_overlapsWith__P89744_mk(s); + s.tmp_13 = game_Hitbox_overlapsWith__P20194_mk(s); r0 = s.arg1.fields["_hitbox"]; s.tmp_13.arg0 = r0; r0 = s.arg0.fields["_hitbox"]; s.tmp_13.arg1 = r0; - s.callLocIdx = 390; s.pc = 29; return s.tmp_13; + s.callLocIdx = 384; s.pc = 29; return s.tmp_13; case 29: r0 = s.retval; s.tmp_12 = r0; @@ -36017,9 +34280,9 @@ switch (step) { { step = 27; continue; } case 11: case 12: - s.tmp_17 = Sprite_isScaled__P92268_mk(s); + s.tmp_17 = Sprite_isScaled__P22713_mk(s); s.tmp_17.arg0 = s.arg0; - s.callLocIdx = 391; s.pc = 30; return s.tmp_17; + s.callLocIdx = 385; s.pc = 30; return s.tmp_17; case 30: r0 = s.retval; s.tmp_16 = r0; @@ -36032,9 +34295,9 @@ switch (step) { r0 = s.tmp_14; { step = 14; continue; } case 13: - s.tmp_20 = Sprite_isScaled__P92268_mk(s); + s.tmp_20 = Sprite_isScaled__P22713_mk(s); s.tmp_20.arg0 = s.arg1; - s.callLocIdx = 392; s.pc = 31; return s.tmp_20; + s.callLocIdx = 386; s.pc = 31; return s.tmp_20; case 31: r0 = s.retval; s.tmp_19 = r0; @@ -36050,29 +34313,29 @@ switch (step) { s.tmp_22 = r0; r0 = s.arg0.fields["_image"]; s.tmp_23 = r0; - s.tmp_26 = Sprite_left__P89920_mk(s); + s.tmp_26 = Sprite_left__P20370_mk(s); s.tmp_26.arg0 = s.arg0; - s.callLocIdx = 393; s.pc = 32; return s.tmp_26; + s.callLocIdx = 387; s.pc = 32; return s.tmp_26; case 32: r0 = s.retval; s.tmp_25 = r0; - s.tmp_28 = Sprite_left__P89920_mk(s); + s.tmp_28 = Sprite_left__P20370_mk(s); s.tmp_28.arg0 = s.arg1; - s.callLocIdx = 394; s.pc = 33; return s.tmp_28; + s.callLocIdx = 388; s.pc = 33; return s.tmp_28; case 33: r0 = s.retval; s.tmp_27 = r0; r0 = (s.tmp_25 - s.tmp_27); s.tmp_24 = r0; - s.tmp_31 = Sprite_top__P89924_mk(s); + s.tmp_31 = Sprite_top__P20374_mk(s); s.tmp_31.arg0 = s.arg0; - s.callLocIdx = 395; s.pc = 34; return s.tmp_31; + s.callLocIdx = 389; s.pc = 34; return s.tmp_31; case 34: r0 = s.retval; s.tmp_30 = r0; - s.tmp_33 = Sprite_top__P89924_mk(s); + s.tmp_33 = Sprite_top__P20374_mk(s); s.tmp_33.arg0 = s.arg1; - s.callLocIdx = 396; s.pc = 35; return s.tmp_33; + s.callLocIdx = 390; s.pc = 35; return s.tmp_33; case 35: r0 = s.retval; s.tmp_32 = r0; @@ -36082,9 +34345,9 @@ switch (step) { { step = 27; continue; } { step = 26; continue; } case 15: - s.tmp_36 = Sprite_sx__P89891_mk(s); + s.tmp_36 = Sprite_sx__P20341_mk(s); s.tmp_36.arg0 = s.arg0; - s.callLocIdx = 397; s.pc = 36; return s.tmp_36; + s.callLocIdx = 391; s.pc = 36; return s.tmp_36; case 36: r0 = s.retval; s.tmp_35 = r0; @@ -36095,9 +34358,9 @@ switch (step) { r0 = s.tmp_34; { step = 17; continue; } case 16: - s.tmp_38 = Sprite_sy__P89893_mk(s); + s.tmp_38 = Sprite_sy__P20343_mk(s); s.tmp_38.arg0 = s.arg0; - s.callLocIdx = 398; s.pc = 37; return s.tmp_38; + s.callLocIdx = 392; s.pc = 37; return s.tmp_38; case 37: r0 = s.retval; s.tmp_37 = r0; @@ -36110,9 +34373,9 @@ switch (step) { r0 = s.tmp_39; { step = 19; continue; } case 18: - s.tmp_41 = Sprite_sx__P89891_mk(s); + s.tmp_41 = Sprite_sx__P20341_mk(s); s.tmp_41.arg0 = s.arg1; - s.callLocIdx = 399; s.pc = 38; return s.tmp_41; + s.callLocIdx = 393; s.pc = 38; return s.tmp_41; case 38: r0 = s.retval; s.tmp_40 = r0; @@ -36125,9 +34388,9 @@ switch (step) { r0 = s.tmp_42; { step = 21; continue; } case 20: - s.tmp_44 = Sprite_sy__P89893_mk(s); + s.tmp_44 = Sprite_sy__P20343_mk(s); s.tmp_44.arg0 = s.arg1; - s.callLocIdx = 400; s.pc = 39; return s.tmp_44; + s.callLocIdx = 394; s.pc = 39; return s.tmp_44; case 39: r0 = s.retval; s.tmp_43 = r0; @@ -36141,29 +34404,29 @@ switch (step) { { step = 27; continue; } case 22: case 23: - s.tmp_49 = Sprite_sx__P89891_mk(s); + s.tmp_49 = Sprite_sx__P20341_mk(s); s.tmp_49.arg0 = s.arg0; - s.callLocIdx = 401; s.pc = 40; return s.tmp_49; + s.callLocIdx = 395; s.pc = 40; return s.tmp_49; case 40: r0 = s.retval; s.tmp_48 = r0; - s.tmp_51 = Sprite_sy__P89893_mk(s); + s.tmp_51 = Sprite_sy__P20343_mk(s); s.tmp_51.arg0 = s.arg0; - s.callLocIdx = 402; s.pc = 41; return s.tmp_51; + s.callLocIdx = 396; s.pc = 41; return s.tmp_51; case 41: r0 = s.retval; s.tmp_50 = r0; r0 = (s.tmp_48 * s.tmp_50); s.tmp_47 = r0; - s.tmp_54 = Sprite_sx__P89891_mk(s); + s.tmp_54 = Sprite_sx__P20341_mk(s); s.tmp_54.arg0 = s.arg1; - s.callLocIdx = 403; s.pc = 42; return s.tmp_54; + s.callLocIdx = 397; s.pc = 42; return s.tmp_54; case 42: r0 = s.retval; s.tmp_53 = r0; - s.tmp_56 = Sprite_sy__P89893_mk(s); + s.tmp_56 = Sprite_sy__P20343_mk(s); s.tmp_56.arg0 = s.arg1; - s.callLocIdx = 404; s.pc = 43; return s.tmp_56; + s.callLocIdx = 398; s.pc = 43; return s.tmp_56; case 43: r0 = s.retval; s.tmp_55 = r0; @@ -36173,103 +34436,103 @@ switch (step) { s.tmp_46 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_46); if (!r0) { step = 24; continue; } - s.A___103902 = (s.arg0); - s.B___103903 = (s.arg1); + s.A___33781 = (s.arg0); + s.B___33782 = (s.arg1); { step = 25; continue; } case 24: - s.A___103902 = (s.arg1); - s.B___103903 = (s.arg0); + s.A___33781 = (s.arg1); + s.B___33782 = (s.arg0); case 25: - s.tmp_0 = helpers_imageBlit__P89474_mk(s); - r0 = s.A___103902.fields["_image"]; + s.tmp_0 = helpers_imageBlit__P19924_mk(s); + r0 = s.A___33781.fields["_image"]; s.tmp_0.arg0 = r0; - s.tmp_3 = Sprite_left__P89920_mk(s); - s.tmp_3.arg0 = s.B___103903; - s.callLocIdx = 406; s.pc = 45; return s.tmp_3; + s.tmp_3 = Sprite_left__P20370_mk(s); + s.tmp_3.arg0 = s.B___33782; + s.callLocIdx = 400; s.pc = 45; return s.tmp_3; case 45: r0 = s.retval; s.tmp_2 = r0; - s.tmp_5 = Sprite_left__P89920_mk(s); - s.tmp_5.arg0 = s.A___103902; - s.callLocIdx = 407; s.pc = 46; return s.tmp_5; + s.tmp_5 = Sprite_left__P20370_mk(s); + s.tmp_5.arg0 = s.A___33781; + s.callLocIdx = 401; s.pc = 46; return s.tmp_5; case 46: r0 = s.retval; s.tmp_4 = r0; r0 = (s.tmp_2 - s.tmp_4); s.tmp_1 = r0; - s.tmp_7 = Sprite_sx__P89891_mk(s); - s.tmp_7.arg0 = s.A___103902; - s.callLocIdx = 408; s.pc = 47; return s.tmp_7; + s.tmp_7 = Sprite_sx__P20341_mk(s); + s.tmp_7.arg0 = s.A___33781; + s.callLocIdx = 402; s.pc = 47; return s.tmp_7; case 47: r0 = s.retval; s.tmp_6 = r0; r0 = (s.tmp_1 / s.tmp_6); s.tmp_0.arg1 = r0; - s.tmp_10 = Sprite_top__P89924_mk(s); - s.tmp_10.arg0 = s.B___103903; - s.callLocIdx = 409; s.pc = 48; return s.tmp_10; + s.tmp_10 = Sprite_top__P20374_mk(s); + s.tmp_10.arg0 = s.B___33782; + s.callLocIdx = 403; s.pc = 48; return s.tmp_10; case 48: r0 = s.retval; s.tmp_9 = r0; - s.tmp_12 = Sprite_top__P89924_mk(s); - s.tmp_12.arg0 = s.A___103902; - s.callLocIdx = 410; s.pc = 49; return s.tmp_12; + s.tmp_12 = Sprite_top__P20374_mk(s); + s.tmp_12.arg0 = s.A___33781; + s.callLocIdx = 404; s.pc = 49; return s.tmp_12; case 49: r0 = s.retval; s.tmp_11 = r0; r0 = (s.tmp_9 - s.tmp_11); s.tmp_8 = r0; - s.tmp_14 = Sprite_sy__P89893_mk(s); - s.tmp_14.arg0 = s.A___103902; - s.callLocIdx = 411; s.pc = 50; return s.tmp_14; + s.tmp_14 = Sprite_sy__P20343_mk(s); + s.tmp_14.arg0 = s.A___33781; + s.callLocIdx = 405; s.pc = 50; return s.tmp_14; case 50: r0 = s.retval; s.tmp_13 = r0; r0 = (s.tmp_8 / s.tmp_13); s.tmp_0.arg2 = r0; - s.tmp_16 = Sprite_width__P89918_mk(s); - s.tmp_16.arg0 = s.B___103903; - s.callLocIdx = 412; s.pc = 51; return s.tmp_16; + s.tmp_16 = Sprite_width__P20368_mk(s); + s.tmp_16.arg0 = s.B___33782; + s.callLocIdx = 406; s.pc = 51; return s.tmp_16; case 51: r0 = s.retval; s.tmp_15 = r0; - s.tmp_18 = Sprite_sx__P89891_mk(s); - s.tmp_18.arg0 = s.A___103902; - s.callLocIdx = 413; s.pc = 52; return s.tmp_18; + s.tmp_18 = Sprite_sx__P20341_mk(s); + s.tmp_18.arg0 = s.A___33781; + s.callLocIdx = 407; s.pc = 52; return s.tmp_18; case 52: r0 = s.retval; s.tmp_17 = r0; r0 = (s.tmp_15 / s.tmp_17); s.tmp_0.arg3 = r0; - s.tmp_20 = Sprite_height__P89919_mk(s); - s.tmp_20.arg0 = s.B___103903; - s.callLocIdx = 414; s.pc = 53; return s.tmp_20; + s.tmp_20 = Sprite_height__P20369_mk(s); + s.tmp_20.arg0 = s.B___33782; + s.callLocIdx = 408; s.pc = 53; return s.tmp_20; case 53: r0 = s.retval; s.tmp_19 = r0; - s.tmp_22 = Sprite_sy__P89893_mk(s); - s.tmp_22.arg0 = s.A___103902; - s.callLocIdx = 415; s.pc = 54; return s.tmp_22; + s.tmp_22 = Sprite_sy__P20343_mk(s); + s.tmp_22.arg0 = s.A___33781; + s.callLocIdx = 409; s.pc = 54; return s.tmp_22; case 54: r0 = s.retval; s.tmp_21 = r0; r0 = (s.tmp_19 / s.tmp_21); s.tmp_0.arg4 = r0; - r0 = s.B___103903.fields["_image"]; + r0 = s.B___33782.fields["_image"]; s.tmp_0.arg5 = r0; s.tmp_0.arg6 = 0; s.tmp_0.arg7 = 0; - r0 = s.B___103903.fields["_image"]; + r0 = s.B___33782.fields["_image"]; s.tmp_23 = r0; r0 = pxsim_ImageMethods.width(s.tmp_23); s.tmp_0.arg8 = r0; - r0 = s.B___103903.fields["_image"]; + r0 = s.B___33782.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 = 419; s.pc = 44; return s.tmp_0; + s.callLocIdx = 413; s.pc = 44; return s.tmp_0; case 44: r0 = s.retval; { step = 27; continue; } @@ -36279,12 +34542,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_overlapsWith__P89941.info = {"start":20623,"length":1735,"line":689,"column":4,"endLine":738,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]} +Sprite_overlapsWith__P20391.info = {"start":20623,"length":1735,"line":689,"column":4,"endLine":738,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]} -function Sprite_overlapsWith__P89941_mk(s) { +function Sprite_overlapsWith__P20391_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_overlapsWith__P89941, depth: s.depth + 1, + parent: s, fn: Sprite_overlapsWith__P20391, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36343,8 +34606,8 @@ function Sprite_overlapsWith__P89941_mk(s) { tmp_54: undefined, tmp_55: undefined, tmp_56: undefined, - A___103902: undefined, - B___103903: undefined, + A___33781: undefined, + B___33782: undefined, arg0: undefined, arg1: undefined, } } @@ -36353,7 +34616,7 @@ function Sprite_overlapsWith__P89941_mk(s) { -function Sprite_isScaled__P92268(s) { +function Sprite_isScaled__P22713(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36368,7 +34631,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); r0 = s.arg0.fields["_sx"]; s.tmp_1 = r0; r0 = (s.tmp_1 !== 256); @@ -36388,12 +34651,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_isScaled__P92268.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__P22713.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__P92268_mk(s) { +function Sprite_isScaled__P22713_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isScaled__P92268, depth: s.depth + 1, + parent: s, fn: Sprite_isScaled__P22713, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36406,7 +34669,7 @@ function Sprite_isScaled__P92268_mk(s) { -function game_Hitbox_overlapsWith__P89744(s) { +function game_Hitbox_overlapsWith__P20194(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36422,32 +34685,32 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C89729_VT)) failedCast(r0); - s.tmp_0 = game_Hitbox_updateIfInvalid__P89743_mk(s); + if (!checkSubtype(r0, game_Hitbox__C20179_VT)) failedCast(r0); + s.tmp_0 = game_Hitbox_updateIfInvalid__P20193_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 250; s.pc = 18; return s.tmp_0; + s.callLocIdx = 249; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; - s.tmp_0 = game_Hitbox_updateIfInvalid__P89743_mk(s); + s.tmp_0 = game_Hitbox_updateIfInvalid__P20193_mk(s); s.tmp_0.arg0 = s.arg1; - s.callLocIdx = 251; s.pc = 19; return s.tmp_0; + s.callLocIdx = 250; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - s.tmp_1 = game_Hitbox_contains__P89742_mk(s); + s.tmp_1 = game_Hitbox_contains__P20192_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = game_Hitbox_left__P89737_mk(s); + s.tmp_2 = game_Hitbox_left__P20187_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 252; s.pc = 21; return s.tmp_2; + s.callLocIdx = 251; s.pc = 21; return s.tmp_2; case 21: r0 = s.retval; s.tmp_1.arg1 = r0; - s.tmp_3 = game_Hitbox_top__P89738_mk(s); + s.tmp_3 = game_Hitbox_top__P20188_mk(s); s.tmp_3.arg0 = s.arg1; - s.callLocIdx = 253; s.pc = 22; return s.tmp_3; + s.callLocIdx = 252; s.pc = 22; return s.tmp_3; case 22: r0 = s.retval; s.tmp_1.arg2 = r0; - s.callLocIdx = 254; s.pc = 20; return s.tmp_1; + s.callLocIdx = 253; s.pc = 20; return s.tmp_1; case 20: r0 = s.retval; s.tmp_0 = r0; @@ -36457,21 +34720,21 @@ switch (step) { { step = 17; continue; } case 1: case 2: - s.tmp_5 = game_Hitbox_contains__P89742_mk(s); + s.tmp_5 = game_Hitbox_contains__P20192_mk(s); s.tmp_5.arg0 = s.arg0; - s.tmp_6 = game_Hitbox_left__P89737_mk(s); + s.tmp_6 = game_Hitbox_left__P20187_mk(s); s.tmp_6.arg0 = s.arg1; - s.callLocIdx = 255; s.pc = 24; return s.tmp_6; + s.callLocIdx = 254; s.pc = 24; return s.tmp_6; case 24: r0 = s.retval; s.tmp_5.arg1 = r0; - s.tmp_7 = game_Hitbox_bottom__P89740_mk(s); + s.tmp_7 = game_Hitbox_bottom__P20190_mk(s); s.tmp_7.arg0 = s.arg1; - s.callLocIdx = 256; s.pc = 25; return s.tmp_7; + s.callLocIdx = 255; s.pc = 25; return s.tmp_7; case 25: r0 = s.retval; s.tmp_5.arg2 = r0; - s.callLocIdx = 257; s.pc = 23; return s.tmp_5; + s.callLocIdx = 256; s.pc = 23; return s.tmp_5; case 23: r0 = s.retval; s.tmp_4 = r0; @@ -36481,21 +34744,21 @@ switch (step) { { step = 17; continue; } case 3: case 4: - s.tmp_9 = game_Hitbox_contains__P89742_mk(s); + s.tmp_9 = game_Hitbox_contains__P20192_mk(s); s.tmp_9.arg0 = s.arg0; - s.tmp_10 = game_Hitbox_right__P89739_mk(s); + s.tmp_10 = game_Hitbox_right__P20189_mk(s); s.tmp_10.arg0 = s.arg1; - s.callLocIdx = 258; s.pc = 27; return s.tmp_10; + s.callLocIdx = 257; s.pc = 27; return s.tmp_10; case 27: r0 = s.retval; s.tmp_9.arg1 = r0; - s.tmp_11 = game_Hitbox_top__P89738_mk(s); + s.tmp_11 = game_Hitbox_top__P20188_mk(s); s.tmp_11.arg0 = s.arg1; - s.callLocIdx = 259; s.pc = 28; return s.tmp_11; + s.callLocIdx = 258; s.pc = 28; return s.tmp_11; case 28: r0 = s.retval; s.tmp_9.arg2 = r0; - s.callLocIdx = 260; s.pc = 26; return s.tmp_9; + s.callLocIdx = 259; s.pc = 26; return s.tmp_9; case 26: r0 = s.retval; s.tmp_8 = r0; @@ -36505,21 +34768,21 @@ switch (step) { { step = 17; continue; } case 5: case 6: - s.tmp_13 = game_Hitbox_contains__P89742_mk(s); + s.tmp_13 = game_Hitbox_contains__P20192_mk(s); s.tmp_13.arg0 = s.arg0; - s.tmp_14 = game_Hitbox_right__P89739_mk(s); + s.tmp_14 = game_Hitbox_right__P20189_mk(s); s.tmp_14.arg0 = s.arg1; - s.callLocIdx = 261; s.pc = 30; return s.tmp_14; + s.callLocIdx = 260; s.pc = 30; return s.tmp_14; case 30: r0 = s.retval; s.tmp_13.arg1 = r0; - s.tmp_15 = game_Hitbox_bottom__P89740_mk(s); + s.tmp_15 = game_Hitbox_bottom__P20190_mk(s); s.tmp_15.arg0 = s.arg1; - s.callLocIdx = 262; s.pc = 31; return s.tmp_15; + s.callLocIdx = 261; s.pc = 31; return s.tmp_15; case 31: r0 = s.retval; s.tmp_13.arg2 = r0; - s.callLocIdx = 263; s.pc = 29; return s.tmp_13; + s.callLocIdx = 262; s.pc = 29; return s.tmp_13; case 29: r0 = s.retval; s.tmp_12 = r0; @@ -36529,21 +34792,21 @@ switch (step) { { step = 17; continue; } case 7: case 8: - s.tmp_17 = game_Hitbox_contains__P89742_mk(s); + s.tmp_17 = game_Hitbox_contains__P20192_mk(s); s.tmp_17.arg0 = s.arg1; - s.tmp_18 = game_Hitbox_left__P89737_mk(s); + s.tmp_18 = game_Hitbox_left__P20187_mk(s); s.tmp_18.arg0 = s.arg0; - s.callLocIdx = 264; s.pc = 33; return s.tmp_18; + s.callLocIdx = 263; s.pc = 33; return s.tmp_18; case 33: r0 = s.retval; s.tmp_17.arg1 = r0; - s.tmp_19 = game_Hitbox_top__P89738_mk(s); + s.tmp_19 = game_Hitbox_top__P20188_mk(s); s.tmp_19.arg0 = s.arg0; - s.callLocIdx = 265; s.pc = 34; return s.tmp_19; + s.callLocIdx = 264; s.pc = 34; return s.tmp_19; case 34: r0 = s.retval; s.tmp_17.arg2 = r0; - s.callLocIdx = 266; s.pc = 32; return s.tmp_17; + s.callLocIdx = 265; s.pc = 32; return s.tmp_17; case 32: r0 = s.retval; s.tmp_16 = r0; @@ -36553,21 +34816,21 @@ switch (step) { { step = 17; continue; } case 9: case 10: - s.tmp_21 = game_Hitbox_contains__P89742_mk(s); + s.tmp_21 = game_Hitbox_contains__P20192_mk(s); s.tmp_21.arg0 = s.arg1; - s.tmp_22 = game_Hitbox_left__P89737_mk(s); + s.tmp_22 = game_Hitbox_left__P20187_mk(s); s.tmp_22.arg0 = s.arg0; - s.callLocIdx = 267; s.pc = 36; return s.tmp_22; + s.callLocIdx = 266; s.pc = 36; return s.tmp_22; case 36: r0 = s.retval; s.tmp_21.arg1 = r0; - s.tmp_23 = game_Hitbox_bottom__P89740_mk(s); + s.tmp_23 = game_Hitbox_bottom__P20190_mk(s); s.tmp_23.arg0 = s.arg0; - s.callLocIdx = 268; s.pc = 37; return s.tmp_23; + s.callLocIdx = 267; s.pc = 37; return s.tmp_23; case 37: r0 = s.retval; s.tmp_21.arg2 = r0; - s.callLocIdx = 269; s.pc = 35; return s.tmp_21; + s.callLocIdx = 268; s.pc = 35; return s.tmp_21; case 35: r0 = s.retval; s.tmp_20 = r0; @@ -36577,21 +34840,21 @@ switch (step) { { step = 17; continue; } case 11: case 12: - s.tmp_25 = game_Hitbox_contains__P89742_mk(s); + s.tmp_25 = game_Hitbox_contains__P20192_mk(s); s.tmp_25.arg0 = s.arg1; - s.tmp_26 = game_Hitbox_right__P89739_mk(s); + s.tmp_26 = game_Hitbox_right__P20189_mk(s); s.tmp_26.arg0 = s.arg0; - s.callLocIdx = 270; s.pc = 39; return s.tmp_26; + s.callLocIdx = 269; s.pc = 39; return s.tmp_26; case 39: r0 = s.retval; s.tmp_25.arg1 = r0; - s.tmp_27 = game_Hitbox_top__P89738_mk(s); + s.tmp_27 = game_Hitbox_top__P20188_mk(s); s.tmp_27.arg0 = s.arg0; - s.callLocIdx = 271; s.pc = 40; return s.tmp_27; + s.callLocIdx = 270; s.pc = 40; return s.tmp_27; case 40: r0 = s.retval; s.tmp_25.arg2 = r0; - s.callLocIdx = 272; s.pc = 38; return s.tmp_25; + s.callLocIdx = 271; s.pc = 38; return s.tmp_25; case 38: r0 = s.retval; s.tmp_24 = r0; @@ -36601,21 +34864,21 @@ switch (step) { { step = 17; continue; } case 13: case 14: - s.tmp_29 = game_Hitbox_contains__P89742_mk(s); + s.tmp_29 = game_Hitbox_contains__P20192_mk(s); s.tmp_29.arg0 = s.arg1; - s.tmp_30 = game_Hitbox_right__P89739_mk(s); + s.tmp_30 = game_Hitbox_right__P20189_mk(s); s.tmp_30.arg0 = s.arg0; - s.callLocIdx = 273; s.pc = 42; return s.tmp_30; + s.callLocIdx = 272; s.pc = 42; return s.tmp_30; case 42: r0 = s.retval; s.tmp_29.arg1 = r0; - s.tmp_31 = game_Hitbox_bottom__P89740_mk(s); + s.tmp_31 = game_Hitbox_bottom__P20190_mk(s); s.tmp_31.arg0 = s.arg0; - s.callLocIdx = 274; s.pc = 43; return s.tmp_31; + s.callLocIdx = 273; s.pc = 43; return s.tmp_31; case 43: r0 = s.retval; s.tmp_29.arg2 = r0; - s.callLocIdx = 275; s.pc = 41; return s.tmp_29; + s.callLocIdx = 274; s.pc = 41; return s.tmp_29; case 41: r0 = s.retval; s.tmp_28 = r0; @@ -36630,12 +34893,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_Hitbox_overlapsWith__P89744.info = {"start":2515,"length":695,"line":87,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"overlapsWith","argumentNames":["this","other"]} +game_Hitbox_overlapsWith__P20194.info = {"start":2515,"length":695,"line":87,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"overlapsWith","argumentNames":["this","other"]} -function game_Hitbox_overlapsWith__P89744_mk(s) { +function game_Hitbox_overlapsWith__P20194_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_overlapsWith__P89744, depth: s.depth + 1, + parent: s, fn: game_Hitbox_overlapsWith__P20194, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36677,7 +34940,7 @@ function game_Hitbox_overlapsWith__P89744_mk(s) { -function game_Hitbox_contains__P89742(s) { +function game_Hitbox_contains__P20192(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36694,11 +34957,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C89729_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C20179_VT)) failedCast(r0); s.tmp_1 = r0 = s.arg1; - s.tmp_3 = game_Hitbox_left__P89737_mk(s); + s.tmp_3 = game_Hitbox_left__P20187_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 230; s.pc = 7; return s.tmp_3; + s.callLocIdx = 229; s.pc = 7; return s.tmp_3; case 7: r0 = s.retval; s.tmp_2 = r0; @@ -36710,9 +34973,9 @@ switch (step) { { step = 2; continue; } case 1: s.tmp_4 = r0 = s.arg1; - s.tmp_6 = game_Hitbox_right__P89739_mk(s); + s.tmp_6 = game_Hitbox_right__P20189_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 231; s.pc = 8; return s.tmp_6; + s.callLocIdx = 230; s.pc = 8; return s.tmp_6; case 8: r0 = s.retval; s.tmp_5 = r0; @@ -36726,9 +34989,9 @@ switch (step) { { step = 4; continue; } case 3: s.tmp_8 = r0 = s.arg2; - s.tmp_10 = game_Hitbox_top__P89738_mk(s); + s.tmp_10 = game_Hitbox_top__P20188_mk(s); s.tmp_10.arg0 = s.arg0; - s.callLocIdx = 232; s.pc = 9; return s.tmp_10; + s.callLocIdx = 231; s.pc = 9; return s.tmp_10; case 9: r0 = s.retval; s.tmp_9 = r0; @@ -36742,9 +35005,9 @@ switch (step) { { step = 6; continue; } case 5: s.tmp_12 = r0 = s.arg2; - s.tmp_14 = game_Hitbox_bottom__P89740_mk(s); + s.tmp_14 = game_Hitbox_bottom__P20190_mk(s); s.tmp_14.arg0 = s.arg0; - s.callLocIdx = 233; s.pc = 10; return s.tmp_14; + s.callLocIdx = 232; s.pc = 10; return s.tmp_14; case 10: r0 = s.retval; s.tmp_13 = r0; @@ -36756,12 +35019,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_Hitbox_contains__P89742.info = {"start":1034,"length":144,"line":44,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"contains","argumentNames":["this","x","y"]} +game_Hitbox_contains__P20192.info = {"start":1034,"length":144,"line":44,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"contains","argumentNames":["this","x","y"]} -function game_Hitbox_contains__P89742_mk(s) { +function game_Hitbox_contains__P20192_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_contains__P89742, depth: s.depth + 1, + parent: s, fn: game_Hitbox_contains__P20192, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36788,7 +35051,7 @@ function game_Hitbox_contains__P89742_mk(s) { -function helpers_imageBlit__P89474(s) { +function helpers_imageBlit__P19924(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36813,7 +35076,7 @@ switch (step) { s.arg11 = (s.lambdaArgs[11]); s.lambdaArgs = null; } - s.tmp_0 = r0 = globals._blitArgs___92097; + s.tmp_0 = r0 = globals._blitArgs___22542; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; @@ -36823,36 +35086,36 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_1 = r0; - globals._blitArgs___92097 = (s.tmp_1); - s.tmp_0 = r0 = globals._blitArgs___92097; + globals._blitArgs___22542 = (s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___22542; 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___92097; + s.tmp_0 = r0 = globals._blitArgs___22542; 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___92097; + s.tmp_0 = r0 = globals._blitArgs___22542; 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___92097; + s.tmp_0 = r0 = globals._blitArgs___22542; 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___92097; + s.tmp_0 = r0 = globals._blitArgs___22542; 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___92097; + s.tmp_0 = r0 = globals._blitArgs___22542; 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___92097; + s.tmp_0 = r0 = globals._blitArgs___22542; 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___92097; + s.tmp_0 = r0 = globals._blitArgs___22542; r0 = (s.arg9 | 0); s.tmp_1 = r0; r0 = pxsim_Array_.setAt(s.tmp_0, 7, s.tmp_1); @@ -36865,7 +35128,7 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(globals._blitArgs___92097, 8, s.tmp_0); + r0 = pxsim_Array_.setAt(globals._blitArgs___22542, 8, s.tmp_0); r0 = pxsim_numops_toBoolDecr(s.arg11); if (!r0) { step = 5; continue; } r0 = 1; @@ -36875,17 +35138,17 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(globals._blitArgs___92097, 9, s.tmp_0); - r0 = pxsim_ImageMethods._blit(s.arg0, s.arg5, globals._blitArgs___92097); + r0 = pxsim_Array_.setAt(globals._blitArgs___22542, 9, s.tmp_0); + r0 = pxsim_ImageMethods._blit(s.arg0, s.arg5, globals._blitArgs___22542); return leave(s, r0) default: oops() } } } -helpers_imageBlit__P89474.info = {"start":4459,"length":642,"line":154,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]} +helpers_imageBlit__P19924.info = {"start":4459,"length":642,"line":154,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]} -function helpers_imageBlit__P89474_mk(s) { +function helpers_imageBlit__P19924_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageBlit__P89474, depth: s.depth + 1, + parent: s, fn: helpers_imageBlit__P19924, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36907,7 +35170,7 @@ function helpers_imageBlit__P89474_mk(s) { -function ArcadePhysicsEngine_createMovingSprite__P92312(s) { +function ArcadePhysicsEngine_createMovingSprite__P22757(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36917,16 +35180,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ovx___104524 = undefined; - s.ovy___104529 = undefined; - s.fx___104556 = undefined; - s.c___104563 = undefined; - s.fy___104606 = undefined; - s.c___104613 = undefined; - s.dx___104652 = undefined; - s.dy___104665 = undefined; - s.xStep___104678 = undefined; - s.yStep___104680 = undefined; + s.ovx___34407 = undefined; + s.ovy___34412 = undefined; + s.fx___34439 = undefined; + s.c___34446 = undefined; + s.fy___34489 = undefined; + s.c___34496 = undefined; + s.dx___34535 = undefined; + s.dy___34548 = undefined; + s.xStep___34561 = undefined; + s.yStep___34563 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -36935,23 +35198,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C90048_VT)) failedCast(r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P92318_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20498_VT)) failedCast(r0); + s.tmp_0 = ArcadePhysicsEngine_constrain__P22763_mk(s); s.tmp_0.arg0 = s.arg0; r0 = s.arg1.fields["_vx"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 579; s.pc = 25; return s.tmp_0; + s.callLocIdx = 573; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.ovx___104524 = (r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P92318_mk(s); + s.ovx___34407 = (r0); + s.tmp_0 = ArcadePhysicsEngine_constrain__P22763_mk(s); s.tmp_0.arg0 = s.arg0; r0 = s.arg1.fields["_vy"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 580; s.pc = 26; return s.tmp_0; + s.callLocIdx = 574; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - s.ovy___104529 = (r0); + s.ovy___34412 = (r0); r0 = s.arg1.fields["_x"]; s.tmp_0 = r0; r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); @@ -36985,41 +35248,41 @@ switch (step) { r0 = pxsim.Math_.imul(s.tmp_2, s.arg2); s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.tmp_1, 1000); - s.fx___104556 = (r0); + s.fx___34439 = (r0); r0 = s.arg1.fields["_vx"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fx___104556); - s.c___104563 = (r0); - r0 = (s.c___104563 < 0); + r0 = (s.tmp_0 - s.fx___34439); + s.c___34446 = (r0); + r0 = (s.c___34446 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } s.tmp_1 = r0 = s.arg1; - s.tmp_3 = Fx_min__P87687_mk(s); + s.tmp_3 = Fx_min__P18137_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fx___104556); + r0 = (s.tmp_4 + s.fx___34439); s.tmp_3.arg1 = r0; - s.callLocIdx = 588; s.pc = 27; return s.tmp_3; + s.callLocIdx = 582; 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___104563 > 0); + r0 = (s.c___34446 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } s.tmp_1 = r0 = s.arg1; - s.tmp_3 = Fx_max__P87688_mk(s); + s.tmp_3 = Fx_max__P18138_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fx___104556); + r0 = (s.tmp_4 - s.fx___34439); s.tmp_3.arg1 = r0; - s.callLocIdx = 590; s.pc = 28; return s.tmp_3; + s.callLocIdx = 584; s.pc = 28; return s.tmp_3; case 28: r0 = s.retval; s.tmp_2 = r0; @@ -37059,41 +35322,41 @@ switch (step) { r0 = pxsim.Math_.imul(s.tmp_2, s.arg2); s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.tmp_1, 1000); - s.fy___104606 = (r0); + s.fy___34489 = (r0); r0 = s.arg1.fields["_vy"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fy___104606); - s.c___104613 = (r0); - r0 = (s.c___104613 < 0); + r0 = (s.tmp_0 - s.fy___34489); + s.c___34496 = (r0); + r0 = (s.c___34496 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 10; continue; } s.tmp_1 = r0 = s.arg1; - s.tmp_3 = Fx_min__P87687_mk(s); + s.tmp_3 = Fx_min__P18137_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fy___104606); + r0 = (s.tmp_4 + s.fy___34489); s.tmp_3.arg1 = r0; - s.callLocIdx = 598; s.pc = 29; return s.tmp_3; + s.callLocIdx = 592; 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___104613 > 0); + r0 = (s.c___34496 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } s.tmp_1 = r0 = s.arg1; - s.tmp_3 = Fx_max__P87688_mk(s); + s.tmp_3 = Fx_max__P18138_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fy___104606); + r0 = (s.tmp_4 - s.fy___34489); s.tmp_3.arg1 = r0; - s.callLocIdx = 600; s.pc = 30; return s.tmp_3; + s.callLocIdx = 594; s.pc = 30; return s.tmp_3; case 30: r0 = s.retval; s.tmp_2 = r0; @@ -37107,28 +35370,28 @@ switch (step) { case 15: case 16: s.tmp_0 = r0 = s.arg1; - s.tmp_2 = ArcadePhysicsEngine_constrain__P92318_mk(s); + s.tmp_2 = ArcadePhysicsEngine_constrain__P22763_mk(s); s.tmp_2.arg0 = s.arg0; r0 = s.arg1.fields["_vx"]; s.tmp_2.arg1 = r0; - s.callLocIdx = 601; s.pc = 31; return s.tmp_2; + s.callLocIdx = 595; 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__P92318_mk(s); + s.tmp_2 = ArcadePhysicsEngine_constrain__P22763_mk(s); s.tmp_2.arg0 = s.arg0; r0 = s.arg1.fields["_vy"]; s.tmp_2.arg1 = r0; - s.callLocIdx = 602; s.pc = 32; return s.tmp_2; + s.callLocIdx = 596; 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___104524); + r0 = (s.tmp_4 + s.ovx___34407); s.tmp_3 = r0; r0 = (s.tmp_3 / 256); s.tmp_2 = r0; @@ -37139,10 +35402,10 @@ switch (step) { r0 = (s.tmp_0 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); - s.dx___104652 = (r0); + s.dx___34535 = (r0); r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.ovy___104529); + r0 = (s.tmp_4 + s.ovy___34412); s.tmp_3 = r0; r0 = (s.tmp_3 / 256); s.tmp_2 = r0; @@ -37153,13 +35416,13 @@ switch (step) { r0 = (s.tmp_0 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); - s.dy___104665 = (r0); - s.xStep___104678 = (s.dx___104652); - s.yStep___104680 = (s.dy___104665); + s.dy___34548 = (r0); + s.xStep___34561 = (s.dx___34535); + s.yStep___34563 = (s.dy___34548); case 17: - s.tmp_2 = Fx_abs__P87686_mk(s); - s.tmp_2.arg0 = s.xStep___104678; - s.callLocIdx = 609; s.pc = 33; return s.tmp_2; + s.tmp_2 = Fx_abs__P18136_mk(s); + s.tmp_2.arg0 = s.xStep___34561; + s.callLocIdx = 603; s.pc = 33; return s.tmp_2; case 33: r0 = s.retval; s.tmp_1 = r0; @@ -37172,9 +35435,9 @@ switch (step) { r0 = s.tmp_0; { step = 19; continue; } case 18: - s.tmp_5 = Fx_abs__P87686_mk(s); - s.tmp_5.arg0 = s.yStep___104680; - s.callLocIdx = 610; s.pc = 34; return s.tmp_5; + s.tmp_5 = Fx_abs__P18136_mk(s); + s.tmp_5.arg0 = s.yStep___34563; + s.callLocIdx = 604; s.pc = 34; return s.tmp_5; case 34: r0 = s.retval; s.tmp_4 = r0; @@ -37186,9 +35449,9 @@ switch (step) { s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 24; continue; } - s.tmp_10 = Fx_abs__P87686_mk(s); - s.tmp_10.arg0 = s.xStep___104678; - s.callLocIdx = 611; s.pc = 35; return s.tmp_10; + s.tmp_10 = Fx_abs__P18136_mk(s); + s.tmp_10.arg0 = s.xStep___34561; + s.callLocIdx = 605; s.pc = 35; return s.tmp_10; case 35: r0 = s.retval; s.tmp_9 = r0; @@ -37198,13 +35461,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___104678, 2); - s.xStep___104678 = (r0); + r0 = pxsim.Math_.idiv(s.xStep___34561, 2); + s.xStep___34561 = (r0); case 20: case 21: - s.tmp_2 = Fx_abs__P87686_mk(s); - s.tmp_2.arg0 = s.yStep___104680; - s.callLocIdx = 613; s.pc = 36; return s.tmp_2; + s.tmp_2 = Fx_abs__P18136_mk(s); + s.tmp_2.arg0 = s.yStep___34563; + s.callLocIdx = 607; s.pc = 36; return s.tmp_2; case 36: r0 = s.retval; s.tmp_1 = r0; @@ -37214,38 +35477,38 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 22; continue; } - r0 = pxsim.Math_.idiv(s.yStep___104680, 2); - s.yStep___104680 = (r0); + r0 = pxsim.Math_.idiv(s.yStep___34563, 2); + s.yStep___34563 = (r0); case 22: case 23: { step = 17; continue; } case 24: - r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C90046_VT); + r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C20496_VT); s.tmp_0 = r0; - s.tmp_1 = MovingSprite_constructor__P90047_mk(s); + s.tmp_1 = MovingSprite_constructor__P20497_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg1; r0 = s.arg1.fields["_vx"]; s.tmp_1.arg2 = r0; r0 = s.arg1.fields["_vy"]; s.tmp_1.arg3 = r0; - s.tmp_1.arg4 = s.dx___104652; - s.tmp_1.arg5 = s.dy___104665; - s.tmp_1.arg6 = s.xStep___104678; - s.tmp_1.arg7 = s.yStep___104680; - s.callLocIdx = 615; s.pc = 37; return s.tmp_1; + s.tmp_1.arg4 = s.dx___34535; + s.tmp_1.arg5 = s.dy___34548; + s.tmp_1.arg6 = s.xStep___34561; + s.tmp_1.arg7 = s.yStep___34563; + s.callLocIdx = 609; s.pc = 37; return s.tmp_1; case 37: r0 = s.retval; r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_createMovingSprite__P92312.info = {"start":6933,"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__P22757.info = {"start":6933,"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__P92312_mk(s) { +function ArcadePhysicsEngine_createMovingSprite__P22757_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P92312, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P22757, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37259,16 +35522,16 @@ function ArcadePhysicsEngine_createMovingSprite__P92312_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - ovx___104524: undefined, - ovy___104529: undefined, - fx___104556: undefined, - c___104563: undefined, - fy___104606: undefined, - c___104613: undefined, - dx___104652: undefined, - dy___104665: undefined, - xStep___104678: undefined, - yStep___104680: undefined, + ovx___34407: undefined, + ovy___34412: undefined, + fx___34439: undefined, + c___34446: undefined, + fy___34489: undefined, + c___34496: undefined, + dx___34535: undefined, + dy___34548: undefined, + xStep___34561: undefined, + yStep___34563: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -37279,7 +35542,7 @@ function ArcadePhysicsEngine_createMovingSprite__P92312_mk(s) { -function ArcadePhysicsEngine_constrain__P92318(s) { +function ArcadePhysicsEngine_constrain__P22763(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37295,30 +35558,30 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C90048_VT)) failedCast(r0); - s.tmp_0 = Fx_max__P87688_mk(s); - s.tmp_1 = Fx_min__P87687_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20498_VT)) failedCast(r0); + s.tmp_0 = Fx_max__P18138_mk(s); + s.tmp_1 = Fx_min__P18137_mk(s); r0 = s.arg0.fields["maxVelocity"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 791; s.pc = 2; return s.tmp_1; + s.callLocIdx = 785; 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 = 792; s.pc = 1; return s.tmp_0; + s.callLocIdx = 786; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_constrain__P92318.info = {"start":27343,"length":193,"line":761,"column":4,"endLine":769,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"constrain","argumentNames":["this","v"]} +ArcadePhysicsEngine_constrain__P22763.info = {"start":27343,"length":193,"line":761,"column":4,"endLine":769,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"constrain","argumentNames":["this","v"]} -function ArcadePhysicsEngine_constrain__P92318_mk(s) { +function ArcadePhysicsEngine_constrain__P22763_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_constrain__P92318, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_constrain__P22763, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37330,7 +35593,7 @@ function ArcadePhysicsEngine_constrain__P92318_mk(s) { -function Fx_compare__P87685(s) { +function Fx_compare__P18135(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37349,12 +35612,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_compare__P87685.info = {"start":1395,"length":106,"line":41,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"compare","argumentNames":["a","b"]} +Fx_compare__P18135.info = {"start":1395,"length":106,"line":41,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"compare","argumentNames":["a","b"]} -function Fx_compare__P87685_mk(s) { +function Fx_compare__P18135_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_compare__P87685, depth: s.depth + 1, + parent: s, fn: Fx_compare__P18135, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -37364,7 +35627,7 @@ function Fx_compare__P87685_mk(s) { -function sprites_SpriteMap_insertAABB__P89974(s) { +function sprites_SpriteMap_insertAABB__P20424(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37374,34 +35637,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.left___104344 = undefined; - s.top___104347 = undefined; - s.xn___104350 = undefined; - s.yn___104361 = undefined; - s.x___104372 = undefined; - s.y___104377 = undefined; + s.left___34227 = undefined; + s.top___34230 = undefined; + s.xn___34233 = undefined; + s.yn___34244 = undefined; + s.x___34255 = undefined; + s.y___34260 = 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__C89967_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P89920_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C20417_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P20370_mk(s); s.tmp_0.arg0 = s.arg1; - s.callLocIdx = 510; s.pc = 5; return s.tmp_0; + s.callLocIdx = 504; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.left___104344 = (r0); - s.tmp_0 = Sprite_top__P89924_mk(s); + s.left___34227 = (r0); + s.tmp_0 = Sprite_top__P20374_mk(s); s.tmp_0.arg0 = s.arg1; - s.callLocIdx = 511; s.pc = 6; return s.tmp_0; + s.callLocIdx = 505; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.top___104347 = (r0); - s.tmp_3 = Sprite_width__P89918_mk(s); + s.top___34230 = (r0); + s.tmp_3 = Sprite_width__P20368_mk(s); s.tmp_3.arg0 = s.arg1; - s.callLocIdx = 512; s.pc = 7; return s.tmp_3; + s.callLocIdx = 506; s.pc = 7; return s.tmp_3; case 7: r0 = s.retval; s.tmp_2 = r0; @@ -37414,10 +35677,10 @@ switch (step) { r0 = s.arg0.fields["cellWidth"]; s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.xn___104350 = (r0); - s.tmp_3 = Sprite_height__P89919_mk(s); + s.xn___34233 = (r0); + s.tmp_3 = Sprite_height__P20369_mk(s); s.tmp_3.arg0 = s.arg1; - s.callLocIdx = 513; s.pc = 8; return s.tmp_3; + s.callLocIdx = 507; s.pc = 8; return s.tmp_3; case 8: r0 = s.retval; s.tmp_2 = r0; @@ -37430,79 +35693,79 @@ switch (step) { r0 = s.arg0.fields["cellHeight"]; s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.yn___104361 = (r0); - s.x___104372 = (0); + s.yn___34244 = (r0); + s.x___34255 = (0); case 1: - r0 = (s.x___104372 <= s.xn___104350); + r0 = (s.x___34255 <= s.xn___34233); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.y___104377 = (0); + s.y___34260 = (0); case 2: - r0 = (s.y___104377 <= s.yn___104361); + r0 = (s.y___34260 <= s.yn___34244); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_1 = sprites_SpriteMap_insertAtKey__P92276_mk(s); + s.tmp_1 = sprites_SpriteMap_insertAtKey__P22721_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = r0 = s.left___104344; - s.tmp_4 = Math_min__P87652_mk(s); - s.tmp_5 = Sprite_width__P89918_mk(s); + s.tmp_2 = r0 = s.left___34227; + s.tmp_4 = Math_min__P18102_mk(s); + s.tmp_5 = Sprite_width__P20368_mk(s); s.tmp_5.arg0 = s.arg1; - s.callLocIdx = 514; s.pc = 11; return s.tmp_5; + s.callLocIdx = 508; 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___104372 * s.tmp_6); + r0 = (s.x___34255 * s.tmp_6); s.tmp_4.arg1 = r0; - s.callLocIdx = 515; s.pc = 10; return s.tmp_4; + s.callLocIdx = 509; 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___104347; - s.tmp_9 = Math_min__P87652_mk(s); - s.tmp_10 = Sprite_height__P89919_mk(s); + s.tmp_7 = r0 = s.top___34230; + s.tmp_9 = Math_min__P18102_mk(s); + s.tmp_10 = Sprite_height__P20369_mk(s); s.tmp_10.arg0 = s.arg1; - s.callLocIdx = 516; s.pc = 13; return s.tmp_10; + s.callLocIdx = 510; 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___104377 * s.tmp_11); + r0 = (s.y___34260 * s.tmp_11); s.tmp_9.arg1 = r0; - s.callLocIdx = 517; s.pc = 12; return s.tmp_9; + s.callLocIdx = 511; 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 = 518; s.pc = 9; return s.tmp_1; + s.callLocIdx = 512; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - r0 = (s.y___104377 + 1); - s.y___104377 = (r0); + r0 = (s.y___34260 + 1); + s.y___34260 = (r0); { step = 2; continue; } case 3: - r0 = (s.x___104372 + 1); - s.x___104372 = (r0); + r0 = (s.x___34255 + 1); + s.x___34255 = (r0); { step = 1; continue; } case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_insertAABB__P89974.info = {"start":3184,"length":521,"line":91,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"insertAABB","argumentNames":["this","sprite"]} +sprites_SpriteMap_insertAABB__P20424.info = {"start":3184,"length":521,"line":91,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"insertAABB","argumentNames":["this","sprite"]} -function sprites_SpriteMap_insertAABB__P89974_mk(s) { +function sprites_SpriteMap_insertAABB__P20424_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_insertAABB__P89974, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_insertAABB__P20424, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37516,12 +35779,12 @@ function sprites_SpriteMap_insertAABB__P89974_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - left___104344: undefined, - top___104347: undefined, - xn___104350: undefined, - yn___104361: undefined, - x___104372: undefined, - y___104377: undefined, + left___34227: undefined, + top___34230: undefined, + xn___34233: undefined, + yn___34244: undefined, + x___34255: undefined, + y___34260: undefined, arg0: undefined, arg1: undefined, } } @@ -37530,7 +35793,7 @@ function sprites_SpriteMap_insertAABB__P89974_mk(s) { -function sprites_SpriteMap_insertAtKey__P92276(s) { +function sprites_SpriteMap_insertAtKey__P22721(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37540,8 +35803,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___104412 = undefined; - s.bucket___104417 = undefined; + s.k___34295 = undefined; + s.bucket___34300 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -37550,20 +35813,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C89967_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P92275_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C20417_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_key__P22720_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 509; s.pc = 5; return s.tmp_0; + s.callLocIdx = 503; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.k___104412 = (r0); + s.k___34295 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___104412); - s.bucket___104417 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___104417); + r0 = pxsim_Array__getAt(s.tmp_0, s.k___34295); + s.bucket___34300 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___34300); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -37571,40 +35834,40 @@ switch (step) { if (!r0) { step = 1; continue; } r0 = s.arg0.fields["buckets"]; s.tmp_2 = r0; - s.tmp_3 = r0 = s.k___104412; + s.tmp_3 = r0 = s.k___34295; r0 = pxsim_Array__mk(); s.tmp_4 = r0; r0 = pxsim_Array_.setAt(s.tmp_2, s.tmp_3, s.tmp_4); - s.bucket___104417 = (s.tmp_4); + s.bucket___34300 = (s.tmp_4); case 1: case 2: - r0 = pxsim_Array_.indexOf(s.bucket___104417, s.arg3, undefined); + r0 = pxsim_Array_.indexOf(s.bucket___34300, 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___104417, s.arg3); + r0 = pxsim_Array__push(s.bucket___34300, s.arg3); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_insertAtKey__P92276.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__P22721.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__P92276_mk(s) { +function sprites_SpriteMap_insertAtKey__P22721_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_insertAtKey__P92276, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_insertAtKey__P22721, depth: s.depth + 1, pc: 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___104412: undefined, - bucket___104417: undefined, + k___34295: undefined, + bucket___34300: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -37615,7 +35878,7 @@ function sprites_SpriteMap_insertAtKey__P92276_mk(s) { -function sprites_SpriteMap_clear__P89973(s) { +function sprites_SpriteMap_clear__P20423(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37630,7 +35893,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C89967_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C20417_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -37639,12 +35902,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteMap_clear__P89973.info = {"start":2532,"length":50,"line":72,"column":8,"endLine":74,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"clear","argumentNames":["this"]} +sprites_SpriteMap_clear__P20423.info = {"start":2532,"length":50,"line":72,"column":8,"endLine":74,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"clear","argumentNames":["this"]} -function sprites_SpriteMap_clear__P89973_mk(s) { +function sprites_SpriteMap_clear__P20423_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_clear__P89973, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_clear__P20423, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37655,7 +35918,7 @@ function sprites_SpriteMap_clear__P89973_mk(s) { -function sprites_SpriteMap_resizeBuckets__P89972(s) { +function sprites_SpriteMap_resizeBuckets__P20422(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37665,129 +35928,129 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.maxWidth___104447 = undefined; - s.maxHeight___104448 = undefined; - s.sprite___104450 = undefined; - s.unnamed718___U3 = undefined; - s.unnamed719___U4 = undefined; - s.tMap___104466 = undefined; - s.areaWidth___104470 = undefined; - s.areaHeight___104477 = undefined; + s.maxWidth___34330 = undefined; + s.maxHeight___34331 = undefined; + s.sprite___34333 = undefined; + s.unnamed162___U3 = undefined; + s.unnamed163___U4 = undefined; + s.tMap___34349 = undefined; + s.areaWidth___34353 = undefined; + s.areaHeight___34360 = 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__C89967_VT)) failedCast(r0); - s.maxWidth___104447 = (0); - s.maxHeight___104448 = (0); - s.sprite___104450 = (undefined); - s.unnamed718___U3 = (s.arg1); - s.unnamed719___U4 = (0); + if (!checkSubtype(r0, sprites_SpriteMap__C20417_VT)) failedCast(r0); + s.maxWidth___34330 = (0); + s.maxHeight___34331 = (0); + s.sprite___34333 = (undefined); + s.unnamed162___U3 = (s.arg1); + s.unnamed163___U4 = (0); case 1: - s.tmp_0 = r0 = s.unnamed719___U4; - r0 = pxsim_Array__length(s.unnamed718___U3); + s.tmp_0 = r0 = s.unnamed163___U4; + r0 = pxsim_Array__length(s.unnamed162___U3); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed718___U3, s.unnamed719___U4); - s.sprite___104450 = (r0); - s.tmp_4 = Sprite_width__P89918_mk(s); - s.tmp_4.arg0 = s.sprite___104450; - s.callLocIdx = 498; s.pc = 11; return s.tmp_4; + r0 = pxsim_Array__getAt(s.unnamed162___U3, s.unnamed163___U4); + s.sprite___34333 = (r0); + s.tmp_4 = Sprite_width__P20368_mk(s); + s.tmp_4.arg0 = s.sprite___34333; + s.callLocIdx = 492; s.pc = 11; return s.tmp_4; case 11: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 > s.maxWidth___104447); + r0 = (s.tmp_3 > s.maxWidth___34330); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 2; continue; } - s.tmp_5 = Sprite_width__P89918_mk(s); - s.tmp_5.arg0 = s.sprite___104450; - s.callLocIdx = 499; s.pc = 12; return s.tmp_5; + s.tmp_5 = Sprite_width__P20368_mk(s); + s.tmp_5.arg0 = s.sprite___34333; + s.callLocIdx = 493; s.pc = 12; return s.tmp_5; case 12: r0 = s.retval; - s.maxWidth___104447 = (r0); + s.maxWidth___34330 = (r0); case 2: case 3: - s.tmp_2 = Sprite_height__P89919_mk(s); - s.tmp_2.arg0 = s.sprite___104450; - s.callLocIdx = 500; s.pc = 13; return s.tmp_2; + s.tmp_2 = Sprite_height__P20369_mk(s); + s.tmp_2.arg0 = s.sprite___34333; + s.callLocIdx = 494; s.pc = 13; return s.tmp_2; case 13: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 > s.maxHeight___104448); + r0 = (s.tmp_1 > s.maxHeight___34331); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_3 = Sprite_height__P89919_mk(s); - s.tmp_3.arg0 = s.sprite___104450; - s.callLocIdx = 501; s.pc = 14; return s.tmp_3; + s.tmp_3 = Sprite_height__P20369_mk(s); + s.tmp_3.arg0 = s.sprite___34333; + s.callLocIdx = 495; s.pc = 14; return s.tmp_3; case 14: r0 = s.retval; - s.maxHeight___104448 = (r0); + s.maxHeight___34331 = (r0); case 4: case 5: - r0 = (s.unnamed719___U4 + 1); - s.unnamed719___U4 = (r0); + r0 = (s.unnamed163___U4 + 1); + s.unnamed163___U4 = (r0); { step = 1; continue; } case 6: - s.unnamed718___U3 = (undefined); - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 502; s.pc = 15; return s.tmp_0; + s.unnamed162___U3 = (undefined); + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 496; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tMap___104466 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tMap___104466); + s.tMap___34349 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tMap___34349); if (!r0) { step = 7; continue; } - s.tmp_0 = tiles_TileMap_areaWidth__P90264_mk(s); - s.tmp_0.arg0 = s.tMap___104466; - s.callLocIdx = 503; s.pc = 16; return s.tmp_0; + s.tmp_0 = tiles_TileMap_areaWidth__P20714_mk(s); + s.tmp_0.arg0 = s.tMap___34349; + s.callLocIdx = 497; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; { step = 8; continue; } case 7: - r0 = pxsim_ImageMethods.width(globals.screen___89553); + r0 = pxsim_ImageMethods.width(globals.screen___20003); case 8: // jmp value (already in r0) s.tmp_1 = r0; - s.areaWidth___104470 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.tMap___104466); + s.areaWidth___34353 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tMap___34349); if (!r0) { step = 9; continue; } - s.tmp_0 = tiles_TileMap_areaHeight__P90265_mk(s); - s.tmp_0.arg0 = s.tMap___104466; - s.callLocIdx = 504; s.pc = 17; return s.tmp_0; + s.tmp_0 = tiles_TileMap_areaHeight__P20715_mk(s); + s.tmp_0.arg0 = s.tMap___34349; + s.callLocIdx = 498; s.pc = 17; return s.tmp_0; case 17: r0 = s.retval; { step = 10; continue; } case 9: - r0 = pxsim_ImageMethods.height(globals.screen___89553); + r0 = pxsim_ImageMethods.height(globals.screen___20003); case 10: // jmp value (already in r0) s.tmp_1 = r0; - s.areaHeight___104477 = (s.tmp_1); + s.areaHeight___34360 = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P87648_mk(s); + s.tmp_2 = Math_clamp__P18098_mk(s); s.tmp_2.arg0 = 8; - r0 = (s.areaWidth___104470 >> 2); + r0 = (s.areaWidth___34353 >> 2); s.tmp_2.arg1 = r0; - r0 = (s.maxWidth___104447 * 2); + r0 = (s.maxWidth___34330 * 2); s.tmp_2.arg2 = r0; - s.callLocIdx = 505; s.pc = 18; return s.tmp_2; + s.callLocIdx = 499; s.pc = 18; return s.tmp_2; case 18: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["cellWidth"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P87648_mk(s); + s.tmp_2 = Math_clamp__P18098_mk(s); s.tmp_2.arg0 = 8; - r0 = (s.areaHeight___104477 >> 2); + r0 = (s.areaHeight___34360 >> 2); s.tmp_2.arg1 = r0; - r0 = (s.maxHeight___104448 * 2); + r0 = (s.maxHeight___34331 * 2); s.tmp_2.arg2 = r0; - s.callLocIdx = 506; s.pc = 19; return s.tmp_2; + s.callLocIdx = 500; s.pc = 19; return s.tmp_2; case 19: r0 = s.retval; s.tmp_1 = r0; @@ -37795,25 +36058,25 @@ switch (step) { s.tmp_0 = r0 = s.arg0; r0 = s.arg0.fields["cellHeight"]; s.tmp_2 = r0; - r0 = pxsim.Math_.idiv(s.areaHeight___104477, s.tmp_2); + r0 = pxsim.Math_.idiv(s.areaHeight___34360, 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___104470, s.tmp_2); + r0 = pxsim.Math_.idiv(s.areaWidth___34353, s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0).fields["columnCount"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_resizeBuckets__P89972.info = {"start":1696,"length":826,"line":52,"column":8,"endLine":70,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"resizeBuckets","argumentNames":["this","sprites"]} +sprites_SpriteMap_resizeBuckets__P20422.info = {"start":1696,"length":826,"line":52,"column":8,"endLine":70,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"resizeBuckets","argumentNames":["this","sprites"]} -function sprites_SpriteMap_resizeBuckets__P89972_mk(s) { +function sprites_SpriteMap_resizeBuckets__P20422_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_resizeBuckets__P89972, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_resizeBuckets__P20422, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37821,14 +36084,14 @@ function sprites_SpriteMap_resizeBuckets__P89972_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - maxWidth___104447: undefined, - maxHeight___104448: undefined, - sprite___104450: undefined, - unnamed718___U3: undefined, - unnamed719___U4: undefined, - tMap___104466: undefined, - areaWidth___104470: undefined, - areaHeight___104477: undefined, + maxWidth___34330: undefined, + maxHeight___34331: undefined, + sprite___34333: undefined, + unnamed162___U3: undefined, + unnamed163___U4: undefined, + tMap___34349: undefined, + areaWidth___34353: undefined, + areaHeight___34360: undefined, arg0: undefined, arg1: undefined, } } @@ -37837,7 +36100,7 @@ function sprites_SpriteMap_resizeBuckets__P89972_mk(s) { -function Sprite_clearObstacles__P89946(s) { +function Sprite_clearObstacles__P20396(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37852,7 +36115,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -37861,12 +36124,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_clearObstacles__P89946.info = {"start":24932,"length":54,"line":813,"column":4,"endLine":815,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]} +Sprite_clearObstacles__P20396.info = {"start":24932,"length":54,"line":813,"column":4,"endLine":815,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]} -function Sprite_clearObstacles__P89946_mk(s) { +function Sprite_clearObstacles__P20396_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_clearObstacles__P89946, depth: s.depth + 1, + parent: s, fn: Sprite_clearObstacles__P20396, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37877,7 +36140,7 @@ function Sprite_clearObstacles__P89946_mk(s) { -function Fx_idiv__P87684(s) { +function Fx_idiv__P18134(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37896,13 +36159,83 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_idiv__P87684.info = {"start":1279,"length":111,"line":38,"column":4,"endLine":40,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"idiv","argumentNames":["a","b"]} +Fx_idiv__P18134.info = {"start":1279,"length":111,"line":38,"column":4,"endLine":40,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"idiv","argumentNames":["a","b"]} + +function Fx_idiv__P18134_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_idiv__P18134, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, +} } + + + + + +function helpers_arrayMap__P18077(s) { +let r0 = s.r0, 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___34625 = undefined; + s.len___34627 = undefined; + s.i___34630 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim_Array__mk(); + s.res___34625 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___34627 = (r0); + s.i___34630 = (0); + case 1: + r0 = (s.i___34630 < s.len___34627); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = r0 = s.res___34625; + s.tmp_3 = lambda_3_mk(s); + s.tmp_3.argL = s.arg1; + r0 = pxsim_Array__getAt(s.arg0, s.i___34630); + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.i___34630; + setupLambda(s.tmp_3, s.tmp_3.argL); + s.callLocIdx = 3; s.pc = 3; return s.tmp_3; + case 3: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___34630 + 1); + s.i___34630 = (r0); + { step = 1; continue; } + case 2: + r0 = s.res___34625; + return leave(s, r0) + default: oops() +} } } +helpers_arrayMap__P18077.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 Fx_idiv__P87684_mk(s) { +function helpers_arrayMap__P18077_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_idiv__P87684, depth: s.depth + 1, + parent: s, fn: helpers_arrayMap__P18077, depth: s.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___34625: undefined, + len___34627: undefined, + i___34630: undefined, arg0: undefined, arg1: undefined, } } @@ -37911,7 +36244,7 @@ function Fx_idiv__P87684_mk(s) { -function ArcadePhysicsEngine_draw__P90059(s) { +function ArcadePhysicsEngine_draw__P20509(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37926,23 +36259,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C90048_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_draw__P89971_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20498_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_draw__P20421_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; - s.callLocIdx = 544; s.pc = 1; return s.tmp_0; + s.callLocIdx = 538; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_draw__P90059.info = {"start":2777,"length":39,"line":108,"column":4,"endLine":110,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} +ArcadePhysicsEngine_draw__P20509.info = {"start":2777,"length":39,"line":108,"column":4,"endLine":110,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} -function ArcadePhysicsEngine_draw__P90059_mk(s) { +function ArcadePhysicsEngine_draw__P20509_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_draw__P90059, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_draw__P20509, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -37952,7 +36285,7 @@ function ArcadePhysicsEngine_draw__P90059_mk(s) { -function sprites_SpriteMap_draw__P89971(s) { +function sprites_SpriteMap_draw__P20421(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37962,108 +36295,108 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x___104745 = undefined; - s.y___104751 = undefined; - s.left___104757 = undefined; - s.top___104762 = undefined; - s.k___104767 = undefined; - s.b___104772 = undefined; + s.x___34651 = undefined; + s.y___34657 = undefined; + s.left___34663 = undefined; + s.top___34668 = undefined; + s.k___34673 = undefined; + s.b___34678 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C89967_VT)) failedCast(r0); - s.x___104745 = (0); + if (!checkSubtype(r0, sprites_SpriteMap__C20417_VT)) failedCast(r0); + s.x___34651 = (0); case 1: r0 = s.arg0.fields["columnCount"]; s.tmp_1 = r0; - r0 = (s.x___104745 < s.tmp_1); + r0 = (s.x___34651 < s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - s.y___104751 = (0); + s.y___34657 = (0); case 2: r0 = s.arg0.fields["rowCount"]; s.tmp_1 = r0; - r0 = (s.y___104751 < s.tmp_1); + r0 = (s.y___34657 < 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___104745 * s.tmp_2); - s.left___104757 = (r0); + r0 = (s.x___34651 * s.tmp_2); + s.left___34663 = (r0); r0 = s.arg0.fields["cellHeight"]; s.tmp_0 = r0; - r0 = (s.y___104751 * s.tmp_0); - s.top___104762 = (r0); - s.tmp_0 = sprites_SpriteMap_key__P92275_mk(s); + r0 = (s.y___34657 * s.tmp_0); + s.top___34668 = (r0); + s.tmp_0 = sprites_SpriteMap_key__P22720_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.left___104757; - s.tmp_0.arg2 = s.top___104762; - s.callLocIdx = 496; s.pc = 9; return s.tmp_0; + s.tmp_0.arg1 = s.left___34663; + s.tmp_0.arg2 = s.top___34668; + s.callLocIdx = 490; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.k___104767 = (r0); + s.k___34673 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___104767); - s.b___104772 = (r0); - s.tmp_0 = r0 = s.b___104772; + r0 = pxsim_Array__getAt(s.tmp_0, s.k___34673); + s.b___34678 = (r0); + s.tmp_0 = r0 = s.b___34678; 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___104772); + r0 = pxsim_Array__length(s.b___34678); case 4: // jmp value (already in r0) s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 5; continue; } - s.tmp_2 = helpers_imageDrawRect__P89480_mk(s); - s.tmp_2.arg0 = globals.screen___89553; - s.tmp_2.arg1 = s.left___104757; - s.tmp_2.arg2 = s.top___104762; + s.tmp_2 = helpers_imageDrawRect__P19930_mk(s); + s.tmp_2.arg0 = globals.screen___20003; + s.tmp_2.arg1 = s.left___34663; + s.tmp_2.arg2 = s.top___34668; 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 = 497; s.pc = 10; return s.tmp_2; + s.callLocIdx = 491; s.pc = 10; return s.tmp_2; case 10: r0 = s.retval; case 5: case 6: - r0 = (s.y___104751 + 1); - s.y___104751 = (r0); + r0 = (s.y___34657 + 1); + s.y___34657 = (r0); { step = 2; continue; } case 7: - r0 = (s.x___104745 + 1); - s.x___104745 = (r0); + r0 = (s.x___34651 + 1); + s.x___34651 = (r0); { step = 1; continue; } case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_draw__P89971.info = {"start":1122,"length":496,"line":36,"column":8,"endLine":47,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"draw","argumentNames":["this"]} +sprites_SpriteMap_draw__P20421.info = {"start":1122,"length":496,"line":36,"column":8,"endLine":47,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"draw","argumentNames":["this"]} -function sprites_SpriteMap_draw__P89971_mk(s) { +function sprites_SpriteMap_draw__P20421_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_draw__P89971, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_draw__P20421, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - x___104745: undefined, - y___104751: undefined, - left___104757: undefined, - top___104762: undefined, - k___104767: undefined, - b___104772: undefined, + x___34651: undefined, + y___34657: undefined, + left___34663: undefined, + top___34668: undefined, + k___34673: undefined, + b___34678: undefined, arg0: undefined, } } @@ -38071,7 +36404,7 @@ function sprites_SpriteMap_draw__P89971_mk(s) { -function ArcadePhysicsEngine_removeSprite__P90058(s) { +function ArcadePhysicsEngine_removeSprite__P20508(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38087,7 +36420,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C90048_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20498_VT)) failedCast(r0); r0 = s.arg0.fields["sprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg1); @@ -38095,12 +36428,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_removeSprite__P90058.info = {"start":2691,"length":80,"line":104,"column":4,"endLine":106,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} +ArcadePhysicsEngine_removeSprite__P20508.info = {"start":2691,"length":80,"line":104,"column":4,"endLine":106,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} -function ArcadePhysicsEngine_removeSprite__P90058_mk(s) { +function ArcadePhysicsEngine_removeSprite__P20508_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_removeSprite__P90058, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_removeSprite__P20508, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -38111,7 +36444,7 @@ function ArcadePhysicsEngine_removeSprite__P90058_mk(s) { -function ArcadePhysicsEngine_addSprite__P90057(s) { +function ArcadePhysicsEngine_addSprite__P20507(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38121,33 +36454,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___104809 = undefined; + s.tm___34715 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C90048_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20498_VT)) failedCast(r0); r0 = s.arg0.fields["sprites"]; s.tmp_0 = r0; r0 = pxsim_Array__push(s.tmp_0, s.arg1); - s.tmp_0 = game_currentScene__P90520_mk(s); - s.callLocIdx = 542; s.pc = 5; return s.tmp_0; + s.tmp_0 = game_currentScene__P20970_mk(s); + s.callLocIdx = 536; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___104809 = (r0); - s.tmp_0 = r0 = s.tm___104809; + s.tm___34715 = (r0); + s.tmp_0 = r0 = s.tm___34715; 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__P90279_mk(s); - s.tmp_1.arg0 = s.tm___104809; + s.tmp_1 = tiles_TileMap_isOnWall__P20729_mk(s); + s.tmp_1.arg0 = s.tm___34715; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 543; s.pc = 6; return s.tmp_1; + s.callLocIdx = 537; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; case 2: @@ -38167,12 +36500,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_addSprite__P90057.info = {"start":2465,"length":220,"line":96,"column":4,"endLine":102,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +ArcadePhysicsEngine_addSprite__P20507.info = {"start":2465,"length":220,"line":96,"column":4,"endLine":102,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} -function ArcadePhysicsEngine_addSprite__P90057_mk(s) { +function ArcadePhysicsEngine_addSprite__P20507_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_addSprite__P90057, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_addSprite__P20507, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38180,7 +36513,7 @@ function ArcadePhysicsEngine_addSprite__P90057_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tm___104809: undefined, + tm___34715: undefined, arg0: undefined, arg1: undefined, } } @@ -38189,7 +36522,7 @@ function ArcadePhysicsEngine_addSprite__P90057_mk(s) { -function tiles_TileMapData_constructor__P90239(s) { +function tiles_TileMapData_constructor__P20689(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38208,14 +36541,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C90238_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C20688_VT)) failedCast(r0); r0 = (s.arg0).fields["data"] = (s.arg1); r0 = (s.arg0).fields["layers"] = (s.arg2); r0 = (s.arg0).fields["tileset"] = (s.arg3); - s.tmp_0 = tiles_TileMapData_scale__P90243_mk(s); + s.tmp_0 = tiles_TileMapData_scale__P20693_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg4; - s.callLocIdx = 814; s.pc = 1; return s.tmp_0; + s.callLocIdx = 808; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; s.tmp_0 = r0 = s.arg0; @@ -38230,12 +36563,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_constructor__P90239.info = {"start":6048,"length":358,"line":204,"column":8,"endLine":212,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","data","layers","tileset","scale"]} +tiles_TileMapData_constructor__P20689.info = {"start":6048,"length":358,"line":204,"column":8,"endLine":212,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","data","layers","tileset","scale"]} -function tiles_TileMapData_constructor__P90239_mk(s) { +function tiles_TileMapData_constructor__P20689_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_constructor__P90239, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_constructor__P20689, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38250,7 +36583,7 @@ function tiles_TileMapData_constructor__P90239_mk(s) { -function tiles_TileMapData_scale__P90243(s) { +function tiles_TileMapData_scale__P20693(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38266,7 +36599,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C90238_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C20688_VT)) failedCast(r0); r0 = (s.arg0).fields["_scale"] = (s.arg1); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); @@ -38276,12 +36609,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_scale__P90243.info = {"start":6640,"length":102,"line":226,"column":8,"endLine":229,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} +tiles_TileMapData_scale__P20693.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 tiles_TileMapData_scale__P90243_mk(s) { +function tiles_TileMapData_scale__P20693_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_scale__P90243, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P20693, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38293,7 +36626,7 @@ function tiles_TileMapData_scale__P90243_mk(s) { -function tiles_TileMap_constructor__P90258(s) { +function tiles_TileMap_constructor__P20708(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38309,23 +36642,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C90256_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C20706_VT)) failedCast(r0); r0 = (s.arg0).fields["_layer"] = (1); - s.tmp_0 = tiles_TileMap_scale__P90260_mk(s); + s.tmp_0 = tiles_TileMap_scale__P20710_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 820; s.pc = 1; return s.tmp_0; + s.callLocIdx = 814; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, tiles_TileMap_inline__P104870); + r0 = pxsim_pxtcore_mkAction(1, tiles_TileMap_inline__P34776); 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__P90326_mk(s); + s.tmp_3 = scene_createRenderable__P20776_mk(s); s.tmp_3.arg0 = -1; s.tmp_3.arg1 = s.tmp_0; s.tmp_3.arg2 = undefined; - s.callLocIdx = 822; s.pc = 2; return s.tmp_3; + s.callLocIdx = 816; s.pc = 2; return s.tmp_3; case 2: r0 = s.retval; s.tmp_2 = r0; @@ -38334,12 +36667,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_constructor__P90258.info = {"start":8927,"length":268,"line":300,"column":8,"endLine":308,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","scale"]} +tiles_TileMap_constructor__P20708.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 tiles_TileMap_constructor__P90258_mk(s) { +function tiles_TileMap_constructor__P20708_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_constructor__P90258, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_constructor__P20708, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38353,7 +36686,7 @@ function tiles_TileMap_constructor__P90258_mk(s) { -function tiles_TileMap_inline__P104870(s) { +function tiles_TileMap_inline__P34776(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38368,23 +36701,23 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tiles_TileMap_draw__P92388_mk(s); + s.tmp_0 = tiles_TileMap_draw__P22833_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 821; s.pc = 1; return s.tmp_0; + s.callLocIdx = 815; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_inline__P104870.info = {"start":9145,"length":25,"line":306,"column":16,"endLine":306,"endColumn":41,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["t","c"]} +tiles_TileMap_inline__P34776.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 tiles_TileMap_inline__P104870_mk(s) { +function tiles_TileMap_inline__P34776_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_inline__P104870, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_inline__P34776, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -38395,7 +36728,7 @@ function tiles_TileMap_inline__P104870_mk(s) { -function tiles_TileMap_draw__P92388(s) { +function tiles_TileMap_draw__P22833(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38405,21 +36738,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.bitmask___104881 = undefined; - s.offsetX___104887 = undefined; - s.offsetY___104892 = undefined; - s.x0___104897 = undefined; - s.xn___104904 = undefined; - s.y0___104921 = undefined; - s.yn___104928 = undefined; - s.x___104945 = undefined; - s.y___104951 = undefined; - s.index___104957 = undefined; - s.tile___104964 = undefined; - s.x___105000 = undefined; - s.xLine___105006 = undefined; - s.y___105032 = undefined; - s.yLine___105038 = undefined; + s.bitmask___34787 = undefined; + s.offsetX___34793 = undefined; + s.offsetY___34798 = undefined; + s.x0___34803 = undefined; + s.xn___34810 = undefined; + s.y0___34827 = undefined; + s.yn___34834 = undefined; + s.x___34851 = undefined; + s.y___34857 = undefined; + s.index___34863 = undefined; + s.tile___34870 = undefined; + s.x___34906 = undefined; + s.xLine___34912 = undefined; + s.y___34938 = undefined; + s.yLine___34944 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -38427,7 +36760,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C90256_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C20706_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); @@ -38452,16 +36785,16 @@ switch (step) { r0 = (1 << s.tmp_8); s.tmp_7 = r0; r0 = (s.tmp_7 - 1); - s.bitmask___104881 = (r0); + s.bitmask___34787 = (r0); r0 = s.arg2.fields["drawOffsetX"]; s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___104881); - s.offsetX___104887 = (r0); + r0 = (s.tmp_0 & s.bitmask___34787); + s.offsetX___34793 = (r0); r0 = s.arg2.fields["drawOffsetY"]; s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___104881); - s.offsetY___104892 = (r0); - s.tmp_0 = Math_max__P87651_mk(s); + r0 = (s.tmp_0 & s.bitmask___34787); + s.offsetY___34798 = (r0); + s.tmp_0 = Math_max__P18101_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg2.fields["drawOffsetX"]; s.tmp_1 = r0; @@ -38469,11 +36802,11 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_1 >> s.tmp_2); s.tmp_0.arg1 = r0; - s.callLocIdx = 840; s.pc = 24; return s.tmp_0; + s.callLocIdx = 834; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.x0___104897 = (r0); - s.tmp_0 = Math_min__P87652_mk(s); + s.x0___34803 = (r0); + s.tmp_0 = Math_min__P18102_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_width"]; @@ -38490,11 +36823,11 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_2 + 1); s.tmp_0.arg1 = r0; - s.callLocIdx = 843; s.pc = 25; return s.tmp_0; + s.callLocIdx = 837; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.xn___104904 = (r0); - s.tmp_0 = Math_max__P87651_mk(s); + s.xn___34810 = (r0); + s.tmp_0 = Math_max__P18101_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg2.fields["drawOffsetY"]; s.tmp_1 = r0; @@ -38502,11 +36835,11 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_1 >> s.tmp_2); s.tmp_0.arg1 = r0; - s.callLocIdx = 845; s.pc = 26; return s.tmp_0; + s.callLocIdx = 839; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - s.y0___104921 = (r0); - s.tmp_0 = Math_min__P87652_mk(s); + s.y0___34827 = (r0); + s.tmp_0 = Math_min__P18102_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_height"]; @@ -38523,95 +36856,95 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_2 + 1); s.tmp_0.arg1 = r0; - s.callLocIdx = 848; s.pc = 27; return s.tmp_0; + s.callLocIdx = 842; s.pc = 27; return s.tmp_0; case 27: r0 = s.retval; - s.yn___104928 = (r0); - s.x___104945 = (s.x0___104897); + s.yn___34834 = (r0); + s.x___34851 = (s.x0___34803); case 3: - r0 = (s.x___104945 <= s.xn___104904); + r0 = (s.x___34851 <= s.xn___34810); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - s.y___104951 = (s.y0___104921); + s.y___34857 = (s.y0___34827); case 4: - r0 = (s.y___104951 <= s.yn___104928); + r0 = (s.y___34857 <= s.yn___34834); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_1 = tiles_TileMapData_getTile__P90244_mk(s); + s.tmp_1 = tiles_TileMapData_getTile__P20694_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.x___104945; - s.tmp_1.arg2 = s.y___104951; - s.callLocIdx = 849; s.pc = 28; return s.tmp_1; + s.tmp_1.arg1 = s.x___34851; + s.tmp_1.arg2 = s.y___34857; + s.callLocIdx = 843; s.pc = 28; return s.tmp_1; case 28: r0 = s.retval; - s.index___104957 = (r0); - s.tmp_0 = tiles_TileMapData_getTileImage__P90247_mk(s); + s.index___34863 = (r0); + s.tmp_0 = tiles_TileMapData_getTileImage__P20697_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___104957; - s.callLocIdx = 850; s.pc = 29; return s.tmp_0; + s.tmp_0.arg1 = s.index___34863; + s.callLocIdx = 844; s.pc = 29; return s.tmp_0; case 29: r0 = s.retval; - s.tile___104964 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tile___104964); + s.tile___34870 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tile___34870); if (!r0) { step = 5; continue; } s.tmp_0 = r0 = s.arg1; - s.tmp_1 = r0 = s.tile___104964; - r0 = (s.x___104945 - s.x0___104897); + s.tmp_1 = r0 = s.tile___34870; + r0 = (s.x___34851 - s.x0___34803); 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___104887); + r0 = (s.tmp_3 - s.offsetX___34793); s.tmp_2 = r0; - r0 = (s.y___104951 - s.y0___104921); + r0 = (s.y___34857 - s.y0___34827); 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___104892); + r0 = (s.tmp_7 - s.offsetY___34798); 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___104951 + 1); - s.y___104951 = (r0); + r0 = (s.y___34857 + 1); + s.y___34857 = (r0); { step = 4; continue; } case 7: - r0 = (s.x___104945 + 1); - s.x___104945 = (r0); + r0 = (s.x___34851 + 1); + s.x___34851 = (r0); { step = 3; continue; } case 8: - r0 = pxsim_numops_toBoolDecr(globals.debug___90488); + r0 = pxsim_numops_toBoolDecr(globals.debug___20938); if (!r0) { step = 21; continue; } - s.x___105000 = (s.x0___104897); + s.x___34906 = (s.x0___34803); case 9: - r0 = (s.x___105000 <= s.xn___104904); + r0 = (s.x___34906 <= s.xn___34810); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - r0 = (s.x___105000 - s.x0___104897); + r0 = (s.x___34906 - s.x0___34803); 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___104887); - s.xLine___105006 = (r0); - r0 = (s.xLine___105006 >= 0); + r0 = (s.tmp_1 - s.offsetX___34793); + s.xLine___34912 = (r0); + r0 = (s.xLine___34912 >= 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___105006; - r0 = pxsim_ImageMethods.width(globals.screen___89553); + s.tmp_1 = r0 = s.xLine___34912; + r0 = pxsim_ImageMethods.width(globals.screen___20003); s.tmp_2 = r0; r0 = (s.tmp_1 <= s.tmp_2); case 11: @@ -38619,46 +36952,46 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 12; continue; } - s.tmp_4 = helpers_imageDrawLine__P89479_mk(s); + s.tmp_4 = helpers_imageDrawLine__P19929_mk(s); s.tmp_4.arg0 = s.arg1; - s.tmp_4.arg1 = s.xLine___105006; + s.tmp_4.arg1 = s.xLine___34912; s.tmp_4.arg2 = 0; - s.tmp_4.arg3 = s.xLine___105006; + s.tmp_4.arg3 = s.xLine___34912; r0 = pxsim_ImageMethods.height(s.arg1); s.tmp_4.arg4 = r0; s.tmp_4.arg5 = 1; - s.callLocIdx = 854; s.pc = 30; return s.tmp_4; + s.callLocIdx = 848; s.pc = 30; return s.tmp_4; case 30: r0 = s.retval; case 12: case 13: - r0 = (s.x___105000 + 1); - s.x___105000 = (r0); + r0 = (s.x___34906 + 1); + s.x___34906 = (r0); { step = 9; continue; } case 14: - s.y___105032 = (s.y0___104921); + s.y___34938 = (s.y0___34827); case 15: - r0 = (s.y___105032 <= s.yn___104928); + r0 = (s.y___34938 <= s.yn___34834); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 20; continue; } - r0 = (s.y___105032 - s.y0___104921); + r0 = (s.y___34938 - s.y0___34827); 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___104892); - s.yLine___105038 = (r0); - r0 = (s.yLine___105038 >= 0); + r0 = (s.tmp_1 - s.offsetY___34798); + s.yLine___34944 = (r0); + r0 = (s.yLine___34944 >= 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___105038; - r0 = pxsim_ImageMethods.height(globals.screen___89553); + s.tmp_1 = r0 = s.yLine___34944; + r0 = pxsim_ImageMethods.height(globals.screen___20003); s.tmp_2 = r0; r0 = (s.tmp_1 <= s.tmp_2); case 17: @@ -38666,21 +36999,21 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 18; continue; } - s.tmp_4 = helpers_imageDrawLine__P89479_mk(s); + s.tmp_4 = helpers_imageDrawLine__P19929_mk(s); s.tmp_4.arg0 = s.arg1; s.tmp_4.arg1 = 0; - s.tmp_4.arg2 = s.yLine___105038; + s.tmp_4.arg2 = s.yLine___34944; r0 = pxsim_ImageMethods.width(s.arg1); s.tmp_4.arg3 = r0; - s.tmp_4.arg4 = s.yLine___105038; + s.tmp_4.arg4 = s.yLine___34944; s.tmp_4.arg5 = 1; - s.callLocIdx = 856; s.pc = 31; return s.tmp_4; + s.callLocIdx = 850; s.pc = 31; return s.tmp_4; case 31: r0 = s.retval; case 18: case 19: - r0 = (s.y___105032 + 1); - s.y___105032 = (r0); + r0 = (s.y___34938 + 1); + s.y___34938 = (r0); { step = 15; continue; } case 20: case 21: @@ -38690,12 +37023,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_draw__P92388.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"]} +tiles_TileMap_draw__P22833.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 tiles_TileMap_draw__P92388_mk(s) { +function tiles_TileMap_draw__P22833_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_draw__P92388, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_draw__P22833, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38707,21 +37040,21 @@ function tiles_TileMap_draw__P92388_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - bitmask___104881: undefined, - offsetX___104887: undefined, - offsetY___104892: undefined, - x0___104897: undefined, - xn___104904: undefined, - y0___104921: undefined, - yn___104928: undefined, - x___104945: undefined, - y___104951: undefined, - index___104957: undefined, - tile___104964: undefined, - x___105000: undefined, - xLine___105006: undefined, - y___105032: undefined, - yLine___105038: undefined, + bitmask___34787: undefined, + offsetX___34793: undefined, + offsetY___34798: undefined, + x0___34803: undefined, + xn___34810: undefined, + y0___34827: undefined, + yn___34834: undefined, + x___34851: undefined, + y___34857: undefined, + index___34863: undefined, + tile___34870: undefined, + x___34906: undefined, + xLine___34912: undefined, + y___34938: undefined, + yLine___34944: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -38731,7 +37064,7 @@ function tiles_TileMap_draw__P92388_mk(s) { -function tiles_TileMap_scale__P90260(s) { +function tiles_TileMap_scale__P20710(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38747,17 +37080,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C90256_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C20706_VT)) failedCast(r0); r0 = (s.arg0).fields["_scale"] = (s.arg1); r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = tiles_TileMapData_scale__P90243_mk(s); + s.tmp_1 = tiles_TileMapData_scale__P20693_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 823; s.pc = 3; return s.tmp_1; + s.callLocIdx = 817; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; case 1: @@ -38766,12 +37099,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_scale__P90260.info = {"start":9270,"length":144,"line":314,"column":8,"endLine":319,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} +tiles_TileMap_scale__P20710.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 tiles_TileMap_scale__P90260_mk(s) { +function tiles_TileMap_scale__P20710_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_scale__P90260, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_scale__P20710, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38783,7 +37116,7 @@ function tiles_TileMap_scale__P90260_mk(s) { -function tiles_TileMap_data__P90261(s) { +function tiles_TileMap_data__P20711(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38798,322 +37131,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C90256_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C20706_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_data__P90261.info = {"start":9424,"length":65,"line":321,"column":8,"endLine":323,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"data","argumentNames":["this"]} -tiles_TileMap_data__P90261.isGetter = true; - -function tiles_TileMap_data__P90261_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_TileMap_data__P90261, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function scene_BackgroundLayer_constructor__P90207(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_BackgroundLayer__C90200_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_max__P87651_mk(s); - s.tmp_2.arg0 = 1; - s.tmp_2.arg1 = s.arg1; - s.callLocIdx = 800; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["distance"] = (s.tmp_1); - r0 = (s.arg0).fields["img"] = (s.arg3); - s.tmp_0 = r0 = s.arg2; - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 1: - r0 = (s.arg0).fields["repeatX"] = (true); - r0 = (s.arg0).fields["repeatY"] = (true); - r0 = (s.arg0).fields["alignX"] = (5); - r0 = (s.arg0).fields["alignY"] = (5); - { step = 6; continue; } - case 2: - case 3: - r0 = (s.arg0).fields["repeatX"] = (false); - r0 = (s.arg0).fields["repeatY"] = (true); - r0 = (s.arg0).fields["alignX"] = (s.arg2); - r0 = (s.arg0).fields["alignY"] = (5); - { step = 6; continue; } - case 4: - case 5: - r0 = (s.arg0).fields["repeatX"] = (true); - r0 = (s.arg0).fields["repeatY"] = (false); - r0 = (s.arg0).fields["alignX"] = (5); - r0 = (s.arg0).fields["alignY"] = (s.arg2); - case 6: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_BackgroundLayer_constructor__P90207.info = {"start":1936,"length":1117,"line":72,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["this","distance","alignment","img"]} - -function scene_BackgroundLayer_constructor__P90207_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_BackgroundLayer_constructor__P90207, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function scene_Camera_y__P90312(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C90302_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetY"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___89553); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - return leaveAccessor(s, r0) - default: oops() -} } } -scene_Camera_y__P90312.info = {"start":1536,"length":75,"line":51,"column":8,"endLine":53,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"y","argumentNames":["this"]} -scene_Camera_y__P90312.isGetter = true; - -function scene_Camera_y__P90312_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Camera_y__P90312, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, -} } - - - - - -function scene_Camera_x__P90311(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C90302_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetX"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___89553); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - return leaveAccessor(s, r0) - default: oops() -} } } -scene_Camera_x__P90311.info = {"start":1453,"length":74,"line":48,"column":8,"endLine":50,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"x","argumentNames":["this"]} -scene_Camera_x__P90311.isGetter = true; - -function scene_Camera_x__P90311_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Camera_x__P90311, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, -} } - - - - - -function scene_Scene_data__P90389(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C90364_VT)) failedCast(r0); - r0 = s.arg0.fields["_data"]; - return leaveAccessor(s, r0) - default: oops() -} } } -scene_Scene_data__P90389.info = {"start":7014,"length":53,"line":189,"column":8,"endLine":191,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"data","argumentNames":["this"]} -scene_Scene_data__P90389.isGetter = true; - -function scene_Scene_data__P90389_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Scene_data__P90389, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function sprites_SpriteSet_toString__P89995(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C89984_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__P89995.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__P89995_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_SpriteSet_toString__P89995, depth: s.depth + 1, - pc: 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__P89987(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C89984_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__P89987.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__P89987.isGetter = true; +tiles_TileMap_data__P20711.info = {"start":9424,"length":65,"line":321,"column":8,"endLine":323,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"data","argumentNames":["this"]} +tiles_TileMap_data__P20711.isGetter = true; -function sprites_SpriteSet_length__P89987_mk(s) { +function tiles_TileMap_data__P20711_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_length__P89987, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_data__P20711, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -39121,7 +37151,7 @@ function sprites_SpriteSet_length__P89987_mk(s) { -function Sprite_toString__P89955(s) { +function Sprite_toString__P20405(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39136,7 +37166,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_9 = r0; r0 = s.arg0.fields["id"]; @@ -39154,9 +37184,9 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_String__concat(s.tmp_8, "("); s.tmp_7 = r0; - s.tmp_14 = Sprite_x__P89875_mk(s); + s.tmp_14 = Sprite_x__P20325_mk(s); s.tmp_14.arg0 = s.arg0; - s.callLocIdx = 449; s.pc = 2; return s.tmp_14; + s.callLocIdx = 443; s.pc = 2; return s.tmp_14; case 2: r0 = s.retval; s.tmp_13 = r0; @@ -39173,9 +37203,9 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_String__concat(s.tmp_6, ","); s.tmp_5 = r0; - s.tmp_17 = Sprite_y__P89877_mk(s); + s.tmp_17 = Sprite_y__P20327_mk(s); s.tmp_17.arg0 = s.arg0; - s.callLocIdx = 450; s.pc = 4; return s.tmp_17; + s.callLocIdx = 444; s.pc = 4; return s.tmp_17; case 4: r0 = s.retval; s.tmp_16 = r0; @@ -39192,9 +37222,9 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_4, ")->("); s.tmp_3 = r0; - s.tmp_20 = Sprite_vx__P89879_mk(s); + s.tmp_20 = Sprite_vx__P20329_mk(s); s.tmp_20.arg0 = s.arg0; - s.callLocIdx = 451; s.pc = 6; return s.tmp_20; + s.callLocIdx = 445; s.pc = 6; return s.tmp_20; case 6: r0 = s.retval; s.tmp_19 = r0; @@ -39211,9 +37241,9 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_23 = Sprite_vy__P89881_mk(s); + s.tmp_23 = Sprite_vy__P20331_mk(s); s.tmp_23.arg0 = s.arg0; - s.callLocIdx = 452; s.pc = 8; return s.tmp_23; + s.callLocIdx = 446; s.pc = 8; return s.tmp_23; case 8: r0 = s.retval; s.tmp_22 = r0; @@ -39232,12 +37262,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_toString__P89955.info = {"start":34111,"length":93,"line":1066,"column":4,"endLine":1068,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]} +Sprite_toString__P20405.info = {"start":34111,"length":93,"line":1066,"column":4,"endLine":1068,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]} -function Sprite_toString__P89955_mk(s) { +function Sprite_toString__P20405_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_toString__P89955, depth: s.depth + 1, + parent: s, fn: Sprite_toString__P20405, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39270,7 +37300,7 @@ function Sprite_toString__P89955_mk(s) { -function Sprite___update__P89937(s) { +function Sprite___update__P20387(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39287,7 +37317,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); r0 = s.arg0.fields["lifespan"]; s.tmp_1 = r0; r0 = (s.tmp_1 !== undefined); @@ -39309,9 +37339,9 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = (s.arg0).fields["lifespan"] = (undefined); - s.tmp_0 = Sprite__destroyCore__P89950_mk(s); + s.tmp_0 = Sprite__destroyCore__P20400_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 386; s.pc = 11; return s.tmp_0; + s.callLocIdx = 380; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; case 1: @@ -39327,10 +37357,10 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_2 = Sprite_isOutOfScreen__P89935_mk(s); + s.tmp_2 = Sprite_isOutOfScreen__P20385_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; - s.callLocIdx = 387; s.pc = 12; return s.tmp_2; + s.callLocIdx = 381; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; case 6: @@ -39338,11 +37368,11 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 7; continue; } - s.tmp_4 = Sprite_destroy__P89949_mk(s); + s.tmp_4 = Sprite_destroy__P20399_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = undefined; s.tmp_4.arg2 = undefined; - s.callLocIdx = 388; s.pc = 13; return s.tmp_4; + s.callLocIdx = 382; s.pc = 13; return s.tmp_4; case 13: r0 = s.retval; case 7: @@ -39351,13 +37381,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } - s.tmp_1 = sprites_BaseSpriteSayRenderer__C89780_v1_4_mk(s); + s.tmp_1 = sprites_BaseSpriteSayRenderer__C20230_v1_4_mk(s); r0 = s.arg0.fields["sayRenderer"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg2; s.tmp_1.arg2 = s.arg1; s.tmp_1.arg3 = s.arg0; - if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSpriteSayRenderer__C89780_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSpriteSayRenderer__C20230_VT)) failedCast(s.tmp_1.arg0); s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.update; s.pc = 14; return s.tmp_1; case 14: @@ -39368,12 +37398,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___update__P89937.info = {"start":18662,"length":483,"line":628,"column":4,"endLine":642,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__update","argumentNames":["this","camera","dt"]} +Sprite___update__P20387.info = {"start":18662,"length":483,"line":628,"column":4,"endLine":642,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__update","argumentNames":["this","camera","dt"]} -function Sprite___update__P89937_mk(s) { +function Sprite___update__P20387_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___update__P89937, depth: s.depth + 1, + parent: s, fn: Sprite___update__P20387, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39390,7 +37420,7 @@ function Sprite___update__P89937_mk(s) { -function Sprite_isOutOfScreen__P89935(s) { +function Sprite_isOutOfScreen__P20385(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39400,15 +37430,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___105227 = undefined; - s.oy___105235 = undefined; + s.ox___35057 = undefined; + s.oy___35065 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -39422,7 +37452,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_2 = r0; - s.ox___105227 = (s.tmp_2); + s.ox___35057 = (s.tmp_2); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -39436,14 +37466,14 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___105235 = (s.tmp_2); - s.tmp_3 = Sprite_right__P89922_mk(s); + s.oy___35065 = (s.tmp_2); + s.tmp_3 = Sprite_right__P20372_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 377; s.pc = 11; return s.tmp_3; + s.callLocIdx = 371; s.pc = 11; return s.tmp_3; case 11: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.ox___105227); + r0 = (s.tmp_2 - s.ox___35057); s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -39452,13 +37482,13 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_6 = Sprite_bottom__P89926_mk(s); + s.tmp_6 = Sprite_bottom__P20376_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 378; s.pc = 12; return s.tmp_6; + s.callLocIdx = 372; s.pc = 12; return s.tmp_6; case 12: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.oy___105235); + r0 = (s.tmp_5 - s.oy___35065); s.tmp_4 = r0; r0 = (s.tmp_4 < 0); case 6: @@ -39469,15 +37499,15 @@ switch (step) { r0 = s.tmp_7; { step = 8; continue; } case 7: - s.tmp_10 = Sprite_left__P89920_mk(s); + s.tmp_10 = Sprite_left__P20370_mk(s); s.tmp_10.arg0 = s.arg0; - s.callLocIdx = 379; s.pc = 13; return s.tmp_10; + s.callLocIdx = 373; s.pc = 13; return s.tmp_10; case 13: r0 = s.retval; s.tmp_9 = r0; - r0 = (s.tmp_9 - s.ox___105227); + r0 = (s.tmp_9 - s.ox___35057); s.tmp_8 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___89553); + r0 = pxsim_ImageMethods.width(globals.screen___20003); s.tmp_11 = r0; r0 = (s.tmp_8 > s.tmp_11); case 8: @@ -39488,15 +37518,15 @@ switch (step) { r0 = s.tmp_12; { step = 10; continue; } case 9: - s.tmp_15 = Sprite_top__P89924_mk(s); + s.tmp_15 = Sprite_top__P20374_mk(s); s.tmp_15.arg0 = s.arg0; - s.callLocIdx = 380; s.pc = 14; return s.tmp_15; + s.callLocIdx = 374; s.pc = 14; return s.tmp_15; case 14: r0 = s.retval; s.tmp_14 = r0; - r0 = (s.tmp_14 - s.oy___105235); + r0 = (s.tmp_14 - s.oy___35065); s.tmp_13 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___89553); + r0 = pxsim_ImageMethods.height(globals.screen___20003); s.tmp_16 = r0; r0 = (s.tmp_13 > s.tmp_16); case 10: @@ -39506,12 +37536,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_isOutOfScreen__P89935.info = {"start":17830,"length":358,"line":607,"column":4,"endLine":611,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]} +Sprite_isOutOfScreen__P20385.info = {"start":17830,"length":358,"line":607,"column":4,"endLine":611,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]} -function Sprite_isOutOfScreen__P89935_mk(s) { +function Sprite_isOutOfScreen__P20385_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isOutOfScreen__P89935, depth: s.depth + 1, + parent: s, fn: Sprite_isOutOfScreen__P20385, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39531,8 +37561,8 @@ function Sprite_isOutOfScreen__P89935_mk(s) { tmp_15: undefined, tmp_16: undefined, tmp_17: undefined, - ox___105227: undefined, - oy___105235: undefined, + ox___35057: undefined, + oy___35065: undefined, arg0: undefined, arg1: undefined, } } @@ -39541,7 +37571,7 @@ function Sprite_isOutOfScreen__P89935_mk(s) { -function sprites_BaseSpriteSayRenderer_update__P89783(s) { +function sprites_BaseSpriteSayRenderer_update__P20233(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39559,17 +37589,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C89780_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C20230_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSpriteSayRenderer_update__P89783.info = {"start":250,"length":68,"line":9,"column":8,"endLine":11,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"update","argumentNames":["this","dt","camera","owner"]} +sprites_BaseSpriteSayRenderer_update__P20233.info = {"start":250,"length":68,"line":9,"column":8,"endLine":11,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"update","argumentNames":["this","dt","camera","owner"]} -function sprites_BaseSpriteSayRenderer_update__P89783_mk(s) { +function sprites_BaseSpriteSayRenderer_update__P20233_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSpriteSayRenderer_update__P89783, depth: s.depth + 1, + parent: s, fn: sprites_BaseSpriteSayRenderer_update__P20233, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -39581,7 +37611,7 @@ function sprites_BaseSpriteSayRenderer_update__P89783_mk(s) { -function Sprite_data__P89898(s) { +function Sprite_data__P20348(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39597,18 +37627,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); r0 = (s.arg0).fields["_data"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_data__P89898.info = {"start":6536,"length":56,"line":241,"column":4,"endLine":243,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this","value"]} +Sprite_data__P20348.info = {"start":6536,"length":56,"line":241,"column":4,"endLine":243,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this","value"]} -function Sprite_data__P89898_mk(s) { +function Sprite_data__P20348_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_data__P89898, depth: s.depth + 1, + parent: s, fn: Sprite_data__P20348, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -39618,7 +37648,7 @@ function Sprite_data__P89898_mk(s) { -function Sprite_data__P89897(s) { +function Sprite_data__P20347(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39633,7 +37663,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); r0 = s.arg0.fields["_data"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -39652,13 +37682,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -Sprite_data__P89897.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__P89897.isGetter = true; +Sprite_data__P20347.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__P20347.isGetter = true; -function Sprite_data__P89897_mk(s) { +function Sprite_data__P20347_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_data__P89897, depth: s.depth + 1, + parent: s, fn: Sprite_data__P20347, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39672,7 +37702,7 @@ function Sprite_data__P89897_mk(s) { -function sprites_BaseSprite___update__P89623(s) { +function sprites_BaseSprite___update__P20073(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39689,17 +37719,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C89615_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C20065_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___update__P89623.info = {"start":1027,"length":46,"line":45,"column":8,"endLine":45,"endColumn":54,"fileName":"pxt_modules/game/basesprite.ts","functionName":"__update","argumentNames":["this","camera","dt"]} +sprites_BaseSprite___update__P20073.info = {"start":1027,"length":46,"line":45,"column":8,"endLine":45,"endColumn":54,"fileName":"pxt_modules/game/basesprite.ts","functionName":"__update","argumentNames":["this","camera","dt"]} -function sprites_BaseSprite___update__P89623_mk(s) { +function sprites_BaseSprite___update__P20073_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___update__P89623, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___update__P20073, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -39710,7 +37740,7 @@ function sprites_BaseSprite___update__P89623_mk(s) { -function sprites_BaseSprite___draw__P89621(s) { +function sprites_BaseSprite___draw__P20071(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39726,10 +37756,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C89615_VT)) failedCast(r0); - s.tmp_1 = sprites_BaseSprite__C89615_v0_1_mk(s); + if (!checkSubtype(r0, sprites_BaseSprite__C20065_VT)) failedCast(r0); + s.tmp_1 = sprites_BaseSprite__C20065_v0_1_mk(s); s.tmp_1.arg0 = s.arg0; - if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C89615_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C20065_VT)) failedCast(s.tmp_1.arg0); s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.__visible; s.pc = 3; return s.tmp_1; case 3: @@ -39737,10 +37767,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = sprites_BaseSprite__C89615_v2_2_mk(s); + s.tmp_2 = sprites_BaseSprite__C20065_v2_2_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; - if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C89615_VT)) failedCast(s.tmp_2.arg0); + if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C20065_VT)) failedCast(s.tmp_2.arg0); s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.__drawCore; s.pc = 4; return s.tmp_2; case 4: @@ -39751,12 +37781,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_BaseSprite___draw__P89621.info = {"start":840,"length":131,"line":37,"column":8,"endLine":41,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"__draw","argumentNames":["this","camera"]} +sprites_BaseSprite___draw__P20071.info = {"start":840,"length":131,"line":37,"column":8,"endLine":41,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"__draw","argumentNames":["this","camera"]} -function sprites_BaseSprite___draw__P89621_mk(s) { +function sprites_BaseSprite___draw__P20071_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___draw__P89621, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___draw__P20071, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39769,7 +37799,7 @@ function sprites_BaseSprite___draw__P89621_mk(s) { -function sprites_BaseSprite___drawCore__P89622(s) { +function sprites_BaseSprite___drawCore__P20072(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39785,17 +37815,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C89615_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C20065_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___drawCore__P89622.info = {"start":981,"length":36,"line":43,"column":8,"endLine":43,"endColumn":44,"fileName":"pxt_modules/game/basesprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]} +sprites_BaseSprite___drawCore__P20072.info = {"start":981,"length":36,"line":43,"column":8,"endLine":43,"endColumn":44,"fileName":"pxt_modules/game/basesprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]} -function sprites_BaseSprite___drawCore__P89622_mk(s) { +function sprites_BaseSprite___drawCore__P20072_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___drawCore__P89622, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___drawCore__P20072, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -39805,7 +37835,7 @@ function sprites_BaseSprite___drawCore__P89622_mk(s) { -function sprites_BaseSprite___visible__P89618(s) { +function sprites_BaseSprite___visible__P20068(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39820,17 +37850,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C89615_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C20065_VT)) failedCast(r0); r0 = true; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___visible__P89618.info = {"start":524,"length":57,"line":22,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"__visible","argumentNames":["this"]} +sprites_BaseSprite___visible__P20068.info = {"start":524,"length":57,"line":22,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"__visible","argumentNames":["this"]} -function sprites_BaseSprite___visible__P89618_mk(s) { +function sprites_BaseSprite___visible__P20068_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___visible__P89618, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___visible__P20068, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -39839,7 +37869,7 @@ function sprites_BaseSprite___visible__P89618_mk(s) { -function controller_AnyButton_isPressed__P92249(s) { +function scene_BackgroundLayer_constructor__P20657(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39849,36 +37879,245 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctrl___105292 = undefined; - s.b___105296 = undefined; - s.unnamed710___U2 = undefined; - s.unnamed711___U3 = 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_AnyButton__C92241_VT)) failedCast(r0); - s.tmp_0 = controller__player1__P89649_mk(s); - s.callLocIdx = 197; s.pc = 6; return s.tmp_0; + if (!checkSubtype(r0, scene_BackgroundLayer__C20650_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Math_max__P18101_mk(s); + s.tmp_2.arg0 = 1; + s.tmp_2.arg1 = s.arg1; + s.callLocIdx = 794; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["distance"] = (s.tmp_1); + r0 = (s.arg0).fields["img"] = (s.arg3); + s.tmp_0 = r0 = s.arg2; + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 1: + r0 = (s.arg0).fields["repeatX"] = (true); + r0 = (s.arg0).fields["repeatY"] = (true); + r0 = (s.arg0).fields["alignX"] = (5); + r0 = (s.arg0).fields["alignY"] = (5); + { step = 6; continue; } + case 2: + case 3: + r0 = (s.arg0).fields["repeatX"] = (false); + r0 = (s.arg0).fields["repeatY"] = (true); + r0 = (s.arg0).fields["alignX"] = (s.arg2); + r0 = (s.arg0).fields["alignY"] = (5); + { step = 6; continue; } + case 4: + case 5: + r0 = (s.arg0).fields["repeatX"] = (true); + r0 = (s.arg0).fields["repeatY"] = (false); + r0 = (s.arg0).fields["alignX"] = (5); + r0 = (s.arg0).fields["alignY"] = (s.arg2); + case 6: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_BackgroundLayer_constructor__P20657.info = {"start":1936,"length":1117,"line":72,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["this","distance","alignment","img"]} + +function scene_BackgroundLayer_constructor__P20657_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_BackgroundLayer_constructor__P20657, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + + + + +function scene_Camera_y__P20762(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C20752_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetY"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___20003); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + return leaveAccessor(s, r0) + default: oops() +} } } +scene_Camera_y__P20762.info = {"start":1536,"length":75,"line":51,"column":8,"endLine":53,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"y","argumentNames":["this"]} +scene_Camera_y__P20762.isGetter = true; + +function scene_Camera_y__P20762_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Camera_y__P20762, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, +} } + + + + + +function scene_Camera_x__P20761(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C20752_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetX"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___20003); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + return leaveAccessor(s, r0) + default: oops() +} } } +scene_Camera_x__P20761.info = {"start":1453,"length":74,"line":48,"column":8,"endLine":50,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"x","argumentNames":["this"]} +scene_Camera_x__P20761.isGetter = true; + +function scene_Camera_x__P20761_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Camera_x__P20761, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, +} } + + + + + +function scene_Scene_data__P20839(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C20814_VT)) failedCast(r0); + r0 = s.arg0.fields["_data"]; + return leaveAccessor(s, r0) + default: oops() +} } } +scene_Scene_data__P20839.info = {"start":7014,"length":53,"line":189,"column":8,"endLine":191,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"data","argumentNames":["this"]} +scene_Scene_data__P20839.isGetter = true; + +function scene_Scene_data__P20839_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Scene_data__P20839, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function controller_AnyButton_isPressed__P22694(s) { +let r0 = s.r0, 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.ctrl___35187 = undefined; + s.b___35191 = undefined; + s.unnamed154___U2 = undefined; + s.unnamed155___U3 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_AnyButton__C22686_VT)) failedCast(r0); + s.tmp_0 = controller__player1__P20099_mk(s); + s.callLocIdx = 196; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.ctrl___105292 = (r0); - s.b___105296 = (undefined); - r0 = s.ctrl___105292.fields["buttons"]; - s.unnamed710___U2 = (r0); - s.unnamed711___U3 = (0); + s.ctrl___35187 = (r0); + s.b___35191 = (undefined); + r0 = s.ctrl___35187.fields["buttons"]; + s.unnamed154___U2 = (r0); + s.unnamed155___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed711___U3; - r0 = pxsim_Array__length(s.unnamed710___U2); + s.tmp_0 = r0 = s.unnamed155___U3; + r0 = pxsim_Array__length(s.unnamed154___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed710___U2, s.unnamed711___U3); - s.b___105296 = (r0); - s.tmp_3 = controller_Button__C89710_v0_1_mk(s); - s.tmp_3.arg0 = s.b___105296; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C89710_VT)) failedCast(s.tmp_3.arg0); + r0 = pxsim_Array__getAt(s.unnamed154___U2, s.unnamed155___U3); + s.b___35191 = (r0); + s.tmp_3 = controller_Button__C20160_v0_1_mk(s); + s.tmp_3.arg0 = s.b___35191; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C20160_VT)) failedCast(s.tmp_3.arg0); s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; s.pc = 7; return s.tmp_3; case 7: @@ -39890,31 +38129,31 @@ switch (step) { { step = 5; continue; } case 2: case 3: - r0 = (s.unnamed711___U3 + 1); - s.unnamed711___U3 = (r0); + r0 = (s.unnamed155___U3 + 1); + s.unnamed155___U3 = (r0); { step = 1; continue; } case 4: - s.unnamed710___U2 = (undefined); + s.unnamed154___U2 = (undefined); r0 = false; case 5: return leave(s, r0) default: oops() } } } -controller_AnyButton_isPressed__P92249.info = {"start":15724,"length":202,"line":469,"column":8,"endLine":476,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} +controller_AnyButton_isPressed__P22694.info = {"start":15724,"length":202,"line":469,"column":8,"endLine":476,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} -function controller_AnyButton_isPressed__P92249_mk(s) { +function controller_AnyButton_isPressed__P22694_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_AnyButton_isPressed__P92249, depth: s.depth + 1, + parent: s, fn: controller_AnyButton_isPressed__P22694, depth: s.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___105292: undefined, - b___105296: undefined, - unnamed710___U2: undefined, - unnamed711___U3: undefined, + ctrl___35187: undefined, + b___35191: undefined, + unnamed154___U2: undefined, + unnamed155___U3: undefined, arg0: undefined, } } @@ -39922,7 +38161,7 @@ function controller_AnyButton_isPressed__P92249_mk(s) { -function controller_Button_toString__P89715(s) { +function controller_Button_toString__P20165(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39937,7 +38176,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C89710_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C20160_VT)) failedCast(r0); r0 = s.arg0.fields["_pressed"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -39977,12 +38216,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_toString__P89715.info = {"start":1894,"length":100,"line":73,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"toString","argumentNames":["this"]} +controller_Button_toString__P20165.info = {"start":1894,"length":100,"line":73,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"toString","argumentNames":["this"]} -function controller_Button_toString__P89715_mk(s) { +function controller_Button_toString__P20165_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_toString__P89715, depth: s.depth + 1, + parent: s, fn: controller_Button_toString__P20165, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39998,7 +38237,7 @@ function controller_Button_toString__P89715_mk(s) { -function sprites_BaseSpriteSayRenderer_constructor__P89781(s) { +function sprites_BaseSpriteSayRenderer_constructor__P20231(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40016,7 +38255,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C89780_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C20230_VT)) failedCast(r0); r0 = (s.arg0).fields["text"] = (s.arg1); r0 = (s.arg0).fields["fgColor"] = (s.arg2); r0 = (s.arg0).fields["bgColor"] = (s.arg3); @@ -40024,12 +38263,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_BaseSpriteSayRenderer_constructor__P89781.info = {"start":69,"length":92,"line":2,"column":8,"endLine":3,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"inline","argumentNames":["this","text","fgColor","bgColor"]} +sprites_BaseSpriteSayRenderer_constructor__P20231.info = {"start":69,"length":92,"line":2,"column":8,"endLine":3,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"inline","argumentNames":["this","text","fgColor","bgColor"]} -function sprites_BaseSpriteSayRenderer_constructor__P89781_mk(s) { +function sprites_BaseSpriteSayRenderer_constructor__P20231_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSpriteSayRenderer_constructor__P89781, depth: s.depth + 1, + parent: s, fn: sprites_BaseSpriteSayRenderer_constructor__P20231, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -40041,7 +38280,7 @@ function sprites_BaseSpriteSayRenderer_constructor__P89781_mk(s) { -function sprites_StaticObstacle_width__P90029(s) { +function sprites_StaticObstacle_width__P20479(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40056,20 +38295,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C90019_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C20469_VT)) failedCast(r0); r0 = s.arg0.fields["image"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.width(s.tmp_0); return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_width__P90029.info = {"start":1088,"length":68,"line":48,"column":8,"endLine":50,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"width","argumentNames":["this"]} -sprites_StaticObstacle_width__P90029.isGetter = true; +sprites_StaticObstacle_width__P20479.info = {"start":1088,"length":68,"line":48,"column":8,"endLine":50,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"width","argumentNames":["this"]} +sprites_StaticObstacle_width__P20479.isGetter = true; -function sprites_StaticObstacle_width__P90029_mk(s) { +function sprites_StaticObstacle_width__P20479_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_width__P90029, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_width__P20479, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -40079,7 +38318,7 @@ function sprites_StaticObstacle_width__P90029_mk(s) { -function sprites_StaticObstacle_height__P90028(s) { +function sprites_StaticObstacle_height__P20478(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40094,20 +38333,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C90019_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C20469_VT)) failedCast(r0); r0 = s.arg0.fields["image"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.height(s.tmp_0); return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_height__P90028.info = {"start":1008,"length":70,"line":44,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"height","argumentNames":["this"]} -sprites_StaticObstacle_height__P90028.isGetter = true; +sprites_StaticObstacle_height__P20478.info = {"start":1008,"length":70,"line":44,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"height","argumentNames":["this"]} +sprites_StaticObstacle_height__P20478.isGetter = true; -function sprites_StaticObstacle_height__P90028_mk(s) { +function sprites_StaticObstacle_height__P20478_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_height__P90028, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_height__P20478, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -40117,7 +38356,7 @@ function sprites_StaticObstacle_height__P90028_mk(s) { -function sprites_StaticObstacle_y__P90027(s) { +function sprites_StaticObstacle_y__P20477(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40132,7 +38371,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C90019_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C20469_VT)) failedCast(r0); r0 = s.arg0.fields["top"]; s.tmp_0 = r0; r0 = s.arg0.fields["image"]; @@ -40145,13 +38384,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_y__P90027.info = {"start":921,"length":77,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"y","argumentNames":["this"]} -sprites_StaticObstacle_y__P90027.isGetter = true; +sprites_StaticObstacle_y__P20477.info = {"start":921,"length":77,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"y","argumentNames":["this"]} +sprites_StaticObstacle_y__P20477.isGetter = true; -function sprites_StaticObstacle_y__P90027_mk(s) { +function sprites_StaticObstacle_y__P20477_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_y__P90027, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_y__P20477, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40164,7 +38403,7 @@ function sprites_StaticObstacle_y__P90027_mk(s) { -function sprites_StaticObstacle_x__P90026(s) { +function sprites_StaticObstacle_x__P20476(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40179,7 +38418,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C90019_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C20469_VT)) failedCast(r0); r0 = s.arg0.fields["left"]; s.tmp_0 = r0; r0 = s.arg0.fields["image"]; @@ -40192,13 +38431,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_x__P90026.info = {"start":834,"length":77,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"x","argumentNames":["this"]} -sprites_StaticObstacle_x__P90026.isGetter = true; +sprites_StaticObstacle_x__P20476.info = {"start":834,"length":77,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"x","argumentNames":["this"]} +sprites_StaticObstacle_x__P20476.isGetter = true; -function sprites_StaticObstacle_x__P90026_mk(s) { +function sprites_StaticObstacle_x__P20476_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_x__P90026, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_x__P20476, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40211,7 +38450,7 @@ function sprites_StaticObstacle_x__P90026_mk(s) { -function tiles_Location_top__P90222(s) { +function tiles_Location_top__P20672(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40226,12 +38465,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C90214_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C20664_VT)) failedCast(r0); r0 = s.arg0.fields["_row"]; s.tmp_0 = r0; - s.tmp_3 = tiles_Location_tileMap__P90216_mk(s); + s.tmp_3 = tiles_Location_tileMap__P20666_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 810; s.pc = 1; return s.tmp_3; + s.callLocIdx = 804; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -40241,13 +38480,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_top__P90222.info = {"start":1791,"length":83,"line":68,"column":8,"endLine":70,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"top","argumentNames":["this"]} -tiles_Location_top__P90222.isGetter = true; +tiles_Location_top__P20672.info = {"start":1791,"length":83,"line":68,"column":8,"endLine":70,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"top","argumentNames":["this"]} +tiles_Location_top__P20672.isGetter = true; -function tiles_Location_top__P90222_mk(s) { +function tiles_Location_top__P20672_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_top__P90222, depth: s.depth + 1, + parent: s, fn: tiles_Location_top__P20672, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40260,7 +38499,7 @@ function tiles_Location_top__P90222_mk(s) { -function tiles_Location_left__P90221(s) { +function tiles_Location_left__P20671(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40275,12 +38514,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C90214_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C20664_VT)) failedCast(r0); r0 = s.arg0.fields["_col"]; s.tmp_0 = r0; - s.tmp_3 = tiles_Location_tileMap__P90216_mk(s); + s.tmp_3 = tiles_Location_tileMap__P20666_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 808; s.pc = 1; return s.tmp_3; + s.callLocIdx = 802; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -40290,13 +38529,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_left__P90221.info = {"start":1579,"length":84,"line":61,"column":8,"endLine":63,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"left","argumentNames":["this"]} -tiles_Location_left__P90221.isGetter = true; +tiles_Location_left__P20671.info = {"start":1579,"length":84,"line":61,"column":8,"endLine":63,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"left","argumentNames":["this"]} +tiles_Location_left__P20671.isGetter = true; -function tiles_Location_left__P90221_mk(s) { +function tiles_Location_left__P20671_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_left__P90221, depth: s.depth + 1, + parent: s, fn: tiles_Location_left__P20671, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40309,7 +38548,7 @@ function tiles_Location_left__P90221_mk(s) { -function tiles_Location_y__P90220(s) { +function tiles_Location_y__P20670(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40319,26 +38558,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scale___105352 = undefined; + s.scale___35247 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C90214_VT)) failedCast(r0); - s.tmp_1 = tiles_Location_tileMap__P90216_mk(s); + if (!checkSubtype(r0, tiles_Location__C20664_VT)) failedCast(r0); + s.tmp_1 = tiles_Location_tileMap__P20666_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 806; s.pc = 1; return s.tmp_1; + s.callLocIdx = 800; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; r0 = s.tmp_0.fields["_scale"]; - s.scale___105352 = (r0); + s.scale___35247 = (r0); r0 = s.arg0.fields["_row"]; s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___105352); + r0 = (s.tmp_1 << s.scale___35247); s.tmp_0 = r0; - r0 = (s.scale___105352 - 1); + r0 = (s.scale___35247 - 1); s.tmp_3 = r0; r0 = (1 << s.tmp_3); s.tmp_2 = r0; @@ -40346,19 +38585,19 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_y__P90220.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__P90220.isGetter = true; +tiles_Location_y__P20670.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__P20670.isGetter = true; -function tiles_Location_y__P90220_mk(s) { +function tiles_Location_y__P20670_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_y__P90220, depth: s.depth + 1, + parent: s, fn: tiles_Location_y__P20670, depth: s.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___105352: undefined, + scale___35247: undefined, arg0: undefined, } } @@ -40366,7 +38605,7 @@ function tiles_Location_y__P90220_mk(s) { -function tiles_Location_x__P90219(s) { +function tiles_Location_x__P20669(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40376,26 +38615,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scale___105368 = undefined; + s.scale___35263 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C90214_VT)) failedCast(r0); - s.tmp_1 = tiles_Location_tileMap__P90216_mk(s); + if (!checkSubtype(r0, tiles_Location__C20664_VT)) failedCast(r0); + s.tmp_1 = tiles_Location_tileMap__P20666_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 804; s.pc = 1; return s.tmp_1; + s.callLocIdx = 798; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; r0 = s.tmp_0.fields["_scale"]; - s.scale___105368 = (r0); + s.scale___35263 = (r0); r0 = s.arg0.fields["_col"]; s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___105368); + r0 = (s.tmp_1 << s.scale___35263); s.tmp_0 = r0; - r0 = (s.scale___105368 - 1); + r0 = (s.scale___35263 - 1); s.tmp_3 = r0; r0 = (1 << s.tmp_3); s.tmp_2 = r0; @@ -40403,19 +38642,19 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_x__P90219.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__P90219.isGetter = true; +tiles_Location_x__P20669.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__P20669.isGetter = true; -function tiles_Location_x__P90219_mk(s) { +function tiles_Location_x__P20669_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_x__P90219, depth: s.depth + 1, + parent: s, fn: tiles_Location_x__P20669, depth: s.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___105368: undefined, + scale___35263: undefined, arg0: undefined, } } @@ -40423,7 +38662,7 @@ function tiles_Location_x__P90219_mk(s) { -function particles_ShapeFactory_drawParticle__P90737(s) { +function particles_ShapeFactory_drawParticle__P21187(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40433,7 +38672,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pImage___105387 = undefined; + s.pImage___35282 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -40442,23 +38681,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C90734_VT)) failedCast(r0); - s.tmp_1 = Math_FastRandom_pickRandom__P90585_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C21184_VT)) failedCast(r0); + s.tmp_1 = Math_FastRandom_pickRandom__P21035_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_1.arg0 = r0; r0 = s.arg0.fields["sources"]; s.tmp_1.arg1 = r0; - s.callLocIdx = 1253; s.pc = 1; return s.tmp_1; + s.callLocIdx = 1240; 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___105387 = (r0); + s.pImage___35282 = (r0); r0 = s.arg1.fields["color"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.replace(s.pImage___105387, 15, s.tmp_0); - s.tmp_0 = r0 = globals.screen___89553; - s.tmp_1 = r0 = s.pImage___105387; + r0 = pxsim_ImageMethods.replace(s.pImage___35282, 15, s.tmp_0); + s.tmp_0 = r0 = globals.screen___20003; + s.tmp_1 = r0 = s.pImage___35282; r0 = s.arg0.fields["ox"]; s.tmp_4 = r0; r0 = (s.arg2 - s.tmp_4); @@ -40480,12 +38719,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ShapeFactory_drawParticle__P90737.info = {"start":7172,"length":323,"line":229,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","p","x","y"]} +particles_ShapeFactory_drawParticle__P21187.info = {"start":7172,"length":323,"line":229,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","p","x","y"]} -function particles_ShapeFactory_drawParticle__P90737_mk(s) { +function particles_ShapeFactory_drawParticle__P21187_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_drawParticle__P90737, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_drawParticle__P21187, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40497,7 +38736,7 @@ function particles_ShapeFactory_drawParticle__P90737_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - pImage___105387: undefined, + pImage___35282: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -40508,7 +38747,7 @@ function particles_ShapeFactory_drawParticle__P90737_mk(s) { -function Math_FastRandom_pickRandom__P90585(s) { +function Math_FastRandom_pickRandom__P21035(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40524,7 +38763,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C90580_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C21030_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -40547,14 +38786,14 @@ switch (step) { case 3: case 4: s.tmp_4 = r0 = s.arg1; - s.tmp_6 = Math_FastRandom_randomRange__P90584_mk(s); + s.tmp_6 = Math_FastRandom_randomRange__P21034_mk(s); s.tmp_6.arg0 = s.arg0; s.tmp_6.arg1 = 0; r0 = pxsim_Array__length(s.arg1); s.tmp_7 = r0; r0 = (s.tmp_7 - 1); s.tmp_6.arg2 = r0; - s.callLocIdx = 982; s.pc = 6; return s.tmp_6; + s.callLocIdx = 969; s.pc = 6; return s.tmp_6; case 6: r0 = s.retval; s.tmp_5 = r0; @@ -40563,12 +38802,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_pickRandom__P90585.info = {"start":2358,"length":192,"line":70,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"pickRandom","argumentNames":["this","list"]} +Math_FastRandom_pickRandom__P21035.info = {"start":2358,"length":192,"line":70,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"pickRandom","argumentNames":["this","list"]} -function Math_FastRandom_pickRandom__P90585_mk(s) { +function Math_FastRandom_pickRandom__P21035_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_pickRandom__P90585, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_pickRandom__P21035, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40586,92 +38825,7 @@ function Math_FastRandom_pickRandom__P90585_mk(s) { -function particles_AreaFactory_drawParticle__P90725(s) { -let r0 = s.r0, 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.col___105433 = 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_AreaFactory__C90718_VT)) failedCast(r0); - r0 = s.arg1.fields["lifespan"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 500); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = 4; - { step = 4; continue; } - case 1: - r0 = s.arg1.fields["lifespan"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 > 250); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 2; continue; } - r0 = 5; - { step = 3; continue; } - case 2: - r0 = 1; - case 3: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; - case 4: - // jmp value (already in r0) - s.tmp_5 = r0; - s.col___105433 = (s.tmp_5); - s.tmp_0 = r0 = globals.screen___89553; - r0 = (s.arg2 + 128); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 8); - s.tmp_1 = r0; - r0 = (s.arg3 + 128); - s.tmp_4 = r0; - r0 = (s.tmp_4 >> 8); - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, s.col___105433); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_AreaFactory_drawParticle__P90725.info = {"start":4770,"length":222,"line":158,"column":8,"endLine":163,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","p","x","y"]} - -function particles_AreaFactory_drawParticle__P90725_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_AreaFactory_drawParticle__P90725, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - col___105433: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function particles_SprayFactory_drawParticle__P90715(s) { +function particles_AreaFactory_drawParticle__P21175(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40681,6 +38835,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.col___35328 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -40689,8 +38844,35 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C90712_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___89553; + if (!checkSubtype(r0, particles_AreaFactory__C21168_VT)) failedCast(r0); + r0 = s.arg1.fields["lifespan"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 500); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 4; + { step = 4; continue; } + case 1: + r0 = s.arg1.fields["lifespan"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 > 250); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 2; continue; } + r0 = 5; + { step = 3; continue; } + case 2: + r0 = 1; + case 3: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; + case 4: + // jmp value (already in r0) + s.tmp_5 = r0; + s.col___35328 = (s.tmp_5); + s.tmp_0 = r0 = globals.screen___20003; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -40699,23 +38881,25 @@ 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, 1); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, s.col___35328); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_SprayFactory_drawParticle__P90715.info = {"start":3194,"length":118,"line":115,"column":8,"endLine":117,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","particle","x","y"]} +particles_AreaFactory_drawParticle__P21175.info = {"start":4770,"length":222,"line":158,"column":8,"endLine":163,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","p","x","y"]} -function particles_SprayFactory_drawParticle__P90715_mk(s) { +function particles_AreaFactory_drawParticle__P21175_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_drawParticle__P90715, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_drawParticle__P21175, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, + col___35328: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -40726,7 +38910,7 @@ function particles_SprayFactory_drawParticle__P90715_mk(s) { -function scene_Renderable___drawCore__P90324(s) { +function particles_SprayFactory_drawParticle__P21165(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40739,46 +38923,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, scene_Renderable__C90321_VT)) failedCast(r0); - s.tmp_0 = if_handler_3_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.screen___89553; - 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 = 908; 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 = 908; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 908; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 908; s.pc = 1; return s.tmp_0; } - } - case 1: - r0 = s.retval; + if (!checkSubtype(r0, particles_SprayFactory__C21162_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___20003; + r0 = (s.arg2 + 128); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 8); + s.tmp_1 = r0; + r0 = (s.arg3 + 128); + s.tmp_4 = r0; + r0 = (s.tmp_4 >> 8); + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, 1); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Renderable___drawCore__P90324.info = {"start":390,"length":86,"line":14,"column":8,"endLine":16,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"__drawCore","argumentNames":["this","camera"]} +particles_SprayFactory_drawParticle__P21165.info = {"start":3194,"length":118,"line":115,"column":8,"endLine":117,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","particle","x","y"]} -function scene_Renderable___drawCore__P90324_mk(s) { +function particles_SprayFactory_drawParticle__P21165_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable___drawCore__P90324, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_drawParticle__P21165, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function scene_Renderable___visible__P90323(s) { +function scene_Renderable___drawCore__P20774(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40790,42 +38977,47 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C90321_VT)) failedCast(r0); - s.tmp_0 = if_shouldBeVisible_1_mk(s); + if (!checkSubtype(r0, scene_Renderable__C20771_VT)) failedCast(r0); + s.tmp_0 = if_handler_3_mk(s); s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = globals.screen___20003; + s.tmp_0.arg2 = s.arg1; if (!s.tmp_0.arg0.vtable.iface) { - setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "shouldBeVisible"), 1); - s.callLocIdx = 907; s.pc = 1; return s.tmp_0; + setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 3); + s.callLocIdx = 902; 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 = 907; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 907; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 907; s.pc = 1; return s.tmp_0; } + 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 = 902; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 902; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 902; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Renderable___visible__P90323.info = {"start":305,"length":75,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"__visible","argumentNames":["this"]} +scene_Renderable___drawCore__P20774.info = {"start":390,"length":86,"line":14,"column":8,"endLine":16,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"__drawCore","argumentNames":["this","camera"]} -function scene_Renderable___visible__P90323_mk(s) { +function scene_Renderable___drawCore__P20774_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable___visible__P90323, depth: s.depth + 1, + parent: s, fn: scene_Renderable___drawCore__P20774, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function scene_Camera_top__P90315(s) { +function scene_Renderable___visible__P20773(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40840,54 +39032,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C90302_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetY"]; - return leaveAccessor(s, r0) - default: oops() -} } } -scene_Camera_top__P90315.info = {"start":1764,"length":54,"line":60,"column":8,"endLine":62,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"top","argumentNames":["this"]} -scene_Camera_top__P90315.isGetter = true; - -function scene_Camera_top__P90315_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Camera_top__P90315, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function scene_Camera_left__P90313(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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; + if (!checkSubtype(r0, scene_Renderable__C20771_VT)) failedCast(r0); + s.tmp_0 = if_shouldBeVisible_1_mk(s); + s.tmp_0.arg0 = s.arg0; + if (!s.tmp_0.arg0.vtable.iface) { + setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "shouldBeVisible"), 1); + s.callLocIdx = 901; 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 = 901; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 901; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 901; s.pc = 1; return s.tmp_0; } } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C90302_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetX"]; - return leaveAccessor(s, r0) + case 1: + r0 = s.retval; + return leave(s, r0) default: oops() } } } -scene_Camera_left__P90313.info = {"start":1620,"length":55,"line":54,"column":8,"endLine":56,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"left","argumentNames":["this"]} -scene_Camera_left__P90313.isGetter = true; +scene_Renderable___visible__P20773.info = {"start":305,"length":75,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"__visible","argumentNames":["this"]} -function scene_Camera_left__P90313_mk(s) { +function scene_Renderable___visible__P20773_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_left__P90313, depth: s.depth + 1, + parent: s, fn: scene_Renderable___visible__P20773, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -40895,7 +39064,7 @@ function scene_Camera_left__P90313_mk(s) { -function Sprite___drawCore__P89936(s) { +function Sprite___drawCore__P20386(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40905,27 +39074,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___105477 = undefined; - s.oy___105485 = undefined; - s.l___105493 = undefined; - s.t___105499 = undefined; + s.ox___35368 = undefined; + s.oy___35376 = undefined; + s.l___35384 = undefined; + s.t___35390 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - s.tmp_0 = Sprite_drawSay__P92269_mk(s); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + s.tmp_0 = Sprite_drawSay__P22714_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 381; s.pc = 8; return s.tmp_0; + s.callLocIdx = 375; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.tmp_1 = Sprite_isOutOfScreen__P89935_mk(s); + s.tmp_1 = Sprite_isOutOfScreen__P20385_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 382; s.pc = 9; return s.tmp_1; + s.callLocIdx = 376; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; s.tmp_0 = r0; @@ -40947,7 +39116,7 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_4 = r0; - s.ox___105477 = (s.tmp_4); + s.ox___35368 = (s.tmp_4); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -40961,43 +39130,43 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___105485 = (s.tmp_2); - s.tmp_2 = Sprite_left__P89920_mk(s); + s.oy___35376 = (s.tmp_2); + s.tmp_2 = Sprite_left__P20370_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 383; s.pc = 10; return s.tmp_2; + s.callLocIdx = 377; s.pc = 10; return s.tmp_2; case 10: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 - s.ox___105477); + r0 = (s.tmp_1 - s.ox___35368); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - s.l___105493 = (r0); - s.tmp_2 = Sprite_top__P89924_mk(s); + s.l___35384 = (r0); + s.tmp_2 = Sprite_top__P20374_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 384; s.pc = 11; return s.tmp_2; + s.callLocIdx = 378; s.pc = 11; return s.tmp_2; case 11: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 - s.oy___105485); + r0 = (s.tmp_1 - s.oy___35376); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - s.t___105499 = (r0); - s.tmp_0 = Sprite__C89862_v6_3_mk(s); + s.t___35390 = (r0); + s.tmp_0 = Sprite__C20312_v6_3_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.l___105493; - s.tmp_0.arg2 = s.t___105499; - if (!checkSubtype(s.tmp_0.arg0, Sprite__C89862_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.arg1 = s.l___35384; + s.tmp_0.arg2 = s.t___35390; + if (!checkSubtype(s.tmp_0.arg0, Sprite__C20312_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__P92270_mk(s); + s.tmp_0 = Sprite_drawDebug__P22715_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.l___105493; - s.tmp_0.arg2 = s.t___105499; - s.tmp_0.arg3 = s.ox___105477; - s.tmp_0.arg4 = s.oy___105485; - s.callLocIdx = 385; s.pc = 13; return s.tmp_0; + s.tmp_0.arg1 = s.l___35384; + s.tmp_0.arg2 = s.t___35390; + s.tmp_0.arg3 = s.ox___35368; + s.tmp_0.arg4 = s.oy___35376; + s.callLocIdx = 379; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; case 7: @@ -41005,22 +39174,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___drawCore__P89936.info = {"start":18194,"length":462,"line":613,"column":4,"endLine":626,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]} +Sprite___drawCore__P20386.info = {"start":18194,"length":462,"line":613,"column":4,"endLine":626,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]} -function Sprite___drawCore__P89936_mk(s) { +function Sprite___drawCore__P20386_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___drawCore__P89936, depth: s.depth + 1, + parent: s, fn: Sprite___drawCore__P20386, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - ox___105477: undefined, - oy___105485: undefined, - l___105493: undefined, - t___105499: undefined, + ox___35368: undefined, + oy___35376: undefined, + l___35384: undefined, + t___35390: undefined, arg0: undefined, arg1: undefined, } } @@ -41029,7 +39198,7 @@ function Sprite___drawCore__P89936_mk(s) { -function Sprite_drawSprite__P92271(s) { +function Sprite_drawSprite__P22716(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41046,10 +39215,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); - s.tmp_3 = Sprite_isScaled__P92268_mk(s); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); + s.tmp_3 = Sprite_isScaled__P22713_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 477; s.pc = 3; return s.tmp_3; + s.callLocIdx = 471; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; s.tmp_2 = r0; @@ -41061,22 +39230,22 @@ switch (step) { if (!r0) { step = 1; continue; } r0 = s.arg0.fields["_image"]; s.tmp_4 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___89553, s.tmp_4, s.arg1, s.arg2); + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___20003, s.tmp_4, s.arg1, s.arg2); { step = 2; continue; } case 1: - s.tmp_0 = helpers_imageBlit__P89474_mk(s); - s.tmp_0.arg0 = globals.screen___89553; + s.tmp_0 = helpers_imageBlit__P19924_mk(s); + s.tmp_0.arg0 = globals.screen___20003; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.tmp_1 = Sprite_width__P89918_mk(s); + s.tmp_1 = Sprite_width__P20368_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 478; s.pc = 5; return s.tmp_1; + s.callLocIdx = 472; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0.arg3 = r0; - s.tmp_2 = Sprite_height__P89919_mk(s); + s.tmp_2 = Sprite_height__P20369_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 479; s.pc = 6; return s.tmp_2; + s.callLocIdx = 473; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_0.arg4 = r0; @@ -41094,7 +39263,7 @@ switch (step) { s.tmp_0.arg9 = r0; s.tmp_0.arg10 = true; s.tmp_0.arg11 = false; - s.callLocIdx = 480; s.pc = 4; return s.tmp_0; + s.callLocIdx = 474; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 2: @@ -41102,12 +39271,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_drawSprite__P92271.info = {"start":35888,"length":514,"line":1118,"column":4,"endLine":1132,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]} +Sprite_drawSprite__P22716.info = {"start":35888,"length":514,"line":1118,"column":4,"endLine":1132,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSprite","argumentNames":["this","drawLeft","drawTop"]} -function Sprite_drawSprite__P92271_mk(s) { +function Sprite_drawSprite__P22716_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_drawSprite__P92271, depth: s.depth + 1, + parent: s, fn: Sprite_drawSprite__P22716, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41123,7 +39292,7 @@ function Sprite_drawSprite__P92271_mk(s) { -function Sprite_drawDebug__P92270(s) { +function Sprite_drawDebug__P22715(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41133,9 +39302,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.font___105523 = undefined; - s.tx___105527 = undefined; - s.ty___105529 = undefined; + s.font___35414 = undefined; + s.tx___35418 = undefined; + s.ty___35420 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -41145,33 +39314,33 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 64); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } - s.font___105523 = (globals.font5___89501); - s.tx___105527 = (s.arg1); + s.font___35414 = (globals.font5___19951); + s.tx___35418 = (s.arg1); s.tmp_1 = r0 = s.arg2; - s.tmp_3 = Sprite_height__P89919_mk(s); + s.tmp_3 = Sprite_height__P20369_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 453; s.pc = 13; return s.tmp_3; + s.callLocIdx = 447; 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___105529 = (r0); - s.tmp_0 = helpers_imagePrint__P89511_mk(s); - s.tmp_0.arg0 = globals.screen___89553; + s.ty___35420 = (r0); + s.tmp_0 = helpers_imagePrint__P19961_mk(s); + s.tmp_0.arg0 = globals.screen___20003; r0 = pxsim_String_.mkEmpty(); s.tmp_3 = r0; - s.tmp_7 = Sprite_x__P89875_mk(s); + s.tmp_7 = Sprite_x__P20325_mk(s); s.tmp_7.arg0 = s.arg0; - s.callLocIdx = 454; s.pc = 15; return s.tmp_7; + s.callLocIdx = 448; s.pc = 15; return s.tmp_7; case 15: r0 = s.retval; s.tmp_6 = r0; @@ -41190,9 +39359,9 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_11 = Sprite_y__P89877_mk(s); + s.tmp_11 = Sprite_y__P20327_mk(s); s.tmp_11.arg0 = s.arg0; - s.callLocIdx = 455; s.pc = 17; return s.tmp_11; + s.callLocIdx = 449; s.pc = 17; return s.tmp_11; case 17: r0 = s.retval; s.tmp_10 = r0; @@ -41209,33 +39378,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___105527; - s.tmp_0.arg3 = s.ty___105529; + s.tmp_0.arg2 = s.tx___35418; + s.tmp_0.arg3 = s.ty___35420; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___105523; + s.tmp_0.arg5 = s.font___35414; s.tmp_0.arg6 = undefined; - s.callLocIdx = 456; s.pc = 14; return s.tmp_0; + s.callLocIdx = 450; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - s.tmp_0 = r0 = s.tx___105527; + s.tmp_0 = r0 = s.tx___35418; s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.font___105523; + s.tmp_2.arg0 = s.font___35414; 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 = 457; s.pc = 19; return s.tmp_2; } + else { s.callLocIdx = 451; 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___105527 = (r0); - s.tmp_1 = Sprite_vx__P89879_mk(s); + s.tx___35418 = (r0); + s.tmp_1 = Sprite_vx__P20329_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 458; s.pc = 20; return s.tmp_1; + s.callLocIdx = 452; s.pc = 20; return s.tmp_1; case 20: r0 = s.retval; s.tmp_0 = r0; @@ -41244,9 +39413,9 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_2 = Sprite_vy__P89881_mk(s); + s.tmp_2 = Sprite_vy__P20331_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 459; s.pc = 21; return s.tmp_2; + s.callLocIdx = 453; s.pc = 21; return s.tmp_2; case 21: r0 = s.retval; case 2: @@ -41254,16 +39423,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___105529; + s.tmp_4 = r0 = s.ty___35420; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___105523; + s.tmp_7.arg0 = s.font___35414; 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 = 460; s.pc = 22; return s.tmp_7; } + else { s.callLocIdx = 454; s.pc = 22; return s.tmp_7; } } case 22: r0 = s.retval; @@ -41271,12 +39440,12 @@ switch (step) { r0 = (s.tmp_6 + 2); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); - s.ty___105529 = (r0); - s.tmp_0 = helpers_imagePrint__P89511_mk(s); - s.tmp_0.arg0 = globals.screen___89553; - s.tmp_6 = Sprite_vx__P89879_mk(s); + s.ty___35420 = (r0); + s.tmp_0 = helpers_imagePrint__P19961_mk(s); + s.tmp_0.arg0 = globals.screen___20003; + s.tmp_6 = Sprite_vx__P20329_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 461; s.pc = 24; return s.tmp_6; + s.callLocIdx = 455; s.pc = 24; return s.tmp_6; case 24: r0 = s.retval; s.tmp_5 = r0; @@ -41295,9 +39464,9 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_10 = Sprite_vy__P89881_mk(s); + s.tmp_10 = Sprite_vy__P20331_mk(s); s.tmp_10.arg0 = s.arg0; - s.callLocIdx = 462; s.pc = 26; return s.tmp_10; + s.callLocIdx = 456; s.pc = 26; return s.tmp_10; case 26: r0 = s.retval; s.tmp_9 = r0; @@ -41314,19 +39483,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___105527; - s.tmp_0.arg3 = s.ty___105529; + s.tmp_0.arg2 = s.tx___35418; + s.tmp_0.arg3 = s.ty___35420; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___105523; + s.tmp_0.arg5 = s.font___35414; s.tmp_0.arg6 = undefined; - s.callLocIdx = 463; s.pc = 23; return s.tmp_0; + s.callLocIdx = 457; s.pc = 23; return s.tmp_0; case 23: r0 = s.retval; case 3: case 4: - s.tmp_1 = Sprite_ax__P89883_mk(s); + s.tmp_1 = Sprite_ax__P20333_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 464; s.pc = 28; return s.tmp_1; + s.callLocIdx = 458; s.pc = 28; return s.tmp_1; case 28: r0 = s.retval; s.tmp_0 = r0; @@ -41335,9 +39504,9 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_2 = Sprite_ay__P89885_mk(s); + s.tmp_2 = Sprite_ay__P20335_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 465; s.pc = 29; return s.tmp_2; + s.callLocIdx = 459; s.pc = 29; return s.tmp_2; case 29: r0 = s.retval; case 6: @@ -41345,16 +39514,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___105529; + s.tmp_4 = r0 = s.ty___35420; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___105523; + s.tmp_7.arg0 = s.font___35414; 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 = 466; s.pc = 30; return s.tmp_7; } + else { s.callLocIdx = 460; s.pc = 30; return s.tmp_7; } } case 30: r0 = s.retval; @@ -41362,12 +39531,12 @@ switch (step) { r0 = (s.tmp_6 + 2); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); - s.ty___105529 = (r0); - s.tmp_0 = helpers_imagePrint__P89511_mk(s); - s.tmp_0.arg0 = globals.screen___89553; - s.tmp_6 = Sprite_ax__P89883_mk(s); + s.ty___35420 = (r0); + s.tmp_0 = helpers_imagePrint__P19961_mk(s); + s.tmp_0.arg0 = globals.screen___20003; + s.tmp_6 = Sprite_ax__P20333_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 467; s.pc = 32; return s.tmp_6; + s.callLocIdx = 461; s.pc = 32; return s.tmp_6; case 32: r0 = s.retval; s.tmp_5 = r0; @@ -41386,9 +39555,9 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_10 = Sprite_ay__P89885_mk(s); + s.tmp_10 = Sprite_ay__P20335_mk(s); s.tmp_10.arg0 = s.arg0; - s.callLocIdx = 468; s.pc = 34; return s.tmp_10; + s.callLocIdx = 462; s.pc = 34; return s.tmp_10; case 34: r0 = s.retval; s.tmp_9 = r0; @@ -41405,26 +39574,26 @@ switch (step) { s.tmp_7 = r0; r0 = pxsim_String__concat(s.tmp_1, s.tmp_7); s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.tx___105527; - s.tmp_0.arg3 = s.ty___105529; + s.tmp_0.arg2 = s.tx___35418; + s.tmp_0.arg3 = s.ty___35420; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___105523; + s.tmp_0.arg5 = s.font___35414; s.tmp_0.arg6 = undefined; - s.callLocIdx = 469; s.pc = 31; return s.tmp_0; + s.callLocIdx = 463; s.pc = 31; return s.tmp_0; case 31: r0 = s.retval; case 7: case 8: case 9: case 10: - r0 = pxsim_numops_toBoolDecr(globals.debug___90488); + r0 = pxsim_numops_toBoolDecr(globals.debug___20938); if (!r0) { step = 11; continue; } - s.tmp_0 = helpers_imageDrawRect__P89480_mk(s); - s.tmp_0.arg0 = globals.screen___89553; - s.tmp_3 = game_Hitbox_left__P89737_mk(s); + s.tmp_0 = helpers_imageDrawRect__P19930_mk(s); + s.tmp_0.arg0 = globals.screen___20003; + s.tmp_3 = game_Hitbox_left__P20187_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_3.arg0 = r0; - s.callLocIdx = 470; s.pc = 37; return s.tmp_3; + s.callLocIdx = 464; s.pc = 37; return s.tmp_3; case 37: r0 = s.retval; s.tmp_2 = r0; @@ -41434,10 +39603,10 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_1 - s.arg3); s.tmp_0.arg1 = r0; - s.tmp_7 = game_Hitbox_top__P89738_mk(s); + s.tmp_7 = game_Hitbox_top__P20188_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_7.arg0 = r0; - s.callLocIdx = 472; s.pc = 38; return s.tmp_7; + s.callLocIdx = 466; s.pc = 38; return s.tmp_7; case 38: r0 = s.retval; s.tmp_6 = r0; @@ -41462,7 +39631,7 @@ switch (step) { r0 = (s.tmp_12 >> 8); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 1; - s.callLocIdx = 476; s.pc = 36; return s.tmp_0; + s.callLocIdx = 470; s.pc = 36; return s.tmp_0; case 36: r0 = s.retval; case 11: @@ -41471,12 +39640,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_drawDebug__P92270.info = {"start":34790,"length":1092,"line":1088,"column":4,"endLine":1116,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]} +Sprite_drawDebug__P22715.info = {"start":34790,"length":1092,"line":1088,"column":4,"endLine":1116,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawDebug","argumentNames":["this","left","top","offsetX","offsetY"]} -function Sprite_drawDebug__P92270_mk(s) { +function Sprite_drawDebug__P22715_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_drawDebug__P92270, depth: s.depth + 1, + parent: s, fn: Sprite_drawDebug__P22715, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41491,9 +39660,9 @@ function Sprite_drawDebug__P92270_mk(s) { tmp_10: undefined, tmp_11: undefined, tmp_12: undefined, - font___105523: undefined, - tx___105527: undefined, - ty___105529: undefined, + font___35414: undefined, + tx___35418: undefined, + ty___35420: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -41505,7 +39674,7 @@ function Sprite_drawDebug__P92270_mk(s) { -function Sprite_drawSay__P92269(s) { +function Sprite_drawSay__P22714(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41521,7 +39690,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); r0 = s.arg0.fields["sayRenderer"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -41540,23 +39709,23 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 1; continue; } - s.tmp_6 = sprites_BaseSpriteSayRenderer__C89780_v0_4_mk(s); + s.tmp_6 = sprites_BaseSpriteSayRenderer__C20230_v0_4_mk(s); r0 = s.arg0.fields["sayRenderer"]; s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = globals.screen___89553; + s.tmp_6.arg1 = globals.screen___20003; s.tmp_6.arg2 = s.arg1; s.tmp_6.arg3 = s.arg0; - if (!checkSubtype(s.tmp_6.arg0, sprites_BaseSpriteSayRenderer__C89780_VT)) failedCast(s.tmp_6.arg0); + if (!checkSubtype(s.tmp_6.arg0, sprites_BaseSpriteSayRenderer__C20230_VT)) failedCast(s.tmp_6.arg0); s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.draw; s.pc = 7; return s.tmp_6; case 7: r0 = s.retval; { step = 2; continue; } case 1: - s.tmp_0 = sprites_BaseSpriteSayRenderer__C89780_v2_1_mk(s); + s.tmp_0 = sprites_BaseSpriteSayRenderer__C20230_v2_1_mk(s); r0 = s.arg0.fields["sayRenderer"]; s.tmp_0.arg0 = r0; - if (!checkSubtype(s.tmp_0.arg0, sprites_BaseSpriteSayRenderer__C89780_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, sprites_BaseSpriteSayRenderer__C20230_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.destroy; s.pc = 8; return s.tmp_0; case 8: @@ -41566,13 +39735,13 @@ switch (step) { case 2: { step = 4; continue; } case 3: - s.tmp_0 = sprites_BaseSpriteSayRenderer__C89780_v0_4_mk(s); + s.tmp_0 = sprites_BaseSpriteSayRenderer__C20230_v0_4_mk(s); r0 = s.arg0.fields["sayRenderer"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.screen___89553; + s.tmp_0.arg1 = globals.screen___20003; s.tmp_0.arg2 = s.arg1; s.tmp_0.arg3 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, sprites_BaseSpriteSayRenderer__C89780_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, sprites_BaseSpriteSayRenderer__C20230_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.draw; s.pc = 9; return s.tmp_0; case 9: @@ -41584,12 +39753,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_drawSay__P92269.info = {"start":34210,"length":574,"line":1070,"column":4,"endLine":1086,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]} +Sprite_drawSay__P22714.info = {"start":34210,"length":574,"line":1070,"column":4,"endLine":1086,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"drawSay","argumentNames":["this","camera"]} -function Sprite_drawSay__P92269_mk(s) { +function Sprite_drawSay__P22714_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_drawSay__P92269, depth: s.depth + 1, + parent: s, fn: Sprite_drawSay__P22714, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41606,7 +39775,7 @@ function Sprite_drawSay__P92269_mk(s) { -function sprites_BaseSpriteSayRenderer_destroy__P89784(s) { +function sprites_BaseSpriteSayRenderer_destroy__P20234(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41621,17 +39790,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C89780_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C20230_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSpriteSayRenderer_destroy__P89784.info = {"start":328,"length":22,"line":13,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"destroy","argumentNames":["this"]} +sprites_BaseSpriteSayRenderer_destroy__P20234.info = {"start":328,"length":22,"line":13,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"destroy","argumentNames":["this"]} -function sprites_BaseSpriteSayRenderer_destroy__P89784_mk(s) { +function sprites_BaseSpriteSayRenderer_destroy__P20234_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSpriteSayRenderer_destroy__P89784, depth: s.depth + 1, + parent: s, fn: sprites_BaseSpriteSayRenderer_destroy__P20234, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -41640,7 +39809,7 @@ function sprites_BaseSpriteSayRenderer_destroy__P89784_mk(s) { -function sprites_BaseSpriteSayRenderer_draw__P89782(s) { +function sprites_BaseSpriteSayRenderer_draw__P20232(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41658,17 +39827,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C89780_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C20230_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSpriteSayRenderer_draw__P89782.info = {"start":171,"length":69,"line":5,"column":8,"endLine":7,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"draw","argumentNames":["this","screen","camera","owner"]} +sprites_BaseSpriteSayRenderer_draw__P20232.info = {"start":171,"length":69,"line":5,"column":8,"endLine":7,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"draw","argumentNames":["this","screen","camera","owner"]} -function sprites_BaseSpriteSayRenderer_draw__P89782_mk(s) { +function sprites_BaseSpriteSayRenderer_draw__P20232_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSpriteSayRenderer_draw__P89782, depth: s.depth + 1, + parent: s, fn: sprites_BaseSpriteSayRenderer_draw__P20232, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -41680,7 +39849,7 @@ function sprites_BaseSpriteSayRenderer_draw__P89782_mk(s) { -function Sprite___visible__P89917(s) { +function Sprite___visible__P20367(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41695,7 +39864,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C89862_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20312_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_2 = r0; r0 = (s.tmp_2 & 128); @@ -41706,12 +39875,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___visible__P89917.info = {"start":9904,"length":72,"line":359,"column":4,"endLine":361,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__visible","argumentNames":["this"]} +Sprite___visible__P20367.info = {"start":9904,"length":72,"line":359,"column":4,"endLine":361,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__visible","argumentNames":["this"]} -function Sprite___visible__P89917_mk(s) { +function Sprite___visible__P20367_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___visible__P89917, depth: s.depth + 1, + parent: s, fn: Sprite___visible__P20367, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41722,49 +39891,77 @@ function Sprite___visible__P89917_mk(s) { -function if_charWidth_1_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: null, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - arg0: undefined, -} } +function scene_Camera_top__P20765(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; -function if_charHeight_1_mk(s) { + +while (true) { +if (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__C20752_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetY"]; + return leaveAccessor(s, r0) + default: oops() +} } } +scene_Camera_top__P20765.info = {"start":1764,"length":54,"line":60,"column":8,"endLine":62,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"top","argumentNames":["this"]} +scene_Camera_top__P20765.isGetter = true; + +function scene_Camera_top__P20765_mk(s) { checkStack(s.depth); return { - parent: s, fn: null, depth: s.depth + 1, + parent: s, fn: scene_Camera_top__P20765, depth: s.depth + 1, pc: 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_data_1_mk(s) { + + + +function scene_Camera_left__P20763(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C20752_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetX"]; + return leaveAccessor(s, r0) + default: oops() +} } } +scene_Camera_left__P20763.info = {"start":1620,"length":55,"line":54,"column":8,"endLine":56,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"left","argumentNames":["this"]} +scene_Camera_left__P20763.isGetter = true; + +function scene_Camera_left__P20763_mk(s) { checkStack(s.depth); return { - parent: s, fn: null, depth: s.depth + 1, + parent: s, fn: scene_Camera_left__P20763, depth: s.depth + 1, pc: 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_multiplier_1_mk(s) { + + +function PhysicsEngine__C20482_v4_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -41775,10 +39972,11 @@ function if_multiplier_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function lambda_4_mk(s) { +function if___update_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -41791,11 +39989,10 @@ function lambda_4_mk(s) { arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, } } -function lambda_3_mk(s) { +function lambda_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -41807,11 +40004,10 @@ function lambda_3_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function Sprite__C89862_v5_1_mk(s) { +function PhysicsEngine__C20482_v3_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -41825,7 +40021,7 @@ function Sprite__C89862_v5_1_mk(s) { } } -function Sprite__C89862_v4_1_mk(s) { +function if_handler_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -41839,7 +40035,7 @@ function Sprite__C89862_v4_1_mk(s) { } } -function if_xOffset_1_mk(s) { +function if_charHeight_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -41853,7 +40049,7 @@ function if_xOffset_1_mk(s) { } } -function if_yOffset_1_mk(s) { +function if_charWidth_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -41867,7 +40063,7 @@ function if_yOffset_1_mk(s) { } } -function if_handler_1_mk(s) { +function if_multiplier_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -41881,7 +40077,7 @@ function if_handler_1_mk(s) { } } -function PhysicsEngine__C90032_v2_4_mk(s) { +function if_data_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -41892,13 +40088,10 @@ function PhysicsEngine__C90032_v2_4_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function PhysicsEngine__C90032_v0_2_mk(s) { +function if_xOffset_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -41909,11 +40102,10 @@ function PhysicsEngine__C90032_v0_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function if_id_2_mk(s) { +function if_yOffset_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -41924,11 +40116,10 @@ function if_id_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function PhysicsEngine__C90032_v4_2_mk(s) { +function if___draw_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -41943,7 +40134,7 @@ function PhysicsEngine__C90032_v4_2_mk(s) { } } -function if___update_3_mk(s) { +function if_z_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -41954,12 +40145,10 @@ function if___update_3_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function lambda_2_mk(s) { +function if_id_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -41970,11 +40159,10 @@ function lambda_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function PhysicsEngine__C90032_v3_1_mk(s) { +function lambda_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -41985,10 +40173,12 @@ function PhysicsEngine__C90032_v3_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function if___draw_2_mk(s) { +function controller_Button__C20160_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -41999,11 +40189,10 @@ function if___draw_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function if_z_1_mk(s) { +function if_s_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42017,7 +40206,7 @@ function if_z_1_mk(s) { } } -function if_id_1_mk(s) { +function if_vx_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42031,7 +40220,7 @@ function if_id_1_mk(s) { } } -function controller_Button__C89710_v0_1_mk(s) { +function if_vy_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42045,7 +40234,7 @@ function controller_Button__C89710_v0_1_mk(s) { } } -function if_s_1_mk(s) { +function lambda_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42059,7 +40248,7 @@ function if_s_1_mk(s) { } } -function if_vx_1_mk(s) { +function if_condition_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42073,7 +40262,7 @@ function if_vx_1_mk(s) { } } -function if_vy_1_mk(s) { +function lambda_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42084,10 +40273,13 @@ function if_vy_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function lambda_1_mk(s) { +function if_effect_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42098,10 +40290,12 @@ function lambda_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function if_condition_1_mk(s) { +function Sprite__C20312_v5_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42115,7 +40309,7 @@ function if_condition_1_mk(s) { } } -function if_effect_3_mk(s) { +function Sprite__C20312_v4_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42126,8 +40320,6 @@ function if_effect_3_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } @@ -42147,7 +40339,7 @@ function if_sourceFactory_3_mk(s) { } } -function PhysicsEngine__C90032_v1_2_mk(s) { +function PhysicsEngine__C20482_v1_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42345,6 +40537,23 @@ function if_getText_1_mk(s) { } } +function PhysicsEngine__C20482_v2_4_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: null, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + function if_basicCard_1_mk(s) { checkStack(s.depth); return { @@ -42402,6 +40611,36 @@ function if_z_2_mk(s) { } } +function PhysicsEngine__C20482_v0_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_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_callback_1_mk(s) { checkStack(s.depth); return { @@ -42430,7 +40669,7 @@ function if_flags_1_mk(s) { } } -function particles_ParticleFactory__C90708_v0_2_mk(s) { +function particles_ParticleFactory__C21158_v0_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42445,7 +40684,7 @@ function particles_ParticleFactory__C90708_v0_2_mk(s) { } } -function particles_ParticleSource__C90672_v4_3_mk(s) { +function particles_ParticleSource__C21122_v4_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42503,7 +40742,7 @@ function if_height_1_mk(s) { } } -function particles_ParticleFactory__C90708_v1_4_mk(s) { +function particles_ParticleFactory__C21158_v1_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42578,7 +40817,7 @@ function if_top_1_mk(s) { } } -function sprites_BaseSpriteSayRenderer__C89780_v1_4_mk(s) { +function sprites_BaseSpriteSayRenderer__C20230_v1_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42595,7 +40834,7 @@ function sprites_BaseSpriteSayRenderer__C89780_v1_4_mk(s) { } } -function sprites_BaseSprite__C89615_v0_1_mk(s) { +function sprites_BaseSprite__C20065_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42609,7 +40848,7 @@ function sprites_BaseSprite__C89615_v0_1_mk(s) { } } -function sprites_BaseSprite__C89615_v2_2_mk(s) { +function sprites_BaseSprite__C20065_v2_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42638,7 +40877,7 @@ function if_shouldBeVisible_1_mk(s) { } } -function Sprite__C89862_v6_3_mk(s) { +function Sprite__C20312_v6_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42654,7 +40893,7 @@ function Sprite__C89862_v6_3_mk(s) { } } -function sprites_BaseSpriteSayRenderer__C89780_v0_4_mk(s) { +function sprites_BaseSpriteSayRenderer__C20230_v0_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42671,7 +40910,7 @@ function sprites_BaseSpriteSayRenderer__C89780_v0_4_mk(s) { } } -function sprites_BaseSpriteSayRenderer__C89780_v2_1_mk(s) { +function sprites_BaseSpriteSayRenderer__C20230_v2_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42726,7 +40965,7 @@ function if_width_1_mk(s) { arg0: undefined, } } -const controller_Controller__C89655_VT = mkVTable({ +const controller_Controller__C20105_VT = mkVTable({ name: "Controller", numFields: 5, classNo: 16, @@ -42745,28 +40984,28 @@ const controller_Controller__C89655_VT = mkVTable({ "set/_id": null, "_connected": null, "set/_connected": null, - "_controlledSprites": controller_Controller__controlledSprites__P89660, - "set/_controlledSprites": controller_Controller__controlledSprites__P89661, - "id": controller_Controller_id__P89662, - "left": controller_Controller_left__P89664, - "right": controller_Controller_right__P89665, - "up": controller_Controller_up__P89666, - "down": controller_Controller_down__P89667, - "button": controller_Controller_button__P92240, - "connected": controller_Controller_connected__P89676, - "set/connected": controller_Controller_connected__P89677, - "__preUpdate": controller_Controller___preUpdate__P89683, - "__update": controller_Controller___update__P89684, + "_controlledSprites": controller_Controller__controlledSprites__P20110, + "set/_controlledSprites": controller_Controller__controlledSprites__P20111, + "id": controller_Controller_id__P20112, + "left": controller_Controller_left__P20114, + "right": controller_Controller_right__P20115, + "up": controller_Controller_up__P20116, + "down": controller_Controller_down__P20117, + "button": controller_Controller_button__P22685, + "connected": controller_Controller_connected__P20126, + "set/connected": controller_Controller_connected__P20127, + "__preUpdate": controller_Controller___preUpdate__P20133, + "__update": controller_Controller___update__P20134, }, }); -const controller_Button__C89710_VT = mkVTable({ +const controller_Button__C20160_VT = mkVTable({ name: "Button", numFields: 7, classNo: 17, lastSubtypeNo: 18, maxBgInstances: null, methods: { - "isPressed": controller_Button_isPressed__P89721, + "isPressed": controller_Button_isPressed__P20171, }, iface: { "_owner": null, @@ -42783,29 +41022,29 @@ const controller_Button__C89710_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "handlerState": controller_Button_handlerState__P92243, - "toString": controller_Button_toString__P89715, - "raiseButtonUp": controller_Button_raiseButtonUp__P92244, - "raiseButtonDown": controller_Button_raiseButtonDown__P92245, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P92246, - "onEvent": controller_Button_onEvent__P89717, - "isPressed": controller_Button_isPressed__P89721, - "pressureLevel": controller_Button_pressureLevel__P89722, - "setPressed": controller_Button_setPressed__P89723, - "__update": controller_Button___update__P89724, - "runButtonEvents": controller_Button_runButtonEvents__P92247, - "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P92248, + "handlerState": controller_Button_handlerState__P22688, + "toString": controller_Button_toString__P20165, + "raiseButtonUp": controller_Button_raiseButtonUp__P22689, + "raiseButtonDown": controller_Button_raiseButtonDown__P22690, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P22691, + "onEvent": controller_Button_onEvent__P20167, + "isPressed": controller_Button_isPressed__P20171, + "pressureLevel": controller_Button_pressureLevel__P20172, + "setPressed": controller_Button_setPressed__P20173, + "__update": controller_Button___update__P20174, + "runButtonEvents": controller_Button_runButtonEvents__P22692, + "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P22693, }, - toStringMethod: controller_Button_toString__P89715, + toStringMethod: controller_Button_toString__P20165, }); -const controller_AnyButton__C92241_VT = mkVTable({ +const controller_AnyButton__C22686_VT = mkVTable({ name: "AnyButton", numFields: 7, classNo: 18, lastSubtypeNo: 18, maxBgInstances: null, methods: { - "isPressed": controller_AnyButton_isPressed__P92249, + "isPressed": controller_AnyButton_isPressed__P22694, }, iface: { "_owner": null, @@ -42822,21 +41061,21 @@ const controller_AnyButton__C92241_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "isPressed": controller_AnyButton_isPressed__P92249, - "handlerState": controller_Button_handlerState__P92243, - "toString": controller_Button_toString__P89715, - "raiseButtonUp": controller_Button_raiseButtonUp__P92244, - "raiseButtonDown": controller_Button_raiseButtonDown__P92245, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P92246, - "onEvent": controller_Button_onEvent__P89717, - "pressureLevel": controller_Button_pressureLevel__P89722, - "setPressed": controller_Button_setPressed__P89723, - "__update": controller_Button___update__P89724, - "runButtonEvents": controller_Button_runButtonEvents__P92247, - "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P92248, + "isPressed": controller_AnyButton_isPressed__P22694, + "handlerState": controller_Button_handlerState__P22688, + "toString": controller_Button_toString__P20165, + "raiseButtonUp": controller_Button_raiseButtonUp__P22689, + "raiseButtonDown": controller_Button_raiseButtonDown__P22690, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P22691, + "onEvent": controller_Button_onEvent__P20167, + "pressureLevel": controller_Button_pressureLevel__P20172, + "setPressed": controller_Button_setPressed__P20173, + "__update": controller_Button___update__P20174, + "runButtonEvents": controller_Button_runButtonEvents__P22692, + "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P22693, }, }); -const game_GameOverConfig__C90494_VT = mkVTable({ +const game_GameOverConfig__C20944_VT = mkVTable({ name: "GameOverConfig", numFields: 14, classNo: 19, @@ -42873,10 +41112,10 @@ const game_GameOverConfig__C90494_VT = mkVTable({ "set/messageSetByUser": null, "scoringTypeSetByUser": null, "set/scoringTypeSetByUser": null, - "init": game_GameOverConfig_init__P90510, + "init": game_GameOverConfig_init__P20960, }, }); -const Math_FastRandom__C90580_VT = mkVTable({ +const Math_FastRandom__C21030_VT = mkVTable({ name: "FastRandom", numFields: 2, classNo: 20, @@ -42889,423 +41128,16 @@ const Math_FastRandom__C90580_VT = mkVTable({ "set/lfsr": null, "seed": null, "set/seed": null, - "next": Math_FastRandom_next__P90583, - "randomRange": Math_FastRandom_randomRange__P90584, - "pickRandom": Math_FastRandom_pickRandom__P90585, + "next": Math_FastRandom_next__P21033, + "randomRange": Math_FastRandom_randomRange__P21034, + "pickRandom": Math_FastRandom_pickRandom__P21035, }, }); -const sprites_BaseSprite__C89615_VT = mkVTable({ - name: "BaseSprite", - numFields: 2, - classNo: 21, - lastSubtypeNo: 25, - maxBgInstances: null, - methods: { - "__visible": sprites_BaseSprite___visible__P89618, - "__draw": sprites_BaseSprite___draw__P89621, - "__drawCore": sprites_BaseSprite___drawCore__P89622, - "__update": sprites_BaseSprite___update__P89623, - }, - iface: { - "_z": null, - "set/_z": null, - "id": null, - "set/id": null, - "__visible": sprites_BaseSprite___visible__P89618, - "z": sprites_BaseSprite_z__P89619, - "set/z": sprites_BaseSprite_z__P89620, - "__draw": sprites_BaseSprite___draw__P89621, - "__drawCore": sprites_BaseSprite___drawCore__P89622, - "__update": sprites_BaseSprite___update__P89623, - }, -}); -const Sprite__C89862_VT = mkVTable({ - name: "Sprite", - numFields: 30, - classNo: 22, - lastSubtypeNo: 23, - maxBgInstances: null, - methods: { - "__visible": Sprite___visible__P89917, - "__draw": sprites_BaseSprite___draw__P89621, - "__drawCore": Sprite___drawCore__P89936, - "__update": Sprite___update__P89937, - "setHitbox": Sprite_setHitbox__P89915, - "recalcSize": Sprite_recalcSize__P92267, - "drawSprite": Sprite_drawSprite__P92271, - }, - iface: { - "_z": null, - "set/_z": null, - "id": null, - "set/id": null, - "_x": null, - "set/_x": null, - "_y": null, - "set/_y": null, - "_vx": null, - "set/_vx": null, - "_vy": null, - "set/_vy": null, - "_ax": null, - "set/_ax": null, - "_ay": null, - "set/_ay": null, - "_fx": null, - "set/_fx": null, - "_fy": null, - "set/_fy": null, - "_sx": null, - "set/_sx": null, - "_sy": null, - "set/_sy": null, - "_width": null, - "set/_width": null, - "_height": null, - "set/_height": null, - "_data": null, - "set/_data": null, - "_kind": null, - "set/_kind": null, - "layer": null, - "set/layer": null, - "_lastX": null, - "set/_lastX": null, - "_lastY": null, - "set/_lastY": null, - "_action": null, - "set/_action": null, - "lifespan": null, - "set/lifespan": null, - "_image": null, - "set/_image": null, - "_obstacles": null, - "set/_obstacles": null, - "sayEndTime": null, - "set/sayEndTime": null, - "sayRenderer": null, - "set/sayRenderer": null, - "_hitbox": null, - "set/_hitbox": null, - "_overlappers": null, - "set/_overlappers": null, - "_kindsOverlappedWith": null, - "set/_kindsOverlappedWith": null, - "flags": null, - "set/flags": null, - "destroyHandler": null, - "set/destroyHandler": null, - "x": Sprite_x__P89875, - "set/x": Sprite_x__P89876, - "y": Sprite_y__P89877, - "set/y": Sprite_y__P89878, - "vx": Sprite_vx__P89879, - "set/vx": Sprite_vx__P89880, - "vy": Sprite_vy__P89881, - "set/vy": Sprite_vy__P89882, - "ax": Sprite_ax__P89883, - "set/ax": Sprite_ax__P89884, - "ay": Sprite_ay__P89885, - "set/ay": Sprite_ay__P89886, - "fx": Sprite_fx__P89887, - "set/fx": Sprite_fx__P89888, - "fy": Sprite_fy__P89889, - "set/fy": Sprite_fy__P89890, - "sx": Sprite_sx__P89891, - "sy": Sprite_sy__P89893, - "data": Sprite_data__P89897, - "set/data": Sprite_data__P89898, - "image": Sprite_image__P89911, - "setImage": Sprite_setImage__P89912, - "calcDimensionalHash": Sprite_calcDimensionalHash__P89913, - "resetHitbox": Sprite_resetHitbox__P89914, - "setHitbox": Sprite_setHitbox__P89915, - "isStatic": Sprite_isStatic__P89916, - "__visible": Sprite___visible__P89917, - "recalcSize": Sprite_recalcSize__P92267, - "isScaled": Sprite_isScaled__P92268, - "width": Sprite_width__P89918, - "height": Sprite_height__P89919, - "left": Sprite_left__P89920, - "set/left": Sprite_left__P89921, - "right": Sprite_right__P89922, - "set/right": Sprite_right__P89923, - "top": Sprite_top__P89924, - "set/top": Sprite_top__P89925, - "bottom": Sprite_bottom__P89926, - "set/bottom": Sprite_bottom__P89927, - "kind": Sprite_kind__P89928, - "setKind": Sprite_setKind__P89929, - "setPosition": Sprite_setPosition__P89930, - "isOutOfScreen": Sprite_isOutOfScreen__P89935, - "__drawCore": Sprite___drawCore__P89936, - "__update": Sprite___update__P89937, - "setFlag": Sprite_setFlag__P89940, - "overlapsWith": Sprite_overlapsWith__P89941, - "clearObstacles": Sprite_clearObstacles__P89946, - "registerObstacle": Sprite_registerObstacle__P89947, - "destroy": Sprite_destroy__P89949, - "_destroyCore": Sprite__destroyCore__P89950, - "toString": Sprite_toString__P89955, - "drawSay": Sprite_drawSay__P92269, - "drawDebug": Sprite_drawDebug__P92270, - "drawSprite": Sprite_drawSprite__P92271, - "z": sprites_BaseSprite_z__P89619, - "set/z": sprites_BaseSprite_z__P89620, - "__draw": sprites_BaseSprite___draw__P89621, - }, - toStringMethod: Sprite_toString__P89955, -}); -const TextSprite__C91854_VT = mkVTable({ - name: "TextSprite", - numFields: 40, - classNo: 23, - lastSubtypeNo: 23, - maxBgInstances: null, - methods: { - "__visible": Sprite___visible__P89917, - "__draw": sprites_BaseSprite___draw__P89621, - "__drawCore": Sprite___drawCore__P89936, - "__update": Sprite___update__P89937, - "setHitbox": Sprite_setHitbox__P89915, - "recalcSize": Sprite_recalcSize__P92267, - "drawSprite": Sprite_drawSprite__P92271, - }, - iface: { - "_z": null, - "set/_z": null, - "id": null, - "set/id": null, - "_x": null, - "set/_x": null, - "_y": null, - "set/_y": null, - "_vx": null, - "set/_vx": null, - "_vy": null, - "set/_vy": null, - "_ax": null, - "set/_ax": null, - "_ay": null, - "set/_ay": null, - "_fx": null, - "set/_fx": null, - "_fy": null, - "set/_fy": null, - "_sx": null, - "set/_sx": null, - "_sy": null, - "set/_sy": null, - "_width": null, - "set/_width": null, - "_height": null, - "set/_height": null, - "_data": null, - "set/_data": null, - "_kind": null, - "set/_kind": null, - "layer": null, - "set/layer": null, - "_lastX": null, - "set/_lastX": null, - "_lastY": null, - "set/_lastY": null, - "_action": null, - "set/_action": null, - "lifespan": null, - "set/lifespan": null, - "_image": null, - "set/_image": null, - "_obstacles": null, - "set/_obstacles": null, - "sayEndTime": null, - "set/sayEndTime": null, - "sayRenderer": null, - "set/sayRenderer": null, - "_hitbox": null, - "set/_hitbox": null, - "_overlappers": null, - "set/_overlappers": null, - "_kindsOverlappedWith": null, - "set/_kindsOverlappedWith": null, - "flags": null, - "set/flags": null, - "destroyHandler": null, - "set/destroyHandler": null, - "text": null, - "set/text": null, - "bg": null, - "set/bg": null, - "fg": null, - "set/fg": null, - "maxFontHeight": null, - "set/maxFontHeight": null, - "borderWidth": null, - "set/borderWidth": null, - "borderColor": null, - "set/borderColor": null, - "padding": null, - "set/padding": null, - "outlineWidth": null, - "set/outlineWidth": null, - "outlineColor": null, - "set/outlineColor": null, - "icon": null, - "set/icon": null, - "update": TextSprite_update__P91856, - "setMaxFontHeight": TextSprite_setMaxFontHeight__P91857, - "setText": TextSprite_setText__P91859, - "x": Sprite_x__P89875, - "set/x": Sprite_x__P89876, - "y": Sprite_y__P89877, - "set/y": Sprite_y__P89878, - "vx": Sprite_vx__P89879, - "set/vx": Sprite_vx__P89880, - "vy": Sprite_vy__P89881, - "set/vy": Sprite_vy__P89882, - "ax": Sprite_ax__P89883, - "set/ax": Sprite_ax__P89884, - "ay": Sprite_ay__P89885, - "set/ay": Sprite_ay__P89886, - "fx": Sprite_fx__P89887, - "set/fx": Sprite_fx__P89888, - "fy": Sprite_fy__P89889, - "set/fy": Sprite_fy__P89890, - "sx": Sprite_sx__P89891, - "sy": Sprite_sy__P89893, - "data": Sprite_data__P89897, - "set/data": Sprite_data__P89898, - "image": Sprite_image__P89911, - "setImage": Sprite_setImage__P89912, - "calcDimensionalHash": Sprite_calcDimensionalHash__P89913, - "resetHitbox": Sprite_resetHitbox__P89914, - "setHitbox": Sprite_setHitbox__P89915, - "isStatic": Sprite_isStatic__P89916, - "__visible": Sprite___visible__P89917, - "recalcSize": Sprite_recalcSize__P92267, - "isScaled": Sprite_isScaled__P92268, - "width": Sprite_width__P89918, - "height": Sprite_height__P89919, - "left": Sprite_left__P89920, - "set/left": Sprite_left__P89921, - "right": Sprite_right__P89922, - "set/right": Sprite_right__P89923, - "top": Sprite_top__P89924, - "set/top": Sprite_top__P89925, - "bottom": Sprite_bottom__P89926, - "set/bottom": Sprite_bottom__P89927, - "kind": Sprite_kind__P89928, - "setKind": Sprite_setKind__P89929, - "setPosition": Sprite_setPosition__P89930, - "isOutOfScreen": Sprite_isOutOfScreen__P89935, - "__drawCore": Sprite___drawCore__P89936, - "__update": Sprite___update__P89937, - "setFlag": Sprite_setFlag__P89940, - "overlapsWith": Sprite_overlapsWith__P89941, - "clearObstacles": Sprite_clearObstacles__P89946, - "registerObstacle": Sprite_registerObstacle__P89947, - "destroy": Sprite_destroy__P89949, - "_destroyCore": Sprite__destroyCore__P89950, - "toString": Sprite_toString__P89955, - "drawSay": Sprite_drawSay__P92269, - "drawDebug": Sprite_drawDebug__P92270, - "drawSprite": Sprite_drawSprite__P92271, - "z": sprites_BaseSprite_z__P89619, - "set/z": sprites_BaseSprite_z__P89620, - "__draw": sprites_BaseSprite___draw__P89621, - }, -}); -const game_Hitbox__C89729_VT = mkVTable({ - name: "Hitbox", - numFields: 6, - classNo: 26, - lastSubtypeNo: 26, - maxBgInstances: null, - methods: { - }, - iface: { - "hash": null, - "set/hash": null, - "parent": null, - "set/parent": null, - "ox": null, - "set/ox": null, - "oy": null, - "set/oy": null, - "width": null, - "set/width": null, - "height": null, - "set/height": null, - "left": game_Hitbox_left__P89737, - "top": game_Hitbox_top__P89738, - "right": game_Hitbox_right__P89739, - "bottom": game_Hitbox_bottom__P89740, - "isValid": game_Hitbox_isValid__P89741, - "contains": game_Hitbox_contains__P89742, - "updateIfInvalid": game_Hitbox_updateIfInvalid__P89743, - "overlapsWith": game_Hitbox_overlapsWith__P89744, - }, -}); -const scene_GameForeverHandler__C90341_VT = mkVTable({ - name: "GameForeverHandler", - numFields: 2, - classNo: 27, - lastSubtypeNo: 27, - maxBgInstances: null, - methods: { - }, - iface: { - "lock": null, - "set/lock": null, - "handler": null, - "set/handler": null, - }, -}); -const PhysicsEngine__C90032_VT = mkVTable({ - name: "PhysicsEngine", - numFields: 0, - classNo: 28, - lastSubtypeNo: 29, - maxBgInstances: null, - methods: { - "addSprite": PhysicsEngine_addSprite__P90034, - "removeSprite": PhysicsEngine_removeSprite__P90035, - "moveSprite": PhysicsEngine_moveSprite__P90036, - "draw": PhysicsEngine_draw__P90037, - "move": PhysicsEngine_move__P90038, - }, - iface: { - "addSprite": PhysicsEngine_addSprite__P90034, - "removeSprite": PhysicsEngine_removeSprite__P90035, - "moveSprite": PhysicsEngine_moveSprite__P90036, - "draw": PhysicsEngine_draw__P90037, - "move": PhysicsEngine_move__P90038, - }, -}); -const sprites_SpriteSet__C89984_VT = mkVTable({ - name: "SpriteSet", - numFields: 1, - classNo: 30, - lastSubtypeNo: 30, - maxBgInstances: null, - methods: { - }, - iface: { - "_sprites": null, - "set/_sprites": null, - "length": sprites_SpriteSet_length__P89987, - "add": sprites_SpriteSet_add__P89989, - "remove": sprites_SpriteSet_remove__P89991, - "contains": sprites_SpriteSet_contains__P89992, - "toString": sprites_SpriteSet_toString__P89995, - }, - toStringMethod: sprites_SpriteSet_toString__P89995, -}); -const scene_Scene__C90364_VT = mkVTable({ +const scene_Scene__C20814_VT = mkVTable({ name: "Scene", numFields: 25, - classNo: 31, - lastSubtypeNo: 31, + classNo: 21, + lastSubtypeNo: 21, maxBgInstances: null, methods: { }, @@ -43360,18 +41192,18 @@ const scene_Scene__C90364_VT = mkVTable({ "set/_data": null, "previousScene": null, "set/previousScene": null, - "init": scene_Scene_init__P90388, - "data": scene_Scene_data__P90389, - "millis": scene_Scene_millis__P90390, - "addSprite": scene_Scene_addSprite__P90391, - "render": scene_Scene_render__P90393, + "init": scene_Scene_init__P20838, + "data": scene_Scene_data__P20839, + "millis": scene_Scene_millis__P20840, + "addSprite": scene_Scene_addSprite__P20841, + "render": scene_Scene_render__P20843, }, }); -const control_EventContext__C87916_VT = mkVTable({ +const control_EventContext__C18366_VT = mkVTable({ name: "EventContext", numFields: 10, - classNo: 32, - lastSubtypeNo: 32, + classNo: 22, + lastSubtypeNo: 22, maxBgInstances: null, methods: { }, @@ -43396,20 +41228,41 @@ const control_EventContext__C87916_VT = mkVTable({ "set/idleCallbacks": null, "runningCallbacks": null, "set/runningCallbacks": null, - "deltaTime": control_EventContext_deltaTime__P87921, - "runCallbacks": control_EventContext_runCallbacks__P91956, - "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P91957, - "register": control_EventContext_register__P87922, - "unregister": control_EventContext_unregister__P87923, - "registerFrameHandler": control_EventContext_registerFrameHandler__P87924, - "registerHandler": control_EventContext_registerHandler__P87926, + "deltaTime": control_EventContext_deltaTime__P18371, + "runCallbacks": control_EventContext_runCallbacks__P22401, + "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P22402, + "register": control_EventContext_register__P18372, + "unregister": control_EventContext_unregister__P18373, + "registerFrameHandler": control_EventContext_registerFrameHandler__P18374, + "registerHandler": control_EventContext_registerHandler__P18376, + }, +}); +const PhysicsEngine__C20482_VT = mkVTable({ + name: "PhysicsEngine", + numFields: 0, + classNo: 23, + lastSubtypeNo: 24, + maxBgInstances: null, + methods: { + "addSprite": PhysicsEngine_addSprite__P20484, + "removeSprite": PhysicsEngine_removeSprite__P20485, + "moveSprite": PhysicsEngine_moveSprite__P20486, + "draw": PhysicsEngine_draw__P20487, + "move": PhysicsEngine_move__P20488, + }, + iface: { + "addSprite": PhysicsEngine_addSprite__P20484, + "removeSprite": PhysicsEngine_removeSprite__P20485, + "moveSprite": PhysicsEngine_moveSprite__P20486, + "draw": PhysicsEngine_draw__P20487, + "move": PhysicsEngine_move__P20488, }, }); -const scene_Camera__C90302_VT = mkVTable({ +const scene_Camera__C20752_VT = mkVTable({ name: "Camera", numFields: 10, - classNo: 33, - lastSubtypeNo: 33, + classNo: 25, + lastSubtypeNo: 25, maxBgInstances: null, methods: { }, @@ -43434,23 +41287,23 @@ const scene_Camera__C90302_VT = mkVTable({ "set/shakeDuration": null, "shakeAmplitude": null, "set/shakeAmplitude": null, - "offsetX": scene_Camera_offsetX__P90307, - "set/offsetX": scene_Camera_offsetX__P90308, - "offsetY": scene_Camera_offsetY__P90309, - "set/offsetY": scene_Camera_offsetY__P90310, - "x": scene_Camera_x__P90311, - "y": scene_Camera_y__P90312, - "left": scene_Camera_left__P90313, - "top": scene_Camera_top__P90315, - "isUpdated": scene_Camera_isUpdated__P90318, - "update": scene_Camera_update__P90319, + "offsetX": scene_Camera_offsetX__P20757, + "set/offsetX": scene_Camera_offsetX__P20758, + "offsetY": scene_Camera_offsetY__P20759, + "set/offsetY": scene_Camera_offsetY__P20760, + "x": scene_Camera_x__P20761, + "y": scene_Camera_y__P20762, + "left": scene_Camera_left__P20763, + "top": scene_Camera_top__P20765, + "isUpdated": scene_Camera_isUpdated__P20768, + "update": scene_Camera_update__P20769, }, }); -const control_EventHandler__C91951_VT = mkVTable({ +const control_EventHandler__C22396_VT = mkVTable({ name: "EventHandler", numFields: 4, - classNo: 34, - lastSubtypeNo: 34, + classNo: 26, + lastSubtypeNo: 26, maxBgInstances: null, methods: { }, @@ -43463,15 +41316,15 @@ const control_EventHandler__C91951_VT = mkVTable({ "set/handler": null, "flags": null, "set/flags": null, - "register": control_EventHandler_register__P91952, - "unregister": control_EventHandler_unregister__P91953, + "register": control_EventHandler_register__P22397, + "unregister": control_EventHandler_unregister__P22398, }, }); -const scene_Background__C90190_VT = mkVTable({ +const scene_Background__C20640_VT = mkVTable({ name: "Background", numFields: 4, - classNo: 35, - lastSubtypeNo: 35, + classNo: 27, + lastSubtypeNo: 27, maxBgInstances: null, methods: { }, @@ -43484,14 +41337,14 @@ const scene_Background__C90190_VT = mkVTable({ "set/camera": null, "_layers": null, "set/_layers": null, - "draw": scene_Background_draw__P90199, + "draw": scene_Background_draw__P20649, }, }); -const scene_BackgroundLayer__C90200_VT = mkVTable({ +const scene_BackgroundLayer__C20650_VT = mkVTable({ name: "BackgroundLayer", numFields: 6, - classNo: 36, - lastSubtypeNo: 36, + classNo: 28, + lastSubtypeNo: 28, maxBgInstances: null, methods: { }, @@ -43508,14 +41361,175 @@ const scene_BackgroundLayer__C90200_VT = mkVTable({ "set/alignX": null, "alignY": null, "set/alignY": null, - "draw": scene_BackgroundLayer_draw__P90208, + "draw": scene_BackgroundLayer_draw__P20658, + }, +}); +const sprites_BaseSprite__C20065_VT = mkVTable({ + name: "BaseSprite", + numFields: 2, + classNo: 29, + lastSubtypeNo: 32, + maxBgInstances: null, + methods: { + "__visible": sprites_BaseSprite___visible__P20068, + "__draw": sprites_BaseSprite___draw__P20071, + "__drawCore": sprites_BaseSprite___drawCore__P20072, + "__update": sprites_BaseSprite___update__P20073, + }, + iface: { + "_z": null, + "set/_z": null, + "id": null, + "set/id": null, + "__visible": sprites_BaseSprite___visible__P20068, + "z": sprites_BaseSprite_z__P20069, + "set/z": sprites_BaseSprite_z__P20070, + "__draw": sprites_BaseSprite___draw__P20071, + "__drawCore": sprites_BaseSprite___drawCore__P20072, + "__update": sprites_BaseSprite___update__P20073, + }, +}); +const Sprite__C20312_VT = mkVTable({ + name: "Sprite", + numFields: 30, + classNo: 30, + lastSubtypeNo: 30, + maxBgInstances: null, + methods: { + "__visible": Sprite___visible__P20367, + "__draw": sprites_BaseSprite___draw__P20071, + "__drawCore": Sprite___drawCore__P20386, + "__update": Sprite___update__P20387, + "setHitbox": Sprite_setHitbox__P20365, + "recalcSize": Sprite_recalcSize__P22712, + "drawSprite": Sprite_drawSprite__P22716, + }, + iface: { + "_z": null, + "set/_z": null, + "id": null, + "set/id": null, + "_x": null, + "set/_x": null, + "_y": null, + "set/_y": null, + "_vx": null, + "set/_vx": null, + "_vy": null, + "set/_vy": null, + "_ax": null, + "set/_ax": null, + "_ay": null, + "set/_ay": null, + "_fx": null, + "set/_fx": null, + "_fy": null, + "set/_fy": null, + "_sx": null, + "set/_sx": null, + "_sy": null, + "set/_sy": null, + "_width": null, + "set/_width": null, + "_height": null, + "set/_height": null, + "_data": null, + "set/_data": null, + "_kind": null, + "set/_kind": null, + "layer": null, + "set/layer": null, + "_lastX": null, + "set/_lastX": null, + "_lastY": null, + "set/_lastY": null, + "_action": null, + "set/_action": null, + "lifespan": null, + "set/lifespan": null, + "_image": null, + "set/_image": null, + "_obstacles": null, + "set/_obstacles": null, + "sayEndTime": null, + "set/sayEndTime": null, + "sayRenderer": null, + "set/sayRenderer": null, + "_hitbox": null, + "set/_hitbox": null, + "_overlappers": null, + "set/_overlappers": null, + "_kindsOverlappedWith": null, + "set/_kindsOverlappedWith": null, + "flags": null, + "set/flags": null, + "destroyHandler": null, + "set/destroyHandler": null, + "x": Sprite_x__P20325, + "set/x": Sprite_x__P20326, + "y": Sprite_y__P20327, + "set/y": Sprite_y__P20328, + "vx": Sprite_vx__P20329, + "set/vx": Sprite_vx__P20330, + "vy": Sprite_vy__P20331, + "set/vy": Sprite_vy__P20332, + "ax": Sprite_ax__P20333, + "set/ax": Sprite_ax__P20334, + "ay": Sprite_ay__P20335, + "set/ay": Sprite_ay__P20336, + "fx": Sprite_fx__P20337, + "set/fx": Sprite_fx__P20338, + "fy": Sprite_fy__P20339, + "set/fy": Sprite_fy__P20340, + "sx": Sprite_sx__P20341, + "sy": Sprite_sy__P20343, + "data": Sprite_data__P20347, + "set/data": Sprite_data__P20348, + "image": Sprite_image__P20361, + "setImage": Sprite_setImage__P20362, + "calcDimensionalHash": Sprite_calcDimensionalHash__P20363, + "resetHitbox": Sprite_resetHitbox__P20364, + "setHitbox": Sprite_setHitbox__P20365, + "isStatic": Sprite_isStatic__P20366, + "__visible": Sprite___visible__P20367, + "recalcSize": Sprite_recalcSize__P22712, + "isScaled": Sprite_isScaled__P22713, + "width": Sprite_width__P20368, + "height": Sprite_height__P20369, + "left": Sprite_left__P20370, + "set/left": Sprite_left__P20371, + "right": Sprite_right__P20372, + "set/right": Sprite_right__P20373, + "top": Sprite_top__P20374, + "set/top": Sprite_top__P20375, + "bottom": Sprite_bottom__P20376, + "set/bottom": Sprite_bottom__P20377, + "kind": Sprite_kind__P20378, + "setKind": Sprite_setKind__P20379, + "isOutOfScreen": Sprite_isOutOfScreen__P20385, + "__drawCore": Sprite___drawCore__P20386, + "__update": Sprite___update__P20387, + "setFlag": Sprite_setFlag__P20390, + "overlapsWith": Sprite_overlapsWith__P20391, + "clearObstacles": Sprite_clearObstacles__P20396, + "registerObstacle": Sprite_registerObstacle__P20397, + "destroy": Sprite_destroy__P20399, + "_destroyCore": Sprite__destroyCore__P20400, + "toString": Sprite_toString__P20405, + "drawSay": Sprite_drawSay__P22714, + "drawDebug": Sprite_drawDebug__P22715, + "drawSprite": Sprite_drawSprite__P22716, + "z": sprites_BaseSprite_z__P20069, + "set/z": sprites_BaseSprite_z__P20070, + "__draw": sprites_BaseSprite___draw__P20071, }, + toStringMethod: Sprite_toString__P20405, }); -const tiles_TileMap__C90256_VT = mkVTable({ +const tiles_TileMap__C20706_VT = mkVTable({ name: "TileMap", numFields: 5, - classNo: 37, - lastSubtypeNo: 37, + classNo: 33, + lastSubtypeNo: 33, maxBgInstances: null, methods: { }, @@ -43530,29 +41544,29 @@ const tiles_TileMap__C90256_VT = mkVTable({ "set/renderable": null, "handlerState": null, "set/handlerState": null, - "scale": tiles_TileMap_scale__P90259, - "set/scale": tiles_TileMap_scale__P90260, - "data": tiles_TileMap_data__P90261, - "offsetX": tiles_TileMap_offsetX__P90262, - "offsetY": tiles_TileMap_offsetY__P90263, - "areaWidth": tiles_TileMap_areaWidth__P90264, - "areaHeight": tiles_TileMap_areaHeight__P90265, - "layer": tiles_TileMap_layer__P90266, - "enabled": tiles_TileMap_enabled__P90268, - "getTile": tiles_TileMap_getTile__P90270, - "getTileIndex": tiles_TileMap_getTileIndex__P90271, - "draw": tiles_TileMap_draw__P92388, - "isObstacle": tiles_TileMap_isObstacle__P90277, - "getObstacle": tiles_TileMap_getObstacle__P90278, - "isOnWall": tiles_TileMap_isOnWall__P90279, - "getTileImage": tiles_TileMap_getTileImage__P90280, + "scale": tiles_TileMap_scale__P20709, + "set/scale": tiles_TileMap_scale__P20710, + "data": tiles_TileMap_data__P20711, + "offsetX": tiles_TileMap_offsetX__P20712, + "offsetY": tiles_TileMap_offsetY__P20713, + "areaWidth": tiles_TileMap_areaWidth__P20714, + "areaHeight": tiles_TileMap_areaHeight__P20715, + "layer": tiles_TileMap_layer__P20716, + "enabled": tiles_TileMap_enabled__P20718, + "getTile": tiles_TileMap_getTile__P20720, + "getTileIndex": tiles_TileMap_getTileIndex__P20721, + "draw": tiles_TileMap_draw__P22833, + "isObstacle": tiles_TileMap_isObstacle__P20727, + "getObstacle": tiles_TileMap_getObstacle__P20728, + "isOnWall": tiles_TileMap_isOnWall__P20729, + "getTileImage": tiles_TileMap_getTileImage__P20730, }, }); -const tiles_TileMapData__C90238_VT = mkVTable({ +const tiles_TileMapData__C20688_VT = mkVTable({ name: "TileMapData", numFields: 7, - classNo: 38, - lastSubtypeNo: 38, + classNo: 34, + lastSubtypeNo: 34, maxBgInstances: null, methods: { }, @@ -43571,21 +41585,21 @@ const tiles_TileMapData__C90238_VT = mkVTable({ "set/_width": null, "_height": null, "set/_height": null, - "width": tiles_TileMapData_width__P90240, - "height": tiles_TileMapData_height__P90241, - "scale": tiles_TileMapData_scale__P90242, - "set/scale": tiles_TileMapData_scale__P90243, - "getTile": tiles_TileMapData_getTile__P90244, - "getTileImage": tiles_TileMapData_getTileImage__P90247, - "isWall": tiles_TileMapData_isWall__P90249, - "isOutsideMap": tiles_TileMapData_isOutsideMap__P90250, + "width": tiles_TileMapData_width__P20690, + "height": tiles_TileMapData_height__P20691, + "scale": tiles_TileMapData_scale__P20692, + "set/scale": tiles_TileMapData_scale__P20693, + "getTile": tiles_TileMapData_getTile__P20694, + "getTileImage": tiles_TileMapData_getTileImage__P20697, + "isWall": tiles_TileMapData_isWall__P20699, + "isOutsideMap": tiles_TileMapData_isOutsideMap__P20700, }, }); -const control_FrameCallback__C87913_VT = mkVTable({ +const control_FrameCallback__C18363_VT = mkVTable({ name: "FrameCallback", numFields: 2, - classNo: 39, - lastSubtypeNo: 39, + classNo: 35, + lastSubtypeNo: 35, maxBgInstances: null, methods: { }, @@ -43596,11 +41610,11 @@ const control_FrameCallback__C87913_VT = mkVTable({ "set/handler": null, }, }); -const control_PollEvent__C91930_VT = mkVTable({ +const control_PollEvent__C22375_VT = mkVTable({ name: "PollEvent", numFields: 6, - classNo: 40, - lastSubtypeNo: 40, + classNo: 36, + lastSubtypeNo: 36, maxBgInstances: null, methods: { }, @@ -43619,18 +41633,18 @@ const control_PollEvent__C91930_VT = mkVTable({ "set/once": null, }, }); -const ArcadePhysicsEngine__C90048_VT = mkVTable({ +const ArcadePhysicsEngine__C20498_VT = mkVTable({ name: "ArcadePhysicsEngine", numFields: 6, - classNo: 29, - lastSubtypeNo: 29, + classNo: 24, + lastSubtypeNo: 24, maxBgInstances: null, methods: { - "addSprite": ArcadePhysicsEngine_addSprite__P90057, - "removeSprite": ArcadePhysicsEngine_removeSprite__P90058, - "moveSprite": ArcadePhysicsEngine_moveSprite__P90062, - "draw": ArcadePhysicsEngine_draw__P90059, - "move": ArcadePhysicsEngine_move__P90060, + "addSprite": ArcadePhysicsEngine_addSprite__P20507, + "removeSprite": ArcadePhysicsEngine_removeSprite__P20508, + "moveSprite": ArcadePhysicsEngine_moveSprite__P20512, + "draw": ArcadePhysicsEngine_draw__P20509, + "move": ArcadePhysicsEngine_move__P20510, }, iface: { "sprites": null, @@ -43645,31 +41659,31 @@ const ArcadePhysicsEngine__C90048_VT = mkVTable({ "set/minSingleStep": null, "maxSingleStep": null, "set/maxSingleStep": null, - "maxSpeed": ArcadePhysicsEngine_maxSpeed__P90050, - "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P90051, - "minStep": ArcadePhysicsEngine_minStep__P90052, - "set/minStep": ArcadePhysicsEngine_minStep__P90053, - "maxStep": ArcadePhysicsEngine_maxStep__P90054, - "set/maxStep": ArcadePhysicsEngine_maxStep__P90055, - "addSprite": ArcadePhysicsEngine_addSprite__P90057, - "removeSprite": ArcadePhysicsEngine_removeSprite__P90058, - "draw": ArcadePhysicsEngine_draw__P90059, - "move": ArcadePhysicsEngine_move__P90060, - "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P92312, - "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P92313, - "screenEdgeCollisions": ArcadePhysicsEngine_screenEdgeCollisions__P92314, - "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P92315, - "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P92316, - "moveSprite": ArcadePhysicsEngine_moveSprite__P90062, - "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P92317, - "constrain": ArcadePhysicsEngine_constrain__P92318, + "maxSpeed": ArcadePhysicsEngine_maxSpeed__P20500, + "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P20501, + "minStep": ArcadePhysicsEngine_minStep__P20502, + "set/minStep": ArcadePhysicsEngine_minStep__P20503, + "maxStep": ArcadePhysicsEngine_maxStep__P20504, + "set/maxStep": ArcadePhysicsEngine_maxStep__P20505, + "addSprite": ArcadePhysicsEngine_addSprite__P20507, + "removeSprite": ArcadePhysicsEngine_removeSprite__P20508, + "draw": ArcadePhysicsEngine_draw__P20509, + "move": ArcadePhysicsEngine_move__P20510, + "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P22757, + "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P22758, + "screenEdgeCollisions": ArcadePhysicsEngine_screenEdgeCollisions__P22759, + "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P22760, + "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P22761, + "moveSprite": ArcadePhysicsEngine_moveSprite__P20512, + "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P22762, + "constrain": ArcadePhysicsEngine_constrain__P22763, }, }); -const sprites_SpriteMap__C89967_VT = mkVTable({ +const sprites_SpriteMap__C20417_VT = mkVTable({ name: "SpriteMap", numFields: 5, - classNo: 41, - lastSubtypeNo: 41, + classNo: 37, + lastSubtypeNo: 37, maxBgInstances: null, methods: { }, @@ -43684,24 +41698,24 @@ const sprites_SpriteMap__C89967_VT = mkVTable({ "set/columnCount": null, "buckets": null, "set/buckets": null, - "neighbors": sprites_SpriteMap_neighbors__P89969, - "overlaps": sprites_SpriteMap_overlaps__P89970, - "draw": sprites_SpriteMap_draw__P89971, - "resizeBuckets": sprites_SpriteMap_resizeBuckets__P89972, - "clear": sprites_SpriteMap_clear__P89973, - "key": sprites_SpriteMap_key__P92275, - "insertAtKey": sprites_SpriteMap_insertAtKey__P92276, - "insertAABB": sprites_SpriteMap_insertAABB__P89974, - "mergeAtKey": sprites_SpriteMap_mergeAtKey__P92277, - "toString": sprites_SpriteMap_toString__P89975, + "neighbors": sprites_SpriteMap_neighbors__P20419, + "overlaps": sprites_SpriteMap_overlaps__P20420, + "draw": sprites_SpriteMap_draw__P20421, + "resizeBuckets": sprites_SpriteMap_resizeBuckets__P20422, + "clear": sprites_SpriteMap_clear__P20423, + "key": sprites_SpriteMap_key__P22720, + "insertAtKey": sprites_SpriteMap_insertAtKey__P22721, + "insertAABB": sprites_SpriteMap_insertAABB__P20424, + "mergeAtKey": sprites_SpriteMap_mergeAtKey__P22722, + "toString": sprites_SpriteMap_toString__P20425, }, - toStringMethod: sprites_SpriteMap_toString__P89975, + toStringMethod: sprites_SpriteMap_toString__P20425, }); -const scene_systemMenu_PauseMenu__C90616_VT = mkVTable({ +const scene_systemMenu_PauseMenu__C21066_VT = mkVTable({ name: "PauseMenu", numFields: 7, - classNo: 42, - lastSubtypeNo: 42, + classNo: 38, + lastSubtypeNo: 38, maxBgInstances: null, methods: { }, @@ -43720,19 +41734,19 @@ const scene_systemMenu_PauseMenu__C90616_VT = mkVTable({ "set/scrollOffset": null, "generator": null, "set/generator": null, - "show": scene_systemMenu_PauseMenu_show__P90618, - "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P90619, - "setSelection": scene_systemMenu_PauseMenu_setSelection__P90620, - "drawText": scene_systemMenu_PauseMenu_drawText__P90621, - "dispose": scene_systemMenu_PauseMenu_dispose__P90622, - "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P92715, + "show": scene_systemMenu_PauseMenu_show__P21068, + "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P21069, + "setSelection": scene_systemMenu_PauseMenu_setSelection__P21070, + "drawText": scene_systemMenu_PauseMenu_drawText__P21071, + "dispose": scene_systemMenu_PauseMenu_dispose__P21072, + "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P23160, }, }); -const scene_systemMenu_MenuOption__C90608_VT = mkVTable({ +const scene_systemMenu_MenuOption__C21058_VT = mkVTable({ name: "MenuOption", numFields: 8, - classNo: 43, - lastSubtypeNo: 43, + classNo: 39, + lastSubtypeNo: 39, maxBgInstances: null, methods: { }, @@ -43753,20 +41767,20 @@ const scene_systemMenu_MenuOption__C90608_VT = mkVTable({ "set/getText": null, "action": null, "set/action": null, - "show": scene_systemMenu_MenuOption_show__P90610, - "position": scene_systemMenu_MenuOption_position__P90611, - "setOffset": scene_systemMenu_MenuOption_setOffset__P90612, - "setTheme": scene_systemMenu_MenuOption_setTheme__P90613, - "setState": scene_systemMenu_MenuOption_setState__P90614, - "dispose": scene_systemMenu_MenuOption_dispose__P90615, - "updateCard": scene_systemMenu_MenuOption_updateCard__P92714, + "show": scene_systemMenu_MenuOption_show__P21060, + "position": scene_systemMenu_MenuOption_position__P21061, + "setOffset": scene_systemMenu_MenuOption_setOffset__P21062, + "setTheme": scene_systemMenu_MenuOption_setTheme__P21063, + "setState": scene_systemMenu_MenuOption_setState__P21064, + "dispose": scene_systemMenu_MenuOption_dispose__P21065, + "updateCard": scene_systemMenu_MenuOption_updateCard__P23159, }, }); -const effects_ParticleEffect__C90783_VT = mkVTable({ +const effects_ParticleEffect__C21233_VT = mkVTable({ name: "ParticleEffect", numFields: 3, - classNo: 44, - lastSubtypeNo: 45, + classNo: 40, + lastSubtypeNo: 41, maxBgInstances: null, methods: { }, @@ -43777,15 +41791,15 @@ const effects_ParticleEffect__C90783_VT = mkVTable({ "set/defaultRate": null, "defaultLifespan": null, "set/defaultLifespan": null, - "start": effects_ParticleEffect_start__P90785, - "destroy": effects_ParticleEffect_destroy__P90786, + "start": effects_ParticleEffect_start__P21235, + "destroy": effects_ParticleEffect_destroy__P21236, }, }); -const effects_ImageEffect__C90811_VT = mkVTable({ +const effects_ImageEffect__C21261_VT = mkVTable({ name: "ImageEffect", numFields: 4, - classNo: 46, - lastSubtypeNo: 46, + classNo: 42, + lastSubtypeNo: 42, maxBgInstances: null, methods: { }, @@ -43798,22 +41812,53 @@ const effects_ImageEffect__C90811_VT = mkVTable({ "set/fastRandom": null, "times": null, "set/times": null, - "applyTo": effects_ImageEffect_applyTo__P90813, - "change": effects_ImageEffect_change__P90814, + "applyTo": effects_ImageEffect_applyTo__P21263, + "change": effects_ImageEffect_change__P21264, + }, +}); +const game_Hitbox__C20179_VT = mkVTable({ + name: "Hitbox", + numFields: 6, + classNo: 43, + lastSubtypeNo: 43, + maxBgInstances: null, + methods: { + }, + iface: { + "hash": null, + "set/hash": null, + "parent": null, + "set/parent": null, + "ox": null, + "set/ox": null, + "oy": null, + "set/oy": null, + "width": null, + "set/width": null, + "height": null, + "set/height": null, + "left": game_Hitbox_left__P20187, + "top": game_Hitbox_top__P20188, + "right": game_Hitbox_right__P20189, + "bottom": game_Hitbox_bottom__P20190, + "isValid": game_Hitbox_isValid__P20191, + "contains": game_Hitbox_contains__P20192, + "updateIfInvalid": game_Hitbox_updateIfInvalid__P20193, + "overlapsWith": game_Hitbox_overlapsWith__P20194, }, }); -const particles_ParticleSource__C90672_VT = mkVTable({ +const particles_ParticleSource__C21122_VT = mkVTable({ name: "ParticleSource", numFields: 13, - classNo: 24, - lastSubtypeNo: 24, + classNo: 31, + lastSubtypeNo: 31, maxBgInstances: null, methods: { - "__visible": sprites_BaseSprite___visible__P89618, - "__draw": particles_ParticleSource___draw__P90678, - "__drawCore": sprites_BaseSprite___drawCore__P89622, - "__update": sprites_BaseSprite___update__P89623, - "updateParticle": particles_ParticleSource_updateParticle__P92800, + "__visible": sprites_BaseSprite___visible__P20068, + "__draw": particles_ParticleSource___draw__P21128, + "__drawCore": sprites_BaseSprite___drawCore__P20072, + "__update": sprites_BaseSprite___update__P20073, + "updateParticle": particles_ParticleSource_updateParticle__P23245, }, iface: { "_z": null, @@ -43842,38 +41887,57 @@ const particles_ParticleSource__C90672_VT = mkVTable({ "set/ax": null, "ay": null, "set/ay": null, - "__draw": particles_ParticleSource___draw__P90678, - "_update": particles_ParticleSource__update__P90679, - "_prune": particles_ParticleSource__prune__P90680, - "setAcceleration": particles_ParticleSource_setAcceleration__P90681, - "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P90683, - "enabled": particles_ParticleSource_enabled__P90684, - "set/enabled": particles_ParticleSource_enabled__P90685, - "destroy": particles_ParticleSource_destroy__P90686, - "clear": particles_ParticleSource_clear__P90687, - "setAnchor": particles_ParticleSource_setAnchor__P90688, - "setRate": particles_ParticleSource_setRate__P90689, - "setFactory": particles_ParticleSource_setFactory__P90691, - "updateParticle": particles_ParticleSource_updateParticle__P92800, - "drawParticle": particles_ParticleSource_drawParticle__P92801, - "__visible": sprites_BaseSprite___visible__P89618, - "z": sprites_BaseSprite_z__P89619, - "set/z": sprites_BaseSprite_z__P89620, - "__drawCore": sprites_BaseSprite___drawCore__P89622, - "__update": sprites_BaseSprite___update__P89623, + "__draw": particles_ParticleSource___draw__P21128, + "_update": particles_ParticleSource__update__P21129, + "_prune": particles_ParticleSource__prune__P21130, + "setAcceleration": particles_ParticleSource_setAcceleration__P21131, + "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P21133, + "enabled": particles_ParticleSource_enabled__P21134, + "set/enabled": particles_ParticleSource_enabled__P21135, + "destroy": particles_ParticleSource_destroy__P21136, + "clear": particles_ParticleSource_clear__P21137, + "setAnchor": particles_ParticleSource_setAnchor__P21138, + "setRate": particles_ParticleSource_setRate__P21139, + "setFactory": particles_ParticleSource_setFactory__P21141, + "updateParticle": particles_ParticleSource_updateParticle__P23245, + "drawParticle": particles_ParticleSource_drawParticle__P23246, + "__visible": sprites_BaseSprite___visible__P20068, + "z": sprites_BaseSprite_z__P20069, + "set/z": sprites_BaseSprite_z__P20070, + "__drawCore": sprites_BaseSprite___drawCore__P20072, + "__update": sprites_BaseSprite___update__P20073, + }, +}); +const sprites_SpriteSet__C20434_VT = mkVTable({ + name: "SpriteSet", + numFields: 1, + classNo: 44, + lastSubtypeNo: 44, + maxBgInstances: null, + methods: { }, + iface: { + "_sprites": null, + "set/_sprites": null, + "length": sprites_SpriteSet_length__P20437, + "add": sprites_SpriteSet_add__P20439, + "remove": sprites_SpriteSet_remove__P20441, + "contains": sprites_SpriteSet_contains__P20442, + "toString": sprites_SpriteSet_toString__P20445, + }, + toStringMethod: sprites_SpriteSet_toString__P20445, }); -const scene_Renderable__C90321_VT = mkVTable({ +const scene_Renderable__C20771_VT = mkVTable({ name: "Renderable", numFields: 4, - classNo: 25, - lastSubtypeNo: 25, + classNo: 32, + lastSubtypeNo: 32, maxBgInstances: null, methods: { - "__visible": scene_Renderable___visible__P90323, - "__draw": sprites_BaseSprite___draw__P89621, - "__drawCore": scene_Renderable___drawCore__P90324, - "__update": sprites_BaseSprite___update__P89623, + "__visible": scene_Renderable___visible__P20773, + "__draw": sprites_BaseSprite___draw__P20071, + "__drawCore": scene_Renderable___drawCore__P20774, + "__update": sprites_BaseSprite___update__P20073, }, iface: { "_z": null, @@ -43884,19 +41948,19 @@ const scene_Renderable__C90321_VT = mkVTable({ "set/handler": null, "shouldBeVisible": null, "set/shouldBeVisible": null, - "__visible": scene_Renderable___visible__P90323, - "__drawCore": scene_Renderable___drawCore__P90324, - "z": sprites_BaseSprite_z__P89619, - "set/z": sprites_BaseSprite_z__P89620, - "__draw": sprites_BaseSprite___draw__P89621, - "__update": sprites_BaseSprite___update__P89623, + "__visible": scene_Renderable___visible__P20773, + "__drawCore": scene_Renderable___drawCore__P20774, + "z": sprites_BaseSprite_z__P20069, + "set/z": sprites_BaseSprite_z__P20070, + "__draw": sprites_BaseSprite___draw__P20071, + "__update": sprites_BaseSprite___update__P20073, }, }); -const controller_ButtonHandler__C89704_VT = mkVTable({ +const controller_ButtonHandler__C20154_VT = mkVTable({ name: "ButtonHandler", numFields: 2, - classNo: 47, - lastSubtypeNo: 47, + classNo: 45, + lastSubtypeNo: 45, maxBgInstances: null, methods: { }, @@ -43907,11 +41971,11 @@ const controller_ButtonHandler__C89704_VT = mkVTable({ "set/callback": null, }, }); -const controller_ButtonEventHandlerState__C89706_VT = mkVTable({ +const controller_ButtonEventHandlerState__C20156_VT = mkVTable({ name: "ButtonEventHandlerState", numFields: 3, - classNo: 48, - lastSubtypeNo: 48, + classNo: 46, + lastSubtypeNo: 46, maxBgInstances: null, methods: { }, @@ -43924,11 +41988,11 @@ const controller_ButtonEventHandlerState__C89706_VT = mkVTable({ "set/system": null, }, }); -const effects_ScreenEffect__C90787_VT = mkVTable({ +const effects_ScreenEffect__C21237_VT = mkVTable({ name: "ScreenEffect", numFields: 5, - classNo: 45, - lastSubtypeNo: 45, + classNo: 41, + lastSubtypeNo: 41, maxBgInstances: null, methods: { }, @@ -43943,34 +42007,34 @@ const effects_ScreenEffect__C90787_VT = mkVTable({ "set/source": null, "sceneDefaultRate": null, "set/sceneDefaultRate": null, - "start": effects_ParticleEffect_start__P90785, - "destroy": effects_ParticleEffect_destroy__P90786, + "start": effects_ParticleEffect_start__P21235, + "destroy": effects_ParticleEffect_destroy__P21236, }, }); -const particles_ParticleFactory__C90708_VT = mkVTable({ +const particles_ParticleFactory__C21158_VT = mkVTable({ name: "ParticleFactory", numFields: 0, - classNo: 49, - lastSubtypeNo: 53, + classNo: 47, + lastSubtypeNo: 51, maxBgInstances: null, methods: { - "createParticle": particles_ParticleFactory_createParticle__P90710, - "drawParticle": particles_ParticleFactory_drawParticle__P90711, + "createParticle": particles_ParticleFactory_createParticle__P21160, + "drawParticle": particles_ParticleFactory_drawParticle__P21161, }, iface: { - "createParticle": particles_ParticleFactory_createParticle__P90710, - "drawParticle": particles_ParticleFactory_drawParticle__P90711, + "createParticle": particles_ParticleFactory_createParticle__P21160, + "drawParticle": particles_ParticleFactory_drawParticle__P21161, }, }); -const particles_SprayFactory__C90712_VT = mkVTable({ +const particles_SprayFactory__C21162_VT = mkVTable({ name: "SprayFactory", numFields: 3, - classNo: 50, - lastSubtypeNo: 53, + classNo: 48, + lastSubtypeNo: 51, maxBgInstances: null, methods: { - "createParticle": particles_SprayFactory_createParticle__P90714, - "drawParticle": particles_SprayFactory_drawParticle__P90715, + "createParticle": particles_SprayFactory_createParticle__P21164, + "drawParticle": particles_SprayFactory_drawParticle__P21165, }, iface: { "speed": null, @@ -43979,21 +42043,21 @@ const particles_SprayFactory__C90712_VT = mkVTable({ "set/minAngle": null, "spread": null, "set/spread": null, - "createParticle": particles_SprayFactory_createParticle__P90714, - "drawParticle": particles_SprayFactory_drawParticle__P90715, - "setSpeed": particles_SprayFactory_setSpeed__P90716, - "setDirection": particles_SprayFactory_setDirection__P90717, + "createParticle": particles_SprayFactory_createParticle__P21164, + "drawParticle": particles_SprayFactory_drawParticle__P21165, + "setSpeed": particles_SprayFactory_setSpeed__P21166, + "setDirection": particles_SprayFactory_setDirection__P21167, }, }); -const particles_AreaFactory__C90718_VT = mkVTable({ +const particles_AreaFactory__C21168_VT = mkVTable({ name: "AreaFactory", numFields: 8, - classNo: 51, - lastSubtypeNo: 53, + classNo: 49, + lastSubtypeNo: 51, maxBgInstances: null, methods: { - "createParticle": particles_AreaFactory_createParticle__P90724, - "drawParticle": particles_AreaFactory_drawParticle__P90725, + "createParticle": particles_AreaFactory_createParticle__P21174, + "drawParticle": particles_AreaFactory_drawParticle__P21175, }, iface: { "speed": null, @@ -44012,21 +42076,21 @@ const particles_AreaFactory__C90718_VT = mkVTable({ "set/maxLifespan": null, "galois": null, "set/galois": null, - "createParticle": particles_AreaFactory_createParticle__P90724, - "drawParticle": particles_AreaFactory_drawParticle__P90725, - "setSpeed": particles_SprayFactory_setSpeed__P90716, - "setDirection": particles_SprayFactory_setDirection__P90717, + "createParticle": particles_AreaFactory_createParticle__P21174, + "drawParticle": particles_AreaFactory_drawParticle__P21175, + "setSpeed": particles_SprayFactory_setSpeed__P21166, + "setDirection": particles_SprayFactory_setDirection__P21167, }, }); -const particles_ShapeFactory__C90734_VT = mkVTable({ +const particles_ShapeFactory__C21184_VT = mkVTable({ name: "ShapeFactory", numFields: 11, - classNo: 52, - lastSubtypeNo: 53, + classNo: 50, + lastSubtypeNo: 51, maxBgInstances: null, methods: { - "createParticle": particles_ShapeFactory_createParticle__P90738, - "drawParticle": particles_ShapeFactory_drawParticle__P90737, + "createParticle": particles_ShapeFactory_createParticle__P21188, + "drawParticle": particles_ShapeFactory_drawParticle__P21187, }, iface: { "speed": null, @@ -44051,22 +42115,22 @@ const particles_ShapeFactory__C90734_VT = mkVTable({ "set/ox": null, "oy": null, "set/oy": null, - "addShape": particles_ShapeFactory_addShape__P90736, - "drawParticle": particles_ShapeFactory_drawParticle__P90737, - "createParticle": particles_ShapeFactory_createParticle__P90738, - "setSpeed": particles_SprayFactory_setSpeed__P90716, - "setDirection": particles_SprayFactory_setDirection__P90717, + "addShape": particles_ShapeFactory_addShape__P21186, + "drawParticle": particles_ShapeFactory_drawParticle__P21187, + "createParticle": particles_ShapeFactory_createParticle__P21188, + "setSpeed": particles_SprayFactory_setSpeed__P21166, + "setDirection": particles_SprayFactory_setDirection__P21167, }, }); -const particles_ConfettiFactory__C90739_VT = mkVTable({ +const particles_ConfettiFactory__C21189_VT = mkVTable({ name: "ConfettiFactory", numFields: 11, - classNo: 53, - lastSubtypeNo: 53, + classNo: 51, + lastSubtypeNo: 51, maxBgInstances: null, methods: { - "createParticle": particles_ShapeFactory_createParticle__P90738, - "drawParticle": particles_ShapeFactory_drawParticle__P90737, + "createParticle": particles_ShapeFactory_createParticle__P21188, + "drawParticle": particles_ShapeFactory_drawParticle__P21187, }, iface: { "speed": null, @@ -44091,18 +42155,18 @@ const particles_ConfettiFactory__C90739_VT = mkVTable({ "set/ox": null, "oy": null, "set/oy": null, - "addShape": particles_ShapeFactory_addShape__P90736, - "drawParticle": particles_ShapeFactory_drawParticle__P90737, - "createParticle": particles_ShapeFactory_createParticle__P90738, - "setSpeed": particles_SprayFactory_setSpeed__P90716, - "setDirection": particles_SprayFactory_setDirection__P90717, + "addShape": particles_ShapeFactory_addShape__P21186, + "drawParticle": particles_ShapeFactory_drawParticle__P21187, + "createParticle": particles_ShapeFactory_createParticle__P21188, + "setSpeed": particles_SprayFactory_setSpeed__P21166, + "setDirection": particles_SprayFactory_setDirection__P21167, }, }); -const particles_Particle__C90653_VT = mkVTable({ +const particles_Particle__C21103_VT = mkVTable({ name: "Particle", numFields: 8, - classNo: 54, - lastSubtypeNo: 54, + classNo: 52, + lastSubtypeNo: 52, maxBgInstances: 200, methods: { }, @@ -44125,11 +42189,11 @@ const particles_Particle__C90653_VT = mkVTable({ "set/color": null, }, }); -const music_Playable__C89432_VT = mkVTable({ +const music_Playable__C19882_VT = mkVTable({ name: "Playable", numFields: 1, - classNo: 55, - lastSubtypeNo: 56, + classNo: 53, + lastSubtypeNo: 54, maxBgInstances: null, methods: { }, @@ -44138,11 +42202,11 @@ const music_Playable__C89432_VT = mkVTable({ "set/stopped": null, }, }); -const music_MelodyPlayable__C89437_VT = mkVTable({ +const music_MelodyPlayable__C19887_VT = mkVTable({ name: "MelodyPlayable", numFields: 2, - classNo: 56, - lastSubtypeNo: 56, + classNo: 54, + lastSubtypeNo: 54, maxBgInstances: null, methods: { }, @@ -44153,11 +42217,11 @@ const music_MelodyPlayable__C89437_VT = mkVTable({ "set/melody": null, }, }); -const music_Melody__C89147_VT = mkVTable({ +const music_Melody__C19597_VT = mkVTable({ name: "Melody", numFields: 2, - classNo: 57, - lastSubtypeNo: 57, + classNo: 55, + lastSubtypeNo: 55, maxBgInstances: null, methods: { }, @@ -44166,15 +42230,15 @@ const music_Melody__C89147_VT = mkVTable({ "set/_text": null, "_player": null, "set/_player": null, - "toString": music_Melody_toString__P89156, + "toString": music_Melody_toString__P19606, }, - toStringMethod: music_Melody_toString__P89156, + toStringMethod: music_Melody_toString__P19606, }); -const MovingSprite__C90046_VT = mkVTable({ +const MovingSprite__C20496_VT = mkVTable({ name: "MovingSprite", numFields: 7, - classNo: 58, - lastSubtypeNo: 58, + classNo: 56, + lastSubtypeNo: 56, maxBgInstances: null, methods: { }, @@ -44195,11 +42259,11 @@ const MovingSprite__C90046_VT = mkVTable({ "set/yStep": null, }, }); -const tiles_Location__C90214_VT = mkVTable({ +const tiles_Location__C20664_VT = mkVTable({ name: "Location", numFields: 2, - classNo: 59, - lastSubtypeNo: 59, + classNo: 57, + lastSubtypeNo: 57, maxBgInstances: null, methods: { }, @@ -44208,21 +42272,21 @@ const tiles_Location__C90214_VT = mkVTable({ "set/_row": null, "_col": null, "set/_col": null, - "tileMap": tiles_Location_tileMap__P90216, - "column": tiles_Location_column__P90217, - "row": tiles_Location_row__P90218, - "x": tiles_Location_x__P90219, - "y": tiles_Location_y__P90220, - "left": tiles_Location_left__P90221, - "top": tiles_Location_top__P90222, - "tileSet": tiles_Location_tileSet__P90225, + "tileMap": tiles_Location_tileMap__P20666, + "column": tiles_Location_column__P20667, + "row": tiles_Location_row__P20668, + "x": tiles_Location_x__P20669, + "y": tiles_Location_y__P20670, + "left": tiles_Location_left__P20671, + "top": tiles_Location_top__P20672, + "tileSet": tiles_Location_tileSet__P20675, }, }); -const sprites_StaticObstacle__C90019_VT = mkVTable({ +const sprites_StaticObstacle__C20469_VT = mkVTable({ name: "StaticObstacle", numFields: 5, - classNo: 60, - lastSubtypeNo: 60, + classNo: 58, + lastSubtypeNo: 58, maxBgInstances: null, methods: { }, @@ -44237,22 +42301,22 @@ const sprites_StaticObstacle__C90019_VT = mkVTable({ "set/top": null, "left": null, "set/left": null, - "x": sprites_StaticObstacle_x__P90026, - "y": sprites_StaticObstacle_y__P90027, - "height": sprites_StaticObstacle_height__P90028, - "width": sprites_StaticObstacle_width__P90029, + "x": sprites_StaticObstacle_x__P20476, + "y": sprites_StaticObstacle_y__P20477, + "height": sprites_StaticObstacle_height__P20478, + "width": sprites_StaticObstacle_width__P20479, }, }); -const sprites_BaseSpriteSayRenderer__C89780_VT = mkVTable({ +const sprites_BaseSpriteSayRenderer__C20230_VT = mkVTable({ name: "BaseSpriteSayRenderer", numFields: 3, - classNo: 61, - lastSubtypeNo: 61, + classNo: 59, + lastSubtypeNo: 59, maxBgInstances: null, methods: { - "draw": sprites_BaseSpriteSayRenderer_draw__P89782, - "update": sprites_BaseSpriteSayRenderer_update__P89783, - "destroy": sprites_BaseSpriteSayRenderer_destroy__P89784, + "draw": sprites_BaseSpriteSayRenderer_draw__P20232, + "update": sprites_BaseSpriteSayRenderer_update__P20233, + "destroy": sprites_BaseSpriteSayRenderer_destroy__P20234, }, iface: { "text": null, @@ -44261,13 +42325,13 @@ const sprites_BaseSpriteSayRenderer__C89780_VT = mkVTable({ "set/fgColor": null, "bgColor": null, "set/bgColor": null, - "draw": sprites_BaseSpriteSayRenderer_draw__P89782, - "update": sprites_BaseSpriteSayRenderer_update__P89783, - "destroy": sprites_BaseSpriteSayRenderer_destroy__P89784, + "draw": sprites_BaseSpriteSayRenderer_draw__P20232, + "update": sprites_BaseSpriteSayRenderer_update__P20233, + "destroy": sprites_BaseSpriteSayRenderer_destroy__P20234, }, }); -const breakpoints = setupDebugger(1, ["textSprite___91867","textSprite2___91868","textSprite3___91869","textSprite4___91870","textSprite5___91871"]) +const breakpoints = setupDebugger(1, []) -return _main___P106056 +return _main___P35932 }) diff --git a/assets/version.txt b/assets/version.txt index 05b19b1..fa3de58 100644 --- a/assets/version.txt +++ b/assets/version.txt @@ -1 +1 @@ -0.0.4 \ No newline at end of file +0.0.5 \ No newline at end of file diff --git a/pxt.json b/pxt.json index 11b0304..f275580 100644 --- a/pxt.json +++ b/pxt.json @@ -1,6 +1,6 @@ { "name": "Unit 1 Skillmap", - "version": "0.0.4", + "version": "0.0.5", "description": "", "dependencies": { "device": "*",